windows-spawn: Export another auxiliary function.
[gnulib.git] / ChangeLog
blobfceaaa687bca15fe52c709f0c3a1246f5a48a887
1 2020-12-24  Bruno Haible  <bruno@clisp.org>
3         windows-spawn: Export another auxiliary function.
4         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
5         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
6         extracted from spawnpvech.
7         (spawnpvech): Use it.
9 2020-12-24  Bruno Haible  <bruno@clisp.org>
11         windows-spawn: Export some more auxiliary functions.
12         * lib/windows-spawn.h: Include <stdbool.h>.
13         (struct inheritable_handles): New type.
14         (init_inheritable_handles, compose_handles_block,
15         free_inheritable_handles): New declarations.
16         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
17         New functions, based on spawnvech.
18         (free_inheritable_handles): New function.
19         (spawnpvech): Use them.
21 2020-12-24  Bruno Haible  <bruno@clisp.org>
23         windows-spawn: Export another auxiliary function.
24         * lib/windows-spawn.h (compose_envblock): New declaration.
25         * lib/windows-spawn.c (compose_envblock): New function, extracted from
26         spawnpvech.
27         (spawnpvech): Use it.
29 2020-12-24  Bruno Haible  <bruno@clisp.org>
31         windows-spawn: Export an auxiliary function.
32         * lib/windows-spawn.h (compose_command): New declaration.
33         * lib/windows-spawn.c (compose_command): New function, extracted from
34         spawnpvech.
35         (spawnpvech): Use it.
37 2020-12-24  Bruno Haible  <bruno@clisp.org>
39         posix_spawn* tests: Add support for native Windows.
40         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
41         like Cygwin.
42         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
43         SIGHUP and SIGPIPE. On native Windows, don't call
44         posix_spawnattr_setsigmask.
45         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
46         * tests/test-posix_spawn-fchdir.c (main): Likewise.
47         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
48         output from Cygwin's 'pwd' program.
49         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
50         executable-shell-script part of the test.
51         * tests/test-posix_spawnp-script.c (main): Likewise.
52         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
53         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
54         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
55         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
56         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
57         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
58         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
59         test the POSIX_SPAWN_PORTED conditional.
60         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
61         Define the POSIX_SPAWN_PORTED conditional here.
63 2020-12-24  Bruno Haible  <bruno@clisp.org>
65         sh-filename: Add support for native Windows.
66         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
68 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
70         careadlinkat: improve warning line number
71         This propagates an idea first used in canonicalize-lgpl.
72         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
73         New macro.
74         (careadlinkat): Use it.
76         linkat: use eloop-threshold
77         * lib/linkat.c: Include eloop-threshold.h.
78         Do not include sys/param.h.
79         (MAXSYMLINKS): Remove.
80         (link_follow, linkat_follow): Use __eloop_threshold instead
81         of MAXSYMLINKS.
82         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
83         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
85         canonicalize-lgpl: use eloop-threshold
86         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
87         (MAXSYMLINKS, __eloop_threshold): Remove.
88         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
90         eloop-threshold: new module
91         * config/srclist.txt: Add a comment about it.
92         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
94         canonicalize: prefer faccessat to stat
95         A proper faccessat doesn't have the EOVERFLOW problem, and can be
96         more efficient as it needn't gather data from the filesystem to
97         fill in struct stat.  So use stat only if faccessat is absent,
98         or when checking for symlink loops in canonicalize.c.
99         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
100         Include fcntl.h, for AT_EACCESS.
101         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
102         (file_accessible): New function, based on faccessat but with
103         a fallback to stat and with an EOVERFLOW workaround.
104         (dir_check): Use it.
105         (dir_suffix): New static constant.
106         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
107         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
108         (__faccessat) [!_LIBC]: Define.
109         (realpath_stk): Use dir_suffix now.
110         * lib/canonicalize.c (canonicalize_filename_mode_stk):
111         If logical, don't check each component's existence; just check
112         at the end, as that's enough.
113         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
114         (gl_CANONICALIZE_LGPL_SEPARATE):
115         Require gl_FUNC_FACCESSAT_EOVERFLOW,
116         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
117         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
118         as the code does not use HAVE_READLINK.
119         * modules/canonicalize, modules/canonicalize-lgpl (Files):
120         Add m4/faccessat.m4, m4/lstat.m4.
121         (Depends-on): Add fcntl-lh.
123         faccessat: work around F_OK EOVERFLOW bug
124         * doc/posix-functions/faccessat.texi: Mention the problem.
125         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
126         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
127         for F_OK and EOVERFLOW, which means we can return 0.
128         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
129         (gl_FUNC_FACCESSAT): Use it.
131         stat failing with EOVERFLOW implies existence
132         * lib/euidaccess.c (euidaccess):
133         * lib/file-has-acl.c (file_has_acl):
134         * lib/link.c (link, rpl_link):
135         * lib/mkdir.c (rpl_mkdir):
136         * lib/mkfifo.c (rpl_mkfifo):
137         * lib/mknod.c (rpl_mknod):
138         * lib/ptsname_r.c (__ptsname_r):
139         * lib/symlink.c (rpl_symlink):
140         * lib/symlinkat.c (rpl_symlinkat):
141         * lib/unlink.c (rpl_unlink):
142         * lib/unlinkat.c (rpl_unlinkat):
143         * lib/utime.c (utime):
144         If stat fails with EOVERFLOW the file exists, so treat it that way
145         in file-existence tests that do not need struct stat values.
147         canonicalize-lgpl: remove freea macro
148         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
150         canonicalize, canonicalize-lgpl: fix symlink bug
151         Problem reported by Adhemerval Zanella in:
152         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
153         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
154         (suffix_requires_dir_check, dir_check): New functions.
155         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
156         closer to the related GCC diagnostics.
157         * lib/canonicalize-lgpl.c (realpath_stk):
158         * lib/canonicalize.c (canonicalize_file_mode_stk):
159         Use them to fix a bug with .../symlink-to-regular-file/ etc.
160         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
161         (realpath_stk): New function,
162         with the contents of the old __realpath and a new scratch buffer arg.
163         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
164         (__realpath): Use it.
165         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
166         Add test cases for the bugs.
168 2020-12-24  Bruno Haible  <bruno@clisp.org>
170         execute: Treat signalled processes like wait-process does.
171         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
172         (execute): Recognize the case where the exit code indicates a signalled
173         child process.
174         * tests/test-execute-main.c (main): Update expected test result.
175         * modules/execute (Depends-on): Add sys_wait.
177 2020-12-24  Bruno Haible  <bruno@clisp.org>
179         windows-spawn: Improve errno upon failure on native Windows.
180         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
181         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
182         * tests/executable-script.sh: New file.
183         * tests/test-posix_spawn-script.c (main): Also try executing
184         executable-script.sh.
185         * tests/test-posix_spawnp-script.c (main): Likewise.
186         * tests/test-execute-script.c (main): Likewise.
187         * tests/test-spawn-pipe-script.c (main): Likewise.
188         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
189         * modules/posix_spawnp-tests (Files): Likewise.
190         * modules/execute-tests (Files): Likewise.
191         * modules/spawn-pipe-tests (Files): Likewise.
193 2020-12-24  Bruno Haible  <bruno@clisp.org>
195         findprog-in: Improve errno upon failure on native Windows.
196         * lib/findprog-in.c (find_in_given_path): If the file basename has no
197         dot and the search with a suffix returned no result, do also a search
198         without a suffix, and set errno = ENOEXEC if we find a file in this way.
199         * tests/test-spawn-pipe-script.c (main): Update expected errno.
201 2020-12-23  Bruno Haible  <bruno@clisp.org>
203         posix_spawn, posix_spawnp: Fix execution of scripts.
204         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
205         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
206         or posix_spawnp allows unsecure execution of scripts.
207         * doc/posix-functions/posix_spawn.texi: Document the script execution
208         problem.
209         * doc/posix-functions/posix_spawnp.texi: Likewise.
211 2020-12-23  Bruno Haible  <bruno@clisp.org>
213         Add unit tests regarding execution of scripts.
214         * tests/executable-script: New file.
215         * tests/executable-shell-script: New file.
216         * tests/test-posix_spawn-script.c: New file.
217         * tests/test-posix_spawnp-script.c: New file.
218         * tests/test-execute-script.c: New file.
219         * tests/test-spawn-pipe-script.c: New file.
220         * modules/posix_spawn-tests (Files): Add
221         tests/test-posix_spawn-script.c, tests/executable-script,
222         tests/executable-shell-script.
223         (Makefile.am): Compile and run test-posix_spawn-script.
224         * modules/posix_spawnp-tests (Files): Add
225         tests/test-posix_spawnp-script.c, tests/executable-script,
226         tests/executable-shell-script.
227         (Makefile.am): Compile and run test-posix_spawnp-script.
228         * modules/execute-tests (Files): Add tests/test-execute-script.c,
229         tests/executable-script, tests/executable-shell-script.
230         (Makefile.am): Compile and run test-execute-script.
231         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
232         tests/executable-script, tests/executable-shell-script.
233         (Makefile.am): Compile and run test-spawn-pipe-script.
235 2020-12-23  Bruno Haible  <bruno@clisp.org>
237         Don't execute scripts without '#!' marker through /bin/sh.
238         This reflects the change done in glibc through
239         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
240         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
241         * lib/spawni.c (internal_function): Remove macro.
242         (script_execute): Remove function.
243         (__spawni): Don't invoke script_execute.
244         * lib/execute.c (execute): Disable the ENOEXEC handling.
245         * lib/spawn-pipe.c (create_pipe): Likewise.
246         * NEWS: Mention the change.
248 2020-12-23  Bruno Haible  <bruno@clisp.org>
250         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
251         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
252         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
253         * lib/spawni.c (__spawni): Update function parameters.
255 2020-12-23  Bruno Haible  <bruno@clisp.org>
257         posix_spawn tests: Add two more tests.
258         * tests/test-posix_spawn-inherit0.c: New file, based on
259         tests/test-posix_spawn-open2.c.
260         * tests/test-posix_spawn-inherit1.c: New file, based on
261         tests/test-posix_spawn-open2.c.
262         * modules/posix_spawn-tests (Files): Add them.
263         (Depends-on): Add fflush.
264         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
265         test-posix_spawn-inherit1.
267 2020-12-23  Bruno Haible  <bruno@clisp.org>
269         posix_spawn tests: Add another test.
270         * tests/test-posix_spawn-open2.c: New file, based on
271         tests/test-posix_spawn-open1.c.
272         * modules/posix_spawn-tests (Files): Add it.
273         (Makefile.am): Compile and run test-posix_spawn-open1.
275 2020-12-20  Bruno Haible  <bruno@clisp.org>
277         Remove support for broken <wchar.h> in AIX 3.
278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
280 2020-12-20  Bruno Haible  <bruno@clisp.org>
282         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
283         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
284         * lib/mbchar.h: Likewise.
285         * lib/mbiter.h: Likewise.
286         * lib/mbuiter.h: Likewise.
287         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
288         * lib/mbfile.h: Don't include <time.h>.
289         * lib/mbswidth.h: Update comment.
290         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
291         <wchar.h>.
292         * lib/wctype.in.h: Likewise.
293         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
294         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
295         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
296         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
297         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
298         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
299         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
300         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
301         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
302         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
303         AC_FUNC_MBRTOWC): Likewise.
304         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
305         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
306         Likewise.
307         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
308         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
309         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
311         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
312         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
313         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
314         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
315         Likewise.
316         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
317         gl_WCSRTOMBS_NULL): Likewise.
318         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
319         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
320         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
322         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
323         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
324         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
325         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
326         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
327         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
329 2020-12-20  Bruno Haible  <bruno@clisp.org>
331         isnanf: Fix autoconf test.
332         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
334 2020-12-20  Bruno Haible  <bruno@clisp.org>
336         Remove some of the support for obsolete IRIX 4 and 5.
337         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
338         libsun.
339         * tests/init.sh (setup_): Don't talk about IRIX 5.
341 2020-12-20  Bruno Haible  <bruno@clisp.org>
343         filemode: Remove Cray support.
344         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
345         (filemodestring): Don't produce an 'M' type.
346         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
347         * m4/st_dm_mode.m4: Remove file.
348         * modules/filemode (Files): Remove it.
350 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
352         free-posix: assume glibc 2.33 fixes this.
353         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
354         Use compile-time test rather than guessing for cross-builds.
356 2020-12-20  Bruno Haible  <bruno@clisp.org>
358         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
359         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
360         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
361         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
363 2020-12-20  Bruno Haible  <bruno@clisp.org>
365         float: Fix compilation error when gnulib's float.h exists twice.
366         Reported by Santiago Vila <sanvila@unex.es>.
367         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
369 2020-12-19  Bruno Haible  <bruno@clisp.org>
371         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
372         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
373         Don't trust _POSIX_VERSION for this test.
375 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
377         free-posix: port to GNU/Linux
378         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
379         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
380         other GNU/Linux hosts.
382 2020-12-19  Bruno Haible  <bruno@clisp.org>
384         free-posix: Add tests.
385         * tests/test-free.c: New file.
386         * tests/macros.h (ASSERT_NO_STDIO,
387         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
388         WRITE_TO_STDERR): New macros.
389         * modules/free-posix-tests: New file.
391 2020-12-18  Bruno Haible  <bruno@clisp.org>
393         free-posix: Add C++ declaration test.
394         * tests/test-stdlib-c++.cc (free): New declaration.
396 2020-12-18  Bruno Haible  <bruno@clisp.org>
398         free-posix: New module, renamed from 'free'.
399         * modules/free-posix: Renamed from modules/free.
400         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
402         not GNULIB_FREE.
403         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
404         GNULIB_FREE.
405         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
406         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
407         what it does.
408         * NEWS: Mention that module 'free' no longer exists.
409         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
410         * modules/canonicalize-lgpl (Depends-on): Likewise.
412 2020-12-18  Bruno Haible  <bruno@clisp.org>
414         free: Remove support for obsolete platforms.
415         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
416         CANNOT_FREE_NULL.
417         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
418         * modules/free (Description): Update.
419         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
421 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
423         intprops: port to ICC 2021.1 Beta 20201112
424         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
425         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
426         Add a clause for other compilers that claim to support
427         __builtin_mul_overflow_p, since we might as well find out about
428         slackers other than Clang and ICC.
429         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
430         like older GCCs even when it claims to be a newer one.
432 2020-12-18  Bruno Haible  <bruno@clisp.org>
434         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
435         Reported by Stefan Liebler <stli@linux.ibm.com> in
436         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
437         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
438         GCC 5.x and 6.x.
439         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
440         GCC 5.x and 6.x.
442 2020-12-17  Bruno Haible  <bruno@clisp.org>
444         free: Fix warning.
445         Reported by Pádraig Brady <P@draigBrady.com> in
446         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
447         * lib/stdlib.in.h (free): New declaration.
448         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
449         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
450         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
451         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
452         'free' as a macro here.
453         * modules/free (Depends-on): Add stdlib.
454         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
456 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
458         canonicalize-lgpl: fix AIX test failures
459         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
460         Problem reported by Bruno Haible in:
461         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
462         * lib/canonicalize-lgpl.c: Include sys/stat.h.
463         (__realpath): When testing a file name ending in '/', use stat
464         rather than readlink, so that it does the right thing on AIX.
465         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
467         canonicalize: omit second readlink when not needed
468         * lib/canonicalize.c (canonicalize_filename_mode_stk):
469         Omit second readlink when (can_exist != CAN_MISSING
470         && startlen != 0 && !logical).  Simplify.
472         canonicalize: remove arbitrary 8192-byte limit
473         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
474         like GNU Hurd that do not define the PATH_MAX macro, and similarly
475         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
476         using scratch buffers.  Lessen the number of differences between
477         the two source files, to simplify this and future maintenance.
478         * lib/canonicalize-lgpl.c (__realpath):
479         * lib/canonicalize.c (canonicalize_filename_mode_stk):
480         Use scratch buffers instead of malloc and malloca.  This avoids
481         the need for alloca, and avoids the need for malloc in most cases.
482         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
483         easier to compare, e.g., by sorting include files and by switching
484         to the GNU convention of calling file names "file names", not
485         "path names".  Include stdbool.h, scratch_buffer.h.
486         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
487         (malloca) [_LIBC]: Remove.
488         [!_LIBC]: Do not include malloca.h.
489         (get_path_max): New function, so that pathconf is called only in
490         the rare and dubious case when when RESOLVED is not null and
491         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
492         file name, as we care about the longest file name starting from
493         "/" (not from the input file name), and POSIX does not specify
494         what pathconf does on a non-directory file anyway.  If PATH_MAX is
495         not defined, do not worry about overriding a path_max of 0, and do
496         not let path_max exceed IDX_MAX.
497         (__realpath): Remove an assumption that file name components
498         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
499         the Hurd, presumably).
500         When allocating the result, allocate it to just the right size;
501         this costs nothing when the result is smaller than 1023 bytes,
502         and for larger results it's probably worth the CPU to call realloc,
503         as canonicalize.c already does.
504         * lib/canonicalize.c: Include attribute.h.
505         Do not include pathmax.h or xgetcwd.h.
506         (PATH_MAX): Do not define, so file names longer than 8192 bytes
507         work on platforms with no fixed limit.
508         (canonicalize_filename_mode_stk): New function, with
509         the content of the old canonicalize_filename_mode.
510         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
511         since the scratch buffers now do memory management for us.
512         Use rawmemchr instead of adding strlen.
513         Use mempcpy instead of mempcpy + size.
514         Assume free preserves errno.
515         (canonicalize_filename_mode): Use it.
516         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
517         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
518         scratch_buffer, stdbool, xalloc-die.
519         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
520         malloca, realloc-posix.  Add scratch_buffer, stdbool.
522         canonicalize-lgpl: simplify merge to glibc
523         This patch lessens the differences between git glibc
524         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
525         The (perhaps wishful) goal is to make them identical.
526         * lib/canonicalize-lgpl.c [!_LIBC]:
527         Include <libc-config.h>, not config.h.
528         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
529         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
530         Do not include alloca.h, since we use malloca now.
531         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
532         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
533         freea so that the mainline code can be kept #ifdef free.
534         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
535         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
536         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
537         __eloop_threshold.  All uses of their definiens changed.
538         (SIZE_MAX): Remove; no longer needed.
539         (alloc_failed): Remove, and remove all instances.
540         No need for alloc_failed now that free preserves errno.
541         (__realpath): Default path_max to 1024 instead of 8192, as that’s
542         the glibc tradition and is safer when the 2nd argument is null.
543         Use __rawmemchr instead of strchr.
544         Use __mempcpy where appropriate.
545         Simplify test for overflow so that it does not need SIZE_MAX.
546         Do not preserve errno around free or freea calls; no longer needed.
547         Mark __realpath with libc_hidden_def.
548         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
549         malloc-posix, mempcpy, realloc-posix, rawmemchr.
550         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
552         free: preserve errno
553         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
554         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
555         platforms that do not preserve errno.
556         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
557         Also, define CANNOT_FREE_NULL if free cannot free NULL.
558         * modules/free (configure.ac): Also replace 'free' if
559         it does not preserve errno.
561         idx: simplify IDX_MAX, remove IDX_WIDTH
562         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
563         to UNSIGNED_IDX_T.
564         (IDX_WIDTH): Remove, since it’s not used and its value
565         arguably should be PTRDIFF_WIDTH anyway.
567 2020-12-16  Bruno Haible  <bruno@clisp.org>
569         posix_spawn_file_actions_addfchdir-tests: Rename test.
570         * tests/test-posix_spawn-fchdir.c: Renamed from
571         tests/test-posix_spawn5.c.
572         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
573         Update.
575         posix_spawn_file_actions_addchdir-tests: Rename test.
576         * tests/test-posix_spawn-chdir.c: Renamed from
577         tests/test-posix_spawn4.c.
578         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
579         Update.
581         posix_spawn-tests: Rename test.
582         * tests/test-posix_spawn-open1.c: Renamed from
583         tests/test-posix_spawn3.c.
584         * modules/posix_spawn-tests (Files, Makefile.am): Update.
586         posix_spawnp-tests: Rename test.
587         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
588         tests/test-posix_spawn2.c.
589         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
590         tests/test-posix_spawn2.in.sh.
591         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
593         posix_spawnp-tests: Rename test.
594         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
595         tests/test-posix_spawn1.c.
596         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
597         tests/test-posix_spawn1.in.sh.
598         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
600 2020-12-14  Bruno Haible  <bruno@clisp.org>
602         findprog-in: Allow overriding the current directory.
603         * lib/findprog.h (find_in_given_path): Add directory argument.
604         * lib/findprog-in.c (find_in_given_path): Likewise.
605         * lib/execute.c (execute): Update caller.
606         * lib/spawn-pipe.c (create_pipe): Likewise.
607         * lib/windows-spawn.c (spawnpvech): Likewise.
608         * NEWS: Mention the change.
610 2020-12-14  Bruno Haible  <bruno@clisp.org>
612         posix_spawn-internal: Make better use of 'const'.
613         * lib/spawn_int.h (__spawni): Does not need write access to the elements
614         of argv and envp.
615         * lib/spawni.c (__spawni, script_execute): Likewise.
616         * lib/spawn.c (posix_spawn): Update caller.
617         * lib/spawnp.c (posix_spawnp): Likewise.
619 2020-12-14  Bruno Haible  <bruno@clisp.org>
621         spawn: Make it compile on native Windows.
622         * modules/spawn (Depends-on): Add signal-h.
624 2020-12-14  Bruno Haible  <bruno@clisp.org>
626         windows-spawn: Avoid shadowing a variable.
627         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
629 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
631         string: port memchr macro to AIX 7.2 XLC
632         Its <string.h> defines a memchr macro to help inlining.
633         * lib/string.in.h (memchr): #undef before #defining.
635         canonicalize: fix AIX test failures
636         Problem reported by Bruno Haible in:
637         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
638         * lib/canonicalize.c (canonicalize_filename_mode):
639         When testing a file name ending in '/', use stat rather than
640         readlink, so that it does the right thing on AIX.
641         * modules/canonicalize (Depends-on): Add readlink, to pull in the
642         recent changes in the Gnulib readlink module.
644         Assume readlink/readlinkat ERANGE fix
645         * lib/areadlink-with-size.c (areadlink_with_size):
646         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
647         * lib/careadlinkat.c (readlink_stk):
648         Do not worry about readlink or readlinkat failing with errno == ERANGE,
649         since the Gnulib readlink and readlinkat modules now fix that.
651         getcwd: port to AIX
652         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
653         in case our sys/stat.h #defined a function macro with the same name.
655         readlink, readlinkat: add ERANGE portability
656         Fix some portability issues with Gnulib's readlink and readlinkat,
657         notably mostly working around the ERANGE problem in AIX and HP-UX.
658         * doc/posix-functions/readlink.texi:
659         * doc/posix-functions/readlinkat.texi:
660         ERANGE problem is mostly fixed now.  Mention AIX problem with
661         trailing / and EINVAL.  Lessen differences between these two files.
662         * lib/readlink.c (rpl_readlink):
663         * lib/readlinkat.c (rpl_readlinkat):
664         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
665         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
666         Lessen spurious differences between the readlink and readlinkat code.
667         * lib/readlinkat.c (rpl_readlinkat):
668         Fix bug where stat was used where fstatat was intended.
669         * m4/readlink.m4 (gl_FUNC_READLINK):
670         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
671         to identify readlink problems more precisely.  All uses changed.
672         Guess no on AIX or HP-UX for this variable.
673         Add check for whether readlink truncates results,
674         and define new macro READLINK_TRUCATE_BUG accordingly.
675         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
676         Also check gl_cv_func_readlink_trailing_slash when deciding
677         whether to replace readlinkat.
678         * modules/readlinkat (Depends-on): Most dependencies are also
679         needed if replacing readlinkat.  fstatat is different, as it
680         is needed only if replacing an existing readlinkat.
682 2020-12-13  Bruno Haible  <bruno@clisp.org>
684         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
685         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
686         the stdin_handle and/or stdout_handle.
688 2020-12-12  Bruno Haible  <bruno@clisp.org>
690         Fix gnulib-tool error when some modules occur in tests/.
691         * doc/gnulib.texi (Specification): Update statistics.
692         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
693         (Using AC_LIBOBJ): New section.
694         * check-AC_LIBOBJ: New file.
695         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
696         * modules/fopen-gnu (Files): Add lib/fopen.c.
697         * modules/memmem (Files): Add lib/memmem.c.
698         * modules/renameat (Files): Add lib/at-func2.c.
699         * modules/strcasestr (Files): Add lib/strcasestr.c.
700         * modules/strstr (Files): Add lib/strstr.c.
702 2020-12-11  Bruno Haible  <bruno@clisp.org>
704         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
705         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
706         elements of argv.
707         * lib/sh-quote.c (shell_quote_argv): Likewise.
708         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
709         the return type.
710         * lib/windows-spawn.c (prepare_spawn): Likewise.
711         * lib/os2-spawn.h (prepare_spawn): Likewise.
712         * lib/os2-spawn.c (prepare_spawn): Likewise.
713         * lib/execute.h (execute): Does not need write access to the elements of
714         prog_argv.
715         * lib/execute.c (execute): Likewise.
716         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
717         Likewise.
718         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
719         create_pipe_out): Likewise.
720         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
721         Likewise.
722         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
723         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
724         * lib/javaexec.h (execute_fn): Does not need write access to the
725         elements of prog_argv.
726         * lib/javaexec.c (execute_java_class): Update variable types and remove
727         casts to 'char *'.
728         * lib/csharpexec.h (execute_fn): Does not need write access to the
729         elements of prog_argv.
730         * lib/csharpexec.c (execute_csharp_using_mono,
731         execute_csharp_using_sscli): Update variable types and remove casts to
732         'char *'.
733         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
734         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
735         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
736         is_jikes_present): Update variable types and remove casts to 'char *'.
737         * lib/javaversion.c (execute_and_read_line): Does not need write access
738         to the elements of prog_argv.
739         * lib/csharpcomp.c (compile_csharp_using_mono,
740         compile_csharp_using_sscli): Update variable types and remove casts to
741         'char *'.
742         * tests/test-sh-quote.c (main): Update variable types and remove casts
743         to 'char *'.
744         * tests/test-execute-main.c (main): Update variable types and remove
745         casts to 'char *'.
746         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
747         remove casts to 'char *'.
748         * NEWS: Mention the changes.
750 2020-12-11  Bruno Haible  <bruno@clisp.org>
752         execute-tests: Fix compilation error with MSVC.
753         * tests/test-execute-child.c (is_device): With _fstat, use
754         'struct _stat', not 'struct stat'.
756 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
758         vararrays: just use 2.70
759         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
760         and later, since Autoconf 2.70 matches Gnulib now.
762         sys_types: just use 2.70
763         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
764         Reindent to match Autoconf sources.
765         Use Autoconf 2.70 as a prerequisite, not 2.69c.
767         stdint: port to Autoconf 2.70
768         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
769         instead of assuming that AC_INCLUDES_DEFAULT does it.
770         The old code relied on AC_INCLUDES_DEFAULT being called
771         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
772         but this does not occur in Autoconf 2.70.
774         pid_t.m4: just use 2.70
775         * m4/pid_t.m4 (AC_TYPE_PID_T):
776         Use Autoconf 2.70 as a prerequisite, not 2.69c.
778         largefile: just use 2.70
779         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
780         Use Autoconf 2.70 as a prerequisite, not 2.69c.
782         AC_C_RESTRICT: update from Autoconf
783         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
784         as a prerequisite, not 2.69c, since 2.70 is now out.
785         (AC_C_RESTRICT): Define only for 2.70 or earlier.
786         Try __restrict__ before __restrict.
788         extensions: update from Autoconf
789         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
790         Provide a default implementation for Autoconf 2.69 or earlier.
791         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
792         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
794         alloca: update from Autoconf
795         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
796         Trivial update to match Autoconf 2.70.
798 2020-12-11  Bruno Haible  <bruno@clisp.org>
800         memchr: Work around memory overrun bug on AIX 7.2.
801         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
802         * doc/posix-functions/memchr.texi: Mention the AIX bug.
804 2020-12-11  Bruno Haible  <bruno@clisp.org>
806         execute-tests: Fix compilation error on AIX in 32-bit mode.
807         * tests/test-execute-child.c: In order to get the original definition of
808         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
809         include the system's <sys/stat.h> and use it before including other
810         header files.
812 2020-12-10  Bruno Haible  <bruno@clisp.org>
814         windows-spawn: Relicense under LGPLv2+.
815         * modules/windows-spawn (License): Change to LGPLv2+.
817 2020-12-10  Bruno Haible  <bruno@clisp.org>
819         execute, spawn-pipe: Fix memory leak on native Windows.
820         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
821         * lib/windows-spawn.c: Don't include xalloc.h.
822         (quoted_arg_length, quoted_arg_string): New functions, extracted from
823         prepare_spawn.
824         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
825         elements of *new_argv together.
826         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
827         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
828         * lib/os2-spawn.c: Don't include xalloc.h.
829         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
830         elements of *new_argv together.
831         * lib/execute.c: Include xalloc.h.
832         (execute): Check return value of prepare_spawn. Free the memory
833         allocated by prepare_spawn.
834         * modules/execute (Depends-on): Add xalloc-die.
835         * lib/spawn-pipe.c: Include xalloc.h.
836         (create_pipe): Check return value of prepare_spawn. Free the memory
837         allocated by prepare_spawn.
838         * modules/spawn-pipe (Depends-on): Add xalloc-die.
840 2020-12-10  Bruno Haible  <bruno@clisp.org>
842         findprog-in: Relicense under LGPLv2+.
843         Paul Smith's approval is in
844         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
845         * modules/findprog-in (License): Change to LGPLv2+.
847 2020-12-10  Bruno Haible  <bruno@clisp.org>
849         findprog-in: Don't exit upon out-of-memory.
850         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
851         code.
852         * lib/findprog-in.c: Don't include xalloc.h.
853         (find_in_given_path): Call concatenated_filename, not
854         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
855         return NULL with errno set.
856         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
857         concat-filename, strdup-posix, malloc-posix.
859 2020-12-09  Bruno Haible  <bruno@clisp.org>
861         fmaf: Work around a bug on FreeBSD 12.2/arm.
862         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
863         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
865 2020-12-09  Bruno Haible  <bruno@clisp.org>
867         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
868         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
869         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
870         * lib/glthread/threadlib.c: Include <errno.h>.
871         (glthread_in_use): For FreeBSD, provide an alternative implementation
872         that uses pthread_key_create.
874 2020-12-09  Bruno Haible  <bruno@clisp.org>
876         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
877         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
878         not 'isnan'.
880 2020-12-08  Bruno Haible  <bruno@clisp.org>
882         std-gnu11: Make compatible with Autoconf 2.70.
883         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
884         use.
886 2020-12-08  Bruno Haible  <bruno@clisp.org>
888         argp: Avoid undefined behaviour when invoking qsort().
889         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
890         Reported by Jeffrey Walton <noloader@gmail.com> in
891         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
892         * lib/argp-help.c (group_cmp): Remove third argument.
893         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
894         upon hol_cluster_cmp.
895         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
896         (hol_entry_cmp): Rewritten to implement a total order.
898 2020-12-08  Bruno Haible  <bruno@clisp.org>
900         argp: Improve comments.
901         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
902         null pointer.
903         (struct hol_entry): Fix comment regarding sort order of group.
904         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
905         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
906         (hol_cluster_is_child, argp_hol): Move functions.
907         (HOL_ENTRY_PTRCMP): Remove unused macro.
909 2020-12-08  Bruno Haible  <bruno@clisp.org>
911         argp: Don't pass invalid arguments to isspace() and isalnum().
912         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
913         before passing it to isspace() or isalnum().
915 2020-12-08  Bruno Haible  <bruno@clisp.org>
917         argp: Don't rely on undefined behaviour of _tolower().
918         Patch by Eric Blake
919         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
920         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
921         not upper-case.  Pass correct range to tolower.
923 2020-12-07  Bruno Haible  <bruno@clisp.org>
925         unicodeio: Fix wrong result on FreeBSD.
926         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
927         characters on all platforms.
929 2020-12-07  Bruno Haible  <bruno@clisp.org>
931         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
932         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
933         FreeBSD systems.
935 2020-12-07  Bruno Haible  <bruno@clisp.org>
937         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
938         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
939         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
940         trivially of sbrk is not available.
941         * doc/glibc-functions/sbrk.texi: Mention that the function does not
942         exist in FreeBSD 12.2/arm64.
943         * doc/glibc-functions/brk.texi: Likewise.
945 2020-12-07  Bruno Haible  <bruno@clisp.org>
947         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
948         Suggested by Zack Weinberg in
949         <https://savannah.gnu.org/support/?110294>.
950         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
951         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
953 2020-12-07  Bruno Haible  <bruno@clisp.org>
955         Tweak the Windows oldnames workaround.
956         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
957         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
958         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
959         always.
960         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
961         * lib/stdlib.in.h (putenv): Likewise.
963 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
965         doc: fix flat address space discussion
966         * doc/gnulib-readme.texi (Other portability assumptions):
967         Move the all-bits-zero assumption outside the flat address space
968         section, since the two issues are independent.
970         doc: document -static-libubsan more
971         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
972         -static-libubsan a bit more.  Mostly cons.
974 2020-12-06  Bruno Haible  <bruno@clisp.org>
976         doc: Add more details regarding the undefined behaviour sanitizer.
977         * doc/gnulib-readme.texi (High Quality): Describe
978         -fsanitize-undefined-trap-on-error better.
980 2020-12-06  Bruno Haible  <bruno@clisp.org>
982         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
983         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
984         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
985         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
986         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
987         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
988         a preprocessor #define.
989         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
990         * lib/search.in.h (lfind, lsearch): Likewise.
991         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
992         Likewise.
993         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
994         * lib/string.in.h (memccpy, strdup): Likewise.
995         * lib/sys_stat.in.h (chmod, umask): Likewise.
996         * lib/time.in.h (tzset): Likewise.
997         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
998         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
999         read, rmdir, swab, unlink, write): Likewise.
1000         * lib/utime.in.h (utime): Likewise.
1001         * lib/wchar.in.h (wcsdup): Likewise.
1002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
1003         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
1004         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
1005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
1006         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1007         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1008         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
1009         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
1011         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
1012         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
1013         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
1014         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
1015         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
1017 2020-12-06  Bruno Haible  <bruno@clisp.org>
1019         doc: Mention some missing function declarations.
1020         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
1021         AIX.
1022         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
1023         FreeBSD.
1024         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
1025         Cygwin.
1026         * doc/pastposix-functions/fcvt.texi: Likewise.
1027         * doc/pastposix-functions/gcvt.texi: Likewise.
1029 2020-12-06  Bruno Haible  <bruno@clisp.org>
1031         doc: Tweak example.
1032         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
1033         'print'.
1035 2020-12-06  Bruno Haible  <bruno@clisp.org>
1037         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
1038         * tests/test-filenamecat.c: Include idx.h.
1039         (main): Mark prefixlen as nonnegative.
1040         * modules/filenamecat-tests (Depends-on): Add idx.
1042 2020-12-06  Bruno Haible  <bruno@clisp.org>
1044         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
1045         * lib/time_rz.c: Include idx.h.
1046         (save_abbr): Mark zone_size as nonnegative.
1047         * modules/time_rz (Depends-on): Add idx.
1049 2020-12-06  Bruno Haible  <bruno@clisp.org>
1051         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
1052         * lib/parse-datetime.y: Include idx.h.
1053         (textint): Mark digits as nonnegative.
1054         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
1055         dsts_seen, times_seen, zones_seen as nonnegative.
1056         (lookup_word): Mark wordlen as nonnegative.
1057         (yylex): Mark count as nonnegative.
1058         (parse_datetime2): Mark tzsize as nonnegative.
1059         * modules/parse-datetime (Depends-on): Add idx.
1061 2020-12-06  Bruno Haible  <bruno@clisp.org>
1063         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
1064         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
1065         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
1066         nonnegative.
1067         * modules/fnmatch (Depends-on): Add idx.
1069 2020-12-06  Bruno Haible  <bruno@clisp.org>
1071         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
1072         * lib/c-stack.c: Include idx.h.
1073         (die): Mark buflen as nonnegative.
1074         * modules/c-stack (Depends-on): Add idx.
1076 2020-12-06  Bruno Haible  <bruno@clisp.org>
1078         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
1079         * lib/backupfile.c: Include idx.h.
1080         (numbered_backup): Mark base_offset as nonnegative.
1081         (backupfile_internal): Likewise.
1082         * modules/backup-rename (Depends-on): Add idx.
1083         * modules/backupfile (Depends-on): Likewise.
1085 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1087         doc: fix curved quotes issue
1088         * doc/gnulib.texi: Set txicodequoteundirected and
1089         txicodequotebacktick so that ` and ' in examples do not generate
1090         curved single quotes that do the wrong thing when cut and pasted.
1092         doc: mention static and dynamic checking
1093         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
1094         for static and dynamic checking.
1096         intprops: Add INT_ADD_OK etc.
1097         * doc/intprops.texi (Checking Integer Overflow): New section.
1098         * lib/intprops.h: From a suggestion by Bruno Haible in:
1099         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
1100         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
1102         doc: move exotic platfroms to Target Platforms
1103         * doc/gnulib-intro.texi (Supported Platforms)
1104         (Formerly Supported Platforms, Unsupported Platforms):
1105         New subsections, split off from Target Platforms.
1106         (Unsupported Platforms): Move the exotic-platform stuff here ...
1107         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
1108         section.
1110         doc: mention intptr_t etc. and IBM i
1111         * doc/gnulib-readme.texi (Other portability assumptions):
1112         Mention intptr_t and uintptr_t, and that arithmetic on them
1113         works in the usual way.
1114         (Exotic platforms): New section, containing material from
1115         the old 'Integer Portability' section.  Also mention IBM i.
1116         * doc/intprops.texi (Wraparound Arithmetic):
1117         Say that the macros work on unsigned integers too.
1118         (Integer Portability): Remove.
1120 2020-12-04  Bruno Haible  <bruno@clisp.org>
1122         utime: Fix a test failure on macOS 10.13.
1123         Reported by Martin Storsjö <martin@martin.st> in
1124         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1125         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
1126         slashes on files.
1127         * lib/utime.c (utime): Add alternative implementation for Unix
1128         platforms.
1129         * modules/utime (Depends-on): Add stat.
1130         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
1131         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
1132         trailing-slash bug.
1133         * doc/posix-functions/open.texi: Likewise.
1134         * doc/posix-functions/stat.texi: Likewise.
1135         * doc/posix-functions/symlink.texi: Likewise.
1137 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1139         intprops: update doc and mention Unisys
1140         * doc/gnulib-readme.texi (Other portability assumptions):
1141         Also mention ptrdiff_t when talking about widths and overflow.
1142         * doc/intprops.texi (Integer Properties): Summarize new section.
1143         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
1144         evaluates its argument.
1145         (Integer Bounds): Fix typo.
1146         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
1147         Document that the _WRAPV macros now support pointers to unsigned
1148         integers.
1149         (Integer Range Overflow): Update SEI CERT citation.
1150         (Integer Portability): New subsection, which mentions
1151         the oddball Unisys platforms as non-Gnulib targets.
1153 2020-12-03  Bruno Haible  <bruno@clisp.org>
1155         idx: Clarify that idx_t always behaves like a signed type.
1156         Suggested by Paul Eggert in
1157         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
1158         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
1159         Don't test UNSIGNED_IDX_T.
1161 2020-12-03  Bruno Haible  <bruno@clisp.org>
1163         idx: New module.
1164         * lib/idx.h: New file.
1165         * modules/idx: New file.
1166         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
1167         ptrdiff_t.
1168         * lib/canonicalize.c: Likewise.
1169         * modules/canonicalize-lgpl (Depends-on): Add idx.
1170         * modules/canonicalize (Depends-on): Likewise.
1172 2020-12-03  Bruno Haible  <bruno@clisp.org>
1174         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
1175         Reported by Martin Storsjö <martin@martin.st> in
1176         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1177         * tests/test-fprintf-posix3.c: Skip the test on macOS.
1178         (main): Return a different exit code at each point. Allow 100 KB extra
1179         memory consumption.
1180         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
1181         doesn't work" diagnostic.
1183 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1185         canonicalize: refactor can_mode flag
1186         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
1187         (multiple_bits_set): ... this new static function.  Uses changed.
1188         (canonicalize_filename_mode): Refactor for clarity to avoid
1189         modifying the CAN_MODE argument.
1191         canonicalize: prefer signed integer types
1192         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1193         (seen_triple, canonicalize_filename_mode): Prefer signed to
1194         unsigned types where either will do, as they avoid some glitches
1195         in comparisons and can trap on overflow when debugging.
1197         canonicalize: fix most of another EOVERFLOW issue
1198         * lib/canonicalize.c (canonicalize_filename_mode):
1199         Do not call stat if fewer than 20 symlinks have been traversed.
1200         This avoids EOVERFLOW failure in the common case where there
1201         are not that many symlinks, while continuing to catch loops
1202         (or fail due to EOVERFLOW) in the unusual case when there
1203         are many symlinks to traverse.
1205         canonicalize: do not assume symlinks have st_ino
1206         * lib/canonicalize.c (canonicalize_filename_mode):
1207         When checking for loops, use st_dev and st_ino from the parent
1208         directory not from the symlink, as pre-2017 POSIX says these
1209         members are not reliable for symlinks.  Couple this with START
1210         (the remaining file name to be resolved), not NAME (the whole file
1211         name with START as its suffix).
1212         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
1214         canonicalize: fix EOVERFLOW bug
1215         * lib/canonicalize.c (canonicalize_filename_mode):
1216         When testing whether a directory entry is a symbolic link, or a
1217         directory or other, do not use lstat or stat or
1218         areadlink_with_size.  Just use areadlink, as this suffices and it
1219         avoids the EOVERFLOW problem that lstat and stat have.
1220         * modules/canonicalize (Depends-on): Depend on areadlink instead
1221         of areadlink-with-size and stat.
1223         canonicalize-lgpl: fix EOVERFLOW bug
1224         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
1225         (__realpath): Do not use lstat.  Just use readlink, as this
1226         suffices and it avoids the EOVERFLOW problem that lstat has.
1227         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
1229 2020-12-02  Bruno Haible  <bruno@clisp.org>
1231         strsignal-tests: Fix test failure on macOS 10.13.
1232         Reported by Martin Storsjö <martin@martin.st> in
1233         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1234         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
1235         to be longer than the expected result.
1237 2020-12-02  Bruno Haible  <bruno@clisp.org>
1239         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
1240         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
1241         recursive self-include problem on FreeBSD 12.2 in C++ mode.
1243 2020-12-02  Bruno Haible  <bruno@clisp.org>
1245         spawn-pipe: Allow caller to specify directory for the subprocess.
1246         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1247         Add directory argument.
1248         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
1249         (create_pipe): Add directory argument. If specified, resolve the program
1250         file name and make it absolute, first. Pass the directory to spawnpvech
1251         and posix_spawn_file_actions_addchdir.
1252         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
1253         argument.
1254         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
1255         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
1256         * tests/test-spawn-pipe-main.c (test_pipe): Update.
1257         * NEWS: Mention the change.
1258         * lib/csharpcomp.c (compile_csharp_using_mono,
1259         compile_csharp_using_sscli): Update.
1260         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
1261         is_gcj_43): Update.
1262         * lib/javaversion.c (execute_and_read_line): Update.
1263         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
1264         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
1266 2020-12-02  Bruno Haible  <bruno@clisp.org>
1268         execute: Allow caller to specify directory for the subprocess.
1269         * lib/execute.h (execute): Add directory argument.
1270         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
1271         (execute): Add directory argument. If specified, resolve the program
1272         file name and make it absolute, first. Pass the directory to spawnpvech
1273         and posix_spawn_file_actions_addchdir.
1274         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
1275         posix_spawn, posix_spawn_file_actions_addchdir.
1276         * tests/test-execute-main.c: Add test for passing a directory.
1277         * tests/test-execute-child.c: Likewise.
1278         * tests/test-execute.sh: Update.
1279         * modules/execute-tests (Depends-on): Add mkdir.
1280         * NEWS: Mention the change.
1281         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
1282         * lib/csharpexec.c (execute_csharp_using_mono,
1283         execute_csharp_using_sscli): Update.
1284         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1285         compile_using_javac, compile_using_jikes, is_javac_present,
1286         is_jikes_present): Update.
1287         * lib/javaexec.c (execute_java_class): Update.
1289 2020-12-01  Bruno Haible  <bruno@clisp.org>
1291         vma-iter: Add support for macOS11/arm64.
1292         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
1293         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
1294         and by Martin Storsjö <martin@martin.st> in
1295         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1296         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
1298 2020-12-01  Bruno Haible  <bruno@clisp.org>
1300         spawn-pipe: Fix handling of OS/2 kLIBC.
1301         Reported by KO Myung-Hun <komh78@gmail.com> in
1302         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
1303         * modules/spawn-pipe (configure.ac): Use the common idiom for
1304         recognizing the OS/2 operating system.
1306 2020-11-30  Bruno Haible  <bruno@clisp.org>
1308         execute: Fix uninitialized use of errno.
1309         * lib/execute.c (execute): Preserve errno across several system calls.
1311 2020-11-30  Bruno Haible  <bruno@clisp.org>
1313         access tests: Fix test failure on native Windows.
1314         * tests/test-access.c (main): Change permissions of f2 file before
1315         attempting to remove it.
1317 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1319         faccessat: link with $(LIB_EACCESS)
1320         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
1321         module depends on euidaccess.
1323 2020-11-30  Bruno Haible  <bruno@clisp.org>
1325         execute, spawn-pipe: Make multithread-safe on native Windows.
1326         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
1327         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
1328         (spawnpvech): New declaration.
1329         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
1330         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
1331         (_): Remove macro.
1332         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
1333         undup_safer_noinherit): Remove functions.
1334         (spawnpvech): New function.
1335         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
1336         cloexec, dup2, error, gettext-h.
1337         * lib/execute.c: Include msvc-nothrow.h.
1338         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
1339         * lib/spawn-pipe.c: Include msvc-nothrow.h.
1340         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
1341         instead of _spawnvpe.
1342         * modules/execute (Depends-on): Add msvc-nothrow.
1343         * modules/spawn-pipe (Depends-on): Likewise.
1345 2020-11-30  Bruno Haible  <bruno@clisp.org>
1347         execute, spawn-pipe: Improve documentation.
1348         * lib/execute.h: Describe progname, prog_path, prog_argv.
1349         * lib/spawn-pipe.h: Likewise.
1351 2020-11-30  Bruno Haible  <bruno@clisp.org>
1353         execute tests: Add more tests.
1354         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
1355         inherited file descriptors >= 3.
1356         * tests/test-execute-child.c: Likewise.
1357         * tests/test-execute.sh: Update.
1359 2020-11-30  Bruno Haible  <bruno@clisp.org>
1361         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1362         Reported by comex <comexk@gmail.com> in
1363         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1364         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1365         don't expect an ELF header.
1367 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1369         bitset: use integer_length in table implementation
1370         * lib/bitset/table.c (tbitset_list_reverse): Use
1371         BITSET_FOR_EACH_BIT_REVERSE.
1373 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1375         bitset: use integer_length in list implementation
1376         * lib/bitset/list.c (lbitset_list_reverse): Use
1377         BITSET_FOR_EACH_BIT_REVERSE.
1379 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1381         bitset: use integer_length in vector implementation
1382         * lib/bitset/array.c (vbitset_list_reverse): Use
1383         BITSET_FOR_EACH_BIT_REVERSE.
1385 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1387         bitset: use integer_length in array implementation
1388         * modules/bitset (Depends-on): Add integer_length_l.
1389         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1390         * lib/bitset/array.c (abitset_list_reverse): Use it.
1392 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1394         bitset: style: use consistent names
1395         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1396         and 'boffset' as 'bitoff', for consistency with the other
1397         implementations.
1398         * bitset/table.c (tbitset_list_reverse): Likewise.
1400 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1402         bitset: style: sort header
1403         * lib/bitset/base.h (bitset_ffs): Rename as...
1404         (bitset_ffs_): this.
1405         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1407 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1409         bitset: tests: check BITSET_FOR_EACH_REVERSE
1410         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1411         Check BITSET_FOR_EACH_REVERSE.
1413 2020-11-29  Bruno Haible  <bruno@clisp.org>
1415         spawn-pipe tests: Fix test failure with MSVC.
1416         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1417         (gl_msvc_invalid_parameter_handler): New function.
1418         (main): Set a global invalid-parameter handler.
1419         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1421 2020-11-29  Bruno Haible  <bruno@clisp.org>
1423         execute: Add tests.
1424         * tests/test-execute.sh: New file.
1425         * tests/test-execute-main.c: New file.
1426         * tests/test-execute-child.c: New file.
1427         * modules/execute-tests: New file.
1429 2020-11-29  Bruno Haible  <bruno@clisp.org>
1431         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1432         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1433         works.
1434         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1435         fallback implementation as on Haiku.
1436         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1437         effective.
1438         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1440 2020-11-29  Bruno Haible  <bruno@clisp.org>
1442         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1443         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1444         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1445         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1446         * lib/windows-spawn.c: Remove modifications for kLIBC.
1447         * modules/spawn-pipe (Files): Add the new files.
1448         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1450 2020-11-28  Bruno Haible  <bruno@clisp.org>
1452         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1453         Reported by Paul Eggert in
1454         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1455         * m4/sparcv8+.m4: New file.
1456         * modules/sparcv8+: New file.
1457         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1459 2020-11-28  Bruno Haible  <bruno@clisp.org>
1461         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1462         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1464 2020-11-28  Bruno Haible  <bruno@clisp.org>
1466         windows-spawn: New module.
1467         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1468         implementations.
1469         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1470         * modules/windows-spawn: New file.
1471         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1472         * lib/spawn-pipe.c: Likewise.
1473         * modules/execute (Files): Remove lib/w32spawn.h.
1474         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1475         xalloc.
1476         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1477         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
1478         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1479         xalloc.
1480         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1482 2020-11-27  Bruno Haible  <bruno@clisp.org>
1484         ssfmalloc tests: Port to macOS 11.
1485         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
1487 2020-11-26  Bruno Haible  <bruno@clisp.org>
1489         Fix dependencies of modules that use '_exit' on native Windows.
1490         Reported by Jim Meyering in
1491         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
1492         * modules/_Exit (Depends-on): Add unistd.
1493         * modules/closein (Depends-on): Likewise.
1494         * modules/closeout (Depends-on): Likewise.
1495         * modules/forkpty (Depends-on): Likewise.
1496         * modules/posix_spawn-internal (Depends-on): Likewise.
1497         * modules/savewd (Depends-on): Likewise.
1498         * modules/stat-time-tests (Depends-on): Likewise.
1500 2020-11-26  Bruno Haible  <bruno@clisp.org>
1502         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
1503         * modules/raise-tests (Depends-on): Add unistd.
1504         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
1506 2020-11-25  Jim Meyering  <meyering@fb.com>
1508         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
1509         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
1510         non-NULL, since we don't bother handing strdup failure.
1512         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
1513         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
1514         * tests/test-raise.c: Include unistd.h.
1515         (handler): Use _exit, not exit.
1517 2020-11-23  Bruno Haible  <bruno@clisp.org>
1519         Use the correct printf format attribute for mingw.
1520         Reported by Reuben Thomas <rrt@sc3d.org> in
1521         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
1523         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
1524         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
1526         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
1527         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
1528         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1529         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
1530         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
1531         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
1533         * modules/vasnprintf (Depends-on): Add stdio.
1534         * lib/vasnprintf.h: Include <stdio.h>.
1535         (asnprintf, vasnprintf): Use the standard printf format attribute.
1537         * modules/xvasprintf (Depends-on): Add stdio.
1538         * lib/xvasprintf.h: Include <stdio.h>.
1539         (xasprintf, xvasprintf): Use the standard printf format attribute.
1541         * modules/xprintf (Depends-on): List stdio first.
1542         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
1543         depends on GNULIB_VPRINTF_POSIX.
1544         (xfprintf, xvfprintf): Use a printf format attribute that depends on
1545         GNULIB_VFPRINTF_POSIX.
1547         * modules/c-vasnprintf (Depends-on): Add stdio.
1548         * lib/c-vasnprintf.h: Include <stdio.h>.
1549         (c_vasnprintf): Use the standard printf format attribute.
1551         * modules/c-vasprintf (Depends-on): Add stdio.
1552         * lib/c-vasprintf.h: Include <stdio.h>.
1553         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
1555         * modules/c-vsnprintf (Depends-on): Add stdio.
1556         * lib/c-vsnprintf.h: Include <stdio.h>.
1557         (c_vsnprintf): Use the standard printf format attribute.
1559         * modules/c-snprintf (Depends-on): Add stdio.
1560         * lib/c-snprintf.h: Include <stdio.h>.
1561         (c_snprintf): Use the standard printf format attribute.
1563         * modules/c-xvasprintf (Depends-on): Add stdio.
1564         * lib/c-xvasprintf.h: Include <stdio.h>.
1565         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
1567         * modules/error (Depends-on): Depend on stdio always.
1568         * lib/error.h: Include <stdio.h>.
1569         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
1570         (error, error_at_line): Use a printf format attribute that depends on
1571         GNULIB_VFPRINTF_POSIX.
1572         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1573         _GL_ATTRIBUTE_FORMAT_PRINTF.
1575         * modules/verror (Depends-on): Add stdio.
1576         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
1577         (verror, verror_at_line): Use the standard printf format attribute.
1578         * lib/verror.c: Include "error.h".
1580         * modules/argp (Depends-on): Add stdio.
1581         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
1582         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
1584         * modules/libtextstyle-optional (Depends-on): Add stdio.
1585         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
1586         printf format attribute.
1588         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
1589         format attribute.
1591 2020-11-23  Pádraig Brady  <P@draigBrady.com>
1593         selinux-at, selinux-h: use const correct declarations
1594         * lib/se-selinux.in.h: Use const for "set" functions,
1595         to match current selinux, and support cleaner user code.
1596         * lib/selinux-at.c: Likewise.
1597         * lib/selinux-at.h: Likewise.
1599 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1601         canonicalize-lgpl: fix memory leak
1602         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
1603         which could have occurred if BUF was so large that malloc was
1604         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
1605         this eliminates the need to free BUF separately.
1607 2020-11-22  Bruno Haible  <bruno@clisp.org>
1609         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1610         * modules/xvasprintf (Depends-on): Add xalloc.
1611         * modules/pipe-filter-gi (Depends-on): Likewise.
1612         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1613         * modules/spawn-pipe (Depends-on): Likewise.
1615 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
1617         bootstrap: add option hooks
1618         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
1619         (bootstrap_option_hook): Likewise.
1620         (usage): Call bootstrap_print_option_usage_hook.
1622 2020-11-22  Bruno Haible  <bruno@clisp.org>
1624         argp: Don't break getprogname on non-glibc systems.
1625         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
1626         program_invocation_name and program_invocation_short_name.
1628 2020-11-22  Bruno Haible  <bruno@clisp.org>
1630         doc: Document <link.h>.
1631         * doc/glibc-headers/link.texi: New file.
1632         * doc/gnulib.texi: Include it.
1634 2020-11-22  Bruno Haible  <bruno@clisp.org>
1636         doc: Add references to the LSB.
1637         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
1638         * doc/posix-functions/*.texi: Likewise.
1640 2020-11-22  Bruno Haible  <bruno@clisp.org>
1642         doc: Fix a makeinfo warning (regression 2020-11-03).
1643         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
1645 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1647         parse-datetime: fix printf format typo
1648         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
1649         previous patch to this file.  Problem reported by Chris Elvidge in
1650         <https://bugs.gnu.org/44763#32>.
1652         setlocale-null-tests: work around GCC bug 44511
1653         * tests/test-setlocale_null-mt-all.c:
1654         * tests/test-setlocale_null-mt-one.c:
1655         Ignore -Wreturn-type, to work around GCC bug 44511.
1657         nl_langinfo-tests: work around GCC bug 44511
1658         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
1659         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
1660         Problem reported for GNU grep by Andreas Schwab
1661         <https://bugs.gnu.org/44535>.
1663         selinux-h: add stubs for selabel_open etc.
1664         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
1665         because matchpathcon is deprecated in favor of selabel_open etc.,
1666         so this patch adds stubs for these functions.
1667         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
1668         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
1669         as it is needed for selabel_open and selinux/selinux.h declares
1670         this type here.
1671         * modules/selinux-h (Files): Add the new files.
1672         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
1673         (lib_SOURCES): Add se-label.in.h, se-label.c.
1674         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
1675         (selinux/label.h): New rule, mimicking selinux/context.h.
1676         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
1677         (Include): Add selinux/label.h.
1679 2020-11-21  Bruno Haible  <bruno@clisp.org>
1681         Update after 'test-driver' in Automake changed.
1682         * build-aux/test-driver.diff: Rebase.
1684 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1686         read-file: remove dead assignment
1687         * lib/read-file.c (fread_file): Remove dead assignment when
1688         RF_SENSITIVE is set, flagged by clang-analyzer.
1690 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1692         bitset: tests: exercise the stats too
1694         * tests/test-bitset.c: Display the stats at the end of the test.
1695         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1696         last bin, display "256-..." rather that "256-511", since the last bin
1697         does count item greater than or equal to 256.
1699 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1701         bitset: tests: try harder to break it
1702         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1703         BITSET_LIST_SIZE.
1704         (main): Likewise.
1705         While at it, also exercise super small bitsets.
1707 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1709         bitset: use ffs where possible in the vector implementation
1710         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1712 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1714         bitset: use ffs where possible in the table implementation
1715         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1717 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1719         bitset: check empty and full bitsets
1720         * tests/test-bitset.c (check_zero, check_ones): New.
1721         (check_attributes): Use them.
1723 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1725         bitset: be sure to always return a value
1726         * lib/bitset/array.c (abitset_small_list): Always update *next and
1727         return a value.
1729 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1731         vcs-to-changelog: Expect spaces in file names
1732         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1733         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1734         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1735         tabs to spaces.
1736         (list_changes): Use tabs to identify file names.
1738 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1740         bitset: strengthen tests
1741         * tests/test-bitset.c (compare): Also check count.
1742         Deal only with random values, move the one-bit tests to...
1743         (check_one_bit): this new function.
1744         (check_attributes): Call it.
1746 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1748         bitset: fix iteration over table bitsets
1749         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1751 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1753         bitset: rename internal details for consistency
1754         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1756 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1758         bitset: test: run deterministic tests on several bitset sizes
1759         * tests/test-bitset.c (check_attributes): Run it with small and large
1760         sizes.
1762 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1764         bitset: use ffs where possible in the list implementation
1765         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1767 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1769         bitset: use ffs where possible in array implementation
1770         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1772 2020-11-17  Bruno Haible  <bruno@clisp.org>
1774         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1775         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1776         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1777         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1778         C++ mode.
1780 2020-11-17  Bruno Haible  <bruno@clisp.org>
1782         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1783         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1784         is always declared.
1785         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1786         declared.
1788 2020-11-17  Bruno Haible  <bruno@clisp.org>
1790         Fix link errors on AIX.
1791         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1792         * modules/getumask (Link): Link with $(LIBTHREAD).
1793         * modules/getumask-tests (Makefile.am): Link test-getumask with
1794         $(LIBTHREAD).
1795         * modules/supersede (Link): Link with $(LIBTHREAD).
1796         * modules/supersede-tests (Makefile.am): Link test-supersede with
1797         $(LIBTHREAD).
1798         * modules/fatal-signal (Link): New section.
1799         * modules/execute (Link): New section.
1800         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1801         * modules/javaexec (Link): Link with $(LIBTHREAD).
1802         * modules/spawn-pipe (Link): New section.
1803         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1804         $(LIBTHREAD).
1805         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1806         * modules/javacomp (Link): Link with $(LIBTHREAD).
1807         * modules/javaversion (Link): Link with $(LIBTHREAD).
1808         * modules/pipe-filter-gi (Link): New section.
1809         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1810         test-pipe-filter-gi2-main with $(LIBTHREAD).
1811         * modules/pipe-filter-ii (Link): New section.
1812         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1813         test-pipe-filter-ii2-main with $(LIBTHREAD).
1814         * modules/term-style-control (Link): New section.
1815         * modules/term-style-control-tests (Makefile.am): Link
1816         test-term-style-control-hello, test-term-style-control-yes with
1817         $(LIBTHREAD).
1818         * modules/wait-process (Link): New section.
1819         * modules/nonblocking-pipe-tests (Makefile.am): Link
1820         test-nonblocking-pipe-main with $(LIBTHREAD).
1821         * modules/nonblocking-socket-tests (Makefile.am): Link
1822         test-nonblocking-socket-main with $(LIBTHREAD).
1824 2020-11-16  Bruno Haible  <bruno@clisp.org>
1826         Fix link errors on platforms with libunistring.
1827         * modules/c32isalnum (Link): New section.
1828         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1829         $(LIBUNISTRING).
1830         * modules/c32isalpha (Link): New section.
1831         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1832         $(LIBUNISTRING).
1833         * modules/c32isblank (Link): New section.
1834         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1835         $(LIBUNISTRING).
1836         * modules/c32iscntrl (Link): New section.
1837         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1838         $(LIBUNISTRING).
1839         * modules/c32isdigit (Link): New section.
1840         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1841         $(LIBUNISTRING).
1842         * modules/c32isgraph (Link): New section.
1843         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1844         $(LIBUNISTRING).
1845         * modules/c32islower (Link): New section.
1846         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1847         $(LIBUNISTRING).
1848         * modules/c32isprint (Link): New section.
1849         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1850         $(LIBUNISTRING).
1851         * modules/c32ispunct (Link): New section.
1852         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1853         $(LIBUNISTRING).
1854         * modules/c32isspace (Link): New section.
1855         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1856         $(LIBUNISTRING).
1857         * modules/c32isupper (Link): New section.
1858         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1859         $(LIBUNISTRING).
1860         * modules/c32isxdigit (Link): New section.
1861         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1862         $(LIBUNISTRING).
1863         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1864         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1865         $(LIBUNISTRING).
1867 2020-11-16  Bruno Haible  <bruno@clisp.org>
1869         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1870         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1871         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1872         * modules/getumask-tests (Makefile.am): Link test-getumask with
1873         $(LIBINTL).
1874         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1875         * modules/supersede-tests (Makefile.am): Link test-supersede with
1876         $(LIBINTL).
1877         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1878         $(LIBINTL).
1880 2020-11-16  Bruno Haible  <bruno@clisp.org>
1882         getumask: Document link dependencies.
1883         * modules/getumask (Link): New section.
1885 2020-11-16  Bruno Haible  <bruno@clisp.org>
1887         Update link dependencies in modules after 2020-09-09 change.
1888         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1889         * modules/mkdtemp (Link): Likewise.
1890         * modules/mkostemp (Link): Likewise.
1891         * modules/mkostemps (Link): Likewise.
1892         * modules/mkstemp (Link): Likewise.
1893         * modules/mkstemps (Link): Likewise.
1894         * modules/supersede (Link): Likewise.
1895         * modules/tmpfile (Link): Likewise.
1896         * modules/tmpfile-safer (Link): Likewise.
1898 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1900         getumask-tests: port to Solaris 10 etc.
1901         Problem reported by Tom Christensen in:
1902         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1903         * modules/getumask-tests (test_getumask_LDADD):
1904         Add $(LIB_CLOCK_GETTIME).
1906 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1908         bitset: use ffsl to accelerate iterations over set bits
1909         Suggested by Bruno Haible.
1910         * modules/bitset: Depend upon ffsl.
1911         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1912         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1914 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1916         bitset: more tests
1917         * tests/test-bitset.c (compare): Make it clear that the random values
1918         should not be modified.
1919         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1921 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1923         bitset: fix the copy from lbitset to other types
1924         * lib/bitset/list.c (lbitset_copy): Rename as...
1925         (lbitset_copy_): this.
1926         (lbitset_copy): New.
1927         Dispatch to heterogeneous/homogeneous copy.
1929 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1931         bitset: making debug traces more useful
1932         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1934         bitset: comment changes
1935         * lib/bitset.c: Move some documenting comments to...
1936         * lib/bitset.h: here.
1937         * lib/bitset/array.c: Fix some comments.
1939 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1941         careadlinkat: warn better about GCC bug 93644
1942         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1943         not in effect, use "#warning" to let builders know more clearly
1944         about GCC bug 93644, because the bug triggers even if no -W option
1945         is given to GCC.
1947 2020-11-13  Jim Meyering  <meyering@fb.com>
1949         hard-locale-tests: avoid a -Wstrict-prototypes warning
1950         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1951         changing "main ()" to "main (void)". This was the only case that
1952         triggered a warning when building grep with --enable-gcc-warnings.
1954 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1956         time_rz: simplify CVE-2017-7476 fix
1957         * lib/time_rz.c: Do not include limits.h; I think it was included
1958         under the mistaken impression that limits.h defines SIZE_MAX.
1959         (SIZE_MAX): Remove.
1960         (save_abbr): Put string length into a ptrdiff_t variable,
1961         so that the size comparison works naturally.  This
1962         fixes CVE-2017-7476 in a cleaner way.
1964         parse-datetime: streamline overflow checking
1965         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1966         did not work for unsigned destinations, and since time_t might
1967         be unsigned that meant it did not work for time_t destinations.
1968         This limitation of INT_ADD_WRAPV has been fixed, so we can
1969         now streamline parse-datetime.y a bit.
1970         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1971         has not been used for a while.
1972         (yylex, parse_datetime2): Assume C99 declarations after statements.
1973         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1974         to TYPE_MINIMUM.
1975         (parse_datetime2): No need for time_overflow now that
1976         INT_ADD_WRAPV works for unsigned results.
1978         parse-datetime-tests: port to Alpine Linux 3.12.1
1979         * tests/test-parse-datetime.c: Include errno.h for errno,
1980         and unistd.h for _SC_TZNAME_MAX and sysconf.
1981         (main): In the outlandishly-long time zone abbreviation test,
1982         do not exceed TZNAME_MAX as this has undefined behavior,
1983         and on Alpine Linux 3.12.1 it makes the test fail.
1985 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1987         mgetgroups: avoid warning with clang
1988         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1989         so disable -Wpointer-sign for all clang versions.
1991 2020-11-07  Bruno Haible  <bruno@clisp.org>
1993         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1994         Reported by Simon Josefsson in
1995         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1996         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1997         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1998         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2000 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2002         tests: pacify Sun C 5.9
2003         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
2004         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
2005         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
2006         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
2007         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
2008         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
2009         Remove unreachable ‘return NULL;’s.
2011         tests: port better to XLC 12.01
2012         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
2013         even in code that is not executed, as IBM XLC 12.01 complains "The
2014         subscript -1 is less than zero."
2015         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
2016         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
2017         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
2018         arguments than are required by the macro definition."
2020 2020-11-03  Bruno Haible  <bruno@clisp.org>
2022         aligned-malloc: Use fixes from the new modules.
2023         * modules/aligned-malloc (Depends-on): Add posix_memalign,
2024         aligned_alloc, memalign.
2025         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2027 2020-11-03  Bruno Haible  <bruno@clisp.org>
2029         aligned_alloc: Add tests.
2030         * tests/test-aligned_alloc.c: New file.
2031         * modules/aligned_alloc-tests: New file.
2033         aligned_alloc: New module.
2034         * lib/stdlib.in.h (aligned_alloc): New declaration.
2035         * lib/aligned_alloc.c: New file.
2036         * m4/aligned_alloc.m4: New file.
2037         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
2038         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
2039         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2040         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
2041         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2042         * modules/aligned_alloc: New file.
2043         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
2044         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
2045         AIX bug.
2047 2020-11-03  Bruno Haible  <bruno@clisp.org>
2049         posix_memalign: Add tests.
2050         * tests/test-posix_memalign.c: New file.
2051         * modules/posix_memalign-tests: New file.
2053         posix_memalign: New module.
2054         * lib/stdlib.in.h (posix_memalign): New declaration.
2055         * lib/posix_memalign.c: New file.
2056         * m4/posix_memalign.m4: New file.
2057         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
2058         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
2059         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2060         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
2061         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2062         * modules/posix_memalign: New file.
2063         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
2064         * doc/posix-functions/posix_memalign.texi: Mention the new module and
2065         the OpenBSD bug.
2067 2020-11-03  Bruno Haible  <bruno@clisp.org>
2069         memalign: Add tests.
2070         * tests/test-memalign.c: New file.
2071         * modules/memalign-tests: New file.
2073         memalign: New module.
2074         * modules/memalign: New file.
2075         * doc/glibc-functions/memalign.texi: Mention the new module.
2077 2020-11-03  Bruno Haible  <bruno@clisp.org>
2079         verify tests: Fix crash with GCC (regression 2020-11-02).
2080         * tests/test-verify.c (main): Fix initializer of s.
2082 2020-11-03  Pádraig Brady  <P@draigBrady.com>
2084         mountlist: recognize more file system types as remote
2086         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
2087         "remote" file systems from stat.c in coreutils.
2089 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
2091         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
2092         * tests/test-verify.c (main): Initialize state variable.
2093         Reported by Bruno Haible for GCC 5.4.0.
2095 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2097         dfa.h: support inclusion from C++
2098         * lib/dfa.h: Allow multiple inclusion, and inclusion from
2099         C++ code.  The latter was suggested by Arnold Robbins.
2101 2020-11-01  Bruno Haible  <bruno@clisp.org>
2103         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
2104         * tests/test-ssfmalloc.c: Include <limits.h>.
2105         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
2107 2020-11-01  Bruno Haible  <bruno@clisp.org>
2109         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
2110         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
2112 2020-11-01  Jim Meyering  <meyering@fb.com>
2114         dfa-tests: test for today's invalid-merge fix
2115         * tests/test-dfa-invalid-merge.sh: New file.
2116         * modules/dfa-tests (Files): Add it.
2117         (TESTS): Add it.
2119 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2121         dfa: retain sequences of similar nodes in optimization
2122         DFA was merging similar nodes when it should not.  For example,
2123         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
2124         is not merged.  Problem reported by Gonzalo Padrino in
2125         https://bugs.gnu.org/44351
2126         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
2127         optimization.
2129 2020-11-01  Jim Meyering  <meyering@fb.com>
2131         test-dfa-match-aux.c: accept EREs, not BREs
2132         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
2133         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
2135 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
2137         verify tests: avoid -Wmissing-declarations warnings
2138         * tests/test-verify.c (test_assume_expressions): Add declaration.
2139         (test_assume_optimization): Likewise.
2140         (test_assume_noreturn): Likewise.
2141         (main): Move down after all other definitions.  While at it, also
2142         call test_assume_expressions and test_assume_optimization as a
2143         runtime check.
2145 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2147         sys_stat: update comments for S_IRWXUGO, S_IXUGO
2148         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
2149         Perhaps these macros should be removed, as they’re not in either
2150         POSIX or GNU.  They could be moved to stat-macros.h, which would
2151         be cleaner in some sense.
2153 2020-10-25  Bruno Haible  <bruno@clisp.org>
2155         ssfmalloc tests: Small tweaks.
2156         * tests/test-ssfmalloc.c: Add comments.
2157         (alloc_pages): Don't require PROT_EXEC bits.
2158         (block_sizes): Add more small sizes, for better coverage of
2159         ssfmalloc-bitmap.h.
2161         ssfmalloc tests: Portability to Minix.
2162         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
2163         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
2164         * m4/mmap-anon.m4: Update comment.
2166         ssfmalloc: Portability to AIX.
2167         * modules/ssfmalloc (Include): Add ssfmalloc.h.
2168         (Link): New section.
2169         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
2170         $(LIBTHREAD).
2172         ssfmalloc: Portability to Cygwin.
2173         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
2174         (pg_offset_t): Define depending on PAGESIZE_MAX.
2175         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
2176         (PAGESIZE_MAX): New macro.
2178         ssfmalloc: Fix buffer overrun in bitmap search.
2179         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
2180         word *words_end.
2182 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2184         doc: mention ‘restrict’ and C++
2185         * doc/gnulib-readme.texi (C99 features assumed): Document
2186         that ‘restrict’ should be avoided in C++ code.
2188 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2190         selinux-at, selinux-h: port to SELinux 3.1
2191         The new release finally deprecated the typedef 'security_context_t',
2192         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2193         Use the simpler 'char *' instead.
2194         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2195         (lgetfilecon): Likewise.
2196         (fgetfilecon): Likewise.
2197         (map_to_failure): Likewise.
2198         (rpl_getfilecon): Likewise.
2199         (rpl_lgetfilecon): Likewise.
2200         (rpl_fgetfilecon): Likewise.
2201         * lib/se-selinux.in.h (security_context_t): Remove typedef.
2202         (getcon): Adjust type of context parameter.
2203         (freecon): Likewise.
2204         (getfscreatecon): Likewise.
2205         (setfscreatecon): Likewise.
2206         (matchpathcon): Likewise.
2207         (getfilecon): Likewise.
2208         (lgetfilecon): Likewise.
2209         (fgetfilecon): Likewise.
2210         (setfilecon): Likewise.
2211         (lsetfilecon): Likewise.
2212         (fsetfilecon): Likewise.
2213         (security_check_context): Likewise.
2214         (security_check_context_raw): Likewise.
2215         (setexeccon): Likewise.
2216         (security_compute_create): Likewise.
2217         * lib/selinux-at.c (getfileconat): Likewise.
2218         (lgetfileconat): Likewise.
2219         (setfileconat): Likewise.
2220         (lsetfileconat): Likewise.
2221         * lib/selinux-at.h: Likewise.
2223 2020-10-19  Bruno Haible  <bruno@clisp.org>
2225         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
2226         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
2227         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
2228         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
2229         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
2230         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
2231         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
2233 2020-10-18  Bruno Haible  <bruno@clisp.org>
2235         ssfmalloc: Add tests.
2236         * tests/test-ssfmalloc.c: New file.
2237         * modules/ssfmalloc-tests: New file.
2239         ssfmalloc: New module.
2240         * lib/ssfmalloc.h: New file.
2241         * lib/ssfmalloc-bitmap.h: New file.
2242         * modules/ssfmalloc: New file.
2244 2020-10-18  Bruno Haible  <bruno@clisp.org>
2246         wchar: Fix configure test result on some versions of AIX.
2247         Reported by Clément Chigot <clement.chigot@atos.net> in
2248         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
2249         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
2250         systems.
2252 2020-10-18  Bruno Haible  <bruno@clisp.org>
2254         time: Fix warning about asctime when asctime is not used.
2255         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
2256         invocation.
2258 2020-10-18  Bruno Haible  <bruno@clisp.org>
2260         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
2261         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
2262         '_GL_ATTRIBUTE_CONST'.
2263         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
2264         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
2265         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2266         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
2267         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
2268         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
2269         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
2271 2020-10-18  Bruno Haible  <bruno@clisp.org>
2273         obstack: Fix a clang warning.
2274         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
2276 2020-10-16  Bruno Haible  <bruno@clisp.org>
2278         hash: Rename hash_delete to hash_remove.
2279         * lib/hash.h (hash_remove): Renamed from hash_delete.
2280         (hash_delete): New declaration.
2281         * lib/hash.c (hash_remove): Renamed from hash_delete.
2282         (hash_delete): New function.
2283         * tests/test-hash.c (main): Update.
2284         * lib/fts-cycle.c (leave_dir): Likewise.
2285         * NEWS: Mention the change.
2287 2020-10-16  Bruno Haible  <bruno@clisp.org>
2289         hash, xhash: Make usable from C++.
2290         * lib/hash.h: Add extern "C".
2292 2020-10-16  Bruno Haible  <bruno@clisp.org>
2294         hash, xhash: Move comments to the .h file.
2295         * lib/hash.c: Move comments meant for the user from here...
2296         * lib/xhash.c: ... and here...
2297         * lib/hash.h: ... to here.
2299 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
2301         Don't declare an intention to modify the return value of strerror.
2302         * tests/test-perror2.c (main): Assign the return value of strerror to a
2303         'const char *' variable.
2305 2020-10-11  Bruno Haible  <bruno@clisp.org>
2307         *printf: Avoid "expanded before it was required" warning.
2308         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
2309         AC_DEFUN_ONCE.
2311 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
2313         getprogname: Add support for OpenServer 6 and UnixWare 7.
2314         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
2315         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
2317 2020-10-11  Bruno Haible  <bruno@clisp.org>
2319         tests: Avoid a name clash on UnixWare.
2320         Reported by Tim Rice <tim@multitalents.net> in
2321         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
2322         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
2324 2020-10-11  Bruno Haible  <bruno@clisp.org>
2326         stdioext: Update comments regarding UnixWare.
2327         Reported by Tim Rice <tim@multitalents.net> in
2328         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2329         * lib/fbufmode.c: Update comments.
2330         * lib/fflush.c: Likewise.
2331         * lib/fpending.c: Likewise.
2332         * lib/fpurge.c: Likewise.
2333         * lib/freadable.h: Likewise.
2334         * lib/freadable.c: Likewise.
2335         * lib/freadahead.c: Likewise.
2336         * lib/freading.h: Likewise.
2337         * lib/freading.c: Likewise.
2338         * lib/freadptr.c: Likewise.
2339         * lib/freadseek.c: Likewise.
2340         * lib/fseeko.c: Likewise.
2341         * lib/fseterr.c: Likewise.
2342         * lib/fwritable.h: Likewise.
2343         * lib/fwritable.c: Likewise.
2344         * lib/fwriting.h: Likewise.
2345         * lib/fwriting.c: Likewise.
2347 2020-10-11  Bruno Haible  <bruno@clisp.org>
2349         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
2350         Reported by Tim Rice <tim@multitalents.net> in
2351         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2352         Uses the info from
2353         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
2354         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
2356 2020-10-11  Bruno Haible  <bruno@clisp.org>
2358         stdioext: Avoid compilation errors on UnixWare 7.
2359         Reported by Tim Rice <tim@multitalents.net> in
2360         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
2361         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2362         * lib/fpurge.c: Likewise.
2363         * lib/freadable.h: Likewise.
2364         * lib/freading.h: Likewise.
2365         * lib/fwritable.h: Likewise.
2366         * lib/fwriting.h: Likewise.
2367         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2368         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2369         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2370         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2371         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2372         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2374 2020-10-11  Bruno Haible  <bruno@clisp.org>
2376         stdioext: Update comments regarding Cygwin.
2377         * lib/fpending.c: Update comments.
2378         * lib/fpurge.c: Likewise.
2379         * lib/freadable.h: Likewise.
2380         * lib/freadable.c: Likewise.
2381         * lib/freading.h: Likewise.
2382         * lib/freading.c: Likewise.
2383         * lib/fwritable.h: Likewise.
2384         * lib/fwritable.c: Likewise.
2385         * lib/fwriting.h: Likewise.
2386         * lib/fwriting.c: Likewise.
2388 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2390         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2391         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2392         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2394 2020-10-10  Bruno Haible  <bruno@clisp.org>
2396         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2397         Reported by Marc Nieper-Wißkirchen in
2398         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2399         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2400         gl_linked_iterator_from_to): Mark as 'pure'.
2401         (gl_linked_iterator_free): Mark as 'const'.
2402         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2403         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2404         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2405         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2406         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2407         (gl_tree_iterator_free): Mark as 'const'.
2408         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2409         'pure'.
2410         (gl_tree_iterator_free): Mark as 'const'.
2411         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2412         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2413         (gl_tree_iterator_free): Mark as 'const'.
2414         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2415         compare_position_threshold): Mark as 'pure'.
2416         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2417         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2418         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2419         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2420         'pure'.
2421         (gl_array_iterator_free): Mark as 'const'.
2422         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2423         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2424         (gl_array_iterator_free): Mark as 'const'.
2425         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2426         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2427         gl_array_iterator_atleast): Mark as 'pure'.
2428         (gl_array_iterator_free): Mark as 'const'.
2429         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2430         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2431         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2432         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2433         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2434         gl_carray_sortedlist_search): Mark as 'pure'.
2435         (gl_carray_iterator_free): Mark as 'const'.
2437 2020-10-10  Bruno Haible  <bruno@clisp.org>
2439         rbtree-list: Avoid possible compiler warnings.
2440         This mirrors the change of avltree-list on 2014-09-16.
2441         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2442         declaration. Add cast to void for ignored value of check_invariants.
2444 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2446         stack: New module.
2447         * MODULES.html.sh: Add entry for the stack module.
2448         * modules/stack: New file.
2449         * modules/stack-tests: New file.
2450         * lib/stack.h: New file.
2451         * tests/test-stack.c: New file.
2453 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2455         attribute: improve const, pure doc
2456         Problem reported by Marc Nieper-Wißkirchen in:
2457         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2458         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2459         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2461 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2463         thread: pacify GCC on Solaris 10
2464         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2465         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2466         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2467         where pthread_t is unsigned int.
2469 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2471         c-stack: avoid AS_IF
2472         Problem reported by Bruno Haible in:
2473         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
2474         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
2476         c-stack: pacify GCC 9.3.1 when using libsigsegv
2477         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
2479 2020-10-04  Bruno Haible  <bruno@clisp.org>
2481         localename: Fix a couple of "unused parameter" warnings.
2482         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
2483         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
2484         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
2485         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
2486         parameter list.
2488 2020-10-04  Bruno Haible  <bruno@clisp.org>
2490         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
2491         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
2492         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
2493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
2494         HAVE_SNPRINTF_TRUNCATION_C99.
2495         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
2496         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
2498 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2500         c-stack: streamline Solaris configuration
2501         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
2502         the code is used only if a test for sigaltstack worked
2503         in some other way.
2504         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
2505         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
2506         heuristic does not work).
2507         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
2508         we no longer require the libsigsegv module.
2509         (Depends-on): Depend on havelib, not libsigsegv.
2511         c-stack: stop using SIGSTKSZ
2512         It’s been proposed to stop making SIGSTKSZ an integer constant:
2513         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
2514         Also, using SIGSTKSZ in #if did not conform to current POSIX.
2515         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
2516         * lib/c-stack.c (SIGSTKSZ): Remove.
2517         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
2518         All uses changed.
2520         c-stack: fix libsigsegv typo
2521         Problem reported by Bruno Haible in:
2522         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
2523         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
2524         to be used only on Solaris (exactly where it is not needed!).
2526 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
2528         MODULES.html.sh: Fix typo.
2529         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
2531 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2533         version-etc: pacify Oracle Studio 12.6
2534         Without this patch, it complains: "version-etc.h", line 64:
2535         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
2536         pedantic mode.
2537         * lib/version-etc.h (version_etc): Port to C89 macro rules.
2539 2020-09-27  Bruno Haible  <bruno@clisp.org>
2541         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
2542         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2543         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2544         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
2545         ourselves; don't use AC_DECL_SYS_SIGLIST.
2547 2020-09-27  Bruno Haible  <bruno@clisp.org>
2549         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
2550         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2551         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2552         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
2553         instead of _AC_COMPUTE_INT.
2555 2020-09-27  Bruno Haible  <bruno@clisp.org>
2557         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
2558         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2559         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2560         Based on a patch by Paul Eggert.
2561         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
2562         test STDC_HEADERS. Assume <stdlib.h> exists.
2563         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
2565 2020-09-27  Bruno Haible  <bruno@clisp.org>
2567         Enable testing of prereleases of Autoconf 2.70.
2568         Suggested by Paul Eggert in
2569         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
2570         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
2571         >= 2.70.
2572         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
2573         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
2574         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
2576 2020-09-27  Bruno Haible  <bruno@clisp.org>
2578         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
2579         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2580         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2581         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
2582         AC_PROG_CC, depending on the Autoconf version.
2584 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
2586         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
2587         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
2588         of AC_HELP_STRING.
2589         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
2591 2020-09-27  Bruno Haible  <bruno@clisp.org>
2593         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
2594         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2595         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2596         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
2598 2020-09-27  Bruno Haible  <bruno@clisp.org>
2600         extensions: Simplify last commit.
2601         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
2602         AC_GNU_SOURCE ever.
2604 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2606         extensions: require AC_GNU_SOURCE only for <=2.63
2607         Problem reported by Gavin Smith in:
2608         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2609         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2610         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2611         shouldn’t be needed after that, and Autoconf 2.70 complains about
2612         it being obsolete.
2614 2020-09-26  Bruno Haible  <bruno@clisp.org>
2616         regex-tests: Make test more robust.
2617         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
2618         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
2620 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2622         regex-tests: fix possible Turkish false-alarm
2623         * modules/regex-tests (Depends-on): Add wctype-h.
2624         * tests/test-regex.c: Include wctype.h.
2625         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
2626         as the Turkish regex test assumes this.
2628         regex-tests: fix test and add debug output
2629         Perhaps this will fix the recent grep test failure reported at:
2630         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
2631         At least, the debug output should help narrow down the failure.
2632         * tests/test-regex.c: Include stdarg.h, stdio.h.
2633         (exit_status): New var.
2634         (report_error): New function.
2635         (main): Use it to report failures to stdout instead of merely
2636         exiting with some nonzero status.  The status info alone isn’t
2637         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
2638         regex before calling re_compile_pattern, fixing a portability bug.
2640         regex: no longer match glibc
2641         * config/srclist.txt: Comment out regex_internal.c for now.
2643 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2645         regex: fix ignore-case Turkish bug
2646         * lib/regex_internal.c (build_wcs_upper_buffer):
2647         Do not assume that converting single-byte character to upper
2648         yields a single-byte character.  This is not true for Turkish,
2649         where towupper (L'i') yields L'İ', which is not single-byte.
2650         * tests/test-regex.c (main): Test for this bug.
2652         regex: port to weird isascii platforms
2653         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
2655 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2657         dfa: make dfasupported a global function
2658         * lib/dfa.c (dfasupported): Rename, and make it global.
2659         Update caller.
2660         * lib/dfa.h (dfasupported): Add prototype.
2662 2020-09-20  Bruno Haible  <bruno@clisp.org>
2664         canonicalize: Add support for UNC file names on native Windows.
2665         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
2666         <https://savannah.gnu.org/bugs/?59079>.
2667         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
2668         extend the prefix to include the server.
2670 2020-09-20  Bruno Haible  <bruno@clisp.org>
2672         supersede: Fix test failures on native Windows.
2673         * lib/supersede.c (open_supersede): Handle non-regular files on native
2674         Windows like on Solaris.
2675         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
2677 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2679         test-stdalign: test Oracle Studio better
2680         * doc/posix-headers/stdalign.texi (stdalign.h):
2681         * tests/test-stdalign.c (main):
2682         Sun Studio Bug #2125432 seems to be fixed.
2684         c-stack: output diagnostic in single 'write'
2685         * lib/c-stack.c (die): In the typical case, use just one 'write'
2686         syscall to output the diagnostic, as this lessens interleaving.
2687         (die, c_stack_action): Assume C99.
2688         * modules/c-stack (Depends-on): Add c99, mempcpy.
2690         c-stack: improve checking if !libsigsegv
2691         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2692         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2693         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2694         I found these problems while looking into this bug report:
2695         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2696         * lib/c-stack.c: Include c-stack.h first, to test interface.
2697         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2698         max_align_t, intprops.h for INT_ADD_WRAPV.
2699         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2700         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2701         for libsigsegv 2.8 and earlier since the bug should be fixed
2702         after that.
2703         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2704         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2705         Assume sprintf returns byte count; this assumption is safe now.
2706         (page_size): New static volatile variable, since sysconf isn’t
2707         documented to be async-signal-safe on Solaris.  This variable is
2708         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2709         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2710         SIGINFO_WORKS).
2711         (segv_handler): Use it if present.  Never report null pointer
2712         dereference as a stack overflow.  Check for (unlikely) unsigned
2713         and/or pointer overflow.
2714         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2715         Rename cache variables to gl_cv_sys_stack_overflow_works
2716         and gl_cv_sys_xsi_stack_overflow_heuristic.
2717         All uses changed.
2718         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2719         c-stack no longer uses STACK_DIRECTION.
2720         Do not check for unistd.h, since we depend on unistd.
2721         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2722         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2723         stdbool, stddef.
2725 2020-09-20  Bruno Haible  <bruno@clisp.org>
2727         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2728         * m4/musl.m4: Revert 2020-09-19 patch.
2729         * m4/setlocale_null.m4: Likewise.
2730         * modules/setlocale-null: Likewise.
2732 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2733             Bruno Haible  <bruno@clisp.org>
2735         relocatable-prog: Fix for multiple relocatable library directories.
2736         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2737         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2738         being attached to a single one.
2740 2020-09-19  Jim Meyering  <meyering@fb.com>
2742         test-verify.c: avoid -Wshadow warnings
2743         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2744         (enum): Capitalize member names. Adjust uses.
2746 2020-09-19  Bruno Haible  <bruno@clisp.org>
2748         havelib: Avoid linking with libc.a on GNU systems.
2749         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2750         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2752         dependency_libs value of a .la file, ignore '-lc' options on GNU
2753         systems.
2755 2020-09-19  Bruno Haible  <bruno@clisp.org>
2757         Fix recognition of musl libc on Alpine Linux 3.10.
2758         Reported by Jeffrey Walton <noloader@gmail.com> in
2759         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2760         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2761         (gl_MUSL_LIBC): Require it.
2762         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2763         * modules/setlocale-null (Files): Add m4/musl.m4.
2765 2020-09-19  Bruno Haible  <bruno@clisp.org>
2767         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2768         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2769         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2770         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2771         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2772         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2773         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2774         or <threads.h>.
2775         (ITEMS, MAX_RESULT_LEN): New macros.
2776         (nl_langinfo_unlocked): New function.
2777         (gl_get_nl_langinfo_lock): New declaration.
2778         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2779         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2780         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2781         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2782         REPLACE_NL_LANGINFO.
2783         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2784         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2785         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2786         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2787         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2789 2020-09-18  Bruno Haible  <bruno@clisp.org>
2791         fsusage, getaddrinfo: Produce more regular configure output.
2792         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2793         corresponding AC_MSG_RESULT.
2794         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2796 2020-09-18  Bruno Haible  <bruno@clisp.org>
2798         Add back gl_SILENT.
2799         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2801 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2803         c-stack-tests: fix -fsanitize=undefined false alarm
2804         * tests/test-c-stack2.sh: Skip the test-harness self-test
2805         if ‘gcc -fsanitize=undefined’ is in use.
2807 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2809         signalblocking: simplify and remove gl_SILENT
2810         gl_SILENT was problematic because if a trap was sprung, stderr
2811         generated during the trap was lost.  Avoid the problem by
2812         removing the need for gl_SILENT.
2813         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2814         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2815         Simplify, avoiding the need for gl_SILENT while preserving the
2816         ability of the user to override the value of the cache variable,
2817         now ac_cv_func_sigprocmask.
2819 2020-09-17  Bruno Haible  <bruno@clisp.org>
2821         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2822         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2823         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2824         AS_MESSAGE_FD.
2826 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2828         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2829         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2830         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2831         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2832         Define to 0.
2833         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2834         Do not use __builtin_mul_overflow_p.
2836         libc-config: port __THROW to Ubuntu 4
2837         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2838         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2839         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2840         The GCC 3.3.4 documentation says the attribute should work, but
2841         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2842         little point or desire to research this circa-2004 platform further,
2843         so just avoid the attribute there.
2845 2020-09-17  Jim Meyering  <meyering@fb.com>
2847         test-dfa-match.sh: port timeout work-around to newer Busybox
2848         * tests/test-dfa-match.sh: Update timeout -t portability test to
2849         accommodate Busybox 1.30.0 and newer.
2851 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2853         fnmatch: adjust to match glibc fix
2854         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2855         This does not affect Gnulib; it merely keeps Gnulib and glibc
2856         closer together, to help with any eventual merge, by incorporating
2857         a recent glibc patch.  The patch and the following commentary is
2858         by Andreas Schwab.
2859         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2860         contains the index into the extra array, whereas wextra points
2861         into the extra array at this index, containing the length of the
2862         following collating sequence in the wide character representation.
2864 2020-09-16  Bruno Haible  <bruno@clisp.org>
2866         stat, fstat: Fix compilation error with old mingw headers.
2867         Reported by Eli Zaretskii <eliz@gnu.org> in
2868         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2869         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2870         define it.
2872 2020-09-16  Bruno Haible  <bruno@clisp.org>
2874         stat, fstat: Fix when compiling for versions older than Windows Vista.
2875         Reported by Eli Zaretskii <eliz@gnu.org> in
2876         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2877         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2878         that was originally set before we redefined it.
2879         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2880         (gl_PREREQ_STAT): Require it.
2881         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2883 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2885         dfa: remove dfa-heap-overrun workaround
2886         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2887         both sets map[*] and does other things.  This reverts
2888         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2889         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2890         fixed the underlying problem.
2892 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2894         dfa: avoid use of uninitialized constraint
2895         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2896         to zero here.
2897         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2898         use of an uninitialized constraint by later code when ! (flags[i]
2899         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2900         the constraint.  Problem found by running 'valgrind src/grep -E
2901         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2903         dfa: assume C99 in reorder_tokens
2904         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2906         dfa: fix dfa-heap-overrun failure
2907         * lib/dfa.c (reorder_tokens): When setting
2908         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2909         that (i < d->follows[i].elems[j].index), use two loops, one to set
2910         the map array and the other to use it.  The incorrect assumption
2911         caused some elements to be missed, and this in turn caused grep's
2912         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2913         with GCC.  I found this bug while investigating
2914         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2915         and I think the bug also occurs on GNU/Linux but with more-subtle
2916         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2917         recent changes make the bug more likely.
2919 2020-09-13  Bruno Haible  <bruno@clisp.org>
2921         parse-datetime: Make the build rule work with parallel 'make'.
2922         Reported by Daiki Ueno <ueno@gnu.org> in
2923         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2924         * modules/parse-datetime (Makefile.am): Use a phony target and the
2925         general idiom for rules that produce multiple files.
2927 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2929         getpass: Check for nonnull prompt argument while avoiding warnings.
2930         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2931         (getpass) [!_WIN32]: Print prompt only if nonnull.
2933 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2935         dfa: epsilon-closure tweaks (Bug#40634)
2936         Rename BACKWORD to BACKWARD consistently.
2937         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2938         (addtok_mb): Redo slightly to make it act more like a state machine.
2939         Check depth only when it increases.
2940         (epsclosure): Let the switch test the tokens.
2941         (dfaanalyze): Cache tindex.  Simplify position loops.
2942         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2943         only if it is not null, since we're testing that anyway.
2944         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2946 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2948         dfa: use backward set in removal of epsilon closure
2949         When removing in epsilon closure, the code searched all nodes
2950         sequentially, and this was slow for some cases.  Build a backward
2951         set before search, and only check previous position with the set.
2952         Problem reported in <https://bugs.gnu.org/40634>.
2953         * lib/dfa.c (struct dfa): New member 'epsilon'.
2954         (addtok_mb): Check whether a pattern has epsilon node or not.
2955         (epsclosure): New arg BACKWORD; caller changed.  When removing
2956         epsilon node and reconnecting, check only previous positions.
2957         Treat BEG as if it were character.
2958         (dfaanalyze): Build backward set.
2960 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2962         canonicalize: fix pointer indexing bugs
2963         Problem reported by Florian Weimer in:
2964         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2965         * lib/canonicalize-lgpl.c (__realpath):
2966         * lib/canonicalize.c (canonicalize_filename_mode):
2967         Do not generate a pointer past the end of the array.
2968         * lib/canonicalize.c (canonicalize_filename_mode):
2969         Do not use a pointer after passing it to realloc.
2971 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2973         tempname: help merge with glibc
2974         Inspired by draft patches by Adhemerval Zanella in:
2975         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2976         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2977         * lib/tempname.c: Include stdalign.h, time.h.
2978         If _LIBC, do not include random-bits.h.
2979         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2980         (RANDOM_BITS): Remove, replacing with ...
2981         (random_bits): ... this new static function.  All uses changed.
2982         Add entropy each time if getrandom is not supported.
2983         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2984         Assume 64-bit support a la C99.
2985         (try_tempname_len): Take advantage of ASLR when initializing
2986         random value.
2987         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2989         getcwd: merge recent glibc changes
2990         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2991         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2993 2020-09-06  Bruno Haible  <bruno@clisp.org>
2995         attribute: Clarify which file to include.
2996         * modules/attribute (Include): Add "attribute.h".
2998 2020-09-06  Bruno Haible  <bruno@clisp.org>
3000         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
3001         * lib/pipe-filter-ii.c: Include <process.h>.
3002         * lib/pipe-filter-gi.c: Likewise.
3004 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3006         verify: avoid __builtin_assume
3007         Our latest attempt to use Clang’s __builtin_assume caused a crash
3008         in GNU Emacs that we spent quite some time tracking down as being
3009         caused by the switch to __builtin_assume.  It’s not known whether
3010         the crash is due is a Clang bug or a portability bug in GNU Emacs.
3011         For now, play it safe and avoid __builtin_assume.
3012         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
3013         (assume): Simplify by not trying to use Clang’s __builtin_assume.
3015 2020-09-05  Bruno Haible  <bruno@clisp.org>
3017         Fix several "warning: no previous prototype for function".
3018         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
3019         in front of the declaration of the lookup function in
3020         unicase/locale-languages.h.
3021         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
3022         unictype/bidi_byname.h.
3023         * modules/unictype/category-byname (Makefile.am): Likewise in
3024         unictype/categ_byname.h.
3025         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
3026         unictype/combiningclass_byname.h.
3027         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
3028         unictype/joininggroup_byname.h.
3029         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
3030         unictype/joiningtype_byname.h.
3031         * modules/unictype/property-byname (Makefile.am): Likewise in
3032         unictype/pr_byname.h.
3033         * modules/unictype/scripts (Makefile.am): Likewise in
3034         unictype/scripts_byname.h.
3035         * modules/uninorm/composition (Makefile.am): Likewise in
3036         uninorm/composition-table.h.
3038 2020-09-05  Bruno Haible  <bruno@clisp.org>
3040         select: Fix "warning: no previous prototype for function".
3041         * lib/select.c: Include <sys/select.h>.
3043 2020-09-05  Bruno Haible  <bruno@clisp.org>
3045         Use module 'c99' when needed for variadic macros with '...' syntax.
3046         * modules/crypto/sm3 (Depends-on): Add c99.
3048 2020-09-05  Bruno Haible  <bruno@clisp.org>
3050         Use module 'c99' when needed for subobject initializer syntax.
3051         * modules/tempname (Depends-on): Add c99.
3052         * modules/nstrftime-tests (Depends-on): Likewise.
3054 2020-09-05  Bruno Haible  <bruno@clisp.org>
3056         Use module 'c99' when needed for declaration-after-statement syntax.
3057         * modules/backup-rename (Depends-on): Add c99.
3058         * modules/backupfile (Depends-on): Likewise.
3059         * modules/bitset-tests (Depends-on): Likewise.
3060         * modules/bitsetv (Depends-on): Likewise.
3061         * modules/c-strtod (Depends-on): Likewise.
3062         * modules/c-strtold (Depends-on): Likewise.
3063         * modules/clean-temp (Depends-on): Likewise.
3064         * modules/copy-file (Depends-on): Likewise.
3065         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
3066         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
3067         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
3068         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
3069         * modules/crypto/md5-buffer (Depends-on): Likewise.
3070         * modules/crypto/md5-tests (Depends-on): Likewise.
3071         * modules/crypto/sha1-buffer (Depends-on): Likewise.
3072         * modules/crypto/sha1-tests (Depends-on): Likewise.
3073         * modules/crypto/sha256-buffer (Depends-on): Likewise.
3074         * modules/crypto/sha256-tests (Depends-on): Likewise.
3075         * modules/crypto/sha512-buffer (Depends-on): Likewise.
3076         * modules/crypto/sha512-tests (Depends-on): Likewise.
3077         * modules/diffseq (Depends-on): Likewise.
3078         * modules/fatal-signal (Depends-on): Likewise.
3079         * modules/fchmodat (Depends-on): Likewise.
3080         * modules/fstrcmp (Depends-on): Likewise.
3081         * modules/fsusage (Depends-on): Likewise.
3082         * modules/fts (Depends-on): Likewise.
3083         * modules/fts-tests (Depends-on): Likewise.
3084         * modules/getumask (Depends-on): Likewise.
3085         * modules/git-merge-changelog (Depends-on): Likewise.
3086         * modules/hash-map (Depends-on): Likewise.
3087         * modules/hash-set (Depends-on): Likewise.
3088         * modules/lchmod (Depends-on): Likewise.
3089         * modules/libgmp-tests (Depends-on): Likewise.
3090         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
3091         * modules/linkedhash-map (Depends-on): Likewise.
3092         * modules/linkedhash-set (Depends-on): Likewise.
3093         * modules/long-options (Depends-on): Likewise.
3094         * modules/mbrtoc32 (Depends-on): Likewise.
3095         * modules/memchr2-tests (Depends-on): Likewise.
3096         * modules/memmem-tests (Depends-on): Likewise.
3097         * modules/memrchr-tests (Depends-on): Likewise.
3098         * modules/mktime-internal (Depends-on): Likewise.
3099         * modules/nstrftime (Depends-on): Likewise.
3100         * modules/opendirat (Depends-on): Likewise.
3101         * modules/parse-datetime (Depends-on): Likewise.
3102         * modules/quotearg-simple-tests (Depends-on): Likewise.
3103         * modules/same (Depends-on): Likewise.
3104         * modules/supersede (Depends-on): Likewise.
3105         * modules/supersede-tests (Depends-on): Likewise.
3106         * modules/time_rz (Depends-on): Likewise.
3107         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3108         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
3109         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
3110         * modules/xalloc (Depends-on): Likewise.
3111         * modules/xnanosleep (Depends-on): Likewise.
3113 2020-09-05  Bruno Haible  <bruno@clisp.org>
3115         Fix "warning: array initialized from parenthesized string constant".
3116         * tests/test-memmem.c (main): Remove parentheses around string constant.
3117         * tests/test-c-strcasestr.c (main): Likewise.
3118         * tests/test-strcasestr.c (main): Likewise.
3120 2020-09-05  Bruno Haible  <bruno@clisp.org>
3122         argmatch tests: Fix ISO C compliance warning.
3123         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
3124         invocation.
3126 2020-09-05  Bruno Haible  <bruno@clisp.org>
3128         uniname/uniname: Fix -Wshadow warning.
3129         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
3130         * modules/uniname/uniname (Depends-on): Add c99.
3132 2020-09-05  Bruno Haible  <bruno@clisp.org>
3134         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
3135         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
3136         argument to size_t.
3137         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
3138         n to size_t.
3140 2020-09-05  Bruno Haible  <bruno@clisp.org>
3142         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
3143         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
3144         u32_uctomb): Change type of last argument to ptrdiff_t.
3145         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3146         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3147         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
3148         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
3149         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
3151 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3153         manywarnings: remove -Wchkp and -Wabi from C++ too
3154         Suggested by Reuben Thomas in:
3155         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
3156         At some point somebody should merge the many other manywarnings-c.m4
3157         changes into manywarnings-c++.m4 too, e.g.,
3158         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
3159         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3160         Remove -Wchkp, -Wabi.
3162 2020-08-30  Bruno Haible  <bruno@clisp.org>
3164         strerrorname_np: Add tests.
3165         * tests/test-strerrorname_np.c: New file.
3166         * modules/strerrorname_np-tests: New file.
3168         strerrorname_np: New module.
3169         * lib/string.in.h (strerrorname_np): New declaration.
3170         * lib/strerrorname_np.c: New file.
3171         * m4/strerrorname_np.m4: New file.
3172         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
3173         is declared.
3174         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
3175         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3176         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
3177         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3178         * modules/strerrorname_np: New file.
3179         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
3180         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
3181         the glibc 2.32 bug.
3183 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3185         perror, strerror_r: remove unportable tests
3186         Problem reported by Florian Weimer in:
3187         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
3188         * tests/test-perror2.c (main):
3189         * tests/test-strerror_r.c (main): Omit unportable tests.
3191 2020-08-26  Bruno Haible  <bruno@clisp.org>
3193         stdint, wchar, wctype-h: Change configure message.
3194         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3195         enough..." instead of "checking whether wint_t is too small...".
3197 2020-08-26  Bruno Haible  <bruno@clisp.org>
3199         time_rz: Change configure message.
3200         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
3201         near extrema..." instead of "checking whether localtime loops forever
3202         near extrema...".
3204 2020-08-26  Bruno Haible  <bruno@clisp.org>
3206         stdint: Change configure message.
3207         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
3208         without ISO C predefines..." instead of "checking whether stdint.h
3209         predates C++11...".
3211 2020-08-26  Bruno Haible  <bruno@clisp.org>
3213         socketlib: Change configure message.
3214         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
3215         instead of "checking if we need to call WSAStartup in winsock2.h and
3216         -lws2_32...".
3218 2020-08-26  Bruno Haible  <bruno@clisp.org>
3220         include_next: Change configure message.
3221         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
3222         code line length is unlimited..." instead of "checking whether system
3223         header files limit the line length...".
3225 2020-08-26  Bruno Haible  <bruno@clisp.org>
3227         getcwd: Change configure message.
3228         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
3229         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
3230         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
3232 2020-08-26  Bruno Haible  <bruno@clisp.org>
3234         chdir-long: Change configure message.
3235         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
3236         system supports file names of any length..." instead of "checking
3237         whether this system has an arbitrary file name length limit...".
3238         Set gl_cv_have_unlimited_file_name_length instead of
3239         gl_cv_have_arbitrary_file_name_length_limit.
3240         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
3242 2020-08-26  Bruno Haible  <bruno@clisp.org>
3244         ceill: Change configure message.
3245         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
3246         instead of "checking whether ceill() breaks with small values...".
3248 2020-08-26  Bruno Haible  <bruno@clisp.org>
3250         iconv: Change configure message.
3251         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
3252         with its POSIX signature..." instead of "checking for iconv
3253         declaration...". Remove K&R C support.
3255 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3257         getcwd: help the merge back into glibc
3258         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
3259         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
3260         The idea is to make it easier for Gnulib lib/getcwd.c to match
3261         glibc io/getcwd-generic.c.
3262         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
3263         Include not-cancel.h.
3264         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
3265         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
3266         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
3267         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
3268         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
3269         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
3270         (__getcwd_generic): Rename from __getcwd.
3271         Use the abovementioned macros for consistency with glibc.
3272         (weak_alias): Remove.
3274 2020-08-25  Bruno Haible  <bruno@clisp.org>
3276         verify: Avoid warnings when assume(0) is used.
3277         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
3278         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
3279         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
3280         the constant 0.
3281         * tests/test-verify.c (f): New function.
3282         (state): New type.
3283         (test_assume_expressions, test_assume_optimization,
3284         test_assume_noreturn): New functions.
3286 2020-08-25  Bruno Haible  <bruno@clisp.org>
3288         fstrcmp: Clarification regarding NOTE_ORDERED.
3289         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
3291 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3293         diffseq: new option NOTE_ORDERED
3294         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
3295         * NEWS: Mention this.
3296         * lib/diffseq.h (NOTE_ORDERED): New macro.
3297         (IF_LINT2): Remove; no longer needed.
3298         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
3299         subproblem and iterate to do the larger.
3301 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3303         sys_types: let Autoconf 2.70 do pid_t
3304         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
3305         only for Autoconf versions 2.69 and earlier, since 2.70
3306         will be fixed.
3308 2020-08-23  Bruno Haible  <bruno@clisp.org>
3310         tests: Don't assume that pid_t fits in an 'int'.
3311         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
3312         of 'int'.
3313         * tests/test-nonblocking-socket-main.c (main): Likewise.
3315         sys_types: Fix definition of pid_t on 64-bit MSVC.
3316         * m4/pid_t.m4: New file.
3317         * modules/sys_types (Files): Add it.
3318         * modules/dirent (Files): Likewise.
3319         * modules/fcntl-h (Files): Likewise.
3320         * modules/sched (Files): Likewise.
3321         * modules/signal-h (Files): Likewise.
3322         * modules/spawn (Files): Likewise.
3323         * modules/sys_stat (Files): Likewise.
3324         * modules/sys_wait (Files): Likewise.
3325         * modules/termios (Files): Likewise.
3326         * modules/unistd (Files): Likewise.
3328 2020-08-23  Bruno Haible  <bruno@clisp.org>
3330         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
3331         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
3332         program.
3334 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3336         intprops: be consistent about +X vs X+0
3337         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
3339         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
3340         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
3341         is a bit-field, on older GCC or non-GCC compilers where we do
3342         things ourselves instead of using __builtin_mul_overflow.
3343         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
3344         to applying sizeof to a bit-field.
3345         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
3346         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
3348 2020-08-23  Bruno Haible  <bruno@clisp.org>
3350         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
3351         Reported by Jörg Sonnenberger <joerg@netbsd.org>
3352         via Thomas Klausner <tk@giga.or.at> in
3353         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
3354         * lib/supersede.c (open_supersede): When opening an existing non-regular
3355         file on Solaris, use O_CREAT although it should not be necessary.
3357 2020-08-23  Bruno Haible  <bruno@clisp.org>
3359         verify: Make assume work on bit field expressions (regr. 2020-08-22).
3360         Reported by Benno Schulenberg <bensberg@telfort.nl> in
3361         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3362         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3363         variable.
3365 2020-08-23  Bruno Haible  <bruno@clisp.org>
3367         libc-config: Improve comments.
3368         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3369         cannot use clang's __diagnose_if__ here.
3371 2020-08-22  Bruno Haible  <bruno@clisp.org>
3373         verify: Do use __builtin_assume on clang.
3374         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3375         variable in a statement expression.
3377 2020-08-22  Bruno Haible  <bruno@clisp.org>
3379         sig2str: Add more signals.
3380         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3382 2020-08-22  Bruno Haible  <bruno@clisp.org>
3384         doc: Update for OpenBSD 6.0, 6.7.
3385         * doc/*/*.texi: Update.
3386         * m4/printf.m4: Update comments and cross-compilation guesses.
3387         * m4/ceill.m4: Update comments.
3388         * m4/getcwd-abort-bug.m4: Likewise.
3389         * m4/ilogb.m4: Likewise.
3390         * m4/ilogbf.m4: Likewise.
3391         * m4/langinfo_h.m4: Likewise.
3392         * m4/modf.m4: Likewise.
3393         * m4/modff.m4: Likewise.
3395 2020-08-22  Bruno Haible  <bruno@clisp.org>
3397         doc: Mention sig2str module.
3398         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3400 2020-08-21  Bruno Haible  <bruno@clisp.org>
3402         sigdescr_np: Add tests.
3403         * tests/test-sigdescr_np.c: New file.
3404         * modules/sigdescr_np-tests: New file.
3406         sigdescr_np: New module.
3407         * lib/string.in.h (sigdescr_np): New declaration.
3408         * lib/sigdescr_np.c: New file.
3409         * m4/sigdescr_np.m4: New file.
3410         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3411         declared.
3412         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3413         HAVE_SIGDESCR_NP.
3414         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3415         HAVE_SIGDESCR_NP.
3416         * modules/sigdescr_np: New file.
3417         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3418         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3420 2020-08-20  Bruno Haible  <bruno@clisp.org>
3422         sigabbrev_np: Add tests.
3423         * tests/test-sigabbrev_np.c: New file.
3424         * modules/sigabbrev_np-tests: New file.
3426         sigabbrev_np: New module.
3427         * lib/string.in.h (sigabbrev_np): New declaration.
3428         * lib/sigabbrev_np.c: New file.
3429         * m4/sigabbrev_np.m4: New file.
3430         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3431         declared.
3432         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3433         HAVE_SIGABBREV_NP.
3434         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3435         HAVE_SIGABBREV_NP.
3436         * modules/sigabbrev_np: New file.
3437         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3438         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3440 2020-08-20  Bruno Haible  <bruno@clisp.org>
3442         stdalign tests: Skip test with AIX xlclang.
3443         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3445 2020-08-20  Bruno Haible  <bruno@clisp.org>
3447         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3448         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3449         workaround as for GCC versions < 4.9.
3451 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3453         Sync up ProjectQuirks comments and documentation
3454         Transform the ProjectQuirks comments into a docstring so that it can
3455         be accessed from python as ProjectQuirks.__doc__ and harmonize
3456         descriptions with the documentation.
3457         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3458         Transform comments into a docstring.
3459         * doc/vcs-to-changelog.texi: Sync up description with comments.
3461         Split ProjectQuirks out into its own file
3462         ProjectQuirks is used by external quirks files and importing it from
3463         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3464         is cleaner to put it in its own file anyway.
3465         * build-aux/vcstocl/projectquirks.py: A new file...
3466         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3467         we move ProjectQuirks and import the file.
3469 2020-08-19  Bruno Haible  <bruno@clisp.org>
3471         uchar: Fix compilation errors in C++ mode on macOS.
3472         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
3473         system header file before attempting to use 'char16_t' and 'char32_t'.
3475 2020-08-19  Bruno Haible  <bruno@clisp.org>
3477         ansi-c++-opt: Work around an autoconf macro reordering problem.
3478         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
3479         section.
3481 2020-08-19  Bruno Haible  <bruno@clisp.org>
3483         math C++ tests: Fix compilation error in with GCC 10.
3484         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3485         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
3486         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3488 2020-08-19  Bruno Haible  <bruno@clisp.org>
3490         uchar: Fix compilation errors in C++ mode on OpenBSD.
3491         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
3492         CXX_HAS_UCHAR_TYPES is 1.
3493         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
3494         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
3495         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
3497 2020-08-19  Bruno Haible  <bruno@clisp.org>
3499         Fix compilation errors in C++ mode on OpenBSD.
3500         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
3501         OpenBSD with clang, use the approach without C preprocessor macro.
3503 2020-08-18  Bruno Haible  <bruno@clisp.org>
3505         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
3506         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
3507         AC_LANG_POP.
3509 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3511         verify: avoid __built_assume on Clang
3512         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
3513         Clang 9 incorrectly diagnoses arguments as having side effects
3514         even when they do not.  I guess Clang 9 considers any function
3515         call as if it had a side effect here.
3517         libc-config: avoid Clang’s __diagnose_if__
3518         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
3519         For now, do not use __diagnose_if__ here, as this fails
3520         on Fedora 31 with Clang 9.0.1, with diagnostic
3521         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
3522         size than length of destination buffer
3523         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
3524         for functions that are not called?
3526         careadlinkat: speedup for GCC 10 with GCC_LINT
3527         Inspired by a suggestion by Bruno Haible in:
3528         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
3529         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
3530         (readlink_stk): New function, with most of the old careadlinkat
3531         contents and with a new STACK_BUF arg.  Inline it in GCC 10
3532         if GCC_LINT.
3533         (careadlinkat): Use the new function for everything but the
3534         stack buffer.
3536         * build-aux/gcc-warning.spec: Update comments.
3538 2020-08-17  Bruno Haible  <bruno@clisp.org>
3540         Assume autoconf >= 2.64.
3541         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
3543 2020-08-17  Bruno Haible  <bruno@clisp.org>
3545         Revert autoupdate's revert.
3546         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
3548 2020-08-17  Bruno Haible  <bruno@clisp.org>
3550         uchar C++ tests: Fix build error on FreeBSD 12.
3551         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
3552         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
3553         <cuchar> does not exist.
3555 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3557         time_rz: remove unused functions
3558         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
3560         time_rz: fix issues with mktime_z failures
3561         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
3562         Use a cheaper tm_yday test for failed mktime.
3564 2020-08-16  Bruno Haible  <bruno@clisp.org>
3566         intprops test: Strengthen on clang.
3567         * tests/test-intprops.c (VERIFY): Use verify_stmt.
3569 2020-08-16  Bruno Haible  <bruno@clisp.org>
3571         nstrftime: Guide inlining also on clang.
3572         * lib/nstrftime.c (iso_week_days): Inline also on clang.
3574 2020-08-16  Bruno Haible  <bruno@clisp.org>
3576         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
3577         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
3579 2020-08-16  Bruno Haible  <bruno@clisp.org>
3581         log2l: Disable MSVC workaround on clang.
3582         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
3584 2020-08-16  Bruno Haible  <bruno@clisp.org>
3586         argp: Emit a warning also with clang.
3587         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
3588         clang.
3590 2020-08-16  Bruno Haible  <bruno@clisp.org>
3592         libc-config: Enable __REDIRECT macro also on clang.
3593         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
3594         __ASMNAME2): Define on clang like on GCC.
3596 2020-08-16  Bruno Haible  <bruno@clisp.org>
3598         regex: Use initializer shorthand syntax also with clang.
3599         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
3600         with clang.
3602 2020-08-16  Bruno Haible  <bruno@clisp.org>
3604         regex: Use space optimization also with clang.
3605         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
3606         with clang.
3608 2020-08-16  Bruno Haible  <bruno@clisp.org>
3610         Use _Static_assert and static_assert primitives when present on clang.
3611         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3612         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3613         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3615 2020-08-16  Bruno Haible  <bruno@clisp.org>
3617         Use 'throw ()' for optimization in C++ mode also on clang.
3618         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
3619         * lib/getopt-cdefs.in.h (__THROW): Likewise.
3620         * lib/md5.h (__THROW): Likewise.
3622 2020-08-16  Bruno Haible  <bruno@clisp.org>
3624         absolute-header: Add support for clang.
3625         * modules/absolute-header (Makefile.am): Include '__clang__' in the
3626         HAVE_INCLUDE_NEXT expression.
3628 2020-08-16  Bruno Haible  <bruno@clisp.org>
3630         Fix "warning: implicitly declaring library function 'strcasecmp'".
3631         * lib/argp-help.c: Include <strings.h>.
3633 2020-08-16  Bruno Haible  <bruno@clisp.org>
3635         stdio: Don't break attribute 'scanf' on clang.
3636         * lib/stdio.in.h (scanf): Treat clang like GCC.
3638 2020-08-16  Bruno Haible  <bruno@clisp.org>
3640         Use __restrict also on clang.
3641         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
3642         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
3643         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
3645 2020-08-16  Bruno Haible  <bruno@clisp.org>
3647         pthread-spin: Use GCC built-ins also on clang.
3648         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3649         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
3650         also on clang.
3652 2020-08-16  Bruno Haible  <bruno@clisp.org>
3654         asyncsafe-spin tests: Update.
3655         * tests/test-asyncsafe-spin2.c: Update to match the change in
3656         lib/asyncsafe-spin.c from 2020-08-11.
3658 2020-08-16  Bruno Haible  <bruno@clisp.org>
3660         setenv: Use tree code also with clang.
3661         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
3663 2020-08-16  Bruno Haible  <bruno@clisp.org>
3665         math: Optimize signbit also on clang.
3666         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
3667         on clang.
3669 2020-08-16  Bruno Haible  <bruno@clisp.org>
3671         avltreehash-list, rbtreehash-list: Optimize also on clang.
3672         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
3673         __builtin_expect also on clang.
3675 2020-08-16  Bruno Haible  <bruno@clisp.org>
3677         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
3678         * lib/socket.c: Use WSASocketW, not WSASocketA.
3680         Fix "warning: format specifies type 'unsigned long'".
3681         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3682         argument to match the format directive.
3684         Fix "warning: no case matching constant switch condition '0'".
3685         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3687         Fix "warning: integer overflow in expression".
3688         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3689         remove a 'long' overflow.
3691         Fix "warning: "getpagesize" redefined".
3692         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3693         macro.
3695         Fix "warning: implicitly declaring library function 'strncasecmp'".
3696         * lib/strptime.c: Include <strings.h>.
3698         Fix "warning: 'snprintf' macro redefined".
3699         * lib/strerror_r.c (snprintf): Undefine before redefining.
3701         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3702         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3704         Fix "warning: '__stat64' macro redefined".
3705         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3707         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3708         * lib/stdio.in.h (printf): Treat clang like GCC.
3710         Fix "warning: attribute declaration must precede definition" with clang.
3711         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3712         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3713         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3714         on non-glibc systems.
3715         * lib/netdb.in.h (gai_strerror): Likewise.
3716         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3717         * lib/sys_stat.in.h (fstat): Likewise.
3718         * lib/utime.in.h (utime): Likewise.
3720         Fix undesired warnings.
3721         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3722         clang.
3724 2020-08-16  Bruno Haible  <bruno@clisp.org>
3726         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3727         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3728         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3729         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3730         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3732 2020-08-16  Bruno Haible  <bruno@clisp.org>
3734         Don't use Autoconf quadrigraphs.
3735         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3736         Autoconf quadrigraph.
3737         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3738         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3739         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3740         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3741         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3742         * m4/math_h.m4 (gl_MATH_H): Likewise.
3743         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3745 2020-08-16  Bruno Haible  <bruno@clisp.org>
3747         Fix quoting of AC_LANG_PROGRAM arguments.
3748         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3749         arguments through [[...]].
3750         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3751         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3752         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3753         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3754         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3755         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3756         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3757         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3758         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3759         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3760         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3761         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3762         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3764 2020-08-16  Bruno Haible  <bruno@clisp.org>
3766         Assume autoconf >= 2.64.
3767         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3768         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3769         * NEWS: Mention the changed requirement.
3770         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3771         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3772         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3773         variables.
3774         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3775         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3776         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3777         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3778         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3779         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3780         Likewise.
3781         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3782         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3783         * m4/configmake.m4: Update comment.
3785 2020-08-16  Bruno Haible  <bruno@clisp.org>
3787         sys_ioctl: Simplify.
3788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3789         AC_INCLUDES_DEFAULT.
3791 2020-08-16  Bruno Haible  <bruno@clisp.org>
3793         Fix quoting of AC_LANG_SOURCE arguments.
3794         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3795         GL_NOCRASH expansion.
3796         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3797         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3798         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3799         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3800         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3802 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3804         nstrftime: be more predictable about errno
3805         This aligns nstrftime better with draft POSIX 202x strftime.
3806         * lib/nstrftime.c: Include errno.h.
3807         (width_add, __strftime_internal): Set errno on failure,
3808         and preserve it on success.  Check for mktime_z failure.
3809         * modules/nstrftime (Depends-on): Add errno.
3810         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3811         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3812         (errno_test): New test function.
3813         (main): Call it.
3815 2020-08-15  Bruno Haible  <bruno@clisp.org>
3817         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3818         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3819         from dependency analysis first.
3821 2020-08-15  Bruno Haible  <bruno@clisp.org>
3823         Determine asm output option and filename suffix for MSVC/clang.
3824         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3825         clang-cl.
3827 2020-08-15  Bruno Haible  <bruno@clisp.org>
3829         doc: Update for MSVC/clang.
3830         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3831         that MSVC 14 does not have.
3833 2020-08-15  Bruno Haible  <bruno@clisp.org>
3835         Revert autoupdate's revert.
3836         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3838 2020-08-15  Bruno Haible  <bruno@clisp.org>
3840         frexpl: Fix configuration test result on MSVC.
3841         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3842         zero.
3844 2020-08-15  Bruno Haible  <bruno@clisp.org>
3846         Support compiling without -loldnames on native Windows.
3847         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3848         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3849         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3850         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3851         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3853         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3854         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3855         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3856         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3857         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3859         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3860         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3861         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3862         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3863         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3864         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3865         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3866         Likewise.
3867         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3868         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3869         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3870         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3871         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3872         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3873         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3874         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3875         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3876         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3877         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3879         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3880         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3881         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3882         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3883         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3884         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3885         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3886         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3887         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3888         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3889         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3890         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3891         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3892         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3893         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3894         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3895         test for getcwd.
3896         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3897         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3898         with GL_MDA_DEFINES.
3899         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3900         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3901         prefixed symbol.
3902         * lib/search.in.h (lfind, lsearch): Likewise.
3903         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3904         Likewise.
3905         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3906         * lib/string.in.h (memccpy, strdup): Likewise.
3907         * lib/sys_stat.in.h (chmod, umask): Likewise.
3908         * lib/time.in.h (tzset): Likewise.
3909         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3910         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3911         read, rmdir, swab, unlink, write): Likewise.
3912         * lib/utime.in.h (utime): Likewise.
3913         * lib/wchar.in.h (wcsdup): Likewise.
3914         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3915         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3916         rpl_-prefixed macro.
3917         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3918         * lib/close.c (close_nothrow): On native Windows, use _close.
3919         * lib/creat.c (orig_creat): On native Windows, use _creat.
3920         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3921         * lib/dup2.c (dup2_nothrow): Use _dup2.
3922         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3923         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3924         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3925         * lib/open.c (orig_open): On native Windows, use _open.
3926         * lib/read.c (read_nothrow): Use _read.
3927         * lib/rmdir.c: On native Windows, use _rmdir.
3928         * lib/unlink.c: On native Windows, use _unlink.
3929         * lib/write.c (write_nothrow): Use _write.
3930         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3931         undefined symbol.
3932         * lib/sys_socket.in.h (close): Likewise.
3933         * lib/sys_time.in.h (close): Likewise.
3934         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3936 2020-08-15  Bruno Haible  <bruno@clisp.org>
3938         Fix "unknown pragma ignored" warnings with clang on native Windows.
3939         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3940         * lib/cbrtf.c: Likewise.
3941         * lib/ceil.c: Likewise.
3942         * lib/floor.c: Likewise.
3943         * lib/fma.c: Likewise.
3944         * lib/fmod.c: Likewise.
3945         * lib/rint.c: Likewise.
3946         * lib/round.c: Likewise.
3947         * lib/trunc.c: Likewise.
3948         * tests/test-ceil2.c: Likewise.
3949         * tests/test-ceilf2.c: Likewise.
3950         * tests/test-floor2.c: Likewise.
3951         * tests/test-floorf2.c: Likewise.
3952         * tests/test-trunc2.c: Likewise.
3953         * tests/test-truncf2.c: Likewise.
3954         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3957 2020-08-15  Bruno Haible  <bruno@clisp.org>
3959         Fix compilation errors in C++ mode with clang on native Windows.
3960         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3961         non-glibc systems.
3962         * lib/sched.in.h (sched_yield): Likewise.
3964 2020-08-14  Bruno Haible  <bruno@clisp.org>
3966         stdnoreturn: Work around problem with MSVC/clang.
3967         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3968         system header after <stdnoreturn.h>.
3969         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3971 2020-08-14  Bruno Haible  <bruno@clisp.org>
3973         utime-h: Generate an utime.h file always.
3974         * modules/utime-h (Makefile.am): Generate utime.h always.
3975         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3976         GL_GENERATE_UTIME_H.
3978 2020-08-14  Bruno Haible  <bruno@clisp.org>
3980         mktime, mktime-internal: Remove obsolete code.
3981         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3983 2020-08-14  Bruno Haible  <bruno@clisp.org>
3985         getcwd: Remove obsolete code.
3986         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3987         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3989 2020-08-14  Bruno Haible  <bruno@clisp.org>
3991         tzset: Assume the function exists.
3992         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3993         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3994         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3995         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3996         HAVE_TZSET.
3997         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3998         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
4000         nstrftime: Assume tzset exists.
4001         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
4002         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
4003         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
4005         mktime, mktime-internal: Assume tzset exists.
4006         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
4007         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
4009 2020-08-14  Bruno Haible  <bruno@clisp.org>
4011         strdup: Assume the function exists.
4012         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
4013         whether strdup exists.
4014         * modules/strdup (Files): Remove lib/strdup.c.
4015         (configure.ac): Don't compile strdup.c.
4016         * modules/strdup-posix (Depends-on, configure.ac): Don't test
4017         ac_cv_func_strdup.
4018         * doc/posix-functions/strdup.texi: Update.
4019         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
4020         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
4021         (Depends-on): Remove unistr/u8-strlen.
4023 2020-08-13  Bruno Haible  <bruno@clisp.org>
4025         sys_random: Work around an uClibc bug.
4026         Reported by akater <nuclearspace@gmail.com>
4027         via Stefan Kangas <stefan@marxist.se>
4028         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
4029         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
4030         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
4031         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4032         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
4034 2020-08-12  Bruno Haible  <bruno@clisp.org>
4036         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
4037         Reported by Florian Weimer in
4038         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
4039         * lib/gen-uni-tables.c (output_predicate): Change the element type of
4040         the level3 array to 'unsigned int'.
4041         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
4042         * lib/unictype/categ_*.h: Regenerated.
4043         * lib/unictype/ctype_*.h: Regenerated.
4044         * lib/unictype/pr_*.h: Regenerated.
4045         * lib/unictype/sy_*.h: Regenerated.
4046         * lib/unicase/cased.h: Regenerated.
4047         * lib/unicase/ignorable.h: Regenerated.
4049 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4051         stdint: port intptr_t to more-recent MinGW
4052         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
4053         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
4054         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
4055         Apparently those two macros were removed in mingwrt-3.22
4056         dated 2016-07-14.
4058 2020-08-12  Bruno Haible  <bruno@clisp.org>
4060         thread-optim: Export function-like macros only.
4061         Suggested by Paul Eggert.
4062         * lib/thread-optim.h (gl_multithreaded): New macro.
4063         (IF_MT_DECL, IF_MT): Remove macros.
4064         * doc/multithread.texi (Multithreading Optimizations): Add a small
4065         example.
4066         * lib/fatal-signal.c: Update all uses.
4067         * lib/clean-temp.c: Likewise.
4068         * lib/localename.c: Likewise.
4069         * modules/localename (Depends-on): Add stdbool.
4071 2020-08-12  Bruno Haible  <bruno@clisp.org>
4073         Revert autoupdate's revert.
4074         * config/srclist.txt: Mark regex.h as needing sync with glibc.
4076 2020-08-11  Bruno Haible  <bruno@clisp.org>
4078         thread-optim: Fix a compiler warning.
4079         * lib/thread-optim.h (IF_MT_DECL): Define differently.
4081 2020-08-11  Bruno Haible  <bruno@clisp.org>
4083         Use __restrict also on clang.
4084         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
4085         (__restrict_arr): On clang, define like on GCC.
4086         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
4087         (_Restrict_arr_): Use _Restrict_ also on clang.
4088         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
4089         (_Restrict_arr_): Use _Restrict_ also on clang.
4091 2020-08-11  Bruno Haible  <bruno@clisp.org>
4093         Use flexible array syntax also on clang.
4094         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
4095         define like for GCC 3.
4097 2020-08-11  Bruno Haible  <bruno@clisp.org>
4099         fcntl: On native Windows, use _setmode, not setmode.
4100         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
4101         * lib/binary-io.h: Update comment.
4102         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
4103         * tests/test-dup2.c: Likewise.
4104         * tests/test-dup-safer.c: Likewise.
4105         * tests/test-fcntl.c: Likewise.
4107 2020-08-11  Bruno Haible  <bruno@clisp.org>
4109         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
4110         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
4111         * lib/spawn-pipe.c (create_pipe): Likewise.
4112         * tests/test-nonblocking-pipe-main.c (main): Likewise.
4113         * tests/test-nonblocking-socket-main.c (main): Likewise.
4114         * lib/wait-process.c: Update comment.
4115         * doc/posix-functions/fork.texi: Update.
4117 2020-08-11  Bruno Haible  <bruno@clisp.org>
4119         asyncsafe-spin: Use GCC built-ins also on clang.
4120         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
4121         the newer GCC built-ins also on clang.
4123 2020-08-11  Bruno Haible  <bruno@clisp.org>
4125         Use expression statements also on clang.
4126         * lib/cdefs.h (__extension__): Don't define to empty on clang.
4127         * lib/obstack.h (__extension__): Likewise.
4128         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
4129         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
4130         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
4131         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
4132         obstack_finish, obstack_free): Enable as optimized macros also on clang.
4133         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
4135 2020-08-10  Bruno Haible  <bruno@clisp.org>
4137         Use many __attribute__s with clang.
4138         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
4139         on clang.
4140         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
4141         New macros.
4142         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
4143         on clang.
4144         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
4145         also on older clang versions.
4146         (__attribute__): Don't define to empty on clang.
4147         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
4148         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
4149         (__attribute_const__): Use __attribute__ __const__ also on clang.
4150         (__attribute_used__): Use __attribute__ __used__ also on clang.
4151         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
4152         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
4153         clang.
4154         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
4155         clang.
4156         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
4157         also on clang.
4158         (__nonnull): Use __attribute__ __nonnull__ also on clang.
4159         (__attribute_warn_unused_result__): Use __attribute__
4160         __warn_unused_result__ also on clang.
4161         (__always_inline): Use __attribute__ __always_inline__ also on clang.
4162         (__attribute_artificial__): Use __attribute__ __artificial__ also on
4163         clang >= 7.
4164         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
4165         clang versions.
4166         (_Noreturn): Don't redefine on clang >= 3.5.
4167         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
4168         also on clang.
4169         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
4170         on clang.
4171         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4172         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4173         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4174         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
4175         also on clang.
4176         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4177         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
4178         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
4179         also on clang.
4180         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
4181         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
4182         __attribute__ __noreturn__ also on clang.
4183         * lib/obstack.h (__attribute_noreturn__): Likewise.
4184         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
4185         clang.
4186         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
4187         always_inline also on clang.
4188         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
4189         clang.
4191 2020-08-10  Bruno Haible  <bruno@clisp.org>
4193         c-ldtoastr tests: Fix test failure.
4194         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4195         is longer than 'double'.
4197 2020-08-10  Bruno Haible  <bruno@clisp.org>
4199         Revert autoupdate's revert.
4200         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
4202 2020-08-09  Bruno Haible  <bruno@clisp.org>
4204         string: Fix build error in C++ mode with clang (regression from today).
4205         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
4206         parameters, one for GCC, one for clang.
4207         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
4208         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
4209         as return type.
4211 2020-08-09  Bruno Haible  <bruno@clisp.org>
4213         ftruncate: Use _chsize, not chsize.
4214         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
4215         * lib/ftruncate.c: Test HAVE__CHSIZE.
4216         (chsize_nothrow): Use _chsize, not chsize.
4218 2020-08-09  Bruno Haible  <bruno@clisp.org>
4220         Silence warnings from clang 10 with -Wimplicit-fallthrough.
4221         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
4222         clang >= 10.
4223         * lib/fnmatch.c (FALLTHROUGH): Likewise.
4224         * lib/fts.c (FALLTHROUGH): Likewise.
4225         * tests/macros.h (FALLTHROUGH): Likewise.
4226         * lib/regex_internal.h (FALLTHROUGH): Likewise.
4227         * config/srclist.txt: Mark it as needing sync with glibc.
4229 2020-08-09  Bruno Haible  <bruno@clisp.org>
4231         stdbool tests: Enable the stricter tests also on clang.
4232         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
4233         (e): Enable the address-to-bool conversion test also on clang.
4235 2020-08-09  Bruno Haible  <bruno@clisp.org>
4237         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
4238         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
4240 2020-08-09  Bruno Haible  <bruno@clisp.org>
4242         Use attribute __aligned__ with clang.
4243         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
4244         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
4246 2020-08-09  Bruno Haible  <bruno@clisp.org>
4248         Use __alignof__ with clang.
4249         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
4250         on clang.
4251         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
4252         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
4253         clang.
4254         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
4255         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
4256         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
4257         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
4259 2020-08-09  Bruno Haible  <bruno@clisp.org>
4261         ignore-value: Simplify on clang.
4262         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
4263         workaround.
4265 2020-08-09  Bruno Haible  <bruno@clisp.org>
4267         Use __typeof__ with clang.
4268         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
4269         "clang -std=gnu99".
4270         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
4271         * tests/test-stdint.c (verify_same_types): Enable the check also on
4272         clang.
4274 2020-08-09  Bruno Haible  <bruno@clisp.org>
4276         Add ability to emit user-defined warnings and errors with clang.
4277         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
4278         _GL_ATTRIBUTE_WARNING using an attribute for clang.
4279         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
4280         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
4281         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
4282         attribute for clang.
4284 2020-08-09  Bruno Haible  <bruno@clisp.org>
4286         intprops: Fix typo in comment.
4287         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
4289 2020-08-09  Bruno Haible  <bruno@clisp.org>
4291         Use __builtin_signbit* with clang.
4292         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
4293         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
4294         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4296         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4297         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
4298         not REPLACE_SIGNBIT_USING_GCC.
4300 2020-08-09  Bruno Haible  <bruno@clisp.org>
4302         Use __builtin_isnan with clang.
4303         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4304         not __builtin_isnanf. Also on clang.
4305         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
4306         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
4307         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
4308         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
4309         built-in.
4310         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4311         not __builtin_isnanl. Also on clang.
4312         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
4313         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
4314         * lib/math.in.h (__has_builtin): Remove macro.
4315         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
4316         __builtin_isnanf. Also on clang.
4317         (isnand, gl_isnan_d): With clang, use the GCC built-in.
4318         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
4319         __builtin_isnanl. Also on clang.
4320         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
4321         on clang.
4323 2020-08-09  Bruno Haible  <bruno@clisp.org>
4325         thread-optim: Fix logic error.
4326         Reported by Paul Eggert.
4327         * lib/thread-optim.h (IF_MT): Fix logic error.
4329 2020-08-08  Bruno Haible  <bruno@clisp.org>
4331         localename: Use module 'thread-optim'.
4332         * lib/localename.c: Include thread-optim.h.
4333         (struniq): Use IF_MT macro.
4334         * modules/localename (Depends-on): Add thread-optim.
4336         clean-temp: Use module 'thread-optim'.
4337         * lib/clean-temp.c: Include thread-optim.h.
4338         (register_temporary_file, unregister_temporary_file, create_temp_dir,
4339         register_temp_file, unregister_temp_file, register_temp_subdir,
4340         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
4341         close_temp, fclose_variant_temp): Use IF_MT macro.
4342         * modules/clean-temp (Depends-on): Add thread-optim.
4344         fatal-signal: Use module 'thread-optim'.
4345         * lib/fatal-signal.c: Include thread-optim.h.
4346         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
4347         macro.
4348         * modules/fatal-signal (Depends-on): Add thread-optim.
4350 2020-08-08  Bruno Haible  <bruno@clisp.org>
4352         New module 'thread-optim'.
4353         * lib/thread-optim.h: New file.
4354         * modules/thread-optim: New file.
4355         * doc/multithread.texi (Multithreading Optimizations): New section.
4357 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
4359         doc: more updates for glibc 2.32
4360         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
4361         * doc/posix-functions/fchmodat.texi: Update.
4363 2020-08-07  Bruno Haible  <bruno@clisp.org>
4365         doc: Update for glibc 2.32.
4366         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4367         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4368         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4369         * doc/glibc-functions/sigabbrev_np.texi: New file.
4370         * doc/glibc-functions/sigdescr_np.texi: New file.
4371         * doc/glibc-functions/strerrordesc_np.texi: New file.
4372         * doc/glibc-functions/strerrorname_np.texi: New file.
4373         * doc/gnulib.texi: Include them.
4374         (Glibc sys/single_threaded.h): New section.
4375         * doc/pastposix-functions/h_errno.texi: Update.
4376         * doc/posix-functions/*.texi: Likewise.
4377         * doc/glibc-functions/*.texi: Likewise.
4379 2020-08-07  Bruno Haible  <bruno@clisp.org>
4381         alloca: No need to compile alloca.c with clang.
4382         * lib/alloca.c: Skip all code with clang.
4384         Use __builtin_alloca with clang.
4385         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4387 2020-08-06  Bruno Haible  <bruno@clisp.org>
4389         Use __builtin_assume with clang.
4390         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4391         (assume): Use __builtin_assume when available.
4393 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4395         libgmp: add <gmp/gmp.h> support
4396         * m4/libgmp.m4 (gl_LIBGMP):
4397         * modules/libgmp (configure.ac, Makefile.am):
4398         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4399         ‘#include <gmp.h>’.
4401 2020-08-06  Bruno Haible  <bruno@clisp.org>
4403         Consider that clang defines __OPTIMIZE__ like GCC does.
4404         * lib/streq.h: Define the inline functions also on clang.
4405         * lib/c-strcaseeq.h: Likewise.
4406         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4407         the GCC workaround to clang.
4409 2020-08-06  Bruno Haible  <bruno@clisp.org>
4411         safe-alloc: Remove unused code.
4412         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4414 2020-08-06  Bruno Haible  <bruno@clisp.org>
4416         Use __builtin_expect with clang everywhere.
4417         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4418         also on clang.
4420 2020-08-05  Bruno Haible  <bruno@clisp.org>
4422         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4423         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4424         built-in also on clang.
4425         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4426         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4428 2020-08-05  Bruno Haible  <bruno@clisp.org>
4430         Use __builtin_clz{,l,ll} with clang, also on Windows.
4431         * lib/integer_length.c: With clang, use the GCC built-in, not
4432         <intrin.h>.
4433         * lib/integer_length_l.c: Likewise.
4434         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4435         also on clang.
4436         * lib/vasnprintf.c (divide): Likewise.
4438 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4440         Update srclist.txt as per recent glibc changes
4441         * config/srclist.txt: Uncomment lines to reflect recent merges
4442         from Gnulib to glibc.
4444 2020-08-03  Bruno Haible  <bruno@clisp.org>
4446         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4447         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4449 2020-08-03  Bruno Haible  <bruno@clisp.org>
4451         integer_length_ll: Optimize for MSVC in 64-bit mode.
4452         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4453         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4455 2020-08-03  Bruno Haible  <bruno@clisp.org>
4457         integer_length_ll: Optimize for MSVC in 32-bit mode.
4458         * lib/integer_length_l.c: Include <intrin.h>.
4459         (integer_length): Define as inline function, like in
4460         lib/integer_length.c.
4462 2020-08-03  Bruno Haible  <bruno@clisp.org>
4464         integer_length: Optimize for MSVC.
4465         * lib/integer_length.c: Include <intrin.h>.
4466         (integer_length): With MSVC, use the _BitScanReverse built-in.
4468 2020-08-03  Bruno Haible  <bruno@clisp.org>
4470         ffsll: Optimize for MSVC in 64-bit mode.
4471         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4472         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4473         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
4475 2020-08-03  Bruno Haible  <bruno@clisp.org>
4477         ffsll: Optimize for MSVC in 32-bit mode.
4478         * lib/ffsl.h: Include <intrin.h>.
4479         (ffs): Define as inline function, like in lib/ffs.c.
4481 2020-08-03  Bruno Haible  <bruno@clisp.org>
4483         ffs: Optimize for MSVC.
4484         * lib/ffs.c: Include <intrin.h>.
4485         (ffs): With MSVC, use the _BitScanForward built-in.
4487 2020-08-03  Bruno Haible  <bruno@clisp.org>
4489         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
4490         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
4491         variable.
4493 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
4495         fopen: Avoid undesired interactions with glibc headers.
4496         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
4497         __need_FILE, as the latter does not work with glibc.
4499 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4501         fcntl: document some F_SETLK errno variations
4502         * doc/posix-functions/fcntl.texi (fcntl): Document
4503         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
4505 2020-08-02  Bruno Haible  <bruno@clisp.org>
4507         oset: Add an 'iterator_atleast' operation.
4508         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
4509         extracted from gl_array_search_atleast.
4510         (gl_array_search_atleast): Use it.
4511         (gl_array_iterator_atleast): New function.
4512         (gl_array_oset_implementation): Use it.
4513         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
4514         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
4515         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
4516         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
4517         member.
4518         (gl_oset_iterator_atleast): New function.
4519         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
4520         (gl_OSet::iterator): Add another auxiliary constructor.
4521         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
4522         New functions.
4523         (main): Test also gl_oset_iterator_atleast.
4524         * tests/test-avltree_oset.c (is_at_least): New function.
4525         (main): Test also gl_oset_iterator_atleast.
4526         * tests/test-rbtree_oset.c (is_at_least): New function.
4527         (main): Test also gl_oset_iterator_atleast.
4528         * tests/test-oset-c++.cc (is_at_most): New function.
4529         (main): Test also gl_OSet::begin_atleast.
4531 2020-08-02  Bruno Haible  <bruno@clisp.org>
4533         oset-c++, omap-c++: Remove restriction for search_atleast method.
4534         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
4535         a different type than the element.
4536         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
4537         a different type than the key.
4539 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4541         gnumakefile: say ‘$(MAKE)’ not ‘make’
4542         * top/GNUmakefile (abort-due-to-no-makefile):
4543         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
4544         This change is backported from Autoconf.
4546 2020-08-01  Bruno Haible  <bruno@clisp.org>
4548         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4549         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
4550         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4551         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4552         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4553         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
4555 2020-08-01  Bruno Haible  <bruno@clisp.org>
4557         libtextstyle-optional: Update tests.
4558         * modules/libtextstyle-optional-tests (configure.ac): Invoke
4559         gl_LIBTEXTSTYLE_OPTIONAL.
4561 2020-08-01  Bruno Haible  <bruno@clisp.org>
4563         parse-datetime: Fix wrong #line statements.
4564         * modules/parse-datetime (Makefile.am): Correct #line statements also in
4565         parse-datetime-gen.h.
4567 2020-08-01  Bruno Haible  <bruno@clisp.org>
4569         libtextstyle[-optional]: Allow requesting a minimum version.
4570         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
4571         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
4572         gl_LIBTEXTSTYLE_SEARCH): New macros.
4573         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
4574         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
4575         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
4576         * modules/libtextstyle-optional (configure.ac): Don't invoke
4577         gl_LIBTEXTSTYLE_OPTIONAL.
4578         * NEWS: Mention the changes.
4580 2020-07-31  Bruno Haible  <bruno@clisp.org>
4582         _GL_CMP: Improve documentation.
4583         Reported by Paul Eggert in
4584         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
4585         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
4586         passed.
4588 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4590         largefile: sync with Autoconf master
4591         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
4592         Avoid undefined behavior on platforms where off_t is 32 bits.
4593         See: https://bugs.debian.org/742780
4595         alloca: sync with Autoconf master
4596         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4597         Do not define if Autoconf 2.70 or later, since Autoconf master
4598         now matches us.
4600 2020-07-30  Bruno Haible  <bruno@clisp.org>
4602         unicodeio: Add comment.
4603         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
4604         different iconv behaviours.
4606 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4608         Work around some Oracle Studio attribute bugs
4609         These were discovered when building bleeding-edge Emacs with
4610         Oracle Studio.
4611         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4612         Port to Oracle Studio 12.6, which mishandles __attribute__
4613         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4614         __has_attribute says they work.
4616 2020-07-29  Bruno Haible  <bruno@clisp.org>
4618         unicodeio: Fix wrong result on musl libc.
4619         Reported by A. Wilcox <awilfox@adelielinux.org> in
4620         <https://www.openwall.com/lists/musl/2020/07/29/2>.
4621         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
4622         on musl libc.
4623         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
4624         * modules/unicodeio (Files): Add m4/musl.m4.
4626 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4628         fsusage, regex, stat-size: remove Cray support
4629         As near as I can make out this is actually support for UNICOS/mp,
4630         last released 2005, and Cray hasn’t supported that for years.
4631         * config/srclist.txt: Comment out regex.h for now.
4632         * lib/fsusage.c (get_fs_usage):
4633         * lib/regex.h (re_comp, re_exec):
4634         * lib/stat-size.h (ST_NBLOCKSIZE):
4635         Don’t worry about _CRAY.
4637 2020-07-29  Bruno Haible  <bruno@clisp.org>
4639         parse-datetime: Fix compilation error with bison 3.7.
4640         * modules/parse-datetime (Makefile.am): Create a generated header file
4641         parse-datetime-gen.h in the source directory. Correct #include and
4642         #line statements during preprocessing.
4644 2020-07-28  Bruno Haible  <bruno@clisp.org>
4646         fopen-gnu: Create files correctly (regression from 2020-05-24).
4647         * lib/fopen.c (rpl_open): Pass a third argument to open().
4649 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4651         xalloc-die: don’t depend on xalloc
4652         This removes a circular dependency, as xalloc depends on xalloc-die.
4653         * modules/xalloc-die (Files): Add lib/xalloc.h.
4654         (Depends-on): Remove xalloc.
4655         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
4657         dfa-tests: port to MSVC
4658         Problem reported by Gisle Vanem in:
4659         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
4660         Also, remove an unnecessary dependency on getprogname.
4661         * modules/dfa-tests (Depends-on): Remove getprogname.
4662         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
4663         (exit_status): New static var.
4664         (dfawarn): Set it instead of exiting.
4665         Do not declare as _Noreturn, to pacify MSVC.
4666         (main): Return exit_status.
4668 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4670         argz: pacify MSVC
4671         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
4672         Problem reported by Gisle Vanem.
4674         libgmp: remove dependency on havelib
4675         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
4676         use the more-traditional AC_SEARCH_LIBS approach.
4677         This should work better with GNU Emacs configuration,
4678         which uses pkg-config instead of a havelib-style approach.
4679         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
4680         * modules/libgmp (Depends-on): Remove havelib.
4682         libgmp: remove HAVE_GMP, LIB_GMP
4683         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4684         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4686 2020-07-26  Bruno Haible  <bruno@clisp.org>
4688         inttypes: Remove support for AIX 4.
4689         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4690         * m4/inttypes-pri.m4: Remove file.
4691         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4692         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4693         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4694         PRI_MACROS_BROKEN.
4695         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4697 2020-07-26  Bruno Haible  <bruno@clisp.org>
4699         gettimeofday: Remove workaround for Mac OS X 10.0.
4700         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4701         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4702         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4703         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4704         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4705         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4706         * modules/localtime-buffer: Remove file.
4707         * lib/localtime-buffer.h: Remove file.
4708         * lib/localtime-buffer.c: Remove file.
4709         * m4/localtime-buffer.m4: Remove file.
4710         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4712 2020-07-26  Bruno Haible  <bruno@clisp.org>
4714         tzset: Remove workaround for Solaris 2.6.
4715         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4716         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4717         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4718         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4719         * lib/localtime-buffer.c: Likewise.
4720         * lib/localtime.c: Likewise.
4721         * lib/tzset.c: Don't include localtime-buffer.h.
4722         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4723         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4724         is 1.
4725         * modules/tzset (Depends-on): Remove localtime-buffer.
4727 2020-07-26  Bruno Haible  <bruno@clisp.org>
4729         expl: Simplify autoconf test.
4730         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4731         with small values..." test into the "checking whether expl works..."
4732         test.
4734 2020-07-26  Bruno Haible  <bruno@clisp.org>
4736         alloca: Remove Cray-2 and Cray Y-MP support.
4737         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4738         Enable also on Autoconf >= 2.69.
4739         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4740         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4741         i00afunc): Remove.
4743 2020-07-25  Bruno Haible  <bruno@clisp.org>
4745         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4746         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4748 2020-07-25  Bruno Haible  <bruno@clisp.org>
4750         sigprocmask: Small autoconf macro improvement.
4751         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4752         user to override the value of gl_cv_func_sigprocmask.
4753         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4755 2020-07-25  Bruno Haible  <bruno@clisp.org>
4757         Small autoconf macro improvements.
4758         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4759         override the value of gl_cv_func_working_mktime.
4760         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4761         compiler produces multi-arch binaries..." in the configure output.
4762         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4763         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4765 2020-07-25  Bruno Haible  <bruno@clisp.org>
4767         doc: Update for NetBSD 7.1, 8.0, 9.0.
4768         * doc/*/*.texi: Update.
4769         * m4/exp2l.m4: Update comments.
4770         * m4/expl.m4: Likewise.
4771         * m4/ilogb.m4: Likewise.
4772         * m4/ilogbf.m4: Likewise.
4773         * m4/log10l.m4: Likewise.
4774         * m4/logl.m4: Likewise.
4775         * m4/printf.m4: Likewise.
4776         * m4/rintl.m4: Likewise.
4777         * m4/wcwidth.m4: Likewise.
4779 2020-07-24  Bruno Haible  <bruno@clisp.org>
4781         doc: Update for Mac OS X 10.13.
4782         * doc/*/*.texi: Update.
4783         * m4/expm1l.m4: Update comments.
4784         * m4/getgroups.m4: Likewise.
4785         * m4/getlogin_r.m4: Likewise.
4786         * m4/linkat.m4: Likewise.
4787         * m4/printf.m4: Likewise.
4789 2020-07-24  Bruno Haible  <bruno@clisp.org>
4791         doc: Update for Cygwin 2.9.0.
4792         * doc/*/*.texi: Update.
4794 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4796         parse-datetime: modernize doc
4797         * doc/parse-datetime.texi: Use more-current examples.
4798         Don’t lead with 32-bit time_t, as it’s on its way out.
4799         Capitalize “Epoch” to be consistent with POSIX.
4801         timespec: remove dependence on ‘verify’
4802         * lib/timespec.h: Do not include verify.h; no longer needed.
4803         * modules/timespec (Depends-on): Remove ‘verify’.
4805         Optimize a few more three-valued comparisons
4806         * lib/timespec.h (timespec_cmp, timespec_sign):
4807         * lib/utimecmp.c (utimecmpat):
4808         Avoid conditional branches by using _GL_CMP.
4810         Fix _GL_CMP parenthesization typo
4811         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4813 2020-07-24  Bruno Haible  <bruno@clisp.org>
4815         dfa: Revert breaking gawk.
4816         Reported by Arnold Robbins <arnold@skeeve.com>.
4817         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4819 2020-07-23  Bruno Haible  <bruno@clisp.org>
4821         Optimize three-valued comparison between integers.
4822         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4823         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4824         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4825         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4826         * lib/dfa.c (compare): Likewise.
4827         * lib/fts.c (fts_compare_ino): Likewise.
4828         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4829         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4830         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4831         * lib/memcasecmp.c (memcasecmp): Likewise.
4832         * lib/memcmp2.c (memcmp2): Likewise.
4833         * lib/savedir.c (direntry_cmp_inode): Likewise.
4834         * lib/strcasecmp.c (strcasecmp): Likewise.
4835         * lib/strncasecmp.c (strncasecmp): Likewise.
4836         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4838 2020-07-23  Bruno Haible  <bruno@clisp.org>
4840         lchmod: Use /proc on Cygwin.
4841         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4843 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4845         fchmodat: Use /proc on Cygwin
4846         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4848 2020-07-21  Bruno Haible  <bruno@clisp.org>
4850         aligned-malloc: Optionally use aligned_alloc.
4851         * lib/aligned-malloc.h: Verify the alignment.
4852         (aligned_malloc): Use aligned_alloc as an alternative.
4853         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4854         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4855         'aligned-malloc' and 'pagealign_alloc'.
4857 2020-07-21  Bruno Haible  <bruno@clisp.org>
4859         aligned-malloc: Add tests.
4860         * tests/test-aligned-malloc.c: New file.
4861         * modules/aligned-malloc-tests: New file.
4863         aligned-malloc: New module.
4864         * lib/aligned-malloc.h: New file.
4865         * m4/malloc-align.m4: New file.
4866         * modules/aligned-malloc: New file.
4867         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4868         * doc/glibc-functions/memalign.texi: Likewise.
4870 2020-07-21  Bruno Haible  <bruno@clisp.org>
4872         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4873         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4874         sure PRIPTR_PREFIX is defined to "ll", not "l".
4876 2020-07-21  Bruno Haible  <bruno@clisp.org>
4878         printf-posix: Make an autoconf test more future-proof.
4879         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4880         using uintptr_t.
4882 2020-07-20  Bruno Haible  <bruno@clisp.org>
4884         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4885         * modules/list (License): Change to LGPLv2+.
4886         * modules/array-list (License): Likewise.
4887         * modules/carray-list (License): Likewise.
4888         * modules/linked-list (License): Likewise.
4889         * modules/avltree-list (License): Likewise.
4890         * modules/rbtree-list (License): Likewise.
4891         * modules/oset (License): Likewise.
4892         * modules/array-oset (License): Likewise.
4893         * modules/avltree-oset (License): Likewise.
4894         * modules/rbtree-oset (License): Likewise.
4895         * modules/omap (License): Likewise.
4896         * modules/array-omap (License): Likewise.
4897         * modules/avltree-omap (License): Likewise.
4898         * modules/rbtree-omap (License): Likewise.
4900 2020-07-20  Bruno Haible  <bruno@clisp.org>
4902         oset: Add an 'update' operation.
4903         * lib/gl_array_oset.c (gl_array_update): New function.
4904         (gl_array_oset_implementation): Use it.
4905         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4906         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4907         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4908         extracted from gl_tree_nx_add_before.
4909         (gl_tree_nx_add_before): Invoke it.
4910         (gl_tree_add_node_after): New function, extracted from
4911         gl_tree_nx_add_after.
4912         (gl_tree_nx_add_after): Invoke it.
4913         (gl_tree_remove_node_no_free): New function, extracted from
4914         gl_tree_remove_node.
4915         (gl_tree_remove_node): Invoke it.
4916         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4917         extracted from gl_tree_nx_add_before.
4918         (gl_tree_nx_add_before): Invoke it.
4919         (gl_tree_add_node_after): New function, extracted from
4920         gl_tree_nx_add_after.
4921         (gl_tree_nx_add_after): Invoke it.
4922         (gl_tree_remove_node_no_free): New function, extracted from
4923         gl_tree_remove_node.
4924         (gl_tree_remove_node): Invoke it.
4925         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4926         from gl_tree_iterator_next.
4927         (gl_tree_iterator_next): Invoke it.
4928         (gl_tree_prev_node, gl_tree_update): New functions.
4929         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4930         (gl_avltree_oset_implementation): Use gl_tree_update.
4931         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4932         (gl_rbtree_oset_implementation): Use gl_tree_update.
4933         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4934         (gl_oset_update): New function.
4935         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4936         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4937         * modules/rbtree-oset (configure.ac): Likewise.
4938         * tests/test-oset-update.h: New file.
4939         * tests/test-array_oset.c: Include test-oset-update.h.
4940         (main): Invoke test_update.
4941         * tests/test-avltree_oset.c: Likewise.
4942         * tests/test-rbtree_oset.c: Likewise.
4943         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4944         * modules/avltree-oset-tests (Files): Likewise.
4945         * modules/rbtree-oset-tests (Files): Likewise.
4946         * tests/test-oset-c++.cc (action): New function.
4947         (main): Test the 'update' member function.
4949 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4951         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4952         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4953         shell if, so that the argument to AC_CHECK_HEADERS is
4954         a simple string that does not require shell evaluation.
4955         This fixes a warning generated by Autoconf 2.69b.
4957 2020-07-12  Bruno Haible  <bruno@clisp.org>
4959         libgmp: Avoid warning when --without-libgmp is used.
4960         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4961         GCC >= 8, not for GCC >= 4.6.
4963 2020-07-12  Bruno Haible  <bruno@clisp.org>
4965         libgmp: Link to the correct shared library.
4966         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4967         * modules/libgmp (Depends-on): Add havelib.
4968         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4969         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4971 2020-07-12  Bruno Haible  <bruno@clisp.org>
4973         libgmp tests: Add some safety checks.
4974         * modules/libgmp-tests (Depends-on): Add verify.
4975         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4976         (main): Verify that gmp.h and libgmp versions match.
4978 2020-07-10  Bruno Haible  <bruno@clisp.org>
4980         unicodeio: Fix wrong result on NetBSD.
4981         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4982         characters also on NetBSD.
4984 2020-07-09  Bruno Haible  <bruno@clisp.org>
4986         unicodeio: Fix wrong result on Solaris 11.
4987         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4988         via Akim Demaille <akim.demaille@gmail.com> in
4989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4990         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4991         characters on Solaris.
4992         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4993         UTF-8 output or the specified fallback.
4995 2020-07-08  Bruno Haible  <bruno@clisp.org>
4997         unicodeio: Add tests.
4998         * tests/test-unicodeio.c: New file.
4999         * tests/test-unicodeio1.sh: New file.
5000         * tests/test-unicodeio2.sh: New file.
5001         * tests/test-unicodeio3.sh: New file.
5002         * modules/unicodeio-tests: New file.
5004 2020-07-08  Bruno Haible  <bruno@clisp.org>
5006         unicodeio: Document link requirements.
5007         * modules/unicodeio (Link): New section.
5009 2020-07-07  Bruno Haible  <bruno@clisp.org>
5011         doc: Remove support for some very old platforms.
5012         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
5013         * doc/posix-functions/memcpy.texi: Likewise.
5014         * doc/posix-functions/memmove.texi: Likewise.
5015         * doc/posix-functions/memset.texi: Likewise.
5016         * doc/posix-functions/getcwd.texi: Likewise.
5018         memchr: Remove support for some very old platforms.
5019         * m4/memchr-obsolete.m4: Remove file.
5020         * modules/memchr-obsolete: Remove file.
5021         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
5022         absent. Don't define HAVE_MEMCHR.
5023         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
5024         * modules/memchr (Depends-on): Remove memchr-obsolete.
5025         (configure.ac): Assume HAVE_MEMCHR is 1.
5026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5027         HAVE_MEMCHR.
5028         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
5029         * doc/posix-functions/memchr.texi: Don't mention module
5030         'memchr-obsolete'.
5031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5032         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5033         * modules/strnlen (Depends-on): Remove memchr-obsolete.
5035         dup2: Remove support for some very old platforms.
5036         * m4/dup2-obsolete.m4: Remove file.
5037         * modules/dup2-obsolete: Remove file.
5038         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
5039         Don't define HAVE_DUP2.
5040         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
5041         * lib/dup2.c: Likewise.
5042         * modules/dup2 (Depends-on, configure.ac): Likewise.
5043         (Depends-on): Remove dup2-obsolete.
5044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
5045         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
5046         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
5048 2020-07-07  Bruno Haible  <bruno@clisp.org>
5050         canonicalize: Trim module dependencies.
5051         * lib/hash-triple.h: Group declarations.
5052         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
5053         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
5054         (STREQ): Remove macro.
5055         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
5056         * modules/hash-triple-simple: New file, based on modules/hash-triple.
5057         * modules/hash-triple (Files): Remove lib/hash-triple.h.
5058         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
5059         * modules/canonicalize (Depends-on): Remove hash-triple. Add
5060         hash-triple-simple.
5061         * modules/file-set (Depends-on): Likewise.
5063 2020-07-07  Bruno Haible  <bruno@clisp.org>
5065         Clarify dependencies to double-slash-root.
5066         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
5067         (Depends-on): Add double-slash-root.
5068         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
5069         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
5071 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5073         libgmp: new module
5074         The idea is to let programs simply include <gmp.h>, and
5075         so long as they live within the mini-gmp subset they need
5076         not worry about whether the GMP libraries are installed.
5077         * MODULES.html.sh: Mention it.
5078         * config/srclist.txt: Mention files copied from GMP source.
5079         * config/srclistvars.sh (GMP): New var.
5080         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
5081         * modules/libgmp-tests, tests/test-libgmp.c: New files.
5082         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
5084 2020-07-05  Bruno Haible  <bruno@clisp.org>
5086         mkancesdirs: Trim module dependencies.
5087         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
5088         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
5090 2020-07-05  Bruno Haible  <bruno@clisp.org>
5092         getprogname: Trim module dependencies.
5093         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
5094         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
5095         basename-lgpl.
5097 2020-07-05  Bruno Haible  <bruno@clisp.org>
5099         filenamecat-lgpl: Trim module dependencies.
5100         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
5101         dirname.h.
5102         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
5103         basename-lgpl, filename.
5105 2020-07-05  Bruno Haible  <bruno@clisp.org>
5107         backupfile, backup-rename: Trim module dependencies.
5108         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
5109         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
5110         basename-lgpl.
5111         * modules/backup-rename (Depends-on): Likewise.
5113 2020-07-05  Bruno Haible  <bruno@clisp.org>
5115         argp: Trim module dependencies.
5116         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
5117         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
5119 2020-07-05  Bruno Haible  <bruno@clisp.org>
5121         basename-lgpl: New module.
5122         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
5123         lib/basename-lgpl.c.
5124         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
5125         <stdbool.h>, filename.h.
5126         (last_component): Rename a local variable.
5127         * lib/dirname.h: Include basename-lgpl.h.
5128         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
5129         (last_component, base_len): Remove declarations.
5130         * modules/basename-lgpl: New file.
5131         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
5132         (Depends-on): Add basename-lgpl. Remove double-slash-root.
5133         (Makefile.am): Don't compile basename-lgpl.c.
5134         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
5135         not 'dirname'.
5137 2020-07-05  Bruno Haible  <bruno@clisp.org>
5139         dirname, dirname-lgpl: Simplify.
5140         * m4/dirname.m4: Remove file.
5141         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
5142         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
5143         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
5145 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
5147         tests: avoid shadowing warning
5148         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
5150 2020-07-05  Bruno Haible  <bruno@clisp.org>
5152         supersede: Add tests.
5153         * tests/test-supersede.c: New file.
5154         * tests/test-supersede-open.h: New file.
5155         * tests/test-supersede-fopen.h: New file.
5156         * modules/supersede-tests: New file.
5158         supersede: New module.
5159         * lib/supersede.h: New file.
5160         * lib/supersede.c: New file.
5161         * m4/supersede.m4: New file.
5162         * modules/supersede: New file.
5164 2020-07-05  Bruno Haible  <bruno@clisp.org>
5166         Add some copyright headers.
5167         * lib/dev-ino.h: Add copyright header.
5168         * lib/di-set.h: Likewise.
5169         * lib/fchown-stub.c: Likewise.
5170         * lib/file-set.h: Likewise.
5171         * lib/hash-triple.h: Likewise.
5172         * lib/idcache.h: Likewise.
5173         * lib/ino-map.h: Likewise.
5174         * lib/mkancesdirs.h: Likewise.
5175         * lib/scratch_buffer.h: Likewise.
5176         * lib/se-context.in.h: Likewise.
5177         * lib/stdopen.h: Likewise.
5178         * lib/userspec.h: Likewise.
5180 2020-07-04  Bruno Haible  <bruno@clisp.org>
5182         getrandom: Relicense under LGPLv2+.
5183         Paul Eggert's approval is in
5184         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
5185         * modules/getrandom (License): Change to LGPLv2+.
5187 2020-07-04  Bruno Haible  <bruno@clisp.org>
5189         getumask: Add tests.
5190         * tests/test-getumask.c: New file.
5191         * modules/getumask-tests: New file.
5193         getumask: New module.
5194         * lib/sys_stat.in.h (getumask): New declaration.
5195         * lib/getumask.c: New file.
5196         * m4/getumask.m4: New file.
5197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
5198         declared.
5199         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
5200         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
5201         HAVE_GETUMASK.
5202         * modules/getumask: New file.
5203         * tests/test-sys_stat-c++.cc (getumask): Check signature.
5204         * doc/glibc-functions/getumask.texi: New file.
5205         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
5207 2020-07-04  Bruno Haible  <bruno@clisp.org>
5209         clean-temp: Add support for temporary files with given mode.
5210         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
5211         * lib/clean-temp.c (struct try_create_file_params): New type.
5212         (try_create_file): New function.
5213         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
5214         gen_tempname.
5216 2020-07-04  Bruno Haible  <bruno@clisp.org>
5218         clean-temp: Document limitations.
5219         * lib/clean-temp.h: Document limitations.
5221 2020-07-04  Bruno Haible  <bruno@clisp.org>
5223         clean-temp: Add support for temporary files with unpredictable names.
5224         * lib/clean-temp.h (gen_register_open_temp): New declaration.
5225         * lib/clean-temp.c: Include tempname.h.
5226         (gen_register_open_temp): New function.
5227         * modules/tempname (configure.ac): Define a module indicator.
5229 2020-07-04  Bruno Haible  <bruno@clisp.org>
5231         clean-temp: Add support for temporary files anywhere in the file system.
5232         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
5233         cleanup_temporary_file): New declarations.
5234         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
5235         variables.
5236         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
5237         (dir_cleanup_list): Renamed from cleanup_list.
5238         (cleanup_action): Process the file_cleanup_list as well.
5239         (do_init_clean_temp): New function.
5240         (clean_temp_once): New variable.
5241         (init_clean_temp): New function.
5242         (create_temp_dir): Invoke it.
5243         (register_temporary_file, unregister_temporary_file,
5244         cleanup_temporary_file): New functions.
5245         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
5246         argument.
5248 2020-07-04  Bruno Haible  <bruno@clisp.org>
5250         clean-temp: Improve comments.
5251         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5252         fwriteerror_temp, close_stream_temp): Clarify intended use.
5253         * lib/clean-temp.c: Likewise.
5255 2020-07-04  Bruno Haible  <bruno@clisp.org>
5257         clean-temp: Make multithread-safe, part 2.
5258         * lib/fatal-signal.h: Include <signal.h>.
5259         (get_fatal_signal_set): New declaration.
5260         * lib/fatal-signal.c (get_fatal_signal_set): New function.
5261         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
5262         (struct closeable_fd): New type.
5263         (fatal_signal_set): New variable.
5264         (init_fatal_signal_set): New function.
5265         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
5266         (cleanup_action): Invoke asyncsafe_close instead of close.
5267         (create_temp_dir): Invoke init_fatal_signal_set.
5268         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
5269         element.
5270         (unregister_fd): Remove function.
5271         (close_temp): Cleanup descriptors list on the fly. Invoke
5272         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
5273         (fclose_variant_temp): New function.
5274         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
5275         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
5277 2020-07-04  Bruno Haible  <bruno@clisp.org>
5279         clean-temp: Make multithread-safe, part 1.
5280         * lib/clean-temp.c: Include glthread/lock.h.
5281         (cleanup_list_lock): New variable.
5282         (register_temp_file, unregister_temp_file, register_temp_subdir,
5283         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
5284         (create_temp_dir): Likewise. Don't free the old array.
5285         (descriptors_lock): New variable.
5286         (register_fd, unregister_fd): Use it.
5287         * modules/clean-temp (Depends-on): Add lock.
5289 2020-07-04  Bruno Haible  <bruno@clisp.org>
5291         fatal-signal: Make multithread-safe.
5292         * lib/fatal-signal.c (init_fatal_signals): Add comment.
5293         (do_init_fatal_signal_set): New function, extracted from
5294         init_fatal_signal_set.
5295         (fatal_signal_set_once): New variable.
5296         (init_fatal_signal_set): Use gl_once.
5298 2020-07-03  Bruno Haible  <bruno@clisp.org>
5300         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
5301         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
5302         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
5303         <bcrypt.h>.
5305 2020-07-03  Bruno Haible  <bruno@clisp.org>
5307         dfa tests: Follow common file naming conventions.
5308         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
5309         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
5310         * tests/test-dfa-invalid-char-class.sh: Renamed from
5311         tests/dfa-invalid-char-class.sh. Update.
5312         * modules/dfa-tests (Files, Makefile.am): Update.
5314 2020-07-03  Bruno Haible  <bruno@clisp.org>
5316         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
5317         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
5318         the GCC extended asm syntax also for the Sun Studio 12 compilers.
5320 2020-07-03  Bruno Haible  <bruno@clisp.org>
5322         asyncsafe-spin: Reduce code duplication.
5323         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
5324         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
5325         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
5327 2020-07-03  Bruno Haible  <bruno@clisp.org>
5329         lchmod: Simplify after 2020-02-22 change.
5330         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
5332 2020-07-03  Bruno Haible  <bruno@clisp.org>
5334         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
5335         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
5337 2020-07-03  Bruno Haible  <bruno@clisp.org>
5339         dfa: Make sure the compiler does not barf on 'inline'.
5340         * modules/dfa (configure.ac): Require AC_C_INLINE.
5342 2020-07-03  Bruno Haible  <bruno@clisp.org>
5344         bitset: Make sure the compiler does not barf on 'inline'.
5345         * modules/bitset (configure.ac): New section.
5347 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
5349         manywarnings: improve port to GCC 10.1
5350         * build-aux/gcc-warning.spec: Also list warnings that are default
5351         or are enabled by already-given flags.  This lets us speed up
5352         checking for attributes, and makes the generated compilation
5353         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
5354         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
5355         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
5356         to shell variables that may have long values.
5357         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
5358         consequences of other flags, to speed up checking and
5359         shorten commands.
5361         tests: pacify gcc -fanalyzer on zerosize_ptr
5362         * tests/test-memcasecmp.c (main):
5363         * tests/test-memchr.c (main):
5364         * tests/test-memchr2.c (main):
5365         * tests/test-memcmp.c (main):
5366         * tests/test-memmem.c (main):
5367         * tests/test-memrchr.c (main):
5368         * tests/unistr/test-chr.h (main):
5369         * tests/unistr/test-cmp.h (test_cmp):
5370         Check whether zerosize_ptr returns NULL before using it.
5371         This pacifies GCC 10.1’s new fanalyzer option, and matches
5372         other uses of zerosize_ptr.
5374 2020-07-01  Bruno Haible  <bruno@clisp.org>
5376         asyncsafe-spin: Add tests.
5377         * tests/test-asyncsafe-spin1.c: New file.
5378         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5379         tests/test-pthread-spin.c.
5380         * modules/asyncsafe-spin-tests: New file.
5382 2020-07-01  Bruno Haible  <bruno@clisp.org>
5384         asyncsafe-spin: New module.
5385         * lib/asyncsafe-spin.h: New file.
5386         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5387         * modules/asyncsafe-spin: New file.
5389 2020-07-01  Bruno Haible  <bruno@clisp.org>
5391         windows-spin: Fix race condition on multiprocessor systems.
5392         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5394 2020-07-01  Bruno Haible  <bruno@clisp.org>
5396         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5397         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5398         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5399         an implementation based on other GCC built-ins.
5401 2020-07-01  Bruno Haible  <bruno@clisp.org>
5403         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5404         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5405         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5406         lock byte.
5408 2020-07-01  Bruno Haible  <bruno@clisp.org>
5410         pthread-spin: Add error checking.
5411         * lib/pthread-spin.c: Include <stdbool.h>.
5412         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5413         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5414         the unlocks.
5415         * modules/pthread-spin (Depends-on): Add stdbool.
5417 2020-07-01  Bruno Haible  <bruno@clisp.org>
5419         pthread-spin: Add tests.
5420         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5421         * modules/pthread-spin-tests: New file.
5423 2020-07-01  Bruno Haible  <bruno@clisp.org>
5425         tests: Reduce code duplication.
5426         * tests/atomic-int-posix.h: New file, extracted from
5427         tests/test-pthread-mutex.c.
5428         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5429         * tests/test-pthread-rwlock.c: Likewise.
5430         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5431         * modules/pthread-rwlock-tests (Files): Likewise.
5433 2020-07-01  Bruno Haible  <bruno@clisp.org>
5435         tests: Refactor.
5436         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5437         * tests/test-mtx.c: Include it. Remove the corresponding code.
5438         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5440 2020-07-01  Bruno Haible  <bruno@clisp.org>
5442         tests: Refactor.
5443         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5444         * tests/test-lock.c: Include it. Remove the corresponding code.
5445         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5447 2020-06-29  Bruno Haible  <bruno@clisp.org>
5449         sys_socket: Don't define socklen_t if it is already defined on mingw.
5450         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5451         <https://savannah.gnu.org/bugs/?57725>,
5452         by Rahul Das <bokul_4u@yahoo.com> in
5453         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5454         and by Eli Zaretskii <eliz@gnu.org> in
5455         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5456         * lib/sys_socket.in.h (socklen_t): Remove definition.
5458 2020-06-29  Bruno Haible  <bruno@clisp.org>
5460         alloca-opt: Fix warning on mingw.
5461         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5462         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5463         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5464         whether alloca is defined.
5466 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5468         getrandom: do not depend on ‘open’ on mingw
5469         Similarly for at-internal, getloadavg.  These modules do not call
5470         the ‘open’ function when they are compiled on mingw.  On mingw,
5471         this avoids having to compile open.c when building Emacs, which
5472         does its own thing with ‘open’.
5473         * modules/at-internal, modules/getloadavg, modules/getrandom:
5474         (Depends-on): Don’t depend on ‘open’ on mingw.
5475         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
5476         * modules/getloadavg (Depends-on):
5477         Depend on intprops, open, stdbool, stdlib only if compiling
5478         getloadavg.c.
5480 2020-06-28  Bruno Haible  <bruno@clisp.org>
5482         doc: Add a note about sigprocmask vs. pthread_sigmask.
5483         * doc/posix-functions/sigprocmask.texi: Add note.
5485 2020-06-28  Bruno Haible  <bruno@clisp.org>
5487         getrandom: Fix compilation errors on older versions of mingw.
5488         Reported by Eli Zaretskii <eliz@gnu.org> in
5489         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
5490         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
5491         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
5492         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
5493         BCryptGenRandom ourselves.
5495 2020-06-28  Bruno Haible  <bruno@clisp.org>
5497         clean-temp: Fix wrong errno in error message.
5498         * lib/clean-temp.c (create_temp_dir): Save errno around
5499         unblock_fatal_signals call.
5501 2020-06-27  Bruno Haible  <bruno@clisp.org>
5503         fatal-signal: Make multithread-safe.
5504         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
5506 2020-06-27  Bruno Haible  <bruno@clisp.org>
5508         clean-temp: Don't force deletion of temporary files on native Windows.
5509         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
5510         argument.
5511         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
5512         * NEWS: Mention the change.
5513         * lib/javacomp.c (write_temp_file): Update.
5515 2020-06-27  Bruno Haible  <bruno@clisp.org>
5517         fatal-signal: Make multithread-safe.
5518         * lib/fatal-signal.c: Include glthread/lock.h.
5519         (at_fatal_signal_lock): New variable.
5520         (at_fatal_signal): Use it.
5521         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
5522         (block_fatal_signals, unblock_fatal_signals): Use them.
5523         * modules/fatal-signal (Depends-on): Add lock.
5525 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
5527         getloadavg: don’t depend on fopen-gnu
5528         This is for Emacs, which does not need fopen-gnu for anything else,
5529         and which would need it only on a NetBSD platform where getloadavg
5530         does not work (does that even happen?).
5531         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
5532         * modules/getloadavg (Depends-on): Remove fopen-gnu.
5534         * tests/test-getloadavg.c (main): Fix typo.
5536 2020-06-27  Bruno Haible  <bruno@clisp.org>
5538         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
5539         * modules/tempname (Link): New section.
5540         * modules/mkdtemp (Link): Likewise.
5541         * modules/clean-temp (Link): Likewise.
5542         * modules/mkstemp (Link): Likewise.
5543         * modules/stdlib-safer (Link): Likewise.
5544         * modules/mkstemps (Link): Likewise.
5545         * modules/mkostemp (Link): Likewise.
5546         * modules/mkostemps (Link): Likewise.
5547         * modules/tmpfile (Link): Likewise.
5548         * modules/tmpfile-safer (Link): Likewise.
5549         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
5550         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
5551         $(LIB_GETRANDOM).
5552         * NEWS: Mention the changes.
5554 2020-06-27  Bruno Haible  <bruno@clisp.org>
5556         fopen-gnu: Simplify code.
5557         * lib/fopen.c: Include <stdbool.h>.
5558         (rpl_fopen): Use a single variable open_flags instead of
5559         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
5560         * modules/fopen (Depends-on): Add stdbool.
5562 2020-06-26  Bruno Haible  <bruno@clisp.org>
5564         canonicalize: Improve documentation.
5565         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
5566         return convention.
5568 2020-06-26  Bruno Haible  <bruno@clisp.org>
5570         xgetcwd: Improve documentation.
5571         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
5573 2020-06-26  Bruno Haible  <bruno@clisp.org>
5575         getcwd: Improve documentation.
5576         * lib/getcwd.c (__getcwd): Document the failure return convention.
5578 2020-06-26  Bruno Haible  <bruno@clisp.org>
5580         fchdir: Improve documentation.
5581         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
5582         convention.
5584 2020-06-26  Bruno Haible  <bruno@clisp.org>
5586         filenamecat-lgpl: Set errno upon failure.
5587         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
5588         return convention.
5589         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
5591 2020-06-26  Bruno Haible  <bruno@clisp.org>
5593         areadlink-with-size: Set errno upon failure.
5594         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
5595         fails.
5596         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
5598 2020-06-26  Bruno Haible  <bruno@clisp.org>
5600         copy-file: Shrink dependencies.
5601         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
5602         qcopy-acl.
5604 2020-06-26  Bruno Haible  <bruno@clisp.org>
5606         doc: Mention declaration fixes implemented by some modules.
5607         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5608         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5609         declaration appear in <unistd.h>.
5610         * doc/posix-functions/dup.texi: Likewise.
5611         * doc/posix-functions/dup2.texi: Likewise.
5612         * doc/posix-functions/gethostname.texi: Likewise.
5613         * doc/posix-functions/isatty.texi: Likewise.
5614         * doc/posix-functions/lseek.texi: Likewise.
5615         * doc/posix-functions/unlink.texi: Likewise.
5616         * doc/posix-functions/read.texi: Mention the module 'read'.
5617         * doc/posix-functions/write.texi: Mention the effects of the module
5618         'write'.
5620 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
5622         c-dtoastr, c-ldtoastr: new modules
5623         These modules provide the same functionality as the modules
5624         dtoastr and ldtoastr except for the formatting taking place in the
5625         C locale.
5626         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
5627         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
5628         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
5629         defined.  Use c_snprintf and c_strtod/c_strtold instead of
5630         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
5631         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
5632         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
5633         modules/c-ldtoastr-tests: New files.
5634         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
5635         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
5637 2020-06-21  Bruno Haible  <bruno@clisp.org>
5639         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
5640         * lib/tzset.c: Include <stdlib.h>, <string.h>.
5642 2020-06-16  Bruno Haible  <bruno@clisp.org>
5644         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
5645         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
5647 2020-06-16  Bruno Haible  <bruno@clisp.org>
5649         thread, thrd: Avoid a compiler warning.
5650         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
5652 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
5654         windows-thread: Avoid a compiler warning.
5655         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
5656         void.
5657         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
5659 2020-06-15  Bruno Haible  <bruno@clisp.org>
5661         unictype/joininggroup-name: Fix warning on 64-bit mingw.
5662         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
5663         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
5664         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
5665         first.
5667 2020-06-06  Bruno Haible  <bruno@clisp.org>
5669         calloc-gnu tests: Avoid a test failure with clang.
5670         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
5671         'volatile', to defeat compiler optimizations.
5673 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5675         getloadavg: fix double-increment bug
5676         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
5677         Linux without glibc, Android, Cygwin.  This fixes a bug I
5678         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
5679         Problem and fix reported by Semen Verchenko in:
5680         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5682         tempname: use getrandom, not getentropy
5683         This removes a dependency, as getentropy depends on getrandom.
5684         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5685         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5686         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5688 2020-06-01  Bruno Haible  <bruno@clisp.org>
5690         doc: New chapter 'Multithreading'.
5691         * doc/multithread.texi: New file.
5692         * doc/gnulib.texi: Include it.
5694 2020-06-01  Bruno Haible  <bruno@clisp.org>
5696         doc: Move 'Running self-tests under valgrind' section.
5697         * doc/gnulib.texi (Build Infrastructure Modules): Include
5698         valgrind-tests.texi here...
5699         (Miscellaneous Notes): ... not here.
5701 2020-06-01  Bruno Haible  <bruno@clisp.org>
5703         doc: Move 'Visual Studio Compatibility' section.
5704         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5705         here...
5706         (Build Infrastructure Modules): ... not here.
5708 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5710         doc: improve randomness discussion
5711         Inspired by comments from Jeffrey Walton in:
5712         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5713         * doc/glibc-functions/getentropy.texi (getentropy):
5714         * doc/glibc-functions/getrandom.texi (getrandom):
5715         Improve discussion of problems with "random" data,
5716         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5718 2020-06-01  Bruno Haible  <bruno@clisp.org>
5720         doc: Fix Texinfo syntax error.
5721         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5723 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5725         doc: Change '.' to '@.' where appropriate.
5726         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5727         * doc/glibc-functions/fstatfs.texi: Likewise.
5728         * doc/glibc-functions/fts_children.texi: Likewise.
5729         * doc/glibc-functions/fts_read.texi: Likewise.
5730         * doc/glibc-functions/getdirentries.texi: Likewise.
5731         * doc/glibc-functions/mkostemp.texi: Likewise.
5732         * doc/glibc-functions/mkostemps.texi: Likewise.
5733         * doc/glibc-functions/mkstemps.texi: Likewise.
5734         * doc/glibc-functions/preadv.texi: Likewise.
5735         * doc/glibc-functions/pwritev.texi: Likewise.
5736         * doc/glibc-functions/sendfile.texi: Likewise.
5737         * doc/glibc-functions/statfs.texi: Likewise.
5738         * doc/gnulib-intro.texi: Likewise.
5739         * doc/gnulib-tool.texi: Likewise.
5740         * doc/intprops.texi: Likewise.
5741         * doc/lib-symbol-visibility.texi: Likewise.
5742         * doc/licenses-texi.texi: Likewise.
5743         * doc/pastposix-functions/bcmp.texi: Likewise.
5744         * doc/pastposix-functions/bcopy.texi: Likewise.
5745         * doc/pastposix-functions/bzero.texi: Likewise.
5746         * doc/pastposix-functions/ecvt.texi: Likewise.
5747         * doc/pastposix-functions/fcvt.texi: Likewise.
5748         * doc/pastposix-functions/ftime.texi: Likewise.
5749         * doc/pastposix-functions/gcvt.texi: Likewise.
5750         * doc/pastposix-functions/getwd.texi: Likewise.
5751         * doc/pastposix-functions/index.texi: Likewise.
5752         * doc/pastposix-functions/mktemp.texi: Likewise.
5753         * doc/pastposix-functions/rindex.texi: Likewise.
5754         * doc/pastposix-functions/wcswcs.texi: Likewise.
5755         * doc/posix-functions/aio_cancel.texi: Likewise.
5756         * doc/posix-functions/aio_error.texi: Likewise.
5757         * doc/posix-functions/aio_fsync.texi: Likewise.
5758         * doc/posix-functions/aio_read.texi: Likewise.
5759         * doc/posix-functions/aio_return.texi: Likewise.
5760         * doc/posix-functions/aio_suspend.texi: Likewise.
5761         * doc/posix-functions/aio_write.texi: Likewise.
5762         * doc/posix-functions/creat.texi: Likewise.
5763         * doc/posix-functions/ctime.texi: Likewise.
5764         * doc/posix-functions/daylight.texi: Likewise.
5765         * doc/posix-functions/fgetpos.texi: Likewise.
5766         * doc/posix-functions/fopen.texi: Likewise.
5767         * doc/posix-functions/freopen.texi: Likewise.
5768         * doc/posix-functions/fseeko.texi: Likewise.
5769         * doc/posix-functions/fsetpos.texi: Likewise.
5770         * doc/posix-functions/fstatat.texi: Likewise.
5771         * doc/posix-functions/fstatvfs.texi: Likewise.
5772         * doc/posix-functions/ftello.texi: Likewise.
5773         * doc/posix-functions/ftruncate.texi: Likewise.
5774         * doc/posix-functions/getrlimit.texi: Likewise.
5775         * doc/posix-functions/lio_listio.texi: Likewise.
5776         * doc/posix-functions/localtime.texi: Likewise.
5777         * doc/posix-functions/lseek.texi: Likewise.
5778         * doc/posix-functions/mkstemp.texi: Likewise.
5779         * doc/posix-functions/mktime.texi: Likewise.
5780         * doc/posix-functions/open.texi: Likewise.
5781         * doc/posix-functions/openat.texi: Likewise.
5782         * doc/posix-functions/opendir.texi: Likewise.
5783         * doc/posix-functions/pread.texi: Likewise.
5784         * doc/posix-functions/pwrite.texi: Likewise.
5785         * doc/posix-functions/readdir.texi: Likewise.
5786         * doc/posix-functions/readdir_r.texi: Likewise.
5787         * doc/posix-functions/scandir.texi: Likewise.
5788         * doc/posix-functions/seekdir.texi: Likewise.
5789         * doc/posix-functions/setrlimit.texi: Likewise.
5790         * doc/posix-functions/statvfs.texi: Likewise.
5791         * doc/posix-functions/strftime.texi: Likewise.
5792         * doc/posix-functions/telldir.texi: Likewise.
5793         * doc/posix-functions/timezone.texi: Likewise.
5794         * doc/posix-functions/tmpfile.texi: Likewise.
5795         * doc/posix-functions/truncate.texi: Likewise.
5796         * doc/posix-functions/tzname.texi: Likewise.
5797         * doc/posix-functions/wcsftime.texi: Likewise.
5798         * doc/windows-sockets.texi: Likewise.
5800 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5802         getrandom-tests: do not assume GRND_RANDOM yields short read
5803         * tests/test-getrandom.c (main): Omit assertion that
5804         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5805         when b’s size is 100000.  This assertion fails with Linux kernel
5806         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5807         The separate blocking pool is going away in the Linux kernel, and
5808         they’ve added a flag GRND_INSECURE instead; see:
5809         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5810         The assertion was iffy anyway; what’s to prevent a kernel from
5811         lazily filling a large buffer with random bytes?
5813         read-file-test: pacify --enable-gcc-warnings
5814         * tests/test-read-file.c (test_read_file): Now static.
5816         tempname: merge from glibc and coreutils
5817         Also, merge in Gnulib’s more-recent methods of making it easier
5818         to share between Gnulib and glibc, and fix a few randomness
5819         glitches.
5820         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5821         (__set_errno): Remove; libc-config.h does that for us.
5822         Do not include <sys/time.h>.
5823         (__secure_getenv) [_LIBC]: New macro.
5824         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5825         (RANDOM_BITS): Rewrite.
5826         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5827         (random_value): New typedef.
5828         (try_file, try_dir, try_nocreate): Move up.
5829         (gen_tempname_len, try_tempname_len): New functions.
5830         (gen_tempname_len): Use a constant array rather than a switch.
5831         (try_tempname_len): Don’t assume string length fits in int.
5832         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5833         has enough entropy (it’s a bit short).
5834         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5835         (__try_tempname): Rewrite in terms of try_tempname_len.
5836         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5837         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5838         Add getentropy, libc-config.
5840 2020-05-31  Bruno Haible  <bruno@clisp.org>
5842         getrandom, getentropy: Mention the crypto/gc-random module.
5843         Suggested by Simon Josefsson in
5844         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5845         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5846         crypto/gc-random module.
5847         * doc/glibc-functions/getentropy.texi: Likewise.
5849 2020-05-31  Bruno Haible  <bruno@clisp.org>
5851         getentropy: Enhance tests.
5852         * tests/test-getentropy.c (main): Add one more test.
5853         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5855 2020-05-31  Bruno Haible  <bruno@clisp.org>
5857         getentropy: Work around a macOS and Solaris problem.
5858         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5859         'getentropy' module.
5860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5861         UNISTD_H_HAVE_SYS_RANDOM_H.
5862         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5863         UNISTD_H_HAVE_SYS_RANDOM_H.
5864         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5865         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5866         problem. List more platforms.
5868 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5870         fnmatch: merge from glibc
5871         Also, merge in Gnulib’s more-recent methods of making it easier
5872         to share between Gnulib and glibc.
5873         * lib/fnmatch.c: Reorder includes to match glibc better.
5874         Include libc-config.h instead of config.h.
5875         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5876         Do not include "../locale/elem-hash.h" if _LIBC.
5877         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5878         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5879         Include intprops.h, since glibc has it now.
5880         (SIZE_MAX): Remove; use (size_t) -1 instead.
5881         Omit the "Comment out all this code" ifdef, since Gnulib
5882         has never really needed it.
5883         (STREQ): Remove; no longer used.
5884         (__libc_use_alloca, alloca, alloca_account): Define as
5885         needed if !_LIBC.
5886         (ISWCTYPE): Remove; all uses replaced by iswctype.
5887         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5888         (internal_function): Remove.  All uses removed.
5889         (STRUCT): New macro.
5890         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5891         (WMEMCMP): New macro.
5892         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5893         and <locale/weightwc.h>.
5894         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5895         __builtin_expect.  Check for integer overflow more
5896         systematically.  Account for alloca storage better when
5897         recursive.  Use strnlen instead of strlen for efficiency.
5898         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5899         (struct STRUCT): New type.
5900         (FCT, EXT): New ENDS and ALLOCA_USED args.
5901         All callers changed.
5902         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5903         Simplify by assuming WIDE_CHAR_SUPPORT.
5904         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5905         Cast cold to UCHAR to avoid signedness warning.
5906         (END): Check for invalid pattern.
5907         (EXT): Improve alloca/malloc checking (taken from glibc),
5908         and improve it some more by using intprops.h and checking
5909         for integer overflow and using bool for booleans.
5910         * lib/libc-config.h (compat_symbol): New macro.
5911         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5912         acceptable to non-GCC when a trailing semicolon is added.
5913         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5914         libc-config, strnlen.  Remove alloca.
5916 2020-05-31  Bruno Haible  <bruno@clisp.org>
5918         getrandom: Doc and test tweaks.
5919         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5920         it sets errno when failing.
5921         * tests/test-getrandom.c (main): Disable the high-quality check on those
5922         platforms on which it fails.
5923         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5924         Cygwin to the list of platforms that don't have the function. Add a note
5925         about the quality of the result.
5926         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5927         declaration; this is fixed by module 'getrandom'.
5929 2020-05-31  Bruno Haible  <bruno@clisp.org>
5931         getrandom: Add support for native Windows.
5932         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5933         <wincrypt.h>.
5934         (CRYPT_VERIFY_CONTEXT): New macro.
5935         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5936         'A'.
5937         (GetProcAddress): New macro.
5938         (BCryptGenRandomFuncType): New type.
5939         (BCryptGenRandomFunc, initialized): New variables.
5940         (initialize): New function.
5941         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5942         <wincrypt.h> API as fallback.
5943         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5944         * modules/getrandom (Link): New section.
5945         * modules/getentropy (Link): Likewise.
5946         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5947         $(LIB_GETRANDOM).
5948         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5949         $(LIB_GETRANDOM).
5950         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5951         against $(LIB_GETRANDOM).
5952         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5953         support.
5955 2020-05-31  Bruno Haible  <bruno@clisp.org>
5957         getrandom: Simplify the determination of the random number devices.
5958         Suggested by Paul Eggert in
5959         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5960         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5961         macros.
5962         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5964 2020-05-31  Bruno Haible  <bruno@clisp.org>
5966         crypto/gc-random: Fix list of crypto devices for Solaris.
5967         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5969 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5971         list: fix GCC warnings
5972         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5973         (gl_tree_next_node, gl_tree_node_nx_set_value)
5974         (gl_tree_previous_node, gl_tree_next_node):
5975         Mark unused arguments.
5976         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5977         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5978         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5980         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5981         the same variable name in nested scopes.
5983 2020-05-31  Bruno Haible  <bruno@clisp.org>
5985         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5986         Reported by Akim Demaille in
5987         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5988         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5989         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5990         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5991         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5992         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5994 2020-05-30  Bruno Haible  <bruno@clisp.org>
5996         wmemchr: Relicense under LGPLv2+.
5997         * modules/wmemchr (License): Set to LGPLv2+.
5999 2020-05-30  Bruno Haible  <bruno@clisp.org>
6001         wmempcpy: New module.
6002         Reported by Paul Eggert in
6003         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
6004         * lib/wchar.in.h (wmempcpy): New declaration.
6005         * lib/wmempcpy.c: New file.
6006         * m4/wmempcpy.m4: New file.
6007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
6008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
6009         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
6010         HAVE_WMEMPCPY.
6011         * modules/wmempcpy: New file.
6012         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
6013         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
6014         * modules/mempcpy (Description): Fix typo.
6016 2020-05-30  Bruno Haible  <bruno@clisp.org>
6018         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
6019         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
6021 2020-05-30  Bruno Haible  <bruno@clisp.org>
6023         sys_random: Work around macOS bug.
6024         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
6025         <stdlib.h> before <sys/random.h>.
6026         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
6027         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
6028         first.
6029         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
6031 2020-05-30  Bruno Haible  <bruno@clisp.org>
6033         getrandom: Override incompatible system function on Solaris 11.
6034         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
6035         * lib/getrandom.c (getrandom): When the system has getrandom, just
6036         invoke it.
6037         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
6038         system's getrandom function's prototype is not the expected one.
6039         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
6040         REPLACE_GETRANDOM.
6041         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
6042         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
6043         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
6044         EAGAIN.
6045         * doc/glibc-functions/getrandom.texi: Mention the new module and the
6046         Solaris problem.
6048 2020-05-30  Bruno Haible  <bruno@clisp.org>
6050         sys_random: Add C++ tests.
6051         * tests/test-sys_random-c++.cc: New file.
6052         * modules/sys_random-c++-tests: New file.
6053         * modules/sys_random-tests (Depends-on): Depend on it.
6055         sys_random: Add tests.
6056         * tests/test-sys_random.c: New file.
6057         * modules/sys_random-tests: New file.
6059         sys_random: New module.
6060         * lib/sys_random.in.h: Use the common idioms for overridable header
6061         files.
6062         * m4/sys_random_h.m4: New file.
6063         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
6064         * modules/sys_random: New file.
6065         * modules/getrandom (Files): Remove lib/sys_random.in.h.
6066         (Depends-on): Add sys_random.
6067         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
6068         gl_UNISTD_MODULE_INDICATOR.
6069         (Makefile.am): Don't generate sys/random.h here.
6070         * doc/glibc-headers/sys_random.texi: New file.
6071         * doc/gnulib.texi: Include it.
6073 2020-05-30  Bruno Haible  <bruno@clisp.org>
6075         unistd: Remove conflicting declaration of getrandom().
6076         * lib/unistd.in.h (getrandom): Remove declaration.
6077         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
6078         declared.
6079         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
6080         HAVE_GETRANDOM.
6081         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
6082         HAVE_GETRANDOM.
6084 2020-05-30  Bruno Haible  <bruno@clisp.org>
6086         getrandom: Add tests.
6087         * tests/test-getrandom.c: New file.
6088         * modules/getrandom-tests: New file.
6090 2020-05-30  Bruno Haible  <bruno@clisp.org>
6092         crypto/gc-random: Fix link error on MSVC.
6093         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
6094         * modules/crypto/gc-random (Link): New section.
6095         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
6096         $(LIB_GC_RANDOM).
6098 2020-05-30  Bruno Haible  <bruno@clisp.org>
6100         Don't assume that UNICODE is not defined.
6101         Many Windows API functions are defined differently (redirecting to a
6102         function with suffix 'W') if the application defines the macro UNICODE
6103         than by default (redirecting to a function with suffix 'A').
6104         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
6105         variant with suffix 'A'.
6106         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
6107         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
6108         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
6109         * lib/getlogin.c (GetUserName): Likewise.
6110         * lib/getlogin_r.c (GetUserName): Likewise.
6111         * lib/gettimeofday.c (LoadLibrary): Likewise.
6112         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
6113         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
6114         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
6115         * lib/mountlist.c (GetDriveType): Likewise.
6116         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
6117         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
6118         Likewise.
6119         * lib/physmem.c (GetModuleHandle): Likewise.
6120         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6121         PeekMessage, DispatchMessage): Likewise.
6122         * lib/progreloc.c (GetModuleFileName): Likewise.
6123         * lib/putenv.c (SetEnvironmentVariable): Likewise.
6124         * lib/read.c (GetNamedPipeHandleState): Likewise.
6125         * lib/readdir.c (FindNextFile): Likewise.
6126         * lib/relocatable.c (GetModuleFileName): Likewise.
6127         * lib/rename.c (MoveFileEx): Likewise.
6128         * lib/rewinddir.c (FindFirstFile): Likewise.
6129         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6130         PeekMessage, DispatchMessage): Likewise.
6131         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
6132         * lib/socket.c (WSASocket): Likewise.
6133         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
6134         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
6135         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
6136         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
6137         * lib/tmpdir.c (GetTempPath): Likewise.
6138         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
6139         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
6140         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
6141         * lib/windows-cond.c (CreateEvent): Likewise.
6142         * lib/windows-rwlock.c (CreateEvent): Likewise.
6143         * lib/windows-timedmutex.c (CreateEvent): Likewise.
6144         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
6145         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
6146         * lib/write.c (GetNamedPipeHandleState): Likewise.
6148 2020-05-30  Bruno Haible  <bruno@clisp.org>
6150         physmem: Fix compilation errors on MSVC.
6151         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
6152         * modules/physmem (Depends-on): Add unistd.
6154 2020-05-29  Bruno Haible  <bruno@clisp.org>
6156         gnulib-tool: Fix link errors with a particular set of modules on mingw.
6157         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
6158         LDADD a second time, after the second occurrence of libtests.a.
6159         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
6161 2020-05-29  Bruno Haible  <bruno@clisp.org>
6163         fnmatch: Rely on more gnulib modules.
6164         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
6165         wmempcpy, mempcpy.
6166         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
6167         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
6168         HAVE_MEMPCPY are all 1.
6169         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
6170         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
6172 2020-05-29  Bruno Haible  <bruno@clisp.org>
6174         Avoid dynamic lookup of Windows API functions when possible.
6175         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
6176         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
6177         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
6178         (use_win32_p): Define differently.
6179         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
6180         CreateHardLinkFunc, initialized, initialize): Don't define in a build
6181         for Windows XP or higher.
6183 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6185         read-file: disable buffering if RF_SENSITIVE is set
6186         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
6187         Suggested by Glenn Strauss.
6188         (fread_file): Suggest calling setvbuf before calling this
6189         function.  Suggested by Bruno Haible.
6191 2020-05-29  Bruno Haible  <bruno@clisp.org>
6193         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6194         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6195         program.
6196         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
6197         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
6198         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
6199         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
6201 2020-05-29  Bruno Haible  <bruno@clisp.org>
6203         Fix compilation error on native Windows (regression from 2020-05-28).
6204         Reported by Daiki Ueno.
6205         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
6206         macro when not using dynamic loading.
6207         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
6208         QueryFullProcessImageNameFunc): Likewise.
6209         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
6210         GetFinalPathNameByHandleFunc): Likewise.
6212 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6214         fopen-gnu-tests: fix "\x" escape usage
6215         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
6217 2020-05-28  Bruno Haible  <bruno@clisp.org>
6219         Avoid dynamic loading of Windows API functions when possible.
6220         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6221         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
6222         * lib/gettimeofday.c (GetProcAddress,
6223         GetSystemTimePreciseAsFileTimeFuncType,
6224         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
6225         define in a build for Windows 8 or higher.
6226         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
6227         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
6228         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
6229         in a build for Windows Vista or higher.
6230         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
6231         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
6232         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
6234 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
6236         explicit_bzero-tests: improve -Wmissing-declarations pacification
6237         * tests/test-explicit_bzero.c: Now noinline.
6238         Suggested by Bruno Haible in:
6239         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
6241 2020-05-28  Bruno Haible  <bruno@clisp.org>
6243         Fix build errors due to read-file changes (regression from 2020-05-27).
6244         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
6245         invocation.
6246         * tests/test-sameacls.c (main): Likewise.
6247         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
6248         read_binary_file.
6249         * tests/test-pipe-filter-ii1.c (main): Likewise.
6251 2020-05-28  Bruno Haible  <bruno@clisp.org>
6253         fts: Make more robust in multithreaded applications.
6254         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
6255         * modules/fts (Depends-on): Add 'open'.
6257 2020-05-28  Bruno Haible  <bruno@clisp.org>
6259         relocatable-prog: Make more robust in multithreaded applications.
6260         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
6261         relocatable-prog-wrapper.
6262         (find_executable): Pass an O_CLOEXEC flag to open().
6263         * modules/relocatable-prog (Depends-on): Add 'open'.
6265 2020-05-28  Bruno Haible  <bruno@clisp.org>
6267         getloadavg: Make more robust in multithreaded applications.
6268         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
6269         Simplify use of O_CLOEXEC.
6270         * modules/getloadavg (Depends-on): Add 'open'.
6272 2020-05-28  Bruno Haible  <bruno@clisp.org>
6274         vma-iter: Make more robust in multithreaded applications.
6275         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
6276         open().
6277         * modules/vma-iter (Depends-on): Add 'open'.
6279 2020-05-28  Bruno Haible  <bruno@clisp.org>
6281         truncate: Make more robust in multithreaded applications.
6282         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
6284 2020-05-28  Bruno Haible  <bruno@clisp.org>
6286         pagealign_alloc: Make more robust in multithreaded applications.
6287         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
6288         open().
6289         * modules/pagealign_alloc (Depends-on): Add 'open'.
6291 2020-05-28  Bruno Haible  <bruno@clisp.org>
6293         openat: Make more robust in multithreaded applications.
6294         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
6296 2020-05-28  Bruno Haible  <bruno@clisp.org>
6298         at-internal: Make more robust in multithreaded applications.
6299         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
6300         open().
6302 2020-05-28  Bruno Haible  <bruno@clisp.org>
6304         mountlist: Make more robust in multithreaded applications.
6305         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
6306         open().
6307         * modules/mountlist (Depends-on): Add 'open'.
6309 2020-05-28  Bruno Haible  <bruno@clisp.org>
6311         login_tty: Make more robust in multithreaded applications.
6312         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
6313         * modules/login_tty (Depends-on): Add 'open'.
6315 2020-05-28  Bruno Haible  <bruno@clisp.org>
6317         javacomp: Make more robust in multithreaded applications.
6318         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
6319         open().
6320         * modules/javacomp (Depends-on): Add 'open'.
6322 2020-05-28  Bruno Haible  <bruno@clisp.org>
6324         getprogname: Make more robust in multithreaded applications.
6325         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
6326         * modules/getprogname (Depends-on): Add 'open'.
6328 2020-05-28  Bruno Haible  <bruno@clisp.org>
6330         get_progname_of: Make more robust in multithreaded applications.
6331         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
6332         open().
6333         * modules/get_progname_of (Depends-on): Add 'open'.
6335 2020-05-28  Bruno Haible  <bruno@clisp.org>
6337         get_ppid_of: Make more robust in multithreaded applications.
6338         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
6339         * modules/get_ppid_of (Depends-on): Add 'open'.
6341 2020-05-28  Bruno Haible  <bruno@clisp.org>
6343         get-rusage-as: Make more robust in multithreaded applications.
6344         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
6345         flag to open().
6346         * modules/get-rusage-as (Depends-on): Add 'open'.
6348 2020-05-28  Bruno Haible  <bruno@clisp.org>
6350         crypto/gc: Make more robust in multithreaded applications.
6351         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
6352         * modules/crypto/gc (Depends-on): Add 'open'.
6354 2020-05-28  Bruno Haible  <bruno@clisp.org>
6356         copy-file: Make more robust in multithreaded applications.
6357         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
6358         open().
6360 2020-05-28  Bruno Haible  <bruno@clisp.org>
6362         chown: Make more robust in multithreaded applications.
6363         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6365 2020-05-28  Bruno Haible  <bruno@clisp.org>
6367         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6368         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6370 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6372         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6373         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6374         specified on Windows.
6375         * tests/test-fopen-gnu.c (DATA): New define.
6376         (main): Add test for reading binary files with an 'e' flag.
6378 2020-05-27  Bruno Haible  <bruno@clisp.org>
6380         Don't assume that UNICODE is not defined.
6381         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6382         differently if the application defines the macro UNICODE.
6383         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6384         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6385         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6386         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6387         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6389 2020-05-27  Bruno Haible  <bruno@clisp.org>
6391         Improve pattern for defining _WIN32_WINNT.
6392         Newer versions of the Windows API may not only add, but also remove API
6393         functions. Therefore, when the user is e.g. building for Windows 10, we
6394         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6395         use of APIs that were present in Windows 8 but removed in Windows 10.
6396         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6397         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6398         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6399         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6400         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6402 2020-05-27  Bruno Haible  <bruno@clisp.org>
6404         javacomp: Make more robust in multithreaded applications.
6405         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6406         * modules/javacomp (Depends-on): Add fopen-gnu.
6408 2020-05-27  Bruno Haible  <bruno@clisp.org>
6410         mountlist: Make more robust in multithreaded applications.
6411         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6412         to fopen.
6413         * modules/mountlist (Depends-on): Add fopen-gnu.
6415 2020-05-27  Bruno Haible  <bruno@clisp.org>
6417         sethostname: Make more robust in multithreaded applications.
6418         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6419         * modules/sethostname (Depends-on): Add fopen-gnu.
6421 2020-05-27  Bruno Haible  <bruno@clisp.org>
6423         readutmp: Make more robust in multithreaded applications.
6424         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6425         * modules/readutmp (Depends-on): Add fopen-gnu.
6427 2020-05-27  Bruno Haible  <bruno@clisp.org>
6429         getpass: Make more robust in multithreaded applications.
6430         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6431         * modules/getpass (Depends-on): Add fopen-gnu.
6433 2020-05-27  Bruno Haible  <bruno@clisp.org>
6435         getloadavg: Make more robust in multithreaded applications.
6436         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6437         * modules/getloadavg (Depends-on): Add fopen-gnu.
6439 2020-05-27  Bruno Haible  <bruno@clisp.org>
6441         exclude: Make more robust in multithreaded applications.
6442         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6443         * modules/exclude (Depends-on): Add fopen-gnu.
6445 2020-05-27  Bruno Haible  <bruno@clisp.org>
6447         bitset: Make more robust in multithreaded applications.
6448         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6449         'e' flag to fopen.
6450         * modules/bitset (Depends-on): Add fopen-gnu.
6452 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6454         read-file: add RF_SENSITIVE flag
6455         * lib/read-file.h (RF_SENSITIVE): New define.
6456         * lib/read-file.c (fread_file, read_file): Take into account of
6457         RF_SENSITIVE flag.
6458         * modules/read-file (Depends-on): Add explicit_bzero.
6459         This adds an alternative behavior of those functions to explicitly
6460         clear the internal memory block when it becomes unused.  This is
6461         useful for reading sensitive information from a file.
6463 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6465         read-file: add flags to modify reading behavior
6466         * lib/read-file.h (RF_BINARY): New define.
6467         (fread_file, read_file): Take FLAGS argument.
6468         (read_binary_file): Remove.
6469         * lib/read-file.c (internal_read_file): Merge into ...
6470         (read_file): ... here.
6471         * modules/read-file-tests (Files): Add "tests/macros.h".
6472         * tests/test-read-file.c (main): Refactor using ASSERT macro.
6473         * NEWS: Mention this change.
6475 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
6477         doc/gnulib-intro.texi: add missing "to" in sentence
6478         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6479         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
6480         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
6482 2020-05-26  Bruno Haible  <bruno@clisp.org>
6484         count-one-bits: Fix MSVC specific code.
6485         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6486         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
6487         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
6488         using GCC.
6489         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
6490         (__popcnt64): In 32-bit mode, define as an inline function.
6491         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
6493 2020-05-26  Bruno Haible  <bruno@clisp.org>
6495         argz: Avoid name clashes through argz.h.
6496         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6497         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
6498         * lib/argz.h: Don't use __ prefixed identifiers.
6499         (const): Remove definition.
6500         (argz_next): Remove inline definitions.
6502 2020-05-26  Daiki Ueno  <ueno@gnu.org>
6504         read-file: make use of fopen-gnu
6505         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
6506         (read_binary_file): Likewise.
6507         * modules/read-file (Depends-on): Add fopen-gnu.
6509 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6511         getentropy, getrandom: new modules
6512         * MODULES.html.sh (func_all_modules):
6513         * lib/unistd.in.h (getentropy, getrandom):
6514         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
6515         * modules/unistd (unistd.h):
6516         Add support for getentropy, getrandom.
6517         * doc/glibc-functions/getentropy.texi (getentropy):
6518         * doc/glibc-functions/getrandom.texi (getrandom):
6519         These are now fixed on some platforms.
6520         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
6521         * m4/getentropy.m4, m4/getrandom.m4:
6522         * modules/getentropy, modules/getentropy-tests:
6523         * modules/getrandom, modules/getrandom-tests:
6524         * tests/test-getentropy.c, tests/test-getrandom.c:
6525         New files.
6527 2020-05-25  Bruno Haible  <bruno@clisp.org>
6529         Add missing C99 dependencies.
6530         Reported by Paul Smith <psmith@gnu.org> in
6531         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
6532         * modules/assert (Depends-on): Add c99.
6533         * modules/filenamecat-lgpl (Depends-on): Likewise.
6534         * modules/libc-config (Depends-on): Likewise.
6535         * modules/mktime (Depends-on): Likewise.
6536         * modules/random_r (Depends-on): Likewise.
6537         * modules/regex (Depends-on): Likewise.
6538         * modules/scratch_buffer (Depends-on): Likewise.
6539         * modules/timespec-add (Depends-on): Likewise.
6540         * modules/timespec-sub (Depends-on): Likewise.
6541         * modules/verify (Depends-on): Likewise.
6543 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6545         explicit_bzero-tests: pacify -Wmissing-declarations
6546         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
6547         Now static.
6549 2020-05-24  Bruno Haible  <bruno@clisp.org>
6551         fopen-gnu: Add tests.
6552         * tests/test-fopen-gnu.c: New file.
6553         * modules/fopen-gnu-tests: New file.
6555         fopen-gnu: New module.
6556         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
6557         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
6558         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
6559         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
6560         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
6561         * modules/fopen-gnu: New file.
6562         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
6564 2020-05-24  Bruno Haible  <bruno@clisp.org>
6566         open, openat: Really support O_CLOEXEC.
6567         * lib/open.c (open): When have_cloexec is still undecided, do pass a
6568         O_CLOEXEC flag to orig_open.
6569         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
6570         pass a O_CLOEXEC flag to orig_openat.
6571         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
6572         * modules/open-tests (Depends-on): Add fcntl.
6573         * modules/openat-tests (Depends-on): Likewise.
6574         * modules/fcntl-safer-tests (Depends-on): Likewise.
6576 2020-05-24  Bruno Haible  <bruno@clisp.org>
6578         fopen: Fix the trailing slash workaround.
6579         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
6580         write access. Pass the right flags to open().
6581         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
6583 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6585         assure: new macro ‘affirm’
6586         * lib/assure.h: Include verify.h.
6587         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
6588         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
6589         and commentary by Bruno Haible in:
6590         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
6591         * modules/assure (Depends-on:): Add verify.
6593 2020-05-23  Bruno Haible  <bruno@clisp.org>
6595         calloc-gnu: Make test work in non-flat address spaces.
6596         Uses code by Paul Eggert.
6597         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
6598         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
6600 2020-05-23  Bruno Haible  <bruno@clisp.org>
6602         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
6603         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
6604         AC_RUN_IFELSE invocations.
6606 2020-05-23  Bruno Haible  <bruno@clisp.org>
6608         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6609         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6610         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6611         don't have it.
6612         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6613         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6614         don't have it.
6615         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6616         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6617         it.
6618         * lib/isnanl-nolibm.h (__has_builtin): New macro.
6619         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6620         it.
6621         * lib/math.in.h (__has_builtin): New macro.
6622         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6623         it.
6624         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6625         it.
6626         (isnan): Don't use the builtins on clang versions that don't have
6627         __builtin_isnanf and __builtin_isnanl.
6629 2020-05-23  Bruno Haible  <bruno@clisp.org>
6631         calloc-gnu: Avoid wrong configure results with clang.
6632         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
6633         'volatile', to defeat compiler optimizations.
6635 2020-05-23  Bruno Haible  <bruno@clisp.org>
6637         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
6638         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
6639         'long double' values by reference, with values taken from a statically
6640         allocated array.
6642 2020-05-23  Bruno Haible  <bruno@clisp.org>
6644         findprog-in: Ignore directories.
6645         Reported by Frederick Eaton via Dmitry Goncharov in
6646         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6647         * lib/findprog-in.c (find_in_given_path): When the file found is a
6648         directory, set errno to EACCES and, during a PATH search, continue
6649         searching.
6650         * modules/findprog-in (Depends-on): Add sys_stat, stat.
6652 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6654         verify: document ‘assume’ better
6655         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
6657 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
6659         gendocs: Clarify licenses for templates.
6660         * doc/gendocs_template: Add a GNU All-Permissive license notice
6661         and bump Parent-Version.
6662         * doc/gendocs_template_min: Add a GNU All-Permissive license
6663         notice and copy the explanatory comment about the license notice
6664         at the bottom from gendocs_template.
6666 2020-05-21  Bruno Haible  <bruno@clisp.org>
6668         group-member: Relicense under LGPLv2+.
6669         Jim Meyering's approval is in
6670         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
6671         Paul Eggert's approval is in
6672         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
6673         Eric Blake's approval is in
6674         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
6675         * modules/group-member (License): Change to LGPLv2+.
6677 2020-05-21  Bruno Haible  <bruno@clisp.org>
6679         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
6680         Reported by Tim Rühsen in
6681         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6682         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6684 2020-05-21  Bruno Haible  <bruno@clisp.org>
6686         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6687         Reported by Tim Rühsen in
6688         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6689         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6690         before returning with status 0.
6692 2020-05-21  Bruno Haible  <bruno@clisp.org>
6694         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6695         Reported by Tim Rühsen in
6696         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6697         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6699 2020-05-21  Bruno Haible  <bruno@clisp.org>
6701         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6702         Reported by Tim Rühsen in
6703         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6704         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6705         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6706         respectively.
6708 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6710         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6711         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6713 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6715         ftoastr: fix ifndef typo
6716         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6718 2020-05-19  Bruno Haible  <bruno@clisp.org>
6720         havelib: Tweak documentation.
6721         * doc/havelib.texi (Searching for Libraries): Fix typo.
6723 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6725         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6726         This was needed earlier because modules had to import the main script,
6727         but that is no longer true.  Rename the script so that it is
6728         consistent with all other scripts in gnulib and uses hyphens.
6729         * build-aux/vcs_to_changelog.py: Rename to...
6730         * build-aux/vcs-to-changelog.py: ... this.
6731         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6732         * modules/vcs-to-changelog: Likewise.
6734 2020-05-17  Bruno Haible  <bruno@clisp.org>
6736         Clarify intended usage of the license file modules.
6737         Reported by Asher Gordon <AsDaGo@posteo.net> in
6738         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6739         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6740         GNU AGPL. Explain the intended usage of the modules.
6741         * modules/fdl (Notice): Discourage use as a module.
6742         * modules/fdl-1.3 (Notice): Likewise.
6744 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6746         hash: add hash_xinsert
6747         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6749 2020-05-16  Bruno Haible  <bruno@clisp.org>
6751         findprog-lgpl: Fix link error (existing since 2008-09-02).
6752         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6753         findprog-lgpl.c, not findprog.c.
6754         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6755         XNMALLOC.
6757 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6759         c-stack: pacify -Wunused-result when DEBUG
6760         Problem reported by Marc Nieper-Wißkirchen in:
6761         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6762         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6763         Explicitly ignore write failures.
6765 2020-05-13  Jim Meyering  <meyering@fb.com>
6767         announce-gen: improve a comment
6768         * build-aux/announce-gen: Improve comment.
6770 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6772         xalloc: pacify -Wanalyzer-possible-null-argument
6773         Problem reported for GCC 10.1.0 by Bruno Haible in:
6774         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6775         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6776         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6777         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6779 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6781         careadlinkat: fix GCC 10 workaround
6782         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6783         Massage the code so that it’s closer to what it was before
6784         the GCC 10.1.0 workaround was introduced.  This fixes
6785         a loop when !buffer and the bug workaround is in effect.
6786         Remove unnecessary casts.  Defend in a different way
6787         against (buffer && !buffer_size), by adding at least 1
6788         to buf_size each time through the loop.
6790 2020-05-10  Bruno Haible  <bruno@clisp.org>
6792         doc: Mark HP-UX as unsupported.
6793         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6795 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6797         careadlinkat: limit GCC workaround
6798         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6799         10.1.0 and later, since the workaround is pretty bad and the GCC
6800         bug should get fixed.
6802 2020-05-10  Bruno Haible  <bruno@clisp.org>
6804         havelib: Enhance documentation.
6805         * doc/havelib.texi (Searching for Libraries): Mention the bad
6806         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6808 2020-05-10  Bruno Haible  <bruno@clisp.org>
6810         attribute: Clarify list of attributes.
6811         * lib/attribute.h: Reorder the list of attributes, and group them by
6812         purpose.
6814 2020-05-10  Bruno Haible  <bruno@clisp.org>
6816         string: Fix compilation error in C++ mode.
6817         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6818         _GL_WARN_ON_USE.
6819         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6820         instead of _GL_WARN_ON_USE.
6822 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6824         announce-gen: add support for dist-lzip
6825         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6827 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6829         manywarnings: port to GCC 10.1
6830         * build-aux/gcc-warning.spec:
6831         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6832         Add GCC 10.1.0 warnings.
6834         careadlinkat: pacify -Wreturn-local-addr
6835         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6836         Pacify gcc 10’s -Wreturn-local-addr option.
6837         Simplify some of the later code.
6839 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6841         attribute: remove ATTRIBUTE_DEPRECATED
6842         * lib/attribute.h: Improve recently-added comments, mostly
6843         by shortening them (use active voice, etc.).
6844         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6845         Problem reported by Bruno Haible in:
6846         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6848 2020-05-09  Bruno Haible  <bruno@clisp.org>
6850         attribute: Add comments.
6851         * lib/attribute.h: Document each macro.
6853 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6855         bitset: use the attribute module
6856         * modules/bitset: Depend on 'attribute'.
6857         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6858         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6859         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6860         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6862 2020-05-09  Bruno Haible  <bruno@clisp.org>
6864         c-stack: Fix warning when DEBUG is enabled.
6865         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6866         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6867         * lib/c-stack.c: Include <stdio.h>.
6869 2020-05-09  Bruno Haible  <bruno@clisp.org>
6871         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6872         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6873         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6874         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6875         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6876         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6877         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6878         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6879         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6880         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6881         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6882         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6883         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6885 2020-05-09  Bruno Haible  <bruno@clisp.org>
6887         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6888         Reported by Akim Demaille in
6889         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6890         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6891         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6892         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6894 2020-05-09  Bruno Haible  <bruno@clisp.org>
6896         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6897         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6898         that usually comes from m4/gnulib-common.m4.
6899         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6901 2020-05-09  Bruno Haible  <bruno@clisp.org>
6903         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6904         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6905         that usually comes from m4/gnulib-common.m4.
6906         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6907         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6908         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6910 2020-05-09  Bruno Haible  <bruno@clisp.org>
6912         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6913         * lib/uchar.in.h (char16_t): Define as macro if
6914         GNULIB_OVERRIDES_CHAR16_T.
6915         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6916         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6917         (gl_UCHAR_H): Invoke them.
6918         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6919         GNULIB_OVERRIDES_CHAR32_T.
6920         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6921         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6922         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6923         GNULIB_OVERRIDES_CHAR32_T.
6925 2020-05-09  Bruno Haible  <bruno@clisp.org>
6927         Macro tweaks.
6928         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6929         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6931 2020-05-08  Bruno Haible  <bruno@clisp.org>
6933         c32rtomb: Avoid compilation failure on Haiku.
6934         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6935         inline definitions.
6936         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6938 2020-05-08  Bruno Haible  <bruno@clisp.org>
6940         mbrtoc32: Avoid compilation failure on Haiku.
6941         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6942         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6943         AC_CHECK_FUNCS_ONCE.
6944         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6946 2020-05-08  Bruno Haible  <bruno@clisp.org>
6948         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6949         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6951 2020-05-08  Bruno Haible  <bruno@clisp.org>
6953         list: Update documentation.
6954         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6955         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6956         * doc/containers.texi (Container data types): Document the new list
6957         operations and their complexity.
6959 2020-05-08  Bruno Haible  <bruno@clisp.org>
6961         ignore-value tests: Use module 'attribute'.
6962         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6963         * tests/test-ignore-value.c: Include attribute.h.
6964         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6965         * modules/ignore-value-tests (Depends-on): Add attribute.
6967 2020-05-08  Bruno Haible  <bruno@clisp.org>
6969         uniname/uniname: Use module 'attribute'.
6970         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6971         * lib/uniname/uninames.h: Regenerated.
6972         * lib/uniname/uniname.c: Include attribute.h.
6973         * modules/uniname/uniname (Depends-on): Add attribute.
6975 2020-05-08  Bruno Haible  <bruno@clisp.org>
6977         c32rtomb: Use module 'attribute'.
6978         * lib/c32rtomb.c: Include attribute.h.
6979         (FALLTHROUGH): Remove macro.
6980         * modules/c32rtomb (Depends-on): Add attribute.
6982 2020-05-08  Bruno Haible  <bruno@clisp.org>
6984         xsize: Use module 'attribute'.
6985         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6986         * modules/xsize (Depends-on): Add attribute.
6988 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6990         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6992         * lib/attribute.h: Minor style fixes.
6994         Fix version-etc glitch on OpenIndiana
6995         Problem reported by Mats Erik Andersson in:
6996         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6997         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6998         that now clashes with gnulib-common.h.  All uses changed.
7000 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7002         attribute: new module
7003         This simplifies use of GCC and C2X attributes like ‘deprecated’.
7004         * MODULES.html.sh: Add attribute.
7005         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
7006         * doc/gnulib.texi (Particular Modules): Add Attributes.
7007         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
7008         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
7009         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
7010         * lib/vasnprintf.c:
7011         Include attribute.h, and let it define FALLTHROUGH.
7012         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
7013         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
7014         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
7015         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
7016         This is a copy since Gawk doesn’t use Gnulib.
7017         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
7018         is incompatible with gl_COMMON_BODY’s.  All uses changed.
7019         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
7020         Keep the existing FALLTHROUGH definition since Glibc might use it,
7021         and it does no harm to Gnulib’s FALLTHROUGH.
7022         * lib/fts_.h, lib/inttostr.h:
7023         (__GNUC_PREREQ): Remove; no longer needed.
7024         (__attribute_warn_unused_result__): Remove.  All uses
7025         replaced by _GL_ATTRIBUTE_NODISCARD.
7026         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
7027         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
7028         __attribute__ ((__warn_unused_result__)), for forward
7029         compatibility to C2X.
7030         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
7031         _GL_ATTRIBUTE_NODISCARD.
7032         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
7033         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
7034         replaced by gl_COMMON_BODY’s implementation, which has a
7035         slightly different signature.
7036         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
7037         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
7038         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
7039         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
7040         No doubt all uses should be replaced, at some point.
7041         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
7042         (_Noreturn): Use it.
7043         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
7044         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
7045         (_GL_ATTRIBUTE_COLD)
7046         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
7047         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
7048         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
7049         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
7050         (_GL_ATTRIBUTE_MAYBE_UNUSED)
7051         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
7052         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
7053         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
7054         (_GL_ATTRIBUTE_RETURNS_NONNULL)
7055         (_GL_ATTRIBUTE_SENTINEL): New macros.
7056         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
7057         * modules/fnmatch, modules/freopen-safer, modules/fts:
7058         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
7059         * modules/quotearg, modules/savewd:
7060         * modules/unistdio/u16-u16-vasnprintf:
7061         * modules/unistdio/u16-vasnprintf:
7062         * modules/unistdio/u32-u32-vasnprintf:
7063         * modules/unistdio/u32-vasnprintf:
7064         * modules/unistdio/u8-u8-vasnprintf:
7065         * modules/unistdio/u8-vasnprintf:
7066         * modules/unistdio/ulc-vasnprintf:
7067         * modules/unistr/u8-uctomb, modules/vasnprintf:
7068         (Depends-on:): Add attribute module.
7070 2020-05-03  Bruno Haible  <bruno@clisp.org>
7072         bison: Fix today's commit.
7073         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
7075 2020-05-03  Bruno Haible  <bruno@clisp.org>
7077         list-c++: Add get_first, get_last, set_first, set_last operations.
7078         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
7079         set_first, set_last.
7080         * lib/gl_list.h: Tweak comments.
7082 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
7084         bison: rely on bison's %require to check a version requirement
7085         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
7086         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
7087         enough of not.
7088         So far it is the only know Yacc tool that supports '%require'.
7089         Other yaccs will actually even choke on seeing the -o option after the
7090         input file name.
7091         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
7093 2020-05-02  Bruno Haible  <bruno@clisp.org>
7095         list: Add get_first, get_last, set_first, set_last operations.
7096         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
7097         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
7098         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
7100 2020-05-02  Bruno Haible  <bruno@clisp.org>
7102         list: Remove redundant code for remove_first and remove_last operations.
7103         * lib/gl_list.h (struct gl_list_implementation): Remove fields
7104         remove_first, remove_last.
7105         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
7106         * lib/gl_array_list.c: Revert last change.
7107         * lib/gl_carray_list.c: Likewise.
7108         * lib/gl_anylinked_list2.h: Likewise.
7109         * lib/gl_linked_list.c: Likewise.
7110         * lib/gl_linkedhash_list.c: Likewise.
7111         * lib/gl_anytree_list2.h: Likewise.
7112         * lib/gl_avltree_list.c: Likewise.
7113         * lib/gl_avltreehash_list.c: Likewise.
7114         * lib/gl_rbtree_list.c: Likewise.
7115         * lib/gl_rbtreehash_list.c: Likewise.
7116         * lib/gl_sublist.c: Likewise.
7118 2020-05-02  Bruno Haible  <bruno@clisp.org>
7120         bison-i18n: Add support for cross-compilation.
7121         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
7122         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
7123         via Akim Demaille <akim@lrde.epita.fr>.
7124         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
7125         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
7126         Don't use bison's --print-localedir option when cross-compiling.
7127         Also, fix an error message and a comment.
7129 2020-05-01  Bruno Haible  <bruno@clisp.org>
7131         list: Add remove_first and remove_last operations.
7132         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7133         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
7134         * lib/gl_list.h (struct gl_list_implementation): Add fields
7135         remove_first, remove_last.
7136         (gl_list_remove_first, gl_list_remove_last): New functions.
7137         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
7138         functions, based on gl_array_remove_at.
7139         (gl_array_list_implementation): Implement the new operations.
7140         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
7141         New functions, based on gl_carray_remove_at.
7142         (gl_carray_list_implementation): Implement the new operations.
7143         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
7144         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
7145         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
7146         new operations.
7147         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
7148         Likewise.
7149         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
7150         New functions, based on gl_tree_remove_at.
7151         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
7152         new operations.
7153         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7154         Likewise.
7155         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
7156         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
7157         Likewise.
7158         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
7159         New functions, based on gl_sublist_remove_at.
7160         (gl_sublist_list_implementation): Implement the new operations.
7161         * lib/gl_list.hh (class gl_List): Add methods remove_first,
7162         remove_last.
7163         * tests/test-array_list.c (main): Test also gl_list_remove_first and
7164         gl_list_remove_last.
7165         * tests/test-avltree_list.c (main): Likewise.
7166         * tests/test-avltreehash_list.c (main): Likewise.
7167         * tests/test-carray_list.c (main): Likewise.
7168         * tests/test-linked_list.c (main): Likewise.
7169         * tests/test-linkedhash_list.c (main): Likewise.
7170         * tests/test-rbtree_list.c (main): Likewise.
7171         * tests/test-rbtreehash_list.c (main): Likewise.
7173 2020-05-01  Bruno Haible  <bruno@clisp.org>
7175         parse-datetime: Fix a build failure with an older bison version.
7176         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
7177         parse-datetime.tab.c if a suitable version of bison was not found.
7179 2020-05-01  Bruno Haible  <bruno@clisp.org>
7181         bison: New module.
7182         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
7183         m4/parse-datetime.m4.
7184         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
7185         * modules/bison: New file.
7186         * modules/parse-datetime (Files): Remove m4/bison.m4.
7187         (Depends-on): Add bison.
7189 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
7191         Update users.txt.
7192         * users.txt: Add poke.
7194 2020-04-28  Bruno Haible  <bruno@clisp.org>
7196         posix_spawn_file_actions_addfchdir tests: Enhance test.
7197         * tests/test-posix_spawn5.c: Include findprog.h.
7198         (test): New function, extracted from main.
7199         (main): Invoke it. Also, invoke it with a program name such as
7200         "bin/pwd".
7201         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
7202         findprog.
7204 2020-04-28  Bruno Haible  <bruno@clisp.org>
7206         posix_spawn_file_actions_addchdir tests: Enhance test.
7207         * tests/test-posix_spawn4.c: Include findprog.h.
7208         (test): New function, extracted from main.
7209         (main): Invoke it. Also, invoke it with a program name such as
7210         "bin/pwd".
7211         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
7212         findprog.
7214 2020-04-28  Bruno Haible  <bruno@clisp.org>
7216         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
7217         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
7218         access elements of the wrong union member.
7220 2020-04-27  Bruno Haible  <bruno@clisp.org>
7222         getdate: Remove deprecated module.
7223         * modules/getdate: Remove file.
7224         * doc/getdate.texi: Remove file.
7225         * lib/getdate.h: Remove file.
7226         * NEWS: Mention the removal.
7228 2020-04-27  Bruno Haible  <bruno@clisp.org>
7230         realloc: Remove deprecated module.
7231         * modules/realloc: Remove file.
7232         * NEWS: Mention the removal.
7234 2020-04-27  Bruno Haible  <bruno@clisp.org>
7236         calloc: Remove deprecated module.
7237         * modules/calloc: Remove file.
7238         * NEWS: Mention the removal.
7240 2020-04-27  Bruno Haible  <bruno@clisp.org>
7242         malloc: Remove deprecated module.
7243         * modules/malloc: Remove file.
7244         * NEWS: Mention the removal.
7246 2020-04-27  Bruno Haible  <bruno@clisp.org>
7248         fnmatch-posix: Remove deprecated module.
7249         * modules/fnmatch-posix: Remove file.
7250         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
7251         * NEWS: Mention the removal.
7253 2020-04-27  Bruno Haible  <bruno@clisp.org>
7255         pipe: Remove deprecated module.
7256         * modules/pipe: Remove file.
7257         * lib/pipe.h: Remove file.
7258         * NEWS: Mention the removal.
7260 2020-04-27  Bruno Haible  <bruno@clisp.org>
7262         getopt: Remove deprecated module.
7263         * modules/getopt: Remove file.
7264         * NEWS: Mention the removal.
7266 2020-04-27  Bruno Haible  <bruno@clisp.org>
7268         remove-dest-slash: Remove deprecated module.
7269         * modules/rename-dest-slash: Remove file.
7270         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
7271         Update.
7272         * NEWS: Mention the removal.
7274 2020-04-27  Bruno Haible  <bruno@clisp.org>
7276         unictype/bidicategory-*: Remove deprecated modules.
7277         * modules/unictype/bidicategory-all: Remove file.
7278         * modules/unictype/bidicategory-byname: Remove file.
7279         * modules/unictype/bidicategory-name: Remove file.
7280         * modules/unictype/bidicategory-of: Remove file.
7281         * modules/unictype/bidicategory-test: Remove file.
7282         * MODULES.html.sh (Unicode string functions): Update.
7283         * NEWS: Mention the removals.
7285 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7287         Tune fts for FTS_LOGICAL+FTS_NOSTAT
7288         From a suggestion by Askar Safin in:
7289         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
7290         * lib/fts.c (fts_build): If file types are known, optimize
7291         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
7292         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
7293         non-directories.
7295 2020-04-19  Bruno Haible  <bruno@clisp.org>
7297         vasnprintf: Add support for printing wide characters using escapes.
7298         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
7299         (wctomb_fallback): New function.
7300         (local_wctomb): New function.
7301         (local_wcrtomb): New function or macro.
7302         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
7303         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
7304         %lc.
7306 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7308         fts: remove NOSTAT_LEAF_OPTIMIZATION
7309         It caused ‘find’ and ‘du’ to dump core, and it was useful
7310         only for obsolescent Linux filesystems anyway.  Problem reported in:
7311         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
7312         Quite possibly there is still a serious underlying fts bug with
7313         tight-loop-check and mutating file systems, but if so this patch
7314         should cause the bug to be triggered less often.
7315         * lib/fts.c (enum leaf_optimization): Remove
7316         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
7317         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
7318         (leaf_optimization): Remove special cases for ReiserFS and XFS.
7319         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
7320         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
7321         Remove.  All uses removed.
7323 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7325         explicit_bzero: Improve code style.
7326         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
7328 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7330         explicit_bzero: On native Windows, use SecureZeroMemory().
7331         * lib/explicit_bzero.c: Include <windows.h>.
7332         (explicit_bzero): On native Windows, use SecureZeroMemory.
7334 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7336         explicit_bzero: Use memset_s() when available.
7337         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
7338         (explicit_bzero): Use memset_s when available.
7339         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
7341 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7343         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
7344         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
7345         free() that overwrite the memory with canaries.
7347 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
7349         bootstrap: recommend git submodule update --init
7350         Reported by Bruno Haible.
7351         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
7352         * build-aux/bootstrap: recommand "git submodule update --init"
7353         rather than "git submodule init".
7355 2020-04-12  Bruno Haible  <bruno@clisp.org>
7357         explicit_bzero: Add tests.
7358         * tests/test-explicit_bzero.c: New file.
7359         * modules/explicit_bzero-tests: New file.
7361 2020-04-11  Bruno Haible  <bruno@clisp.org>
7363         explicit_bzero: Relicense under LGPLv2+.
7364         Approved by Paul Eggert.
7365         * modules/explicit_bzero (License): Change to LGPLv2+.
7367 2020-04-10  Bruno Haible  <bruno@clisp.org>
7369         findprog, relocatable-prog: Ignore directories during PATH search.
7370         Reported by Frederick Eaton via Dmitry Goncharov in
7371         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7373         * lib/findprog.c (find_in_path): When the file found in a PATH element
7374         is a directory, continue searching.
7375         * modules/findprog (Depends-on): Add sys_stat, stat.
7376         * modules/findprog-lgpl (Depends-on): Likewise.
7378         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7379         element is a directory, continue searching.
7380         * lib/relocwrapper.c: Update comments.
7381         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7382         (configure.ac-early): New section.
7384 2020-04-10  Bruno Haible  <bruno@clisp.org>
7386         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7387         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7388         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7389         * MODULES.html.sh: In a git-less tarball, use the date of the first
7390         ChangeLog entry.
7392 2020-04-04  Bruno Haible  <bruno@clisp.org>
7394         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7395         * m4/gettext.m4: Fix comments regarding the gettext library.
7396         * m4/intl-thread-locale.m4: Likewise.
7397         * m4/intlmacosx.m4: Likewise.
7398         * m4/lcmessage.m4: Likewise.
7399         * m4/nls.m4: Likewise.
7400         * m4/po.m4: Likewise.
7401         * m4/progtest.m4: Likewise.
7403 2020-04-04  Jim Meyering  <meyering@fb.com>
7405         maint: remove a stray inter-word space in a 6x-repeated comment
7406         Induce the changes by running this:
7407           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7408         * build-aux/announce-gen: Change "by  perl" to "by perl".
7409         * build-aux/gitlog-to-changelog: Likewise.
7410         * build-aux/prefix-gnulib-mk: Likewise.
7411         * build-aux/update-copyright: Likewise.
7412         * build-aux/useless-if-before-free: Likewise.
7413         * tests/test-update-copyright.sh: Likewise.
7415 2020-03-28  Bruno Haible  <bruno@clisp.org>
7417         Use module 'filename' instead of module 'dosname'.
7419         * lib/at-func.c: Include filename.h instead of dosname.h.
7420         * lib/unlinkat.c: Likewise.
7421         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7422         * modules/areadlinkat-with-size (Depends-on): Likewise.
7423         * modules/faccessat (Depends-on): Likewise.
7424         * modules/fchmodat (Depends-on): Likewise.
7425         * modules/fchownat (Depends-on): Likewise.
7426         * modules/fstatat (Depends-on): Likewise.
7427         * modules/mkdirat (Depends-on): Likewise.
7428         * modules/mkfifoat (Depends-on): Likewise.
7429         * modules/readlinkat (Depends-on): Likewise.
7430         * modules/selinux-at (Depends-on): Likewise.
7431         * modules/symlinkat (Depends-on): Likewise.
7432         * modules/unlinkat (Depends-on): Likewise.
7433         * modules/utimensat (Depends-on): Likewise.
7435         * lib/at-func2.c: Include filename.h instead of dosname.h.
7436         * modules/linkat (Depends-on): Add filename. Remove dosname.
7437         * modules/renameatu (Depends-on): Likewise.
7439         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7440         * lib/canonicalize-lgpl.c: Likewise.
7441         * modules/canonicalize (Depends-on): Add filename.
7442         * modules/canonicalize-lgpl (Depends-on): Likewise.
7444         * lib/dirname.h: Include filename.h instead of dosname.h.
7445         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7447         * lib/fchdir.c: Include filename.h instead of dosname.h.
7448         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7450         * lib/openat.c: Include filename.h instead of dosname.h.
7451         * modules/openat (Depends-on): Add filename. Remove dosname.
7453         * lib/rmdir.c: Include filename.h instead of dosname.h.
7454         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7456         * lib/savewd.c: Include filename.h instead of dosname.h.
7457         * modules/savewd (Depends-on): Add filename. Remove dosname.
7459         * lib/unlink.c: Include filename.h instead of dosname.h.
7460         * modules/unlink (Depends-on): Add filename. Remove dosname.
7462         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7463         * lib/relocwrapper.c: Update comments.
7465         * modules/lstat (Depends-on): Remove dosname.
7467 2020-03-28  Bruno Haible  <bruno@clisp.org>
7469         dosname: Redirect to 'filename'.
7470         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7471         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7472         * lib/dosname.h: Remove all definitions. Just include filename.h.
7473         * modules/dosname (Status, Notice): Mark as deprecated.
7474         (Depends-on): Add 'filename'.
7476 2020-03-28  Bruno Haible  <bruno@clisp.org>
7478         dosname: Change IS_RELATIVE_FILE_NAME.
7479         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
7480         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
7481         * NEWS: Mention the change.
7483 2020-03-28  Bruno Haible  <bruno@clisp.org>
7485         filename: Copy some definitions from module 'dosname'.
7486         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
7487         (HAS_DEVICE): Document macro.
7488         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
7489         (IS_ABSOLUTE_FILE_NAME): Consider
7490         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
7491         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
7492         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
7493         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
7494         IS_PATH_WITH_DIR.
7495         (DllMain): Update.
7496         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
7497         IS_PATH_WITH_DIR.
7498         (find_executable): Update.
7499         * NEWS: Document the deprecations.
7501 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7503         getopt-posix: port __GETOPT_PREFIX to macOS
7504         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
7505         Define to work around a problem with asm on macOS (Bug#40205).
7507 2020-03-22  Bruno Haible  <bruno@clisp.org>
7509         MODULES.html.sh: Add support for reproducible builds.
7510         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7511         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
7512         * MODULES.html.sh: Print the date of the last gnulib commit, not the
7513         current date.
7515 2020-03-22  Bruno Haible  <bruno@clisp.org>
7517         Several modules: Depend on stat.
7518         * modules/acl-permissions (Depends-on): Add stat.
7519         * modules/canonicalize (Depends-on): Likewise.
7520         * modules/file-has-acl (Depends-on): Likewise.
7521         * modules/fstat (Depends-on): Likewise.
7522         * modules/fstatat (Depends-on): Likewise.
7523         * modules/glob (Depends-on): Likewise.
7524         * modules/javacomp (Depends-on): Likewise.
7525         * modules/linkat (Depends-on): Likewise.
7526         * modules/mkdir (Depends-on): Likewise.
7527         * modules/pt_chown (Depends-on): Likewise.
7528         * modules/ptsname_r (Depends-on): Likewise.
7529         * modules/readlinkat (Depends-on): Likewise.
7530         * modules/rename (Depends-on): Likewise.
7531         * modules/renameatu (Depends-on): Likewise.
7532         * modules/tmpdir (Depends-on): Likewise.
7533         * modules/utimens (Depends-on): Likewise.
7534         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
7535         * modules/same (Depends-on): Remove stat.
7537 2020-03-22  Bruno Haible  <bruno@clisp.org>
7539         acl-permissions: Improve autoconf macro.
7540         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
7541         more reliably.
7543 2020-03-22  Bruno Haible  <bruno@clisp.org>
7545         file-has-acl: Fix module description.
7546         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
7547         (Depends-on): Depend on acl-permissions unconditionally.
7549 2020-03-21  Bruno Haible  <bruno@clisp.org>
7551         unlink: Ensure errno also on native Windows.
7552         * modules/unlink (Depends-on): Add malloc-posix.
7554 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7556         unlink: fix malloc errno typo
7557         Problem reported by Tim Rühsen in:
7558         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
7559         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
7561 2020-03-16  Bruno Haible  <bruno@clisp.org>
7563         *printf-posix: Fix m4 error (regression from 2020-03-08).
7564         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
7565         brackets in AC_COMPILE_IFELSE invocation.
7567 2020-03-08  Bruno Haible  <bruno@clisp.org>
7569         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
7570         * modules/crypto/af_alg (Depends-on): Add fstat.
7571         * modules/renameatu (Depends-on): Likewise.
7572         * modules/same (Depends-on): Likewise.
7573         * modules/term-style-control (Depends-on): Likewise.
7575 2020-03-08  Bruno Haible  <bruno@clisp.org>
7577         *printf-posix: Document why it's overridden on some glibc systems.
7578         Reported by Adrian Bunk <bunk@stusta.de> in
7579         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
7580         * doc/posix-functions/*printf.texi: Document the problem with the %n
7581         directive on some glibc systems.
7582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
7583         the cross-compilation guesses accordingly.
7585 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7587         open, openat: port to (O_RDWR | O_RDONLY) != 0
7588         Potential portability problem reported by Dan Gohman in:
7589         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
7590         * lib/open.c (open):
7591         * lib/openat.c (rpl_openat):
7592         Don’t assume O_RDONLY is disjoint from O_RDWR.
7594 2020-03-07  Bruno Haible  <bruno@clisp.org>
7596         openat: Fix theoretically possible issue on GNU/Hurd.
7597         Reported by Dan Gohman <sunfish@mozilla.com> in
7598         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
7599         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
7600         ignore the bits that are also set in O_RDONLY.
7602 2020-02-24  Bruno Haible  <bruno@clisp.org>
7604         getloadavg: Don't use /usr/local when cross-compiling on AIX.
7605         Reported by Jens Rehsack <sno@netbsd.org> in
7606         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
7607         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
7608         cross-compiling.
7610 2020-02-24  Bruno Haible  <bruno@clisp.org>
7612         fcntl: Add witness of gnulib override.
7613         Reported by Jens Rehsack <sno@netbsd.org> in
7614         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7615         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7616         macros.
7618 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
7620         Update users.txt.
7621         * users.txt: Add datamash, time.
7623 2020-02-23  Bruno Haible  <bruno@clisp.org>
7625         uni*/base: Use 'restrict'.
7626         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
7627         from lib/regex.h.
7628         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
7629         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
7630         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
7631         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
7632         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
7633         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
7634         '_UC_RESTRICT'.
7635         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
7636         u32_conv_to_encoding): Use '_UC_RESTRICT'.
7637         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
7638         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
7639         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7640         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7641         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
7642         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
7643         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
7644         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
7645         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
7646         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
7647         '_UC_RESTRICT'.
7648         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
7649         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
7650         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
7651         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
7652         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
7653         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
7654         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
7655         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
7657 2020-02-23  Bruno Haible  <bruno@clisp.org>
7659         glob, spawn: Use improved '_Restrict_' definition.
7660         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
7661         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
7663 2020-02-23  Bruno Haible  <bruno@clisp.org>
7665         crypto/gc: Use 'restrict'.
7666         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
7667         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
7669         crypto/hmac-*: Use 'restrict'.
7670         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
7671         'restrict'.
7672         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
7673         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
7674         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
7675         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
7677         crypto/sm3: Use 'restrict'.
7678         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
7679         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7681         crypto/*-buffer: Use 'restrict'.
7682         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7683         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7685         crypto/sha512-buffer: Use 'restrict'.
7686         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7687         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7688         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7690         crypto/sha256-buffer: Use 'restrict'.
7691         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7692         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7693         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7695         crypto/sha1-buffer: Use 'restrict'.
7696         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7697         'restrict'.
7698         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7700         crypto/md5-buffer: Use 'restrict'.
7701         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7702         'restrict'.
7703         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7705         crypto/md4: Use 'restrict'.
7706         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7707         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7709         crypto/md2: Use 'restrict'.
7710         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7711         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7713         crypto/rijndael: Use 'restrict'.
7714         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7715         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7716         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7718         crypto/arctwo: Use 'restrict'.
7719         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7720         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7722         crypto/arcfour: Use 'restrict'.
7723         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7724         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7726         careadlinkat: Use 'restrict'.
7727         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7728         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7729         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7731         regex-quote: Use 'restrict'.
7732         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7733         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7735         system-quote: Use 'restrict'.
7736         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7737         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7739         sh-quote: Use 'restrict'.
7740         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7741         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7743         quotearg: Use 'restrict'.
7744         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7745         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7747         parse-datetime: Use 'restrict'.
7748         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7749         'restrict'.
7750         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7752         nstrftime: Use 'restrict'.
7753         * lib/strftime.h (nstrftime): Use 'restrict'.
7754         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7756         mbstok_r: Use 'restrict'.
7757         * lib/string.in.h (mbstok_r): Use 'restrict'.
7759         xmemcoll: Use 'restrict'.
7760         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7761         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7763         memcoll: Use 'restrict'.
7764         * lib/memcoll.h (memcoll): Use 'restrict'.
7765         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7767         vasnprintf: Use 'restrict'.
7768         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7769         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7771         c-vasnprintf: Use 'restrict'.
7772         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7773         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7775         c-vsnprintf: Use 'restrict'.
7776         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7777         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7779         c-snprintf: Use 'restrict'.
7780         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7781         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7783         astrxfrm: Use 'restrict'.
7784         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7785         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7787         amemxfrm: Use 'restrict'.
7788         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7789         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7791 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7793         fchmodat, lchmod: simplify
7794         It appears that we may have overengineered lchmod and fchmodat,
7795         in that the code was prepared for some hypothetical platforms but
7796         was so complicated that it was hard to understand.  I attempted to
7797         improve the situation by simplifying the code when this
7798         simplification should not hurt on real platforms; we can re-add
7799         complexity later to port to platforms I didn’t know about.
7800         * lib/fchmodat.c (fchmodat):
7801         * lib/lchmod.c (lchmod):
7802         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7803         around the /proc code that needs it.
7804         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7805         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7806         Do not include <config.h> twice.
7807         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7808         lchmod on any known hosts.
7809         (lchmod): Do not defer to fchmodat, so that the lchmod module
7810         need not depend on the fchmodat module (which is a circular
7811         dependency).  Do not use openat, since ‘open’ suffices.
7812         Coalesce calls to lchmod/chmod.
7813         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7814         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7815         * modules/lchmod (Depends-on, configure.ac):
7816         * modules/sys_stat (Depends-on):
7817         Do not worry about replacing lchmod, since that shouldn’t happen.
7818         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7819         Do not worry about whether lchmod works on non-symlinks,
7820         since every known lchmod works on non-symlinks.
7821         * modules/lchmod (Depends-on):
7822         Remove circular dependency on fchmodat.
7824 2020-02-22  Bruno Haible  <bruno@clisp.org>
7826         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7827         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7828         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7830 2020-02-22  Bruno Haible  <bruno@clisp.org>
7832         Use 'restrict' in all POSIX function declarations.
7833         * lib/iconv.in.h (iconv): Use 'restrict'.
7834         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7835         * lib/monetary.in.h (strfmon_l): Likewise.
7836         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7837         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7838         pthread_mutex_timedlock, pthread_rwlock_init,
7839         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7840         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7841         * lib/search.in.h (tdelete): Likewise.
7842         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7843         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7844         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7845         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7846         Likewise.
7847         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7848         strtoull): Likewise.
7849         * lib/string.in.h (strncat): Likewise.
7850         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7851         recvfrom): Likewise.
7852         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7853         * lib/time.in.h (strftime): Likewise.
7854         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7855         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7856         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7857         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7858         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7859         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7860         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7861         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7862         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7863         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7864         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7865         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7867         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7868         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7870         other *_h.m4 files.
7871         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7873 2020-02-22  Bruno Haible  <bruno@clisp.org>
7875         Update NEWS.
7876         * NEWS: Mention the last change.
7878 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7880         chmodat, chownat: new modules
7881         These are split from fchmodat, fchownat.  GNU Emacs needs the
7882         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7883         lchmodat.  Split the latter two into a new module chmodat.
7884         Similarly for fchownat.  This the same basic idea for why statat
7885         was split from fstatat on 2013-01-23.
7886         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7887         Rename from FCHMODAT_INLINE.  All uses changed.
7888         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7889         Rename from FCHOWNAT_INLINE.  All uses changed.
7890         * lib/openat.h:
7891         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7892         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7893         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7894         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7895         (configure.ac): Remove fchmodat module indicator.
7896         (Makefile.am): Omit chmodat.c.
7897         (Maintainer): Add self.
7898         * modules/fchownat: Similarly, but for chown.
7899         * tests/test-fchownat.c (BASE): Don't define if already defined.
7900         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7902 2020-02-22  Bruno Haible  <bruno@clisp.org>
7904         users.txt: Add groff.
7905         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7906         * users.txt: Add groff.
7908 2020-02-22  Bruno Haible  <bruno@clisp.org>
7910         gnulib-tool: Ensure copied files are writable.
7911         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7912         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7913         * gnulib-tool (func_ensure_writable): New function.
7914         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7915         func_create_testdir, copy-file): Invoke it after copying a file.
7917 2020-02-22  Bruno Haible  <bruno@clisp.org>
7919         users.txt: Update.
7920         * users.txt: Update URLs to projects that have moved or switched to git.
7921         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7922         over the summary view. Add gawk.
7924 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7926         largefile: remove _DARWIN_USE_64_BIT_INODE
7927         It’s not needed in currently-supported macOS versions, and was
7928         problematic anyway in MacOS X 10.5 which was the only version that
7929         could use it.  Problem reported by Peter Eisentraut in:
7930         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7931         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7932         Don’t define _DARWIN_USE_64_BIT_INODE.
7933         This syncs with Autoconf master.
7935         Add ‘extern "C"’ to count-one-bits.h etc.
7936         This ports these .h files to C++.
7937         Problem reported by Simon Marchi in:
7938         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7939         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7940         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7942 2020-02-19  Bruno Haible  <bruno@clisp.org>
7944         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7945         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7946         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7947         * lib/array-mergesort.h: Accept an optional macro definition
7948         STATIC_FROMTO.
7949         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7951 2020-02-16  Bruno Haible  <bruno@clisp.org>
7953         fchmodat: Make more future-proof.
7954         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7955         NEED_FCHMODAT_NONSYMLINK_FIX.
7956         (gl_PREREQ_FCHMODAT): New macro.
7957         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7958         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7959         without lchmod function.
7960         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7962 2020-02-16  Bruno Haible  <bruno@clisp.org>
7964         lchmod: Make more future-proof.
7965         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7966         (gl_PREREQ_LCHMOD): New macro.
7967         * lib/lchmod.c (orig_lchmod): New function.
7968         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7969         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7970         function.
7971         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7973         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7974         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7976 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7978         xnanosleep: prefer pause, and get remaining time
7979         Problem reported by Vladimir Panteleev in:
7980         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7981         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7982         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7983         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7984         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7985         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7987 2020-02-16  Bruno Haible  <bruno@clisp.org>
7989         lchmod: Improve cross-compilation guess.
7990         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7991         cross-compiling, guess depending on the platform.
7993 2020-02-16  Bruno Haible  <bruno@clisp.org>
7995         fstrcmp: Add API to clean up resources.
7996         Reported by Akim Demaille <akim@lrde.epita.fr> in
7997         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7998         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7999         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
8001 2020-02-14  Bruno Haible  <bruno@clisp.org>
8003         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
8004         Reported by Christian Biesinger in
8005         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
8006         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
8007         corresponding module is not enabled.
8008         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
8009         prototype if the corresponding module is not enabled.
8011 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
8013         fchmodat, lchmod: port to buggy Linux filesystems
8014         Problem reported by Florian Weimer in:
8015         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
8016         * lib/fchmodat.c (fchmodat):
8017         * lib/lchmod.c (lchmod):
8018         Don’t assume that chmod on the O_PATH-opened fd will do
8019         the right thing on a symbolic link.
8020         * lib/fchmodat.c (fchmodat):
8021         Don’t attempt to special-case
8022         any flag value other than AT_SYMLINK_NOFOLLOW.
8024 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8026         lchmod: pacify Coverity CID 1491216
8027         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
8028         not complain about unreachable code at the ‘struct stat st;’
8029         declaration.
8031 2020-02-10  Bruno Haible  <bruno@clisp.org>
8033         copysignf: Fix link error on HP-UX with cc.
8034         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
8035         HP-UX, set COPYSIGNF_LIBM to -lm.
8037 2020-02-10  Bruno Haible  <bruno@clisp.org>
8039         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
8040         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
8041         with $(LIB_SEMAPHORE).
8042         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
8043         with $(LIB_SEMAPHORE).
8045 2020-02-10  Bruno Haible  <bruno@clisp.org>
8047         ptsname_r-tests: Avoid unused function warning.
8048         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
8050 2020-02-08  Bruno Haible  <bruno@clisp.org>
8052         lchmod: Add tests.
8053         * tests/test-lchmod.c: New file.
8054         * modules/lchmod-tests: New file.
8056 2020-02-08  Bruno Haible  <bruno@clisp.org>
8058         lchmod: Ensure declaration on HP-UX.
8059         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
8060         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
8062 2020-02-08  Bruno Haible  <bruno@clisp.org>
8064         fchmodat: Strengthen tests.
8065         * tests/test-fchmodat.c (BASE): New macro.
8066         (main): Use it, to avoid conflicts with other unit tests. Verify that
8067         fchmodat changed the file permission bits.
8069 2020-02-08  Bruno Haible  <bruno@clisp.org>
8071         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
8072         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
8073         '#undef __need_system_sys_stat_h'.
8075 2020-02-08  Bruno Haible  <bruno@clisp.org>
8077         fchmodat: Improve cross-compilation guesses.
8078         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
8079         cross-compiling, guess depending on the platform.
8080         * doc/posix-functions/fchmodat.texi: Clarify.
8082 2020-02-08  Bruno Haible  <bruno@clisp.org>
8084         Fix compilation errors in a testdir created with --with-c++-tests.
8085         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
8086         since it does not work any more with g++ >= 4.4.
8088 2020-02-08  Bruno Haible  <bruno@clisp.org>
8090         doc: Update for glibc 2.31.
8091         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
8092         * doc/gnulib.texi: Include it.
8093         * doc/pastposix-functions/h_errno.texi: Update.
8094         * doc/posix-functions/*.texi: Likewise.
8096 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
8098         mountlist: consider smb3 file systems as remote
8099         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
8100         "smb3" as remote.
8102 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8104         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
8105         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
8106         they act like chmod on non-symlinks.
8107         * NEWS:
8108         * doc/glibc-functions/lchmod.texi (lchmod):
8109         * doc/posix-functions/fchmodat.texi (fchmodat):
8110         Mention this.
8111         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
8112         config.h, and undef it after including sys/stat.h the first time.
8113         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
8114         sys/stat.h a second time after defining orig_fchmodat.
8115         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
8116         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
8117         * lib/lchmod.c: New file.
8118         * lib/sys_stat.in.h (fchmodat, lchmod):
8119         Support replacing these functions.
8120         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
8121         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
8122         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
8123         Test that lchmod works on non-symlinks.
8124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
8125         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
8126         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
8127         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
8128         * modules/lchmod (Files): Add lib/lchmod.c.
8129         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
8130         (configure.ac): Compile lchmod.c if needed.
8131         (lib_SOURCES): Add lchmod.c.
8132         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
8133         and REPLACE_LCHMOD.
8134         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
8135         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
8137 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
8139         mountlist: Consider AFS filesystems as remote
8140         df --local relies on the ME_REMOTE macro to determine if a given
8141         mount entry should be considered "local".  There is special logic
8142         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
8143         kernel's kafs module or AuriStorFS is treated as a local mount.
8144         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
8145         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
8147 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8149         Port _Noreturn to older Clang
8150         Problem reported by Jeffery Walton in:
8151         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
8152         * lib/_Noreturn.h (_Noreturn):
8153         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8154         Assume _Noreturn works in Clang 3.5 and later.
8155         It is documented to work in Clang 3.5:
8156         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
8157         and is not documented in Clang 3.4:
8158         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
8159         Apple sets __clang_version__ to a different value, so use
8160         __apple_build_version__ there.  See:
8161         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
8163 2020-02-04  Pádraig Brady  <P@draigBrady.com>
8165         test-canonicalize: avoid unused function warning
8166         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
8167         with the same guard as that used to protect usage of the null_ptr
8168         function, so that one doesn't get a -Wunused warning.
8169         * tests/test-canonicalize-lgpl.c: Likewise.
8171 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8173         libc-config: port to Apple’s Clang variant
8174         * lib/libc-config.h (__glibc_clang_prereq):
8175         Port to Apple’s Clang variant, which uses a different
8176         numbering scheme for __clang_major__.
8178 2020-02-02  Bruno Haible  <bruno@clisp.org>
8180         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
8181         * doc/containers.texi: Document these new modules.
8183 2020-02-02  Bruno Haible  <bruno@clisp.org>
8185         omap-c++: Add tests.
8186         * tests/test-omap-c++.cc: New file.
8187         * modules/omap-c++-tests: New file.
8189         omap-c++: New module.
8190         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
8191         * modules/omap-c++: New file.
8193 2020-02-02  Bruno Haible  <bruno@clisp.org>
8195         map-c++: Add tests.
8196         * tests/test-map-c++.cc: New file.
8197         * modules/map-c++-tests: New file.
8199         map-c++: New module.
8200         * lib/gl_map.hh: New file, based on lib/gl_map.h.
8201         * modules/map-c++: New file.
8203 2020-02-02  Bruno Haible  <bruno@clisp.org>
8205         oset-c++: Add tests.
8206         * tests/test-oset-c++.cc: New file.
8207         * modules/oset-c++-tests: New file.
8209         oset-c++: New module.
8210         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
8211         * modules/oset-c++: New file.
8213 2020-02-02  Bruno Haible  <bruno@clisp.org>
8215         set-c++: Add tests.
8216         * tests/test-set-c++.cc: New file.
8217         * modules/set-c++-tests: New file.
8219         set-c++: New module.
8220         * lib/gl_set.hh: New file, based on lib/gl_set.h.
8221         * modules/set-c++: New file.
8223 2020-02-02  Bruno Haible  <bruno@clisp.org>
8225         list-c++: Add tests.
8226         * tests/test-list-c++.cc: New file.
8227         * modules/list-c++-tests: New file.
8229         list-c++: New module.
8230         * lib/gl_list.hh: New file, based on lib/gl_list.h.
8231         * modules/list-c++: New file.
8233 2020-02-02  Bruno Haible  <bruno@clisp.org>
8235         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
8236         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
8237         '_Noreturn'.
8238         * lib/sigpipe-die.h (sigpipe_die): Likewise.
8240 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8242         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
8243         On x86_64 with glibc-2.30, gcc 9.2 is giving:
8244           error: argument 2 value '18446744073709551615'
8245           exceeds maximum object size 9223372036854775807
8246           [-Werror=alloc-size-larger-than=]
8247         The details of this restriction are discussed at:
8248         https://stackoverflow.com/q/42574890/4421
8249         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
8251 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8253         sysctl.h: avoid including on glibc
8254         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
8255         * lib/physmem.c: Likewise.
8257 2020-02-02  Bruno Haible  <bruno@clisp.org>
8259         list, set, oset, map, omap: Avoid imperative voice in documentation.
8260         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
8261         in the specification of functions.
8262         * lib/gl_set.h: Likewise.
8263         * lib/gl_oset.h: Likewise.
8264         * lib/gl_map.h: Likewise.
8265         * lib/gl_omap.h: Likewise.
8266         * lib/gl_*.h: Likewise.
8268 2020-02-01  Bruno Haible  <bruno@clisp.org>
8270         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
8271         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
8272         does.
8274 2020-01-29  Bruno Haible  <bruno@clisp.org>
8276         array-map, hash-map, linkedhash-map: Fix module description.
8277         * modules/array-map (Description): Fix description.
8278         * modules/hash-map (Description): Likewise.
8279         * modules/linkedhash-map (Description): Likewise.
8281 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8283         dfa: do not depend on isblank
8284         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
8285         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
8286         * modules/dfa (Depends-on): Remove isblank.
8287         * modules/isblank: Add a module indicator, for lib/dfa.c.
8289         dfa: do not assume 64-bit int
8290         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
8291         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
8292         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
8293         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
8294         Fall back to 32-bit words.
8295         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
8296         of 4 64-bit args.  All uses changed.
8298 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8300         regex: remove limits-h dependency
8301         * modules/regex (Depends-on): Remove limits-h, since the
8302         code no longer depends on ULONG_WIDTH already being defined.
8304         regex: port to non-GCC pre-IEC-60559
8305         Problem reported by Arnold Robbins in:
8306         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
8307         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
8309 2020-01-25  Bruno Haible  <bruno@clisp.org>
8311         c32isxdigit: Add tests.
8312         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
8313         * tests/test-c32isxdigit.sh: New file.
8314         * modules/c32isxdigit-tests: New file.
8316         c32isxdigit: New module.
8317         * lib/c32isxdigit.c: New file.
8318         * modules/c32isxdigit: New file.
8319         * doc/posix-functions/iswxdigit.texi: Mention the new module.
8321 2020-01-25  Bruno Haible  <bruno@clisp.org>
8323         c32isupper: Add tests.
8324         * tests/test-c32isupper.c: New file.
8325         * tests/test-c32isupper.sh: New file.
8326         * modules/c32isupper-tests: New file.
8328         c32isupper: New module.
8329         * lib/c32isupper.c: New file.
8330         * modules/c32isupper: New file.
8331         * doc/posix-functions/iswupper.texi: Mention the new module.
8333 2020-01-25  Bruno Haible  <bruno@clisp.org>
8335         c32isspace: Add tests.
8336         * tests/test-c32isspace.c: New file.
8337         * tests/test-c32isspace.sh: New file.
8338         * modules/c32isspace-tests: New file.
8340         c32isspace: New module.
8341         * lib/c32isspace.c: New file.
8342         * modules/c32isspace: New file.
8343         * doc/posix-functions/iswspace.texi: Mention the new module.
8345 2020-01-25  Bruno Haible  <bruno@clisp.org>
8347         c32ispunct: Add tests.
8348         * tests/test-c32ispunct.c: New file.
8349         * tests/test-c32ispunct.sh: New file.
8350         * modules/c32ispunct-tests: New file.
8352         c32ispunct: New module.
8353         * lib/c32ispunct.c: New file.
8354         * modules/c32ispunct: New file.
8355         * doc/posix-functions/iswpunct.texi: Mention the new module.
8357 2020-01-25  Bruno Haible  <bruno@clisp.org>
8359         c32isprint: Add tests.
8360         * tests/test-c32isprint.c: New file.
8361         * tests/test-c32isprint.sh: New file.
8362         * modules/c32isprint-tests: New file.
8364         c32isprint: New module.
8365         * lib/c32isprint.c: New file.
8366         * modules/c32isprint: New file.
8367         * doc/posix-functions/iswprint.texi: Mention the new module.
8369 2020-01-25  Bruno Haible  <bruno@clisp.org>
8371         c32islower: Add tests.
8372         * tests/test-c32islower.c: New file.
8373         * tests/test-c32islower.sh: New file.
8374         * modules/c32islower-tests: New file.
8376         c32islower: New module.
8377         * lib/c32islower.c: New file.
8378         * modules/c32islower: New file.
8379         * doc/posix-functions/iswlower.texi: Mention the new module.
8381 2020-01-25  Bruno Haible  <bruno@clisp.org>
8383         c32isgraph: Add tests.
8384         * tests/test-c32isgraph.c: New file.
8385         * tests/test-c32isgraph.sh: New file.
8386         * modules/c32isgraph-tests: New file.
8388         c32isgraph: New module.
8389         * lib/c32isgraph.c: New file.
8390         * modules/c32isgraph: New file.
8391         * doc/posix-functions/iswgraph.texi: Mention the new module.
8393 2020-01-25  Bruno Haible  <bruno@clisp.org>
8395         c32isdigit: Add tests.
8396         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8397         * tests/test-c32isdigit.sh: New file.
8398         * modules/c32isdigit-tests: New file.
8400         c32isdigit: New module.
8401         * lib/c32isdigit.c: New file.
8402         * modules/c32isdigit: New file.
8403         * doc/posix-functions/iswdigit.texi: Mention the new module.
8405 2020-01-25  Bruno Haible  <bruno@clisp.org>
8407         c32iscntrl: Add tests.
8408         * tests/test-c32iscntrl.c: New file.
8409         * tests/test-c32iscntrl.sh: New file.
8410         * modules/c32iscntrl-tests: New file.
8412         c32iscntrl: New module.
8413         * lib/c32iscntrl.c: New file.
8414         * modules/c32iscntrl: New file.
8415         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8417 2020-01-25  Bruno Haible  <bruno@clisp.org>
8419         c32isblank: Add tests.
8420         * tests/test-c32isblank.c: New file.
8421         * tests/test-c32isblank.sh: New file.
8422         * modules/c32isblank-tests: New file.
8424         c32isblank: New module.
8425         * lib/c32isblank.c: New file.
8426         * modules/c32isblank: New file.
8427         * doc/posix-functions/iswblank.texi: Mention the new module.
8429 2020-01-25  Bruno Haible  <bruno@clisp.org>
8431         c32isalpha: Add tests.
8432         * tests/test-c32isalpha.c: New file.
8433         * tests/test-c32isalpha.sh: New file.
8434         * modules/c32isalpha-tests: New file.
8436         c32isalpha: New module.
8437         * lib/c32isalpha.c: New file.
8438         * modules/c32isalpha: New file.
8439         * doc/posix-functions/iswalpha.texi: Mention the new module.
8441 2020-01-25  Bruno Haible  <bruno@clisp.org>
8443         c32isalnum: Add tests.
8444         * tests/test-c32isalnum.c: New file.
8445         * tests/test-c32isalnum.sh: New file.
8446         * modules/c32isalnum-tests: New file.
8448         c32isalnum: New module.
8449         * lib/c32isalnum.c: New file.
8450         * lib/c32is-impl.h: New file.
8451         * modules/c32isalnum: New file.
8452         * doc/posix-functions/iswalnum.texi: Mention the new module.
8454 2020-01-25  Bruno Haible  <bruno@clisp.org>
8456         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8457         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8458         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8459         c32isupper, c32isxdigit): New declarations.
8460         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8461         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8462         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8463         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8464         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8465         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8466         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8467         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8468         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8469         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8470         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8471         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8472         c32ispunct, c32isspace, c32isupper, c32isxdigit.
8474 2020-01-25  Bruno Haible  <bruno@clisp.org>
8476         mbchar, wctype: Use the corrected iswxdigit function.
8477         * modules/mbchar (Depends-on): Add iswxdigit.
8478         * modules/wctype (Depends-on): Likewise.
8480         iswxdigit: Add tests.
8481         * tests/test-iswxdigit.c: New file.
8482         * tests/test-iswxdigit.sh: New file.
8483         * modules/iswxdigit-tests: New file.
8485         iswxdigit: New module.
8486         * m4/iswxdigit.m4: New file.
8487         * lib/wctype.in.h (iswxdigit): Potentially override.
8488         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
8489         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
8490         * lib/iswxdigit.c: New file.
8491         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
8492         REPLACE_ISWXDIGIT.
8493         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
8494         REPLACE_ISWXDIGIT.
8495         * modules/iswxdigit: New file.
8496         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
8498 2020-01-25  Bruno Haible  <bruno@clisp.org>
8500         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
8501         Reported by John Donoghue <john.david.donoghue@gmail.com> in
8502         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
8503         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
8504         off_t on mingw, invoke _lseeki64 instead of lseek.
8506 2020-01-25  Bruno Haible  <bruno@clisp.org>
8508         iswdigit tests: Avoid test failure on Cygwin.
8509         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
8510         byte sequence, return 0.
8512         iswdigit: Fix test failure on native Windows.
8513         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
8515         mbchar, wctype: Use the corrected iswdigit function.
8516         * modules/mbchar (Depends-on): Add iswdigit.
8517         * modules/wctype (Depends-on): Likewise.
8519         iswdigit: Add tests.
8520         * tests/test-iswdigit.c: New file.
8521         * tests/test-iswdigit.sh: New file.
8522         * modules/iswdigit-tests: New file.
8524         iswdigit: New module.
8525         * m4/iswdigit.m4: New file.
8526         * lib/wctype.in.h (iswdigit): Potentially override.
8527         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
8528         * lib/iswdigit.c: New file.
8529         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
8530         REPLACE_ISWDIGIT.
8531         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
8532         REPLACE_ISWDIGIT.
8533         * modules/iswdigit: New file.
8534         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
8536 2020-01-25  Bruno Haible  <bruno@clisp.org>
8538         hard-locale tests: Make it easy to reuse the musl test.
8539         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
8540         * modules/hard-locale-tests (Files): Add it.
8541         (configure.ac): Invoke gl_MUSL_LIBC.
8543 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8545         regex: port to Gawk on nonstandard platforms
8546         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
8547         This is useful for Gawk, which does not use the Gnulib stdlib-h
8548         module.  Problem reported by Arnold Robbins in:
8549         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
8551 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8553         regex: fix bug with >=16 subexpressions
8554         * lib/regex_internal.h (struct re_backref_cache_entry):
8555         Use bitset_word_t as the type of eps_reachable_subexps_map,
8556         instead of unsigned short int.  This fixes a bug I introduced
8557         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
8558         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
8559         Remove unused member 'unused'.
8561         regex: simplify definition of BITSET_WORD_BITS
8562         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
8563         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
8564         * lib/regex_internal.h (BITSET_WORD_BITS):
8565         * modules/regex (Depends-on): Add limits-h.
8566         Simplify now that we can use ULONG_WIDTH.
8568 2020-01-20  Bruno Haible  <bruno@clisp.org>
8570         mbrtoc32: Add note about FreeBSD 12.
8571         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
8572         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
8573         affected.
8575 2020-01-20  Bruno Haible  <bruno@clisp.org>
8577         unistr/u8-uctomb: Fix warning.
8578         Reported by Andreas Schwab <schwab@suse.de> in
8579         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
8580         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
8581         (u8_uctomb): Add FALLTHROUGH markers.
8583 2020-01-20  Bruno Haible  <bruno@clisp.org>
8585         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
8586         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
8587         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
8588         (glthread_once): Use it.
8590 2020-01-19  Bruno Haible  <bruno@clisp.org>
8592         threadlib: Disable use of weak symbols on FreeBSD 11.
8593         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8594         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
8595         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
8596         against a bug in FreeBSD 11.
8598 2020-01-19  Bruno Haible  <bruno@clisp.org>
8600         iconv_open: Improve z/OS support.
8601         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
8602         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
8603         Remove mapping for EUC-TW.
8605 2020-01-18  Bruno Haible  <bruno@clisp.org>
8607         Rename ~~gnulib.m4 to zzgnulib.m4.
8608         Suggested by Paul Eggert.
8609         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8610         * gnulib-tool (func_get_filelist): Update.
8611         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8613 2020-01-18  Bruno Haible  <bruno@clisp.org>
8615         doc: Update license notices.
8616         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
8617         reference to a section or to a "file as part of this distribution".
8619 2020-01-18  Bruno Haible  <bruno@clisp.org>
8621         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
8622         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8623         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
8624         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
8625         AC_EGREP_CPP.
8627 2020-01-18  Bruno Haible  <bruno@clisp.org>
8629         Ensure Automake does not drop ~~gnulib.m4.
8630         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
8631         * m4/gnulib-common.m4 (gl_COMMON): Require it.
8633 2020-01-18  Bruno Haible  <bruno@clisp.org>
8635         Fix major regression from 2020-01-10.
8636         Reported by Paul Eggert in
8637         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
8638         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8639         Don't AC_REQUIRE anything.
8640         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
8641         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
8642         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
8643         use ac_compile instead.
8644         (AC_CHECK_DECL): Remove override.
8645         * m4/~~gnulib.m4: New file.
8646         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
8647         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8649 2020-01-17  Bruno Haible  <bruno@clisp.org>
8650             Paul Eggert  <eggert@cs.ucla.edu>
8652         glob: Fix use-after-free bug.
8653         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8654         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
8655         * lib/glob.c (__glob): Delay freeing dirname until after the use of
8656         end_name.
8658 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8660         vcs-to-changelog: Fix parsing of fndecl without args.
8661         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
8662         for empty arguments.
8664 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8666         vcs-to-changelog: Add documentation.
8667         * doc/vcs-to-changelog.texi: New file.
8668         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
8669         section.
8671 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8673         vcs-to-changelog: Allow loading of custom quirks file.
8674         * build-aux/vcs_to_changelog.py: New commandline option -q.
8676 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8678         vcs-to-changelog: Fix formatting of ChangeLog output.
8679         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
8680         output.
8682 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8684         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8685         Reported in
8686         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8687         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8689 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8691         crypto/gc-pbkdf2: New module.
8692         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8693         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8694         * lib/gc-pbkdf2.c: New file.
8695         * lib/gc-pbkdf2-sha1.c: Use new interface.
8696         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8697         * modules/crypto/gc-pbkdf2: New file.
8698         * modules/crypto/gc-pbkdf2-tests: New file.
8699         * tests/test-gc-pbkdf2.c: New file.
8701 2020-01-12  Bruno Haible  <bruno@clisp.org>
8703         c32stombs: Add tests.
8704         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8705         * tests/test-c32stombs-1.sh: New file, based on
8706         tests/test-c32srtombs-1.sh.
8707         * tests/test-c32stombs-2.sh: New file, based on
8708         tests/test-c32srtombs-2.sh.
8709         * tests/test-c32stombs-3.sh: New file, based on
8710         tests/test-c32srtombs-3.sh.
8711         * tests/test-c32stombs-4.sh: New file, based on
8712         tests/test-c32srtombs-4.sh.
8713         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8715         c32stombs: New module.
8716         * lib/uchar.in.h (c32stombs): New declaration.
8717         * lib/c32stombs.c: New file.
8718         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8719         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8720         * modules/c32stombs: New file.
8721         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8722         * doc/posix-functions/wcstombs.texi: Mention the new module.
8724 2020-01-11  Jim Meyering  <meyering@fb.com>
8726         perl: require the "warnings" module
8727         * m4/perl.m4: Also "use warnings", so we reject the perl found
8728         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8729         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8731 2020-01-10  Bruno Haible  <bruno@clisp.org>
8733         Fix major regression from 2020-01-04.
8734         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8735         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8736         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8737         AC_DEFUN_ONCE.
8738         (AC_CHECK_DECL): Invoke, not require, it.
8740 2020-01-10  Bruno Haible  <bruno@clisp.org>
8742         c32snrtombs: Add tests.
8743         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8744         * tests/test-c32snrtombs-1.sh: New file, based on
8745         tests/test-wcsnrtombs1.sh.
8746         * tests/test-c32snrtombs-2.sh: New file, based on
8747         tests/test-wcsnrtombs2.sh.
8748         * tests/test-c32snrtombs-3.sh: New file, based on
8749         tests/test-wcsnrtombs3.sh.
8750         * tests/test-c32snrtombs-4.sh: New file, based on
8751         tests/test-wcsnrtombs4.sh.
8752         * modules/c32snrtombs-tests: New file, based on
8753         modules/wcsnrtombs-tests.
8755         c32snrtombs: New module.
8756         * lib/uchar.in.h (c32snrtombs): New declaration.
8757         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8758         INTERNAL_STATE, WCRTOMB.
8759         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8760         * lib/c32snrtombs.c: New file.
8761         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8762         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8763         * modules/c32snrtombs: New file.
8764         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8765         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8767 2020-01-09  Bruno Haible  <bruno@clisp.org>
8769         c32srtombs: Add tests.
8770         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8771         * tests/test-c32srtombs-1.sh: New file, based on
8772         tests/test-wcsrtombs1.sh.
8773         * tests/test-c32srtombs-2.sh: New file, based on
8774         tests/test-wcsrtombs2.sh.
8775         * tests/test-c32srtombs-3.sh: New file, based on
8776         tests/test-wcsrtombs3.sh.
8777         * tests/test-c32srtombs-4.sh: New file, based on
8778         tests/test-wcsrtombs4.sh.
8779         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8781         c32srtombs: New module.
8782         * lib/uchar.in.h (c32srtombs): New declaration.
8783         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8784         INTERNAL_STATE, WCRTOMB.
8785         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8786         * lib/c32srtombs.c: New file.
8787         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8788         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8789         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8790         * modules/c32srtombs: New file.
8791         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8792         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8794 2020-01-08  Bruno Haible  <bruno@clisp.org>
8796         c32tob: Make consistent with mbrtoc32.
8797         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8798         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8799         use c32rtomb, not wctob.
8800         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8801         (Depends-on): Add c32rtomb.
8802         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8804 2020-01-08  Bruno Haible  <bruno@clisp.org>
8806         c32rtomb: Add tests.
8807         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8808         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8809         * tests/test-c32rtomb-w32.c: New file, based on
8810         tests/test-wcrtomb-w32.c.
8811         * tests/test-c32rtomb-w32-1.sh: New file, based on
8812         tests/test-wcrtomb-w32-1.sh.
8813         * tests/test-c32rtomb-w32-2.sh: New file, based on
8814         tests/test-wcrtomb-w32-2.sh.
8815         * tests/test-c32rtomb-w32-3.sh: New file, based on
8816         tests/test-wcrtomb-w32-3.sh.
8817         * tests/test-c32rtomb-w32-4.sh: New file, based on
8818         tests/test-wcrtomb-w32-4.sh.
8819         * tests/test-c32rtomb-w32-5.sh: New file, based on
8820         tests/test-wcrtomb-w32-5.sh.
8821         * tests/test-c32rtomb-w32-6.sh: New file, based on
8822         tests/test-wcrtomb-w32-6.sh.
8823         * tests/test-c32rtomb-w32-7.sh: New file, based on
8824         tests/test-wcrtomb-w32-7.sh.
8825         * modules/c32rtomb-tests: New file.
8827         c32rtomb: New module.
8828         * lib/uchar.in.h (c32rtomb): New declaration.
8829         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8830         * m4/c32rtomb.m4: New file.
8831         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8832         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8833         REPLACE_C32RTOMB.
8834         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8835         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8836         * modules/c32rtomb: New file.
8837         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8838         * doc/posix-functions/c32rtomb.texi: Document the new module.
8839         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8841 2020-01-08  Bruno Haible  <bruno@clisp.org>
8843         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8844         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8845         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8846         but is not working.
8847         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8848         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8849         differ, use the system's mbrtoc32, adding workarounds.
8850         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8851         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8852         Windows problem.
8853         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8854         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8855         use mbrtoc32, not btowc.
8856         * modules/btoc32 (Depends-on): Add mbrtoc32.
8857         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8858         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8859         * modules/mbsrtoc32s (Depends-on): Update conditions.
8860         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8861         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8862         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8863         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8864         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8866 2020-01-07  Bruno Haible  <bruno@clisp.org>
8868         wcrtomb: Make multithread-safe, except possibly on IRIX.
8869         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8870         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8871         WCRTOMB_RETVAL_BUG.
8872         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8873         wctomb only on IRIX.
8875 2020-01-05  Jim Meyering  <meyering@fb.com>
8877         tests: skip thread-using tests when threading is disabled
8878         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8879         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8880         of those, so they are skipped in this case.
8881         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8882         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8883         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8885 2020-01-05  Bruno Haible  <bruno@clisp.org>
8887         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8888         Reported by Jim Meyering in
8889         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8890         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8891         (GNULIB_defined_ptsname_r): New macro.
8892         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8893         (main): Disable the NULL argument test if canonicalize_file_name does
8894         not come from gnulib.
8895         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8896         (main): Disable the NULL argument test if canonicalize_file_name does
8897         not come from gnulib.
8898         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8899         (test_errors): Disable the NULL argument test if ptsname_r does not come
8900         from gnulib.
8902 2020-01-04  Jim Meyering  <meyering@fb.com>
8904         update-copyright: reenable its always-skipped test
8905         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8906         on 2019-06-15. Without those, an internal preliminary test would
8907         fail, causing this test always to be skipped.
8908         Verify that the test is now run and passes via this:
8909           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8911 2020-01-05  Bruno Haible  <bruno@clisp.org>
8913         mbstoc32s: Add tests.
8914         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8915         * tests/test-mbstoc32s-1.sh: New file, based on
8916         tests/test-mbsrtoc32s-1.sh.
8917         * tests/test-mbstoc32s-2.sh: New file, based on
8918         tests/test-mbsrtoc32s-2.sh.
8919         * tests/test-mbstoc32s-3.sh: New file, based on
8920         tests/test-mbsrtoc32s-3.sh.
8921         * tests/test-mbstoc32s-4.sh: New file, based on
8922         tests/test-mbsrtoc32s-4.sh.
8923         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8925         mbstoc32s: New module.
8926         * lib/uchar.in.h (mbstoc32s): New declaration.
8927         * lib/mbstoc32s.c: New file.
8928         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8929         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8930         * modules/mbstoc32s: New file.
8931         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8932         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8934 2020-01-05  Bruno Haible  <bruno@clisp.org>
8936         Tweak recently added tests.
8937         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8938         * tests/test-mbsrtoc32s.c: Likewise.
8939         * tests/test-mbsnrtoc32s.c: Likewise.
8941 2020-01-04  Bruno Haible  <bruno@clisp.org>
8943         mbsnrtoc32s: Add tests.
8944         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8945         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8946         tests/test-mbsnrtowcs1.sh.
8947         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8948         tests/test-mbsnrtowcs2.sh.
8949         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8950         tests/test-mbsnrtowcs3.sh.
8951         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8952         tests/test-mbsnrtowcs4.sh.
8953         * modules/mbsnrtoc32s-tests: New file, based on
8954         modules/mbsnrtowcs-tests.
8956         mbsnrtoc32s: New module.
8957         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8958         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8959         INTERNAL_STATE, MBRTOWC.
8960         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8961         * lib/mbsnrtoc32s.c: New file.
8962         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8963         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8964         * modules/mbsnrtoc32s: New file.
8965         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8966         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8968 2020-01-04  Bruno Haible  <bruno@clisp.org>
8970         mbsrtoc32s tests: Enhance test.
8971         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8972         test strings for UTF-8 and GB18030.
8974 2020-01-04  Bruno Haible  <bruno@clisp.org>
8976         mbsrtoc32s: Fix bug.
8977         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8978         that SMALL_WCHAR_T is defined.
8980 2020-01-04  Bruno Haible  <bruno@clisp.org>
8982         mbsrtoc32s: Add tests.
8983         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8984         * tests/test-mbsrtoc32s-1.sh: New file, based on
8985         tests/test-mbsrtowcs1.sh.
8986         * tests/test-mbsrtoc32s-2.sh: New file, based on
8987         tests/test-mbsrtowcs2.sh.
8988         * tests/test-mbsrtoc32s-3.sh: New file, based on
8989         tests/test-mbsrtowcs3.sh.
8990         * tests/test-mbsrtoc32s-4.sh: New file, based on
8991         tests/test-mbsrtowcs4.sh.
8992         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8994         mbsrtoc32s: New module.
8995         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8996         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8997         INTERNAL_STATE, MBRTOWC.
8998         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8999         * lib/mbsrtoc32s.c: New file.
9000         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
9001         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
9002         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
9003         * modules/mbsrtoc32s: New file.
9004         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
9005         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
9007 2020-01-04  Bruno Haible  <bruno@clisp.org>
9009         mbrtowc, mbrtoc32: Tighten dependendies.
9010         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
9011         REPLACE_MBSTATE_T is 1.
9012         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9013         REPLACE_MBSTATE_T is 0.
9014         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
9015         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
9016         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9017         REPLACE_MBSTATE_T is 0.
9019 2020-01-04  Bruno Haible  <bruno@clisp.org>
9021         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
9022         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
9023         * modules/uchar (Files): Add stdint.m4.
9024         (Makefile.am): Substitute SMALL_WCHAR_T.
9025         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
9027 2020-01-04  Bruno Haible  <bruno@clisp.org>
9029         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
9030         Reported by Martin Storsjö <martin@martin.st> in
9031         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
9032         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9033         New macros.
9034         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
9036 2020-01-04  Bruno Haible  <bruno@clisp.org>
9038         btoc32: Add tests.
9039         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
9040         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
9041         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
9042         * modules/btoc32-tests: New file, based on modules/btowc-tests.
9044         btoc32: New module.
9045         * lib/uchar.in.h (btoc32): New declaration.
9046         * lib/btoc32.c: New file.
9047         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
9048         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
9049         * modules/btoc32: New file.
9050         * tests/test-uchar-c++.cc: Test the signature of btoc32.
9051         * doc/posix-functions/btowc.texi: Mention the new module.
9053 2020-01-03  Bruno Haible  <bruno@clisp.org>
9055         uchar tests: Avoid compilation error with HP cc.
9056         * tests/test-uchar.c: Disable a test when HP cc is in use.
9058 2020-01-03  Bruno Haible  <bruno@clisp.org>
9060         mbrtoc32: Add tests.
9061         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
9062         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
9063         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
9064         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
9065         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
9066         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
9067         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
9068         * tests/test-mbrtoc32-w32-1.sh: New file, based on
9069         tests/test-mbrtowc-w32-1.sh.
9070         * tests/test-mbrtoc32-w32-2.sh: New file, based on
9071         tests/test-mbrtowc-w32-2.sh.
9072         * tests/test-mbrtoc32-w32-3.sh: New file, based on
9073         tests/test-mbrtowc-w32-3.sh.
9074         * tests/test-mbrtoc32-w32-4.sh: New file, based on
9075         tests/test-mbrtowc-w32-4.sh.
9076         * tests/test-mbrtoc32-w32-5.sh: New file, based on
9077         tests/test-mbrtowc-w32-5.sh.
9078         * tests/test-mbrtoc32-w32-6.sh: New file, based on
9079         tests/test-mbrtowc-w32-6.sh.
9080         * tests/test-mbrtoc32-w32-7.sh: New file, based on
9081         tests/test-mbrtowc-w32-7.sh.
9082         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
9084         mbrtoc32: New module.
9085         * lib/uchar.in.h (mbrtoc32): New declaration.
9086         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
9087         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
9088         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
9089         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
9090         REPLACE_MBRTOC32.
9091         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
9092         HAVE_MBRTOC32, REPLACE_MBRTOC32.
9093         * modules/mbrtoc32: New file, based on modules/mbrtowc.
9094         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
9095         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
9096         $(LIB_MBRTOWC).
9097         * doc/posix-functions/mbrtoc32.texi: Document the new module.
9098         * doc/posix-functions/mbrtowc.texi: Mention the new module.
9100 2020-01-03  Bruno Haible  <bruno@clisp.org>
9102         mbrtowc: Refactor to share code with mbrtoc32.
9103         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
9104         * lib/mbrtowc-impl-utf8.h: Likewise.
9105         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
9106         mbrtowc-impl.h.
9107         * modules/mbrtowc (Files): Add the new files.
9109 2020-01-03  Jim Meyering  <meyering@fb.com>
9111         doc: fix time.texi wording
9112         * doc/posix-headers/time.texi (time.h): Typo.
9114 2020-01-03  Bruno Haible  <bruno@clisp.org>
9116         mbrtowc: Refactor locale charset dispatching.
9117         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
9118         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
9119         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
9120         localcharset.h, streq.h.
9121         (enc_t): Remove type.
9122         (locale_enc): Remove function.
9123         (cached_locale_enc): Remove variable.
9124         (locale_enc_cached): Remove function.
9125         (mbrtowc): Invoke locale_encoding_classification.
9126         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
9127         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
9128         lc-charset-dispatch.c.
9129         (configure.ac): Arrange to compile lc-charset-dispatch.c.
9131 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9133         doc: mention 32-bit time_t issue
9134         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9135         * doc/posix-headers/time.texi (time.h): Mention 2038.
9137 2020-01-03  Bruno Haible  <bruno@clisp.org>
9139         mbrtowc: Ensure the mbtowc_lock is unique.
9140         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
9141         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
9142         lib/setlocale_null.c.
9143         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
9144         glthread/lock.h. Include mbtowc-lock.h.
9145         (mbtowc_lock): Remove declaration.
9146         (mbrtowc): Use mbtowc_with_lock.
9147         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
9148         threads.h. Set LIB_MBRTOWC.
9149         (gl_PREREQ_MBTOWC_LOCK): New macro.
9150         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
9151         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
9152         (Depends-on): Remove lock.
9153         (configure.ac): Arrange to compile mbtowc-lock.c.
9154         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
9155         * modules/acl (Link): Likewise.
9156         * modules/argmatch (Link): Likewise.
9157         * modules/backup-rename (Link): Likewise.
9158         * modules/backupfile (Link): Likewise.
9159         * modules/closein (Link): Likewise.
9160         * modules/closeout (Link): Likewise.
9161         * modules/copy-file (Link): Likewise.
9162         * modules/csharpcomp (Link): Likewise.
9163         * modules/csharpexec (Link): Likewise.
9164         * modules/dfa (Link): Likewise.
9165         * modules/exclude (Link): Likewise.
9166         * modules/fnmatch (Link): Likewise.
9167         * modules/fnmatch-gnu (Link): Likewise.
9168         * modules/fnmatch-posix (Link): Likewise.
9169         * modules/glob (Link): Likewise.
9170         * modules/human (Link): Likewise.
9171         * modules/javacomp (Link): Likewise.
9172         * modules/javaexec (Link): Likewise.
9173         * modules/javaversion (Link): Likewise.
9174         * modules/mbfile (Link): Likewise.
9175         * modules/mbiter (Link): Likewise.
9176         * modules/mbmemcasecmp (Link): Likewise.
9177         * modules/mbmemcasecoll (Link): Likewise.
9178         * modules/mbrlen (Link): Likewise.
9179         * modules/mbscasecmp (Link): Likewise.
9180         * modules/mbscasestr (Link): Likewise.
9181         * modules/mbschr (Link): Likewise.
9182         * modules/mbscspn (Link): Likewise.
9183         * modules/mbsinit (Link): Likewise.
9184         * modules/mbslen (Link): Likewise.
9185         * modules/mbsncasecmp (Link): Likewise.
9186         * modules/mbsnlen (Link): Likewise.
9187         * modules/mbsnrtowcs (Link): Likewise.
9188         * modules/mbspbrk (Link): Likewise.
9189         * modules/mbspcasecmp (Link): Likewise.
9190         * modules/mbsrchr (Link): Likewise.
9191         * modules/mbsrtowcs (Link): Likewise.
9192         * modules/mbssep (Link): Likewise.
9193         * modules/mbsspn (Link): Likewise.
9194         * modules/mbsstr (Link): Likewise.
9195         * modules/mbstok_r (Link): Likewise.
9196         * modules/mbswidth (Link): Likewise.
9197         * modules/mbuiter (Link): Likewise.
9198         * modules/mkdir-p (Link): Likewise.
9199         * modules/propername (Link): Likewise.
9200         * modules/quote (Link): Likewise.
9201         * modules/quotearg (Link): Likewise.
9202         * modules/quotearg-simple (Link): Likewise.
9203         * modules/regex-quote (Link): Likewise.
9204         * modules/rpmatch (Link): Likewise.
9205         * modules/sh-quote (Link): Likewise.
9206         * modules/system-quote (Link): Likewise.
9207         * modules/trim (Link): Likewise.
9208         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9209         * modules/unistdio/ulc-fprintf (Link): Likewise.
9210         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9211         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9212         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9213         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9214         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9215         * modules/xfreopen (Link): Likewise.
9216         * modules/xmemcoll (Link): Likewise.
9217         * modules/yesno (Link): Likewise.
9218         * modules/regex (Link): Add $(LIB_MBRTOWC).
9219         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
9220         instead of $(LIBTHREAD).
9221         * modules/argmatch-tests (Makefile.am): Likewise.
9222         * modules/closein-tests (Makefile.am): Likewise.
9223         * modules/copy-file-tests (Makefile.am): Likewise.
9224         * modules/dfa-tests (Makefile.am): Likewise.
9225         * modules/fnmatch-tests (Makefile.am): Likewise.
9226         * modules/glob-tests (Makefile.am): Likewise.
9227         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9228         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9229         * modules/mbrtowc-tests (Makefile.am): Likewise.
9230         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9231         * modules/mbscasestr-tests (Makefile.am): Likewise.
9232         * modules/mbschr-tests (Makefile.am): Likewise.
9233         * modules/mbscspn-tests (Makefile.am): Likewise.
9234         * modules/mbsinit-tests (Makefile.am): Likewise.
9235         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9236         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9237         * modules/mbspbrk-tests (Makefile.am): Likewise.
9238         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9239         * modules/mbsrchr-tests (Makefile.am): Likewise.
9240         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9241         * modules/mbsspn-tests (Makefile.am): Likewise.
9242         * modules/mbsstr-tests (Makefile.am): Likewise.
9243         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9244         * modules/quotearg-tests (Makefile.am): Likewise.
9245         * modules/readtokens-tests (Makefile.am): Likewise.
9246         * modules/sh-quote-tests (Makefile.am): Likewise.
9247         * modules/system-quote-tests (Makefile.am): Likewise.
9248         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9249         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9250         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9251         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9252         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9253         * modules/yesno-tests (Makefile.am): Likewise.
9254         * modules/exclude-tests (Makefile.am): Link the programs with
9255         $(LIB_MBRTOWC).
9256         * modules/regex-tests (Makefile.am): Likewise.
9257         * modules/regex-quote-tests (Makefile.am): Likewise.
9259 2020-01-03  Bruno Haible  <bruno@clisp.org>
9261         getopt-posix: Fix compilation failure in testdirs.
9262         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
9263         when the gnulib module 'getopt-posix' is enabled.
9264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
9265         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
9266         module indicator.
9267         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
9269 2020-01-03  Bruno Haible  <bruno@clisp.org>
9271         doc: Mention the 64-bit inode number problem.
9272         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
9273         64-bit inode number problem.
9274         * doc/posix-functions/stat.texi: Mention that this module fixes the
9275         64-bit inode number problem.
9276         * doc/posix-functions/lstat.texi: Likewise.
9277         * doc/posix-functions/fstat.texi: Likewise.
9278         * doc/posix-functions/readdir.texi: Add more details.
9279         * doc/posix-functions/readdir_r.texi: Likewise.
9281 2020-01-02  Bruno Haible  <bruno@clisp.org>
9283         wcrtomb: Add more tests.
9284         * tests/test-wcrtomb-w32.c: Include localcharset.h.
9285         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9286         locale_charset() returns the expected value; otherwise, skip the test.
9287         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
9288         * tests/test-wcrtomb-w32-7.sh: Likewise.
9289         * modules/wcrtomb-tests (Files): Add these files.
9290         (Depends-on): Add localcharset.
9291         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
9293 2020-01-02  Bruno Haible  <bruno@clisp.org>
9295         mbrtowc: Add more tests.
9296         * tests/test-mbrtowc-w32.c: Include localcharset.h.
9297         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9298         locale_charset() returns the expected value; otherwise, skip the test.
9299         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
9300         * tests/test-mbrtowc-w32-7.sh: Likewise.
9301         * modules/mbrtowc-tests (Files): Add these files.
9302         (Depends-on): Add localcharset.
9303         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
9305 2020-01-02  Bruno Haible  <bruno@clisp.org>
9307         mbrtowc: Fix test failures on MSVC (regression by previous commit).
9308         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
9309         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
9310         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
9311         MBRTOWC_STORES_INCOMPLETE_BUG.
9312         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
9314 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9316         doc: mention glibc bug 24269
9317         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
9318         Reformat slightly so that it looks nicer in the Grep manual.
9320 2020-01-02  Bruno Haible  <bruno@clisp.org>
9322         mbrtowc: Don't replace mbstate_t on MSVC.
9323         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
9324         a missing mbsinit function on native Windows.
9325         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
9326         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
9327         MSVC bug.
9328         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
9330 2020-01-02  Bruno Haible  <bruno@clisp.org>
9332         setlocale-null: Avoid crashing the MSVC linker.
9333         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
9334         MSVC.
9336 2020-01-02  Bruno Haible  <bruno@clisp.org>
9338         wchar: Make the HP-UX workaround work on HP-UX 11.31.
9339         * modules/wchar (Depends-on): Add inttypes-incomplete.
9340         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
9341         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
9342         of strtoimax.
9344 2020-01-02  Bruno Haible  <bruno@clisp.org>
9346         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
9347         * lib/mbrtowc.c: Include <stdint.h>.
9348         * modules/mbrtowc (Depends-on): Add stdint.
9350 2020-01-01  Pádraig Brady  <P@draigBrady.com>
9352         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
9353         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
9354         which will auto enable use of openssl, only for >= version 3,
9355         which is newly licensed under the Apache Software License.
9357 2020-01-01  Bruno Haible  <bruno@clisp.org>
9359         mbrtowc: Include function name in macro names.
9360         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
9361         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9362         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9363         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9364         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9365         C_LOCALE_MAYBE_EILSEQ.
9367 2020-01-01  Bruno Haible  <bruno@clisp.org>
9369         c32tob: New module.
9370         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9371         (c32tob): New declaration.
9372         * lib/c32tob.c: New file.
9373         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9374         macros.
9375         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9376         * modules/uchar (Depends-on): Add snippet/c++defs.
9377         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9378         uchar.h.
9379         * modules/c32tob: New file.
9380         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9381         defined.
9382         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9383         c32tob.
9384         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9385         * doc/posix-functions/wctob.texi: Mention the new module.
9387 2020-01-01  Bruno Haible  <bruno@clisp.org>
9389         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9390         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9391         $(LIB_SETLOCALE).
9393 2020-01-01  Bruno Haible  <bruno@clisp.org>
9395         hard-locale tests: Fix a conflict with the C++ tests.
9396         * modules/hard-locale-tests (Makefile.am): Build a program named
9397         'current-locale', not 'locale'.
9399 2020-01-01  Bruno Haible  <bruno@clisp.org>
9401         doc: Update documentation about wchar_t.
9402         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9403         wchar_t type.
9405 2020-01-01  Bruno Haible  <bruno@clisp.org>
9407         mbrtowc tests: Fix typos.
9408         * tests/test-mbrtowc.c (main): Fix typo.
9409         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9411 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9413         maint: update copyright notices
9414         Before doing the following changes done by hand, I also ran ‘make
9415         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9416         to do most of the copyright years automatically.  A few upstream
9417         sources are still in 2019 but these should eventually be changed
9418         automatically too.
9419         * build-aux/declared.sh (func_version):
9420         * build-aux/libtool-next-version (func_version):
9421         * build-aux/run-test (func_version):
9422         Update these notices by hand.  Put just the last year
9423         in output of programs, as per GNU coding standards.
9425 2019-12-31  Bruno Haible  <bruno@clisp.org>
9427         uchar: Add C++ tests.
9428         * tests/test-uchar-c++.cc: New file.
9429         * tests/test-uchar-c++2.cc: New file.
9430         * modules/uchar-c++-tests: New file.
9432         uchar: Add tests.
9433         * tests/test-uchar.c: New file.
9434         * modules/uchar-tests: New file.
9436         uchar: New module.
9437         * lib/uchar.in.h: New file.
9438         * m4/uchar.m4: New file.
9439         * modules/uchar: New file.
9440         * doc/posix-headers/uchar.texi: Mention the new module.
9442 2019-12-30  Jim Meyering  <meyering@fb.com>
9444         localeinfo: ->simple would be wrong for LC_ALL=C
9445         That would lead to using unnecessary and expensive code paths in dfa.c.
9446         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9447         error that would have made grep many times slower in the C locale.
9448         With this change, and a file created like this:
9449           yes 00 | head -10000000 > in
9450         Running grep as follows becomes more than 40 times faster:
9451           LC_ALL=C grep -Fw 0 in
9453 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9455         doc: document trouble with back-references
9456         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9458 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9460         doc: use “back-reference” for \1 etc.
9461         * doc/regex.texi: Consistently spell “back-reference” with
9462         a hyphen, since that’s how POSIX does it.
9464 2019-12-26  Jim Meyering  <meyering@fb.com>
9466         test-framework-sh: tighten an internal grep regexp
9467         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9468         that helps test for a working printf.
9470 2019-12-26  Bruno Haible  <bruno@clisp.org>
9472         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
9473         Reported by Paul Eggert in
9474         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
9475         Simplification by Jim Meyering.
9476         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
9477         octal escape sequence in a UTF-8 locale.
9479 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
9481         mbrtowc: port better to narrow-wchar_t platforms
9482         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
9483         wchar_t is too narrow to represent all the Unicode characters,
9484         consider a byte sequence for an out-of-wchar_t-range character to
9485         be an encoding error.  This fixes grep’s surrogate-pair test
9486         failure on AIX 7.2.
9488 2019-12-24  Bruno Haible  <bruno@clisp.org>
9490         localcharset: Avoid referencing rpl_setlocale on native Windows.
9491         * lib/localcharset.c (setlocale): Undefine.
9493 2019-12-24  Bruno Haible  <bruno@clisp.org>
9495         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
9496         * m4/semaphore.m4: New file.
9497         * modules/lock-tests (Files): Add it.
9498         (configure.ac): Require gl_SEMAPHORE.
9499         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
9501 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
9503         strptime: fix typo in previous patch
9504         Problem and fix reported by Bruno Haible in:
9505         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
9506         * lib/strptime.c (day_of_the_week): Fix paren bug.
9508 2019-12-24  Bruno Haible  <bruno@clisp.org>
9510         setlocale-null: Make it easy to rely on the lock in another library.
9511         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
9512         defined.
9514 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9516         gethrxtime, mktime, nstrftime, strptime: tweak division performance
9517         Performanced analyzed by Bruno Haible in:
9518         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
9519         * config/srclist.txt: Do not sync mktime.c for now.
9520         * lib/mktime.c (shr, ydhms_diff):
9521         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
9522         * lib/strptime.c (day_of_the_week):
9523         * lib/xtime.h (xtime_sec):
9524         Redo with neither ‘%’ nor conditional branches.
9526 2019-12-23  Bruno Haible  <bruno@clisp.org>
9528         setlocale-null: Export the lock function also on non-Windows platforms.
9529         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
9530         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
9531         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
9532         * modules/setlocale-null (configure.ac): Invoke it.
9533         (Files): Add m4/visibility.m4.
9535 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9537         gethrxtime: fix rounding bug with negative args
9538         Problem reported by Bruno Haible in:
9539         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
9540         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
9541         with negative rounding.  Common platforms can compute / and % with
9542         a single instruction, so the simplified code should be shorter and
9543         faster on these platforms anyway.
9545 2019-12-22  Bruno Haible  <bruno@clisp.org>
9547         gethrxtime: remove incorrect overflow detection
9548         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
9549         integer overflow, as it didn’t suffice.  This reverts the xtime.h
9550         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
9551         cannot now see the need for anyway (even in cases where it works),
9552         as the patch is helpful only when the signs of S and NS disagree,
9553         and all callers pass nonnegative values for S and NS.
9555 2019-12-22  Bruno Haible  <bruno@clisp.org>
9557         setlocale-null: Add standalone include file.
9558         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
9559         * lib/locale.in.h: Include setlocale_null.h.
9560         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
9561         setlocale_null): Remove declarations.
9562         * lib/setlocale_null.c: Include setlocale_null.h.
9563         * lib/localename.c: Likewise.
9564         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
9565         (Depends-on): Add snippet/arg-nonnull.
9566         (Include): Allow either "setlocale_null.h" or <locale.h>.
9568 2019-12-22  Bruno Haible  <bruno@clisp.org>
9570         strfmon_l: Fix test failures on FreeBSD and Cygwin.
9571         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
9572         AC_RUN_IFELSE test.
9573         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
9574         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
9575         problem.
9577 2019-12-22  Bruno Haible  <bruno@clisp.org>
9579         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
9580         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
9581         unconditional AC_LIBOBJ.
9582         * modules/selinux-at: Likewise.
9583         * modules/xmemdup0: Likewise.
9584         * modules/xstrtoll: Likewise.
9586 2019-12-22  Bruno Haible  <bruno@clisp.org>
9588         longlong: Mark module obsolete.
9589         * modules/longlong (Status, Notice): New sections.
9591         stdint: Assume that the compiler supports 'long long'.
9592         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
9593         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9594         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9595         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
9596         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9597         * modules/stdint (Files): Remove longlong.m4.
9598         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
9599         HAVE_UNSIGNED_LONG_LONG_INT.
9601         inttypes-incomplete: Assume that the compiler supports 'long long'.
9602         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9603         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
9604         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9605         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
9606         HAVE_LONG_LONG_INT to be 1.
9607         * modules/inttypes-incomplete (Makefile.am): Don't substitute
9608         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9610         malloca: Assume that the compiler supports 'long long'.
9611         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9612         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9613         * modules/malloca (Files): Remove longlong.m4.
9614         * modules/relocatable-prog-wrapper (Files): Likewise.
9616         atoll: Assume that the compiler supports 'long long'.
9617         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
9618         * modules/atoll (Files): Remove longlong.m4.
9620         strtoll: Assume that the compiler supports 'long long'.
9621         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
9622         * modules/strtoll (Files): Remove longlong.m4.
9624         strtoull: Assume that the compiler supports 'long long'.
9625         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
9626         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9627         * modules/strtoull (Files): Remove longlong.m4.
9629         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
9630         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
9631         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9632         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
9633         AC_TYPE_LONG_LONG_INT.
9634         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
9635         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9636         * modules/strtoimax (Files): Remove longlong.m4.
9637         * modules/strtoumax (Files): Likewise.
9639         xstrtoll: Assume that the compiler supports 'long long'.
9640         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
9641         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
9643         vasnprintf: Assume that the compiler supports 'long long'.
9644         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
9645         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
9646         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9647         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
9648         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
9649         require AC_TYPE_LONG_LONG_INT.
9650         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9651         gl_PREREQ_VASNPRINTF): Likewise.
9652         * modules/vasnprintf (Files): Remove longlong.m4.
9653         * modules/c-vasnprintf (Files): Likewise.
9654         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9655         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9656         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9657         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9658         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9659         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9660         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9662         gethrxtime: Assume that the compiler supports 'long long'.
9663         * lib/xtime.h (xtime_t): Define to 'long long int' always.
9664         (XTIME_PRECISION): Define to 1000000000 always.
9665         (xtime_make, xtime_sec): Optimize accordingly.
9666         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
9667         * modules/gethrxtime (Files): Remove longlong.m4.
9669         integer_length*: Assume that the compiler supports 'long long'.
9670         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
9671         * modules/integer_length (Files): Remove longlong.m4.
9672         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9673         * modules/integer_length_l (Files): Remove longlong.m4.
9674         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9675         * modules/integer_length_ll (Files): Remove longlong.m4.
9676         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9678         count-one-bits: Assume that the compiler supports 'long long'.
9679         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
9680         * m4/count-one-bits.m4: Remove file.
9681         * modules/count-one-bits (Files): Remove it.
9682         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9683         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9684         unconditionally.
9686         count-trailing-zeros: Assume that the compiler supports 'long long'.
9687         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9688         unconditionally.
9689         * m4/count-trailing-zeros.m4: Remove file.
9690         * modules/count-trailing-zeros (Files): Remove it.
9691         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9692         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9693         unconditionally.
9695         count-leading-zeros: Assume that the compiler supports 'long long'.
9696         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9697         unconditionally.
9698         * m4/count-leading-zeros.m4: Remove file.
9699         * modules/count-leading-zeros (Files): Remove it.
9700         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9701         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9702         unconditionally.
9704 2019-12-22  Bruno Haible  <bruno@clisp.org>
9706         localcharset: Update support for OpenBSD.
9707         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9709 2019-12-21  Bruno Haible  <bruno@clisp.org>
9711         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9712         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9713         NetBSD.
9714         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9716 2019-12-21  Bruno Haible  <bruno@clisp.org>
9718         threadlib: Improve code structure.
9719         * m4/threadlib.m4: Reorder macros. Add comments.
9721 2019-12-21  Bruno Haible  <bruno@clisp.org>
9723         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9724         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9725         here from m4/threads.m4).
9726         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9727         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9728         (gl_STDTHREADLIB): New macro.
9729         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9730         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9732 2019-12-21  Bruno Haible  <bruno@clisp.org>
9734         sched_yield: Don't depend on threadlib and yield.
9735         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9736         LIB_SCHED_YIELD.
9737         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9738         m4/yield.m4).
9739         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9740         gl_THREADLIB and gl_YIELD.
9741         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9742         based on $(LIB_SCHED_YIELD).
9743         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9744         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9745         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9746         (Depends-on): Remove threadlib.
9747         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9748         * modules/threads-h (Files): Remove m4/yield.m4.
9749         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9750         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9751         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9752         * modules/pthread-once-tests (Makefile.am): Likewise.
9753         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9754         * modules/pthread-tss-tests (Makefile.am): Likewise.
9756 2019-12-21  Bruno Haible  <bruno@clisp.org>
9758         threads-h: Don't depend on threadlib.
9759         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9760         not gl_THREADLIB_EARLY.
9762 2019-12-21  Bruno Haible  <bruno@clisp.org>
9764         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9765         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9766         with $(LIB_SETLOCALE).
9768 2019-12-21  Bruno Haible  <bruno@clisp.org>
9770         threadlib: Remove unused dependency (left over from 2019-07-06).
9771         * modules/threadlib (Depends-on): Remove havelib.
9773 2019-12-21  Bruno Haible  <bruno@clisp.org>
9775         New convention for multithread-safety tests.
9776         * tests/test-setlocale_null-mt-one.c: Renamed from
9777         tests/test-setlocale_null-one.c.
9778         * tests/test-setlocale_null-mt-all.c: Renamed from
9779         tests/test-setlocale_null-all.c.
9780         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9782 2019-12-21  Bruno Haible  <bruno@clisp.org>
9784         quotearg tests: Fix conflict with hard-locale tests.
9785         * tests/testlocale: Renamed from tests/locale.
9786         * modules/quotearg-tests (Files): Update.
9787         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9789 2019-12-21  Bruno Haible  <bruno@clisp.org>
9791         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9792         Reported by Daniel Richard G. in
9793         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9794         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9795         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9796         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9797         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9798         alternative to PTHREAD_RWLOCK_INITIALIZER.
9799         * lib/glthread/lock.c: Likewise.
9801 2019-12-21  Bruno Haible  <bruno@clisp.org>
9803         memcmp tests: Work around the clang bug.
9804         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9805         the clang optimization.
9807 2019-12-20  Bruno Haible  <bruno@clisp.org>
9809         localcharset: Add support for z/OS encoding names.
9810         * lib/localcharset.h: Mention which encodings are used as locale
9811         encodings on z/OS.
9813 2019-12-20  Bruno Haible  <bruno@clisp.org>
9815         iconv_open: Add support for z/OS encoding names.
9816         Reported by Daniel Richard G. in
9817         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9818         * lib/iconv_open-zos.gperf: New file.
9819         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9820         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9821         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9822         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9823         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9825 2019-12-20  Bruno Haible  <bruno@clisp.org>
9827         doc: Document the problem of the per-thread locale functions on z/OS.
9828         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9829         * doc/posix-functions/newlocale.texi: Likewise.
9830         * doc/posix-functions/duplocale.texi: Likewise.
9831         * doc/posix-functions/freelocale.texi: Likewise.
9833 2019-12-20  Bruno Haible  <bruno@clisp.org>
9835         localename, gettext: Fix host_os value for z/OS.
9836         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9837         cross-configuration code.
9839 2019-12-19  Jim Meyering  <meyering@fb.com>
9841         nstrftime: avoid a shadowing warning
9842         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9843         to avoid shadowing an "i" declared hundreds of lines above.
9845 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9847         dfa: struct dfamust now uses flexible array
9848         * lib/dfa.c: Include flexmember.h.
9849         (dfamust, dfamustfree): Adjust to struct dfamust change.
9850         This saves a call to malloc+free.
9851         * lib/dfa.h (struct dfamust): Make the final member a
9852         flexible array member.
9853         * modules/dfa (Depends-on): Add flexmember.
9855         dfa: fast->small for array elements
9856         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9857         since this type is used in arrays.  This change is more for
9858         documentation than for any practical effect, since the two types
9859         are the same on all known platforms.
9861 2019-12-19  Bruno Haible  <bruno@clisp.org>
9863         iconv tests: Test canonicalized, not system-dependent, encoding names.
9864         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9865         * modules/iconv-tests (Depends-on): Add iconv_open.
9867 2019-12-18  Bruno Haible  <bruno@clisp.org>
9869         localename: Fix test failure on AIX 7.2.
9870         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9871         locales on AIX.
9872         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9873         locales on AIX.
9875 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9877         Improve port of AC_C_RESTRICT to Oracle C++
9878         Problem reported by Christian Biesinger in:
9879         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9880         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9881         Oracle Developer Studio C++ 12.5 or later.
9883 2019-12-18  Bruno Haible  <bruno@clisp.org>
9885         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9886         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9888 2019-12-18  Bruno Haible  <bruno@clisp.org>
9890         localename: Ensure multithread-safety in future changes.
9891         * lib/localename.c (setlocale): Reference the system's setlocale().
9892         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9893         (gl_locale_name_posix): Likewise.
9894         * modules/localename (Depends-on): Add setlocale-null.
9896 2019-12-18  Bruno Haible  <bruno@clisp.org>
9898         setlocale-null: Make API more useful.
9899         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9900         callers changed.
9901         (setlocale_null): New declaration.
9902         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9903         extracted from setlocale_null_unlocked.
9904         (setlocale_null_unlocked): Invoke it.
9905         (setlocale_null_r): Renamed from setlocale_null.
9906         (setlocale_null): New function, extracted from setlocale_mtsafe in
9907         setlocale.c.
9908         * lib/setlocale.c: Don't include <errno.h>.
9909         (setlocale_mtsafe): Invoke setlocale_null.
9910         * lib/setlocale-lock.c: Update comments.
9911         * doc/posix-functions/setlocale.texi: Mention both functions.
9913 2019-12-18  Bruno Haible  <bruno@clisp.org>
9915         localename: Optimize code for native Windows.
9916         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9917         category (not allowed here).
9919 2019-12-18  Bruno Haible  <bruno@clisp.org>
9921         setlocale: Make calls with NULL argument multithread-safe.
9922         * lib/setlocale.c: Include <errno.h>.
9923         (setlocale_mtsafe): New function.
9924         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9925         (setlocale_improved): Renamed from rpl_setlocale.
9926         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9927         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9928         LIB_SETLOCALE.
9929         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9930         (Link): New section.
9931         * tests/locale.c: Undefine setlocale.
9932         * tests/test-setlocale_null-one.c: Likewise.
9933         * tests/test-setlocale_null-all.c: Likewise.
9934         * modules/setlocale-tests (Makefile.am): Link the test programs with
9935         $(LIB_SETLOCALE).
9936         * modules/astrxfrm-tests (Makefile.am): Likewise.
9937         * modules/btowc-tests (Makefile.am): Likewise.
9938         * modules/c-ctype-tests (Makefile.am): Likewise.
9939         * modules/c-snprintf-tests (Makefile.am): Likewise.
9940         * modules/c-strcase-tests (Makefile.am): Likewise.
9941         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9942         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9943         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9944         * modules/dfa-tests (Makefile.am): Likewise.
9945         * modules/duplocale-tests (Makefile.am): Likewise.
9946         * modules/hard-locale-tests (Makefile.am): Likewise.
9947         * modules/localcharset-tests (Makefile.am): Likewise.
9948         * modules/localename-tests (Makefile.am): Likewise.
9949         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9950         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9951         * modules/mbrtowc-tests (Makefile.am): Likewise.
9952         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9953         * modules/mbscasestr-tests (Makefile.am): Likewise.
9954         * modules/mbschr-tests (Makefile.am): Likewise.
9955         * modules/mbscspn-tests (Makefile.am): Likewise.
9956         * modules/mbsinit-tests (Makefile.am): Likewise.
9957         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9958         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9959         * modules/mbspbrk-tests (Makefile.am): Likewise.
9960         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9961         * modules/mbsrchr-tests (Makefile.am): Likewise.
9962         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9963         * modules/mbsspn-tests (Makefile.am): Likewise.
9964         * modules/mbsstr-tests (Makefile.am): Likewise.
9965         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9966         * modules/quotearg-tests (Makefile.am): Likewise.
9967         * modules/regex-tests (Makefile.am): Likewise.
9968         * modules/strfmon_l-tests (Makefile.am): Likewise.
9969         * modules/strtod-tests (Makefile.am): Likewise.
9970         * modules/strtold-tests (Makefile.am): Likewise.
9971         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9972         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9973         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9974         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9975         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9976         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9977         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9978         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9979         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9980         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9981         * modules/wcrtomb-tests (Makefile.am): Likewise.
9982         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9983         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9984         * modules/wcwidth-tests (Makefile.am): Likewise.
9985         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9986         safety fix is also available in module 'setlocale'.
9988 2019-12-18  Bruno Haible  <bruno@clisp.org>
9990         hard-locale: Make multithread-safe.
9991         * lib/hard-locale.h (hard_locale): Move documentation to here.
9992         * lib/hard-locale.c: Don't include <stdlib.h>.
9993         (GLIBC_VERSION): Remove macro.
9994         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9995         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9996         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9997         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9998         (Link): New section.
9999         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
10000         $(LIB_HARD_LOCALE).
10002 2019-12-18  Bruno Haible  <bruno@clisp.org>
10004         hard-locale: Avoid test failure on Haiku.
10005         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
10007 2019-12-18  Bruno Haible  <bruno@clisp.org>
10009         setlocale-null: Handle NULL result from setlocale.
10010         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
10011         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
10012         from setlocale or _wsetlocale.
10014 2019-12-18  Bruno Haible  <bruno@clisp.org>
10016         hard-locale: Add test.
10017         * tests/test-hard-locale.c: New file.
10018         * tests/locale.c: New file.
10019         * modules/hard-locale-tests: New file.
10021 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10023         dfa: do not match invalid UTF-8
10024         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
10025         from 5 to 9 tokens; this is needed due to the changes to
10026         add_utf8_anychar.
10027         (charclass_index): 2nd arg is now pointer-to-const.
10028         (add_utf8_anychar): Match only valid UTF-8 byte sequences
10029         instead of allowing overlong encodings or surrogate halves.
10031         dfa: simplify charclass by assuming C99
10032         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
10033         (charclass_word): Now always uint_fast64_t.
10034         (CHARCLASS_PAIR): Remove.
10035         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
10037         fts: tune via calloc
10038         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
10040         dfa: tune via xzalloc
10041         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
10043 2019-12-17  Bruno Haible  <bruno@clisp.org>
10045         localcharset: Fix multithread-safety bug on Windows and OS/2.
10046         * lib/localcharset.h (locale_charset): Clarify when the result becomes
10047         invalid.
10048         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
10049         assemble the result.
10051 2019-12-17  Bruno Haible  <bruno@clisp.org>
10053         localcharset: Optimize code for native Windows.
10054         * lib/localcharset.c (locale_charset): Don't bother calling
10055         setlocale (LC_ALL, NULL) since we're not interested in its result.
10057 2019-12-17  Bruno Haible  <bruno@clisp.org>
10059         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
10060         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
10061         setlocale.
10062         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
10063         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
10064         * modules/nl_langinfo (Depends-on): Add setlocale-null.
10066 2019-12-17  Bruno Haible  <bruno@clisp.org>
10068         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
10069         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
10070         stack-allocated buffer to assemble each result and different static
10071         buffers to return it.
10072         * tests/test-nl_langinfo-mt.c: New file.
10073         * modules/nl_langinfo-tests (Files): Add it.
10074         (Depends-on): Add thread, nanosleep.
10075         (Makefile.am): Build test-nl_langinfo-mt test.
10077 2019-12-17  Bruno Haible  <bruno@clisp.org>
10079         langinfo: Document more details.
10080         * doc/posix-headers/langinfo.texi: List platform details.
10081         * doc/posix-functions/nl_langinfo.texi: Likewise.
10083 2019-12-17  Bruno Haible  <bruno@clisp.org>
10085         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
10086         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
10087         and Martin Storsjö <martin@martin.st>
10088         in <https://savannah.gnu.org/bugs/?57406>.
10089         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
10090         mingw.
10092 2019-12-17  Bruno Haible  <bruno@clisp.org>
10094         glob: Avoid warning on mingw.
10095         Reported by Christian Biesinger <cbiesinger@google.com> in
10096         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
10097         * lib/glob.c (__stat64): Undefine first.
10099 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10101         xalloc: tune xzalloc for fresh allocations
10102         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
10103         because when the memory is freshly allocated from the OS via sbrk
10104         or mmap, calloc can avoid doing the memset.
10106         dfa: new function dfacopysyntax
10107         * lib/dfa.c (struct dfa): Move syntax member later so
10108         that dfacopysyntax can easily clear earlier members.
10109         (dfacopysyntax): New function, used by Gawk.
10111 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10113         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
10114         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
10115         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
10116         if not already defined.
10118         dfa: remove one dependency on MB_CUR_MAX
10119         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
10121         dfa: remove struct lexer_state.cur_mb_len
10122         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
10123         as it’s not needed and the code is simpler without it.
10124         All uses removed.
10126 2019-12-16  Bruno Haible  <bruno@clisp.org>
10128         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
10129         Reported by Arnold Robbins <arnold@skeeve.com>.
10130         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
10131         copied from lib/glthread/lock.h.
10132         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
10133         (setlocale_null_with_lock): If pthread_in_use() is false, use
10134         setlocale_null_unlocked directly.
10135         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
10136         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
10137         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
10138         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
10139         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
10140         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
10142 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10144         dfa: make dfasyntax thread-safe
10145         Problem reported by Bruno Haible in:
10146         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
10147         * lib/dfa.c: Do not include locale.h.
10148         (struct dfa): Remove simple_locale member.
10149         All uses replaced by localeinfo.simple.
10150         (using_simple_locale): Remove; now present (with some
10151         changes) in localeinfo.c.
10152         (dfasyntax): No need to initialize removed member.
10154         localeinfo: record whether locale is simple
10155         * lib/localeinfo.c (using_simple_locale): New function,
10156         copied here from lib/dfa.c but with a change: it uses
10157         strcoll for its heuristic, instead of using setlocale.
10158         This lets it be thread-safe.
10159         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
10161 2019-12-15  Bruno Haible  <bruno@clisp.org>
10163         duplocale: Fix multithread-safety bug on AIX.
10164         * lib/duplocale.c: Don't include <stdlib.h>.
10165         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
10166         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10167         Set LIB_DUPLOCALE.
10168         * modules/duplocale (Depends-on): Add setlocale-null.
10169         (Link): New section.
10170         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
10171         $(LIB_DUPLOCALE).
10173 2019-12-15  Bruno Haible  <bruno@clisp.org>
10175         setlocale-null: Add tests.
10176         * tests/test-setlocale_null.c: New file.
10177         * tests/test-setlocale_null-one.c: New file.
10178         * tests/test-setlocale_null-all.c: New file.
10179         * modules/setlocale-null-tests: New file.
10181         setlocale-null: New module.
10182         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
10183         setlocale_null): New declarations.
10184         * lib/setlocale_null.c: New file.
10185         * lib/setlocale-lock.c: New file.
10186         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
10187         * m4/setlocale_null.m4: New file.
10188         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
10189         GNULIB_SETLOCALE_NULL.
10190         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
10191         * modules/setlocale-null: New file.
10192         * doc/posix-functions/setlocale.texi: Mention the new module.
10194 2019-12-15  Bruno Haible  <bruno@clisp.org>
10196         lock tests: Skip test when no multithreading is enabled.
10197         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
10199 2019-12-14  Bruno Haible  <bruno@clisp.org>
10201         locale, duplocale, localename: Fix last patch.
10202         Reported by Daniel Richard G. in
10203         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
10204         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
10205         Don't define if locale_t does not exist.
10207 2019-12-13  Bruno Haible  <bruno@clisp.org>
10209         locale, duplocale, localename: Fix errors if locale_t does not exist.
10210         Reported by Daniel Richard G. in
10211         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
10212         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
10213         macros.
10214         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
10215         HAVE_NEWLOCALE.
10216         * tests/test-localename.c: Likewise.
10217         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
10218         HAVE_DUPLOCALE.
10219         * tests/test-locale-c++.cc: Likewise.
10221 2019-12-13  Bruno Haible  <bruno@clisp.org>
10223         wcstok: Fix test failure on HP-UX.
10224         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
10225         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
10227 2019-12-12  Bruno Haible  <bruno@clisp.org>
10229         strtod, strtold tests: Avoid test failure on AIX 7.2.
10230         * tests/test-strtod1.c (main): Allow implementations in which ',' and
10231         '.' both are radix characters.
10232         * tests/test-strtold1.c (main): Likewise.
10234 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10236         dfa: prefer ptrdiff_t for API, too
10237         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
10238         but do this only for internal use for now.
10239         * NEWS: Mention the API change.
10240         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
10241         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
10242         values known to be nonnegative.
10243         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
10244         Prefer idx_t or ptrdiff_t to size_t for API.
10245         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
10246         Prefer ptrdiff_t to size_t for API.
10248         stdalign: port to xlclang 16.01
10249         Problem reportd by Bruno Haible in:
10250         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
10251         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
10252         ((__aligned__ (...))) with xlclang, as a top-level
10253         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
10254         xlclang version 16.01.0000.0001; the alignment directive is ignored.
10256 2019-12-12  Bruno Haible  <bruno@clisp.org>
10258         duplocale: Fix test failure on AIX 7.2 with xlclang.
10259         * lib/duplocale.c: Include <stdlib.h>.
10260         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
10261         value.
10263 2019-12-12  Bruno Haible  <bruno@clisp.org>
10265         stddef: Document the AIX xlc issue.
10266         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
10268 2019-12-12  Bruno Haible  <bruno@clisp.org>
10270         duplocale: Don't attempt to override if locale_t does not exist.
10271         Reported by Daniel Richard G. in
10272         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
10273         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
10274         HAVE_DUPLOCALE to 0.
10276 2019-12-12  Bruno Haible  <bruno@clisp.org>
10278         wcwidth: Avoid test failure on AIX 7.2.
10279         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
10280         negative.
10281         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
10283 2019-12-12  Bruno Haible  <bruno@clisp.org>
10285         ilogbl: Work around Cygwin bug.
10286         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
10287         correct.
10288         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
10290 2019-12-12  Bruno Haible  <bruno@clisp.org>
10292         strtold: Work around Cygwin bug.
10293         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
10294         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
10295         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
10296         STRTOLD_HAS_UNDERFLOW_BUG is defined.
10297         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
10299 2019-12-12  Bruno Haible  <bruno@clisp.org>
10301         strtold: Fix autoconf test.
10302         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
10304 2019-12-11  Bruno Haible  <bruno@clisp.org>
10306         fsync tests: Skip test that is known to fail.
10307         * doc/posix-functions/fsync.texi: Update list of platforms.
10308         * tests/test-fsync.c (main): Skip test with read-only file descriptors
10309         that is known to fail on AIX and Cygwin.
10311 2019-12-11  Bruno Haible  <bruno@clisp.org>
10313         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
10314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
10315         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
10316         HAVE_GETADDRINFO as a C macro.
10317         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
10318         declare as replacement functions.
10319         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
10320         define as no-op overrides.
10321         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
10322         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
10323         * modules/getaddrinfo (Depends-on, configure.ac): Test
10324         REPLACE_GETADDRINFO.
10325         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
10326         problem.
10327         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
10328         convention problems.
10330 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10332         dfa: prefer signed integers for internals
10333         Signed integers can be checked more easily for integer overflow.
10334         * lib/dfa.c (position, struct lexer_state, struct parser_state)
10335         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
10336         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
10337         (nsubtoks, copytoks, closure, alloc_position_set, delete)
10338         (replace, state_index, epsclosure, charclass_context)
10339         (state_separate_contexts, merge_nfa_state, dfaoptimize)
10340         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
10341         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
10342         (comsubs, inboth, allocmust):
10343         Prefer a signed to an unsigned integer when calculating indexes,
10344         unless the integer is part of the external API (a bigger deal,
10345         and to be done later).
10347         dfa: fix index overflow
10348         * lib/dfa.c (compare): Avoid integer overflow when analyzing
10349         very large regular expressions.
10351         dfa: update commentary for previous change
10352         * NEWS: Mention the change.
10353         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
10355 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10357         dfa: separate parse and compile phase
10358         ‘dfamust’ must be called after parsing and before tokens are
10359         reordered, but both are executed in the compilation phase.
10360         Token reordering was introduced in Gnulib commit
10361         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10362         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10363         * lib/dfa.c (dfaparse): Change it to global function.
10364         (dfacomp): If first argument is NULL, skip parse.
10365         * lib/dfa.h: (dfaparse): Add a prototype.
10367 2019-12-11  Bruno Haible  <bruno@clisp.org>
10369         unistd tests: Fix link error on MSVC.
10370         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10371         $(LIB_GETLOGIN).
10373 2019-12-11  Bruno Haible  <bruno@clisp.org>
10375         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10376         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10377         and POSIX substitutes are supported in C++ mode.
10378         * NEWS: Likewise.
10380 2019-12-11  Bruno Haible  <bruno@clisp.org>
10382         stddef: Fix compilation error in C++ mode on MSVC.
10383         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10384         instead, include <cstddef>.
10386 2019-12-11  Bruno Haible  <bruno@clisp.org>
10388         unistd: Fix compilation error in C++ mode on MSVC.
10389         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10390         does not have <unistd.h>.
10392 2019-12-11  Bruno Haible  <bruno@clisp.org>
10394         locale: Fix compilation error in C++ mode on MSVC.
10395         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10396         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10397         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10398         int_n_sep_by_space): Define as macros on MSVC.
10400 2019-12-11  Bruno Haible  <bruno@clisp.org>
10402         wchar: Fix compilation error in C++ mode on MSVC.
10403         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10405 2019-12-11  Bruno Haible  <bruno@clisp.org>
10407         pthread-thread: Fix compilation error in C++ mode on MSVC.
10408         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10409         _GL_CXXALIAS_RPL invocation.
10411 2019-12-08  Bruno Haible  <bruno@clisp.org>
10413         Fix compilation errors in C++ mode on Haiku.
10414         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10415         non-glibc systems.
10416         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10417         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10418         posix_spawnattr_setschedparam): Likewise.
10419         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10420         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10421         * lib/unistd.in.h (usleep): Likewise.
10423 2019-12-08  Bruno Haible  <bruno@clisp.org>
10425         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10426         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10427         * modules/fseeko (configure.ac-early): Require it instead of
10428         AC_FUNC_FSEEKO.
10429         * modules/ftello (configure.ac-early): Likewise.
10430         * modules/fflush (configure.ac-early): Likewise.
10432 2019-12-08  Bruno Haible  <bruno@clisp.org>
10434         Fix compilation error in C++ mode on HP-UX 11.
10435         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10436         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10438 2019-12-08  Bruno Haible  <bruno@clisp.org>
10440         Fix compilation errors on HP-UX 11/ia64.
10441         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10442         _GL_FUNCDECL_SYS.
10444 2019-12-08  Bruno Haible  <bruno@clisp.org>
10446         Fix compilation error in C++ mode on OpenBSD.
10447         * lib/signal.in.h (signal): Declare on OpenBSD.
10449 2019-12-08  Bruno Haible  <bruno@clisp.org>
10451         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10452         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10453         instead of #error.
10455 2019-12-08  Bruno Haible  <bruno@clisp.org>
10457         Fix compilation errors in C++ mode on FreeBSD.
10458         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10459         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10460         * lib/threads.in.h (thrd_exit): Likewise.
10461         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10463 2019-12-08  Bruno Haible  <bruno@clisp.org>
10465         Fix compilation errors in C++ mode on macOS and FreeBSD.
10466         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10467         or FreeBSD with clang, use the approach without C preprocessor macro.
10469 2019-12-07  Bruno Haible  <bruno@clisp.org>
10471         Fix compilation errors in C++ mode on AIX with xlclang++.
10472         Reported by Christian Biesinger <cbiesinger@google.com> in
10473         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10474         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
10476 2019-12-07  Bruno Haible  <bruno@clisp.org>
10478         Document compilation error in C++ mode on NetBSD 8.0.
10479         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
10481 2019-12-07  Bruno Haible  <bruno@clisp.org>
10483         Fix compilation errors in C++ mode on Solaris 10.
10484         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
10485         to non-empty on Solaris with a non-GCC compiler.
10486         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
10488 2019-12-07  Bruno Haible  <bruno@clisp.org>
10490         Reword NEWS entry.
10491         * NEWS: Reword the latest NEWS entry.
10493 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
10495         Move xstrtol_fatal to a new xstrtol-error module.
10496         * lib/xstrtol.h: Stop including <getopt.h>.
10497         (xstrtol_fatal): Move ...
10498         * lib/xstrtol-error.h: ... here.  New file.
10499         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
10500         * tests/test-xstrtol.c: Likewise.
10501         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
10502         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
10503         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
10504         * modules/xstrtol-error: New file.
10505         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
10506         * MODULES.html.sh: Add xstrtol-error.
10507         * NEWS: Document the change.
10509 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10511         nstrftime: better width support for %N, %z
10512         * lib/nstrftime.c (width_add, width_add1, width_cpy):
10513         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
10514         a new WIDTH parameter.
10515         (add, add1, cpy): Use these macros.
10516         (width_add): Do not treat digits == 0 as a special case,
10517         do not pad if padding is ‘-’, and do not use a negative width.
10518         (__strftime_internal): Redo formatting of nanoseconds and numeric
10519         timezones to avoid buffer misuse in unusual cases, and so that
10520         widths make more sense.  Add support for widths greater than 9 to
10521         the %N format; they are zero filled on the right.
10522         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
10524 2019-12-05  Bruno Haible  <bruno@clisp.org>
10526         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
10527         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
10528         set REPLACE_ISFINITE to 1.
10529         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
10530         REPLACE_ISINF to 1.
10531         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
10532         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
10533         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10534         * lib/threads.in.h (call_once): Likewise.
10535         * lib/iconv.in.h (iconv): Likewise.
10537 2019-12-05  Bruno Haible  <bruno@clisp.org>
10539         wchar: Add more C++ tests.
10540         Reported by Christian Biesinger <cbiesinger@google.com> in
10541         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10542         * tests/test-wchar-c++3.cc: New file.
10543         * modules/wchar-c++-tests (Files): Add it.
10544         (Makefile.am): Compile it.
10546 2019-12-05  Bruno Haible  <bruno@clisp.org>
10548         Add more C++ tests.
10550         assert-h: Add C++ tests.
10551         * tests/test-assert-h-c++.cc: New file.
10552         * tests/test-assert-h-c++2.cc: New file.
10553         * modules/assert-h-c++-tests: New file.
10554         * modules/assert-h-tests: New file.
10556         ctype: Add C++ tests.
10557         * tests/test-ctype-c++.cc: New file.
10558         * tests/test-ctype-c++2.cc: New file.
10559         * modules/ctype-c++-tests: New file.
10560         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
10562         errno: Add C++ tests.
10563         * tests/test-errno-c++.cc: New file.
10564         * tests/test-errno-c++2.cc: New file.
10565         * modules/errno-c++-tests: New file.
10566         * modules/errno-tests (Depends-on): Add errno-c++-tests.
10568         float: Add C++ tests.
10569         * tests/test-float-c++.cc: New file.
10570         * tests/test-float-c++2.cc: New file.
10571         * modules/float-c++-tests: New file.
10572         * modules/float-tests (Depends-on): Add float-c++-tests.
10574         inttypes: Add more C++ tests.
10575         * tests/test-inttypes-c++2.cc: New file.
10576         * modules/inttypes-c++-tests (Files): Add it.
10577         (Makefile.am): Compile it.
10579         limits-h: Add C++ tests.
10580         * tests/test-limits-h-c++.cc: New file.
10581         * tests/test-limits-h-c++2.cc: New file.
10582         * modules/limits-h-c++-tests: New file.
10583         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
10585         stdarg: Add C++ tests.
10586         * tests/test-stdarg-c++.cc: New file.
10587         * tests/test-stdarg-c++2.cc: New file.
10588         * modules/stdarg-c++-tests: New file.
10589         * modules/stdarg-tests: New file.
10591         stdbool: Add C++ tests.
10592         * tests/test-stdbool-c++.cc: New file.
10593         * tests/test-stdbool-c++2.cc: New file.
10594         * modules/stdbool-c++-tests: New file.
10595         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
10597         stddef: Add C++ tests.
10598         * tests/test-stddef-c++.cc: New file.
10599         * tests/test-stddef-c++2.cc: New file.
10600         * modules/stddef-c++-tests: New file.
10601         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
10603         stdint: Add C++ tests.
10604         * tests/test-stdint-c++.cc: New file.
10605         * tests/test-stdint-c++2.cc: New file.
10606         * modules/stdint-c++-tests: New file.
10607         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10609         wchar: Add more C++ tests.
10610         * tests/test-wchar-c++2.cc: New file.
10611         * modules/wchar-c++-tests (Files): Add it.
10612         (Makefile.am): Compile it.
10614         wctype-h: Add more C++ tests.
10615         * tests/test-wctype-h-c++2.cc: New file.
10616         * modules/wctype-h-c++-tests (Files): Add it.
10617         (Makefile.am): Compile it.
10619 2019-12-04  Bruno Haible  <bruno@clisp.org>
10621         Fix compilation errors in C++ mode with xlclang++ on AIX.
10622         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
10623         C++ mode on AIX.
10624         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
10625         without C preprocessor macro.
10626         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
10627         _GL_CXXALIAS_SYS.
10628         * lib/threads.in.h (thrd_exit): Likewise.
10630 2019-12-04  Bruno Haible  <bruno@clisp.org>
10632         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
10633         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
10634         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
10636 2019-12-04  Bruno Haible  <bruno@clisp.org>
10638         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10639         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
10640         _GL_CXXALIASWARN invocation on non-glibc systems.
10641         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
10642         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
10643         iswctype, towlower, towupper): Likewise.
10645 2019-12-03  Bruno Haible  <bruno@clisp.org>
10647         Avoid hassles caused by [[noreturn]] in C++.
10648         Reported by Christian Biesinger <cbiesinger@google.com> in
10649         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
10650         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
10651         * lib/_Noreturn.h: Likewise.
10653 2019-12-02  Bruno Haible  <bruno@clisp.org>
10655         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
10656         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
10657         LIBMULTITHREAD.
10658         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
10659         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
10660         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
10661         gl_THREADLIB.
10662         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
10664 2019-12-02  Bruno Haible  <bruno@clisp.org>
10666         Fix some more link errors with --enable-threads=isoc.
10667         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
10668         * modules/pthread-rwlock (Depends-on): Likewise.
10670 2019-12-02  Bruno Haible  <bruno@clisp.org>
10672         Fix link errors with --enable-threads=posix on AIX.
10673         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
10674         program with $(LIBTHREAD).
10675         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
10676         program with $(LIBTHREAD).
10678 2019-12-02  Bruno Haible  <bruno@clisp.org>
10680         Fix link errors with --enable-threads=posix on AIX.
10681         * modules/mbrtowc (Link): New section.
10682         * modules/acl (Link): Likewise.
10683         * modules/argmatch (Link): Likewise.
10684         * modules/backup-rename (Link): Likewise.
10685         * modules/backupfile (Link): Likewise.
10686         * modules/closein (Link): Likewise.
10687         * modules/closeout (Link): Likewise.
10688         * modules/copy-file (Link): Likewise.
10689         * modules/csharpcomp (Link): Likewise.
10690         * modules/csharpexec (Link): Likewise.
10691         * modules/dfa (Link): Likewise.
10692         * modules/exclude (Link): Likewise.
10693         * modules/fnmatch (Link): Likewise.
10694         * modules/fnmatch-gnu (Link): Likewise.
10695         * modules/fnmatch-posix (Link): Likewise.
10696         * modules/glob (Link): Likewise.
10697         * modules/human (Link): Likewise.
10698         * modules/javacomp (Link): Likewise.
10699         * modules/javaexec (Link): Likewise.
10700         * modules/javaversion (Link): Likewise.
10701         * modules/mbfile (Link): Likewise.
10702         * modules/mbiter (Link): Likewise.
10703         * modules/mbmemcasecmp (Link): Likewise.
10704         * modules/mbmemcasecoll (Link): Likewise.
10705         * modules/mbrlen (Link): Likewise.
10706         * modules/mbscasecmp (Link): Likewise.
10707         * modules/mbscasestr (Link): Likewise.
10708         * modules/mbschr (Link): Likewise.
10709         * modules/mbscspn (Link): Likewise.
10710         * modules/mbsinit (Link): Likewise.
10711         * modules/mbslen (Link): Likewise.
10712         * modules/mbsncasecmp (Link): Likewise.
10713         * modules/mbsnlen (Link): Likewise.
10714         * modules/mbsnrtowcs (Link): Likewise.
10715         * modules/mbspbrk (Link): Likewise.
10716         * modules/mbspcasecmp (Link): Likewise.
10717         * modules/mbsrchr (Link): Likewise.
10718         * modules/mbsrtowcs (Link): Likewise.
10719         * modules/mbssep (Link): Likewise.
10720         * modules/mbsspn (Link): Likewise.
10721         * modules/mbsstr (Link): Likewise.
10722         * modules/mbstok_r (Link): Likewise.
10723         * modules/mbswidth (Link): Likewise.
10724         * modules/mbuiter (Link): Likewise.
10725         * modules/mkdir-p (Link): Likewise.
10726         * modules/propername (Link): Likewise.
10727         * modules/quote (Link): Likewise.
10728         * modules/quotearg (Link): Likewise.
10729         * modules/quotearg-simple (Link): Likewise.
10730         * modules/regex-quote (Link): Likewise.
10731         * modules/rpmatch (Link): Likewise.
10732         * modules/sh-quote (Link): Likewise.
10733         * modules/system-quote (Link): Likewise.
10734         * modules/trim (Link): Likewise.
10735         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10736         * modules/unistdio/ulc-fprintf (Link): Likewise.
10737         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10738         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10739         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10740         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10741         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10742         * modules/xfreopen (Link): Likewise.
10743         * modules/xmemcoll (Link): Likewise.
10744         * modules/yesno (Link): Likewise.
10745         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10746         * modules/argmatch-tests (Makefile.am): Likewise.
10747         * modules/closein-tests (Makefile.am): Likewise.
10748         * modules/copy-file-tests (Makefile.am): Likewise.
10749         * modules/dfa-tests (Makefile.am): Likewise.
10750         * modules/fnmatch-tests (Makefile.am): Likewise.
10751         * modules/glob-tests (Makefile.am): Likewise.
10752         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10753         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10754         * modules/mbrtowc-tests (Makefile.am): Likewise.
10755         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10756         * modules/mbscasestr-tests (Makefile.am): Likewise.
10757         * modules/mbschr-tests (Makefile.am): Likewise.
10758         * modules/mbscspn-tests (Makefile.am): Likewise.
10759         * modules/mbsinit-tests (Makefile.am): Likewise.
10760         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10761         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10762         * modules/mbspbrk-tests (Makefile.am): Likewise.
10763         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10764         * modules/mbsrchr-tests (Makefile.am): Likewise.
10765         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10766         * modules/mbsspn-tests (Makefile.am): Likewise.
10767         * modules/mbsstr-tests (Makefile.am): Likewise.
10768         * modules/quotearg-tests (Makefile.am): Likewise.
10769         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10770         * modules/readtokens-tests (Makefile.am): Likewise.
10771         * modules/regex-quote-tests (Makefile.am): Likewise.
10772         * modules/sh-quote-tests (Makefile.am): Likewise.
10773         * modules/system-quote-tests (Makefile.am): Likewise.
10774         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10775         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10776         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10777         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10778         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10779         * modules/yesno-tests (Makefile.am): Likewise.
10781 2019-12-02  Bruno Haible  <bruno@clisp.org>
10783         Simplify link sections.
10784         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10785         * modules/lock (Link): Likewise.
10786         * modules/cond (Link): Likewise.
10787         * modules/tls (Link): Likewise.
10788         * modules/yield (Link): Likewise.
10789         * modules/regex (Link): Likewise.
10790         * modules/localename (Link): Likewise.
10791         * modules/unicase/locale-language (Link): Likewise.
10792         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10794 2019-12-02  Bruno Haible  <bruno@clisp.org>
10796         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10797         * tests/test-thread_self.c (main): Disable test on AIX.
10799 2019-12-01  Bruno Haible  <bruno@clisp.org>
10801         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10802         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10803         gl_THREADLIB_EARLY_BODY.
10804         (gl_THREADLIB_EARLY_BODY): Invoke it.
10805         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10806         (gl_THREADLIB_BODY): Invoke it.
10807         (gl_PTHREADLIB): New macro.
10808         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10809         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10810         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10811         * modules/pthread-h (Files): Add threadlib.m4.
10812         (Depends-on): Remove threadlib.
10813         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10814         and _THREAD_SAFE here.
10815         (Link): Use LIBPTHREAD, not LIBTHREAD.
10816         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10817         LIBMULTITHREAD.
10818         * modules/pthread-once (Link): Likewise.
10819         * modules/pthread-mutex (Link): Likewise.
10820         * modules/pthread-rwlock (Link): Likewise.
10821         * modules/pthread-cond (Link): Likewise.
10822         * modules/pthread-tss (Link): Likewise.
10823         * modules/pthread-spin (Link): Likewise.
10824         * modules/pthread (Link): Likewise.
10825         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10826         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10827         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10828         test_pthread_once2_LDADD): Likewise.
10829         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10830         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10831         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10832         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10834 2019-12-01  Bruno Haible  <bruno@clisp.org>
10836         cond: State linking requirements.
10837         * modules/cond (Link): New section.
10839 2019-12-01  Bruno Haible  <bruno@clisp.org>
10841         threadlib: Remove unnecessary file (left over from 2019-07-06).
10842         * modules/threadlib (Files): Remove config.rpath.
10844 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10846         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10847         Reported by Dagobert Michelsen <dam@opencsw.org> in
10848         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10849         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10850         list of strings instead of one string.
10851         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10852         * pygnulib/GLImport.py (execute): Likewise.
10854 2019-11-27  Bruno Haible  <bruno@clisp.org>
10856         openpty, forkpty: Fix build error on Solaris 11.4.
10857         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10858         also in <termios.h>.
10859         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10860         of the function also in <termios.h>.
10861         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10862         * doc/glibc-functions/forkpty.texi: Likewise.
10864 2019-11-27  Bruno Haible  <bruno@clisp.org>
10866         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10867         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10868         --enable-threads=isoc and --enable-threads=isoc+posix.
10869         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10870         When both the ISO C and the POSIX threads API are available, choose
10871         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10872         --enable-threads=isoc+posix was specified. When only the ISO C threads
10873         API is available and --enable-threads=iso was specified, choose
10874         USE_ISOC_THREADS.
10875         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10876         USE_ISOC_AND_POSIX_THREADS.
10877         * lib/glthread/lock.c: Likewise.
10878         * lib/glthread/cond.h: Likewise.
10879         * lib/glthread/cond.c: Likewise.
10880         * lib/glthread/tls.h: Likewise.
10881         * lib/glthread/tls.c: Likewise.
10882         * lib/glthread/yield.h: Likewise.
10883         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10884         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10885         * lib/glthread/thread.c: Likewise.
10886         * lib/glthread/threadlib.c: Likewise.
10887         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10888         USE_ISOC_AND_POSIX_THREADS.
10889         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10890         USE_ISOC_AND_POSIX_THREADS.
10891         * tests/test-tls.c: Likewise.
10892         * tests/test-thread_create.c (main): Likewise.
10893         * tests/test-pthread-cond.c: Likewise.
10894         * tests/test-pthread-mutex.c: Likewise.
10895         * tests/test-pthread-once2.c: Likewise.
10896         * tests/test-pthread-rwlock.c: Likewise.
10897         * tests/test-pthread-tss.c: Likewise.
10898         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10899         USE_POSIX_THREADS.
10901 2019-11-24  Bruno Haible  <bruno@clisp.org>
10903         mbrtowc: Modernize autoconf test.
10904         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10905         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10906         try a UTF-8 locale.
10907         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10909 2019-11-24  Bruno Haible  <bruno@clisp.org>
10911         Fix errors in C++ mode on mingw.
10912         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10913         instead of _GL_CXXALIAS_SYS.
10914         * lib/signal.in.h (pthread_sigmask): Likewise.
10915         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10916         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10917         Likewise.
10918         * lib/wchar.in.h (btowc): Likewise.
10920 2019-11-24  Bruno Haible  <bruno@clisp.org>
10922         sys_time: Fix errors in C++ mode on mingw.
10923         * lib/sys_time.in.h (timeval): Restore the redirection
10924         '#define timeval rpl_timeval', for when the symbol timeval is being used
10925         outside the 'gnulib' namespace.
10926         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10927         'struct timeval'.
10929 2019-11-24  Bruno Haible  <bruno@clisp.org>
10931         iswctype: Fix errors in C++ mode on mingw.
10932         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10933         is 1.
10934         * lib/iswctype.c (iswctype): Add another implementation, for the
10935         GNULIB_defined_wint_t case.
10936         * modules/iswctype (configure.ac): Compile iswctype.c also if
10937         GNULIB_OVERRIDES_WINT_T is 1.
10939 2019-11-24  Bruno Haible  <bruno@clisp.org>
10941         windows-timedmutex: Fix errors in C++ mode on mingw.
10942         * lib/windows-timedmutex.h: Add closing brace.
10944 2019-11-24  Bruno Haible  <bruno@clisp.org>
10946         Fix errors in C++ mode on Cygwin.
10947         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10948         _GL_CXXALIAS_SYS.
10950 2019-11-24  Bruno Haible  <bruno@clisp.org>
10952         time_r: Fix for mingw (regression from 2019-11-16).
10953         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10954         AC_LINK_IFELSE test only if the function does not appear to exist.
10956 2019-11-24  Bruno Haible  <bruno@clisp.org>
10958         wcstok: Add tests.
10959         * tests/test-wcstok.c: New file.
10960         * modules/wcstok-tests: New file.
10962 2019-11-24  Bruno Haible  <bruno@clisp.org>
10964         wcstok: Work around wrong signature on native Windows.
10965         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10966         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10967         REPLACE_WCSTOK.
10968         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10969         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10970         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10971         * doc/posix-functions/wcstok.texi: Mention the problem.
10973 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10975         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10976         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10977         remove workaround for GCC bug 91450 as the bug should be fixed
10978         there too.
10980 2019-11-21  Bruno Haible  <bruno@clisp.org>
10982         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10983         Reported by Christian Biesinger <cbiesinger@google.com> in
10984         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10985         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10986         non-glibc systems.
10987         * lib/locale.in.h (localeconv, setlocale): Likewise.
10988         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10989         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10990         rint, round, trunc): Likewise.
10991         * lib/monetary.in.h (strfmon_l): Likewise.
10992         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10993         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10994         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10995         pthread_spin_destroy): Likewise.
10996         * lib/signal.in.h (raise, signal): Likewise.
10997         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10998         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10999         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
11000         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
11001         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
11002         Likewise.
11003         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
11004         Likewise.
11005         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
11006         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
11007         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
11008         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
11009         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
11010         wcsftime): Likewise.
11011         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
11013 2019-11-21  Bruno Haible  <bruno@clisp.org>
11015         Fix various errors in _GL_CXXALIAS_SYS invocations.
11016         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
11017         _GL_CXXALIAS_SYS.
11018         * lib/pthread.in.h (pthread_mutexattr_gettype,
11019         pthread_mutexattr_getrobust): Likewise.
11020         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
11021         * lib/sys_socket.in.h (recv, send): Likewise.
11022         * lib/unistd.in.h (getdtablesize): Likewise.
11023         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
11024         'struct timeval'.
11026 2019-11-21  Bruno Haible  <bruno@clisp.org>
11028         math tests: Update after 2019-08-28 change.
11029         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
11030         return type of 'bool', not 'int'.
11032 2019-11-21  Bruno Haible  <bruno@clisp.org>
11034         pthread-spin: Fix errors in C++ mode.
11035         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
11036         functions as nonexistent when <pthread.h> exists but does not define
11037         the pthread_spinlock_t type.
11039 2019-11-21  Bruno Haible  <bruno@clisp.org>
11041         pthread-mutex: Fix errors in C++ mode.
11042         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
11043         pthread_mutexattr_getrobust exists. If not, define
11044         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11045         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
11046         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
11047         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11048         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
11049         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
11050         definition.
11052 2019-11-19  Bruno Haible  <bruno@clisp.org>
11054         threads-h tests: Fix typo.
11055         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
11057 2019-11-19  Bruno Haible  <bruno@clisp.org>
11059         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
11060         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
11061         to 'const pthread_attr_t *'.
11062         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
11063         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
11065 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11067         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
11068         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
11069         work around GCC bug 91450 as the bug should be fixed there.
11071 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11073         glob: get closer to glibc glob.c
11074         Omit differences from glibc when the differences don’t matter.
11075         * lib/glob.c [_LIBC]: Include shlib-compat.h.
11076         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
11077         (glob_lstat): New function.
11078         (glob_in_dir): Use it.
11079         (GLOB_ATTRIBUTE): Define to empty if not already defined.
11080         Use changed.
11082 2019-11-18  Bruno Haible  <bruno@clisp.org>
11084         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
11085         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
11086         UINTPTR_MAX): Consider _WIN64.
11087         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
11088         a pointer.
11090 2019-11-18  Bruno Haible  <bruno@clisp.org>
11092         stdint: Fix value of WINT_MAX when we override wint_t.
11093         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
11094         when GNULIB_OVERRIDES_WINT_T is 1.
11096 2019-11-18  Bruno Haible  <bruno@clisp.org>
11098         vcs-to-changelog: New module.
11099         * modules/vcs-to-changelog: New file.
11100         * MODULES.html.sh (func_all_modules): Add it.
11102 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
11104         vcs-to-changelog: New script to generate ChangeLog-like output.
11105         Discussion:
11106         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
11107         * build-aux/vcs_to_changelog.py: New file.
11108         * build-aux/vcstocl/frontend_c.py: New file.
11109         * build-aux/vcstocl/misc_util.py: New file.
11110         * build-aux/vcstocl/vcs_git.py: New file.
11112 2019-11-18  Bruno Haible  <bruno@clisp.org>
11114         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
11115         Reported by Keith Marshall <keith@users.osdn.me> in
11116         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
11117         and <https://osdn.net/projects/mingw/ticket/39677>.
11118         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
11119         already been defined by mingw's <crtdefs.h>.
11121 2019-11-18  Bruno Haible  <bruno@clisp.org>
11123         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
11124         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
11125         conditionally enabled.
11127 2019-11-18  Bruno Haible  <bruno@clisp.org>
11129         gc: Mirror libgcrypt.m4 from libgcrypt.
11130         * config/srclistvars.sh (LIBGCRYPT): New variable.
11131         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
11133 2019-11-17  Bruno Haible  <bruno@clisp.org>
11135         locale, localename: Improve z/OS support.
11136         Reported by Daniel Richard G. in
11137         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
11138         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
11139         gl_LOCALE_H.
11140         (gl_LOCALE_H): Require it.
11141         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
11142         defined, don't even check for newlocale, duplocale, freelocale.
11143         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
11144         locale_t is not defined.
11146 2019-11-17  Bruno Haible  <bruno@clisp.org>
11148         havelib: Make libdirstems processing more flexible.
11149         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
11150         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
11151         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
11152         patch from 2017-02-19).
11153         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
11154         libdirs, even when the first one exists as a directory.
11156 2019-11-17  Bruno Haible  <bruno@clisp.org>
11158         havelib: Match the bitness when searching for libraries.
11159         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
11160         acl_is_expected_elfclass.
11161         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
11162         file exists, in ELF, also test whether it has the ELF class that
11163         corresponds to the host's bitness.
11165 2019-11-17  Bruno Haible  <bruno@clisp.org>
11167         host-cpu-c-abi: Add support for unknown CPUs.
11168         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
11169         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
11170         32-bit or 64-bit.
11172 2019-11-17  Bruno Haible  <bruno@clisp.org>
11174         havelib: Remove redundant code.
11175         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
11176         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
11178 2019-11-17  Bruno Haible  <bruno@clisp.org>
11180         havelib: Fix a bug in dependency processing.
11181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
11182         of .la files, don't overwrite the value of additional_libdir for the
11183         next rounds.
11185 2019-11-16  Bruno Haible  <bruno@clisp.org>
11187         wctype-h: When overriding wint_t, override also the related functions.
11188         Reported by Christian Biesinger <cbiesinger@google.com> in
11189         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
11190         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
11191         REPLACE_ISWCNTRL to 1.
11192         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11193         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11194         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11195         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11196         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
11197         on mingw.
11198         * doc/posix-headers/wctype.texi: Likewise.
11200 2019-11-16  Bruno Haible  <bruno@clisp.org>
11202         time_r: Fix for mingw.
11203         Reported by Christian Biesinger <cbiesinger@google.com> in
11204         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
11205         * lib/time.in.h: On mingw, include <unistd.h>.
11206         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
11207         <time.h>. Test for localtime_r in a way that works when it is defined
11208         as an inline function.
11210 2019-11-13  Bruno Haible  <bruno@clisp.org>
11212         havelib: Revert last change.
11213         * build-aux/config.rpath: Revert last change. We can add msys2 support
11214         when it has been added to libtool.m4 upstream.
11216 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11218         config: add msys support
11219         Requested by Arnold Robbins in:
11220         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
11221         He also requested a change to config.guess, which I’ll forward
11222         upstream.
11223         * build-aux/ar-lib (func_file_conv):
11224         * build-aux/compile (func_file_conv):
11225         * build-aux/config.rpath (wl, with_gnu_ld)
11226         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
11227         Treat msys like cygwin.
11229 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11231         regex: now back in sync with glibc
11232         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
11233         regexec.c got merged into glibc and are now copies again.
11235 2019-10-27  Bruno Haible  <bruno@clisp.org>
11237         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
11238         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
11239         statement.
11240         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
11241         32-bit CPUs.
11243 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11245         timespec-add, timespec-sub: simplify
11246         * lib/timespec-add.c (timespec_add):
11247         * lib/timespec-sub.c (timespec_sub):
11248         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11249         work on unsigned integers.
11251 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11253         nstrftime: speed up integer overflow checking
11254         * lib/nstrftime.c: Include intprops.h.
11255         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
11256         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
11257         instead of doing it by hand.
11258         * modules/nstrftime (Depends-on): Add intprops.
11260         Port better to GCC under macOS
11261         Work around macOS header that has ‘#define __has_builtin(x) 0’
11262         when compiled by GCC.  Apple really, really doesn’t want you to
11263         use GCC, apparently.  Rroblem reported by Akim Demaille in:
11264         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
11265         The fix is to not trust __has_builtin when being compiled by
11266         recent-enough GCC.
11267         * lib/intprops.h (__has_builtin)
11268         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11269         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
11270         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
11271         Remove.  All uses removed.
11272         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
11273         directly, if defined and if not newer GCC.
11274         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
11275         New macro, that use __has_builtin directly, if defined and if
11276         not newer GCC.
11277         (assume): Use them.
11279 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
11281         maintainer-makefile: update rule for argmatch.
11282         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
11284 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
11286         bitset: let freeing functions accept NULL.
11287         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
11288         given NULL.
11289         * lib/bitset.h: Document that.
11290         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
11292 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11294         inttypes: use more-robust test for int range
11295         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
11296         Problem reported by Dagobert Michelsen in:
11297         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
11298         * lib/inttypes.in.h: Rely only on limits.h when checking
11299         int range.
11301 2019-10-15  Bruno Haible  <bruno@clisp.org>
11303         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
11304         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
11305         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
11306         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
11307         term_ostream_set_hyperlink): New functions.
11308         (term_styled_ostream_get_hyperlink_ref,
11309         term_styled_ostream_get_hyperlink_id,
11310         term_styled_ostream_set_hyperlink): New function aliases.
11312 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11314         update-copyright: use en dashes in .texi ranges
11315         * build-aux/update-copyright: Match year ranges like "1998--2019",
11316         which are used in the Autoconf manual.  Also, update ranges in
11317         .tex, .texi, and .texinfo files to use en dashes instead of
11318         hyphens.
11320 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11322         * config/srclist.txt: Remove posix/regex_internal.c for now.
11324 2019-10-13  Bruno Haible  <bruno@clisp.org>
11326         git-version-gen: Allow 'snapshot' as .tarball-version contents.
11327         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
11328         contents to the empty string.
11330 2019-10-12  Bruno Haible  <bruno@clisp.org>
11332         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
11333         * tests/test-intprops.c (main): Disable two more tests when using
11334         HP-UX cc.
11336 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11338         Simplify and regularize regex use of ‘assert’
11339         Also, tell GCC about the asserts even when compiling without
11340         debugging, to give it further optimization opportunities.
11341         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
11342         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
11343         (parse_expression, parse_bracket_exp):
11344         * lib/regex_internal.c (build_wcs_buffer)
11345         (build_wcs_upper_buffer, re_string_reconstruct)
11346         (re_string_context_at):
11347         * lib/regexec.c (re_search_stub, re_copy_regs)
11348         (re_search_internal, prune_impossible_nodes, check_matching)
11349         (check_halt_state_context, set_regs, sift_states_backward)
11350         (build_sifted_states, transit_state_mb, transit_state_bkref)
11351         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
11352         (match_ctx_add_subtop):
11353         Use it instead of plain ‘assert’.
11355 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11357         regex: omit debug assignment when not debugging
11358         * lib/regexec.c (re_search_internal) [!DEBUG]:
11359         Remove unnecessary assignment.
11361         regex: tell compiler there’s at most 256 arcs out
11362         Partly this is to help the reader (and maybe help GCC);
11363         partly this is to pacify Coverity.
11364         * lib/regex_internal.h: Include verify.h.
11365         * lib/regexec.c (group_nodes_into_DFAstates):
11366         Tell the compiler that ndests cannot exceed SBC_MAX.
11367         * modules/regex (Depends-on): Add ‘verify’.
11369         regex: simplify by assuming C99
11370         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11371         temporarily.
11372         * lib/regex_internal.h (lock_define, re_match_context_t):
11373         Simplify by assuming C99 macros and const.
11374         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11375         initializers.  Remove unnecessary assignment, as mctx is now
11376         safely initialized earlier.
11378         regex: avoid copying of uninitialized storage
11379         * config/srclist.txt: Comment out regcomp.c temporarily.
11380         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11381         Initialize even when not checking for lint, as the behavior is
11382         arguably undefined otherwise and Coverity warns about it.
11384 2019-10-06  Bruno Haible  <bruno@clisp.org>
11386         access tests: Fix test failure when run as root.
11387         * tests/test-access.c: Include root-uid.h.
11388         (geteuid): Define fallback.
11389         (main): Don't expect that writing to a read-only file would fail when
11390         running as root. Also, remove the created files at the end.
11391         * modules/access-tests (Depends-on): Add root-uid.
11392         (configure.ac): Test whether geteuid exists.
11394 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11396         users.txt: add GNU nano
11397         Nano has been making use of gnulib since March 2017, version 2.8.0.
11399 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11401         bootstrap: simplify debugging of wget failures
11402         Problem reported by Tim Rühsen in:
11403         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11404         * build-aux/bootstrap (po_download_command_format):
11405         Invoke wget with -nv instead of -q, to make debugging easier.
11407 2019-09-29  Bruno Haible  <bruno@clisp.org>
11409         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11410         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11411         'const' attribute.
11413 2019-09-29  Bruno Haible  <bruno@clisp.org>
11415         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11416         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11418 2019-09-28  Bruno Haible  <bruno@clisp.org>
11420         Update comments that refer to POSIX.
11421         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11422         sentence about trailing slashes.
11423         * lib/fflush.c: Clarify the reasoning.
11424         * tests/test-fflush2.c: Cite the relevant sentence.
11426 2019-09-28  Bruno Haible  <bruno@clisp.org>
11428         access: Document limitations on Windows.
11429         Suggested by Zaretskii <eliz@gnu.org>.
11430         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11432 2019-09-28  Bruno Haible  <bruno@clisp.org>
11434         findprog-in: Fix comment.
11435         Reported by Eli Zaretskii <eliz@gnu.org>.
11436         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11437         condition.
11438         * lib/stat.c (rpl_stat): Fix typo in comment.
11439         * lib/utime.c (_gl_utimens_windows): Likewise.
11441 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11443         Update URLs and associated text
11444         (Thanks to Bruno Haible for proofreading this patch.)
11445         Prefer https: to http: in URLs where either will do, for the usual
11446         security reasons.  I also updated broken and/or moved URLs
11447         discovered during the process. In a few places I had to resort to
11448         archive.org, since I didn't find the originals elsewhere.
11450 2019-09-15  Paul Smith  <psmith@gnu.org>
11451             Bruno Haible  <bruno@clisp.org>
11453         findprog-in: Set errno when the search fails.
11454         * lib/findprog-in.c: Include <errno.h>.
11455         (find_in_given_path): Set errno before returning NULL.
11456         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11457         Define the term "slash".
11459 2019-09-15  Bruno Haible  <bruno@clisp.org>
11461         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11462         * modules/findprog (Depends-on): Add access.
11463         * modules/findprog-lgpl (Depends-on): Likewise.
11464         * modules/findprog-in (Depends-on): Likewise.
11466 2019-09-15  Bruno Haible  <bruno@clisp.org>
11468         access: Add tests.
11469         * tests/test-access.c: New file.
11470         * modules/access-tests: New file.
11472         access: New module.
11473         * lib/unistd.in.h (access): New declaration.
11474         * lib/access.c: New file.
11475         * m4/access.m4: New file.
11476         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
11477         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
11478         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
11479         REPLACE_ACCESS.
11480         * modules/access: New file.
11481         * tests/test-unistd-c++.cc (access): Check signature.
11482         * doc/posix-functions/access.texi: Mention the new module.
11484 2019-09-15  Bruno Haible  <bruno@clisp.org>
11486         fcntl-h: Fix compilation error of creat.c on MSVC.
11487         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
11488         defined.
11490 2019-09-15  Bruno Haible  <bruno@clisp.org>
11492         creat: Add tests.
11493         * tests/test-creat.c: New file, based on tests/test-open.h.
11494         * modules/creat-tests: New file.
11496         creat: New module.
11497         * lib/fcntl.in.h (creat): New declaration.
11498         * lib/creat.c: New file, based on lib/open.c.
11499         * m4/creat.m4: New file.
11500         * m4/open-slash.m4: New file, extracted from m4/open.m4.
11501         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
11502         Invoke gl_OPEN_TRAILING_SLASH_BUG.
11503         * modules/open (Files): Add m4/open-slash.m4.
11504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
11505         REPLACE_CREAT.
11506         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
11507         * modules/creat: New file.
11508         * tests/test-fcntl-h-c++.cc (creat): Check signature.
11509         * doc/posix-functions/creat.texi: Mention the new module.
11511 2019-09-15  Bruno Haible  <bruno@clisp.org>
11513         open tests: Enhance test.
11514         * tests/test-open.h (test_open): Test the creation of an executable
11515         regular file. Also improve initial cleanup.
11517 2019-09-15  Bruno Haible  <bruno@clisp.org>
11519         intprops tests: Avoid build failure with HP-UX cc.
11520         * tests/test-intprops.c: Disable a check that makes HP cc choke with
11521         "error 4018: Macro param too large after substitution - use -H option.".
11523 2019-09-14  Bruno Haible  <bruno@clisp.org>
11525         Make autoconf tests work with -Werror=implicit-function-declaration.
11526         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
11527         towupper() declaration.
11528         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
11529         declaration.
11531 2019-09-14  Bruno Haible  <bruno@clisp.org>
11533         findprog-in: Better mimic the system on native Windows.
11534         Reported by Paul Smith <psmith@gnu.org>.
11535         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
11536         non-empty suffixes when the file name already contains a '.'.
11538 2019-09-10  Bruno Haible  <bruno@clisp.org>
11540         wctob: Fix autoconf test.
11541         Based on patch by Florian Weimer <fweimer@redhat.com>.
11542         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
11544 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
11546         xhash: provide hash_xinitialize.
11547         Suggested by Egor Pugin <egor.pugin@gmail.com>
11548         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
11549         * modules/xhash, lib/xhash.c: New.
11550         * lib/hash.h (hash_xinitialize): New.
11552 2019-09-09  Bruno Haible  <bruno@clisp.org>
11554         findprog-in: Make exec optimization optional.
11555         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
11556         (find_in_given_path): Add optimize_for_exec parameter.
11557         * lib/findprog-in.c (find_in_given_path): Likewise.
11559 2019-09-08  Bruno Haible  <bruno@clisp.org>
11561         Add option to assume the best, not the worst, when cross-compiling.
11562         Suggested by Jonas Termansen <sortie@maxsi.org>.
11563         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
11564         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
11565         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
11566         lt_cv_sys_argz_works.
11567         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
11568         ac_cv_func_calloc_0_nonnull.
11569         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
11570         --enable-cross-guesses for gl_cv_func_realpath_works.
11571         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
11572         gl_cv_func_cbrtl_ieee.
11573         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
11574         gl_cv_func_ceil_ieee.
11575         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
11576         gl_cv_func_ceilf_ieee.
11577         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
11578         gl_cv_func_ceill_ieee.
11579         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
11580         ac_cv_func_chown_works.
11581         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
11582         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
11583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
11584         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
11585         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
11586         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
11587         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
11588         gl_cv_func_expl_works.
11589         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
11590         gl_cv_func_expm1_ieee.
11591         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
11592         gl_cv_func_expm1l_works.
11593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
11594         gl_cv_func_open_directory_works.
11595         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
11596         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
11597         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
11598         gl_cv_func_fchownat_empty_filename_works.
11599         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
11600         gl_cv_func_fdopendir_works.
11601         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
11602         gl_cv_func_floor_ieee.
11603         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
11604         gl_cv_func_floorf_ieee.
11605         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
11606         gl_cv_func_fma_works.
11607         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
11608         gl_cv_func_fmaf_works.
11609         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11610         gl_cv_func_fmal_works.
11611         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11612         gl_cv_func_fmod_ieee.
11613         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11614         gl_cv_func_fmodf_ieee.
11615         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11616         gl_cv_func_fmodl_ieee.
11617         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
11618         gl_cv_func_fpurge_works.
11619         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
11620         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
11621         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
11622         gl_cv_func_getcwd_null.
11623         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
11624         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
11625         gl_cv_func_working_getdelim.
11626         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11627         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
11628         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11629         gl_cv_func_getgroups_works.
11630         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
11631         am_cv_func_working_getline.
11632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
11633         for gl_cv_func_getopt_gnu.
11634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
11635         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
11636         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
11637         gl_cv_func_hypot_ieee.
11638         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
11639         gl_cv_func_hypotf_ieee.
11640         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
11641         gl_cv_func_hypotl_ieee.
11642         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
11643         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
11644         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
11645         gl_cv_func_link_works.
11646         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
11647         gl_cv_func_linkat_slash.
11648         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
11649         gl_cv_func_log_ieee.
11650         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
11651         gl_cv_func_logf_ieee.
11652         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
11653         gl_cv_func_logl_works.
11654         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
11655         gl_cv_func_log10_ieee.
11656         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
11657         gl_cv_func_log10f_ieee.
11658         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
11659         gl_cv_func_log10l_works.
11660         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
11661         gl_cv_func_log1p_ieee.
11662         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
11663         gl_cv_func_log1pf_ieee.
11664         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
11665         gl_cv_func_log1pl_ieee.
11666         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
11667         gl_cv_func_log2_ieee.
11668         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
11669         gl_cv_func_log2f_ieee.
11670         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
11671         --enable-cross-guesses for
11672         gl_cv_func_lstat_dereferences_slashed_symlink.
11673         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
11674         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11675         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
11676         gl_cv_C_locale_sans_EILSEQ.
11677         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
11678         gl_cv_func_memchr_works.
11679         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
11680         gl_cv_func_memmem_works_always.
11681         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11682         gl_cv_func_memmem_works_fast.
11683         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11684         gl_cv_func_mkdir_trailing_slash_works,
11685         gl_cv_func_mkdir_trailing_dot_works.
11686         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11687         gl_cv_func_mkfifo_works.
11688         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11689         gl_cv_func_mknod_works.
11690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11691         gl_cv_func_working_mkstemp.
11692         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11693         gl_cv_func_working_mktime.
11694         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11695         gl_cv_func_modf_ieee.
11696         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11697         gl_cv_func_modff_ieee.
11698         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11699         gl_cv_func_modfl_ieee.
11700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11701         gl_cv_func_nanosleep.
11702         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11703         gl_cv_func_perror_works.
11704         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11705         gl_cv_func_printf_sizes_c99.
11706         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11707         gl_cv_func_printf_infinite.
11708         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11709         gl_cv_func_printf_infinite_long_double.
11710         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11711         gl_cv_func_printf_directive_a.
11712         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11713         gl_cv_func_printf_directive_f.
11714         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11715         gl_cv_func_printf_flag_zero.
11716         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11717         gl_cv_func_printf_enomem.
11718         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11719         gl_cv_func_snprintf_truncation_c99.
11720         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11721         gl_cv_func_snprintf_retval_c99.
11722         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11723         gl_cv_func_snprintf_directive_n.
11724         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11725         gl_cv_func_vsnprintf_zerosize_c99.
11726         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11727         gl_cv_func_pselect_detects_ebadf.
11728         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11729         Obey --enable-cross-guesses for
11730         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11731         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11732         gl_cv_func_ptsname_sets_errno.
11733         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11734         gl_cv_func_svid_putenv.
11735         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11736         gl_cv_func_readlink_works.
11737         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11738         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11739         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11740         gl_cv_func_re_compile_pattern_working.
11741         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11742         gl_cv_func_remainder_ieee.
11743         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11744         gl_cv_func_remainderf_ieee.
11745         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11746         gl_cv_func_remainderl_ieee.
11747         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11748         gl_cv_func_rintl_works.
11749         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11750         gl_cv_func_rmdir_works.
11751         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11752         gl_cv_func_round_ieee.
11753         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11754         gl_cv_func_roundf_ieee.
11755         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11756         gl_cv_func_roundl_ieee.
11757         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11758         gl_cv_func_select_detects_ebadf.
11759         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11760         gl_cv_func_setenv_works.
11761         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11762         gl_cv_func_unsetenv_works.
11763         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11764         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11765         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11766         gl_cv_func_sleep_works.
11767         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11768         gl_cv_func_stat_file_slash.
11769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11770         gl_cv_func_stpncpy.
11771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11772         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11773         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11774         gl_cv_func_strcasestr_linear.
11775         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11776         gl_cv_func_working_strerror.
11777         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11778         gl_cv_func_strerror_0_works.
11779         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11780         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11781         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11782         gl_cv_func_strstr_works_always.
11783         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11784         gl_cv_func_strstr_linear.
11785         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11786         gl_cv_func_strtod_works.
11787         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11788         gl_cv_func_strtold_works.
11789         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11790         gl_cv_func_symlink_works.
11791         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11792         gl_cv_func_symlinkat_works.
11793         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11794         gl_cv_func_trunc_ieee.
11795         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11796         gl_cv_func_truncf_ieee.
11797         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11798         gl_cv_func_truncl_ieee.
11799         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11800         gl_cv_func_tzset_clobber.
11801         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11802         gl_cv_func_ungetc_works.
11803         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11804         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11805         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11806         gl_cv_func_usleep_works.
11807         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11808         gl_cv_func_futimesat_works.
11809         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11810         gl_cv_func_working_utimes.
11811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11812         gl_cv_func_wcwidth_works.
11813         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11814         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11815         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11816         links for testing. Obey --enable-cross-guesses for
11817         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11818         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11820 2019-09-08  Bruno Haible  <bruno@clisp.org>
11822         Clarify that cross-compilation guesses are guesses.
11823         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11824         cross-compiling.
11826 2019-09-08  Bruno Haible  <bruno@clisp.org>
11828         chown: Fix configure output (regression from 2019-03-23).
11829         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11830         gl_cv_func_chown_follows_symlink variable.
11832 2019-09-08  Bruno Haible  <bruno@clisp.org>
11834         findprog-in: New module.
11835         Suggested by Paul Smith <psmith@gnu.org>.
11836         * lib/findprog.h (find_in_given_path): New declaration.
11837         * lib/findprog-in.c: New file, based on lib/findprog.c.
11838         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11839         * modules/findprog-in: New file.
11841 2019-09-08  Bruno Haible  <bruno@clisp.org>
11843         findprog: Remove unused dependency.
11844         * modules/findprog (Depends-on): Remove strdup.
11846 2019-09-08  Bruno Haible  <bruno@clisp.org>
11848         findprog: Remove test that is obsolete since 2006-04-24.
11849         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11851 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11853         bitset: style changes
11854         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11855         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11856         xzalloc to xcalloc.
11857         Suggested by Paul Eggert.
11859 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11861         bitset: check memory allocation
11862         Reported by 江 祖铭 (Zu-Ming Jiang).
11863         With help from Paul Eggert.
11864         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11865         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11866         instead of realloc.
11867         When shrinking, accept failures.
11868         * lib/bitset/vector.c (vbitset_resize): Likewise.
11870 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11872         scratch_buffer: sync from glibc
11873         * config/srclist.txt: Add the scratch_buffer source
11874         code from glibc, since these should be in sync.
11875         Autoupdate.
11877 2019-09-07  Bruno Haible  <bruno@clisp.org>
11879         doc: Update for glibc 2.30.
11880         * doc/glibc-functions/gettid.texi: New file.
11881         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11882         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11883         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11884         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11885         * doc/glibc-functions/sem_clockwait.texi: New file.
11886         * doc/glibc-functions/tgkill.texi: New file.
11887         * doc/glibc-functions/twalk_r.texi: New file.
11888         * doc/gnulib.texi: Include them.
11889         (Glibc semaphore.h): New section.
11890         * doc/pastposix-functions/h_errno.texi: Update.
11891         * doc/posix-functions/*.texi: Likewise.
11893 2019-09-06  Bruno Haible  <bruno@clisp.org>
11895         symlink tests: Avoid test failure on Linux with Lustre file system.
11896         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11897         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11898         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11900 2019-09-01  Bruno Haible  <bruno@clisp.org>
11902         gitsub.sh: Add support for shallow-cloning of subdirectories.
11903         * top/gitsub.sh (func_usage): Document allowed git options with
11904         'git pull'.
11905         (func_pull): Accept GIT_OPTIONS argument.
11906         (pull): Parse git options before complaining about too many arguments.
11907         Pass the git options to func_pull.
11909 2019-08-29  Bruno Haible  <bruno@clisp.org>
11911         lock: Fix cross-compilation guesses.
11912         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11913         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11914         platforms.
11916 2019-08-28  Bruno Haible  <bruno@clisp.org>
11918         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11919         Reported by Martin Storsjö <martin@martin.st> in
11920         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11921         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11922         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11923         files from GCC 6 or newer, use an override through '#define', because
11924         the inline definitions in the platform's <cmath> cannot be overridden
11925         in another way.
11927 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11929         Revert macOS INT_MULTIPLY_WRAPV patch
11930         Problem reported by Bruno Haible in:
11931         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11932         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11933         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11934         Go back to working around the Clang bug on macOS.
11936 2019-08-27  Bruno Haible  <bruno@clisp.org>
11938         libtool-next-version: Fix error output.
11939         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11940         name.
11942 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11944         Speed up INT_MULTIPLY_WRAPV on macOS
11945         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11946         Mattias Engdegård says it’s safe to assume the relevant library
11947         is always available there.
11948         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11949         New temporary internal macro.
11950         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11951         No need to work around the Clang bug on macOS.
11953 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11955         intprops.h, verify.h: port better to clang
11956         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11957         with Clang.  Problem reported privately by Mattias Engdegård.
11958         Also, insulate intprops.h and verify.h better against each other’s
11959         definitions of __has_builtin on non-Clang hosts.
11960         * lib/intprops.h (__has_builtin): Define a temporary substitute
11961         if __has_builtin is not already defined.
11962         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11963         New temporary internal macros.
11964         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11965         Now two separate macros, replacing the old
11966         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11967         __builtin_mul_overflow is like the rest.  All uses changed.
11968         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11969         Adjust to above changes.
11970         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11971         longer relevant.  All uses changed.
11972         * lib/verify.h (__has_builtin): Treat like intprops.h,
11973         so that the two .h files do not collide with each other.
11974         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11975         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11977 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11979         intprops: say why not Clang __builtin_add_overflow
11980         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11981         Mention Clang in comment, responding to a query from
11982         Mattias Engdegård.
11984 2019-08-24  Bruno Haible  <bruno@clisp.org>
11986         doc: Document most of the files outside of modules.
11987         * doc/gnulib.texi (Build Infrastructure Files,
11988         Release Management Files): New chapters.
11990 2019-08-24  Bruno Haible  <bruno@clisp.org>
11992         bootstrap: Keep in sync with the 'gettext' module.
11993         Reported by Assaf Gordon in
11994         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11995         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11996         * build-aux/po/remove-potcdate.sin: Likewise.
11998 2019-08-24  Bruno Haible  <bruno@clisp.org>
12000         crypto/gc-sha512: Add tests.
12001         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
12002         * modules/crypto/gc-sha512-tests: New file.
12004         crypto/gc-sha256: Add tests.
12005         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
12006         * modules/crypto/gc-sha256-tests: New file.
12008         crypto/gc-sha256, crypto/gc-sha512: New modules.
12009         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
12010         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
12011         (MAX_DIGEST_SIZE): Set to 64.
12012         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
12013         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
12014         (gc_sha256, gc_sha512): New functions.
12015         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
12016         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
12017         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
12019 2019-08-24  Bruno Haible  <bruno@clisp.org>
12021         crypto/gc-sha1 tests: Improve output when the test fails.
12022         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
12023         output.
12025 2019-08-24  Bruno Haible  <bruno@clisp.org>
12027         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
12028         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
12029         LIBGCRYPT_HAS_MD_SM3.
12030         * lib/gc-libgcrypt.c: Include sm3.h.
12031         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
12032         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
12033         implementation if libgcrypt does not support SM3.
12035 2019-08-24  Bruno Haible  <bruno@clisp.org>
12037         crypto/gc-md2: Optimize and clarify code.
12038         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
12039         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
12040         is not needed.
12042 2019-08-24  Bruno Haible  <bruno@clisp.org>
12044         crypto/gc-md2: Add comment.
12045         * lib/gc-libgcrypt.c: Add comment.
12047 2019-08-24  Bruno Haible  <bruno@clisp.org>
12049         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
12050         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
12051         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
12052         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
12053         variable.
12055 2019-08-24  Bruno Haible  <bruno@clisp.org>
12057         crypto/gc: Fix link error with --with-libgcrypt.
12058         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
12059         AC_LIB_HAVE_LINKFLAGS invocation.
12061 2019-08-24  Bruno Haible  <bruno@clisp.org>
12063         crypto/gc: Access the module indicators correctly.
12064         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
12065         * lib/gc-libgcrypt.c: Likewise.
12067 2019-08-24  Bruno Haible  <bruno@clisp.org>
12069         crypto/gc: Fix configuration with --with-libgcrypt.
12070         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
12071         * modules/crypto/gc (Files): Add it.
12072         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
12074 2019-08-24  Bruno Haible  <bruno@clisp.org>
12076         Remove unused file.
12077         * m4/stat-macros.m4: Remove file.
12079 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12081         New strip-trailing-space option for srclist-update
12082         * config/srclist-update (fixfile): Support new option.
12083         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
12084         Use it.
12086 2019-08-20  Eric Blake  <eblake@redhat.com>
12088         accept4: Support SOCK_NONBLOCK, if defined
12089         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
12091         accept4: Fix compilation when native accept4() exists.
12092         Reported by Richard W.M. Jones <rjones@redhat.com> in
12093         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
12094         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
12096 2019-08-18  Bruno Haible  <bruno@clisp.org>
12098         Defeat -flto GCC optimization in math autoconf tests.
12099         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
12100         at <https://savannah.gnu.org/bugs/?56109>.
12101         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
12102         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
12103         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12104         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12105         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12106         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
12107         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12108         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12109         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12110         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12111         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12112         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12114 2019-08-17  Bruno Haible  <bruno@clisp.org>
12116         windows-spin: Implement declared functions.
12117         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
12118         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
12119         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
12120         name.
12122 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12124         intprops: port to Oracle Developer Studio 12.6
12125         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
12126         typos that were in a section not compiled by GCC.
12128 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12130         intprops: support uchar, ushort _WRAPV dests
12131         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
12132         when __builtin_add_overflow etc. and _Generic are not used.
12133         (_GL_INT_OP_WRAPV): Use it to support destinations that
12134         are unsigned char or unsigned short, even in compilers
12135         that lack __typeof__ and are not C11-compatible.
12137         intprops: pacify picky GCC
12138         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
12139         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
12140         possibly-incorrect result.
12141         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
12142         about (A) used as a boolean, when A is an expression like 3 * 4.
12144         intprops: support unsigned *_WRAPV results
12145         Add support for unsigned, unsigned long, and unsigned long long
12146         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
12147         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
12148         bug with unsigned inputs reported by Eli Zaretskii in:
12149         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
12150         * config/srclist.txt: Break the glibc connection for intprops.h
12151         temporarily, while more testing is done in Gnulib-using apps.
12152         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12153         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
12154         Support unsigned results no narrower than unsigned int.  Report
12155         overflow correctly if some arguments are unsigned.
12156         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
12157         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
12158         the right thing with narrow args.
12159         (_GL_INT_OP_CALC1): Remove.  All callers removed.
12160         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
12161         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
12162         * tests/test-intprops.c: Check for bugs and test new behavior.
12164 2019-08-14  Bruno Haible  <bruno@clisp.org>
12166         get_progname_of: New module.
12167         * lib/get_progname_of.h: New file.
12168         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
12169         * lib/getprogname.c (getprogname): Tweak coding style.
12170         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
12171         * modules/get_progname_of: New file.
12173 2019-08-14  Bruno Haible  <bruno@clisp.org>
12175         get_ppid_of: New module.
12176         * lib/get_ppid_of.h: New file.
12177         * lib/get_ppid_of.c: New file.
12178         * modules/get_ppid_of: New file.
12180 2019-08-13  Bruno Haible  <bruno@clisp.org>
12182         libtextstyle-optional tests: Support the NO_COLOR environment variable.
12183         * tests/test-libtextstyle.c (main): Do not emit styling when the
12184         environment variable NO_COLOR is set.
12186 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12188         verify: improve diagnostic quality in recent GCC
12189         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
12190         useful line number containing the top-level caller of the macro.
12191         So, bring back the older way of issuing a diagnostic containing
12192         the top-level call’s arg, so that it is easier to diagnose
12193         ‘verify’ failures with recent GCC.
12194         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12195         Bring back DIAGNOSTIC arg.  All callers changed.
12196         (verify): Just use _GL_VERIFY.
12198 2019-08-11  Bruno Haible  <bruno@clisp.org>
12200         localcharset: Add more aliases for OS/2.
12201         Based on patch by KO Myung-Hun <komh78@gmail.com> in
12202         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
12203         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
12205 2019-08-10  Eric Blake  <eblake@redhat.com>
12207         configmake: Update advice on usage.
12208         * modules/configmake (Include): No longer necessary to include
12209         last, since configmake.h itself worries about collision avoidance.
12211 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
12213         parse-datetime: fix 'T' military timezone handling
12214         * lib/parse-datetime.y (zone):
12215         follow-up to the previous commit: the 'T' case is handled outside the
12216         conversion table (used as either military timezone UTC-7 or ISO8601
12217         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
12218         timezone letters.
12220 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12222         parse-datetime: fix military timezone letters
12223         Problem and trivial fix reported by Neil Hoggarth in:
12224         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
12225         * lib/parse-datetime.y (military_table):
12226         Do it the right way, not the RFC 822 way.
12228 2019-08-08  Eric Blake  <eblake@redhat.com>
12230         configmake: Avoid namespace pollution issue on mingw.
12231         * modules/configmake (Makefile.am): If the project uses
12232         <winsock2.h>, include that header before defining DATADIR.
12234 2019-07-28  Bruno Haible  <bruno@clisp.org>
12236         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
12237         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12239 2019-07-24  Bruno Haible  <bruno@clisp.org>
12241         pthread-h: Fix definitions of types and macros on mingw.
12242         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
12243         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
12244         not in use.
12245         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
12246         'pthread-once' is not in use.
12247         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
12248         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
12249         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
12250         in use.
12251         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
12252         Define also when module 'pthread-rwlock' is not in use.
12253         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
12254         also when module 'pthread-cond' is not in use.
12255         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
12256         'pthread-tss' is not in use.
12257         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
12258         use.
12260 2019-07-24  Simon Josefsson  <simon@josefsson.org>
12262         crypto/gc: Cope with libgcrypt without SM3.
12263         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
12265 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12267         backupfile: fix resource leak on memory failure
12268         Problem found by Coverity (CID 1484214).
12269         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
12271 2019-07-22  Bruno Haible  <bruno@clisp.org>
12273         Avoid missing-declarations warning in various tests.
12274         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
12275         test6, test_optional, test7, test8, test9, test10, test11, test12,
12276         test13, test14, test15, test_fun): Declare static.
12277         * tests/test-cnd.c (test_cnd_wait): Likewise.
12278         * tests/test-cond.c (test_cond): Likewise.
12280 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12282         pthread tests: Avoid missing-declarations warning.
12283         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
12285 2019-07-19  Bruno Haible  <bruno@clisp.org>
12287         parse-datetime: Avoid warnings from bison versions >= 3.3.
12288         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
12289         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
12291 2019-07-19  Bruno Haible  <bruno@clisp.org>
12293         parse-datetime: Require Bison 2.4 or newer.
12294         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
12295         Code taken from gettext's intl.m4.
12296         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
12297         of YACC.
12299 2019-07-19  Bruno Haible  <bruno@clisp.org>
12301         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
12302         * lib/areadlink-with-size.c: Include <string.h>.
12303         * lib/areadlinkat-with-size.c: Likewise.
12304         * lib/xgethostname.c: Likewise.
12305         * lib/xgetdomainname.c: Likewise.
12307 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
12309         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
12310         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
12311         "%pure-parser".  The former is available since Bison 2.3b (2008),
12312         while the latter is marked as obsolete since version 3.4 (May 2019).
12314 2019-07-16  Bruno Haible  <bruno@clisp.org>
12316         update-copyright: Make it work again (regression from 2019-06-15).
12317         Reported by Brian C. Lane <bcl@redhat.com>.
12318         * build-aux/update-copyright: Add back the -0777, -p, -i options.
12320 2019-07-14  Bruno Haible  <bruno@clisp.org>
12322         doc: Update info about <pthread.h>.
12323         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
12324         of 'pthread'.
12326 2019-07-14  Bruno Haible  <bruno@clisp.org>
12328         pthread_sigmask tests: Use new multithread modules.
12329         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
12330         glthread/thread.h.
12331         (main_thread, killer_thread): Change type to pthread_t.
12332         (main): Update accordingly.
12333         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
12334         thread.
12336 2019-07-14  Bruno Haible  <bruno@clisp.org>
12338         pthread-tss: Add tests.
12339         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
12340         tests/test-tss.c.
12341         * modules/pthread-tss-tests: New file.
12343 2019-07-14  Bruno Haible  <bruno@clisp.org>
12345         pthread-cond: Add tests.
12346         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
12347         tests/test-cnd.c.
12348         * modules/pthread-cond-tests: New file.
12350 2019-07-14  Bruno Haible  <bruno@clisp.org>
12352         pthread-rwlock: Add tests.
12353         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
12354         * modules/pthread-rwlock-tests: New file.
12356 2019-07-14  Bruno Haible  <bruno@clisp.org>
12358         pthread-mutex: Add tests.
12359         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
12360         tests/test-mtx.c.
12361         * modules/pthread-mutex-tests: New file.
12363 2019-07-14  Bruno Haible  <bruno@clisp.org>
12365         pthread-once: Add tests.
12366         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12367         tests/test-call_once.c.
12368         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12369         tests/test-mtx.c.
12370         * modules/pthread-once-tests: New file.
12372 2019-07-14  Bruno Haible  <bruno@clisp.org>
12374         pthread-thread: Add tests.
12375         * tests/test-pthread-thread.c: New file, based on
12376         tests/test-thread_create.c and tests/test-thrd_create.c.
12377         * modules/pthread-thread-tests: New file.
12379 2019-07-14  Bruno Haible  <bruno@clisp.org>
12381         pthread: Turn into a convenience module.
12382         * lib/pthread.in.h: Remove declarations for extern inline functions.
12383         * lib/pthread.c: Remove file.
12384         * modules/pthread (Files): Remove it.
12385         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12386         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12387         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12388         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12389         GNULIB_PTHREAD.
12390         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12392 2019-07-14  Bruno Haible  <bruno@clisp.org>
12394         pthread-spin: New module.
12395         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12396         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12397         inline definitions.
12398         * lib/pthread-spin.c: New file.
12399         * m4/pthread-spin.m4: New file.
12400         * modules/pthread-spin: New file.
12401         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12402         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12403         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12404         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12405         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12407 2019-07-14  Bruno Haible  <bruno@clisp.org>
12409         pthread-tss: New module.
12410         * lib/pthread-tss.c: New file.
12411         * m4/pthread-tss.m4: New file.
12412         * modules/pthread-tss: New file.
12413         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12414         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12415         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12416         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12418 2019-07-14  Bruno Haible  <bruno@clisp.org>
12420         pthread-cond: New module.
12421         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12422         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12423         * lib/pthread-cond.c: New file.
12424         * m4/pthread-cond.m4: New file.
12425         * modules/pthread-cond: New file.
12426         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12427         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12428         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12429         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12430         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12431         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12432         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12433         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12435 2019-07-14  Bruno Haible  <bruno@clisp.org>
12437         pthread-rwlock: New module.
12438         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12439         * m4/pthread-rwlock.m4: New file.
12440         * modules/pthread-rwlock: New file.
12441         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12442         and the Android problem.
12443         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12444         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12445         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12446         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12447         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12448         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12449         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12450         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12451         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12452         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12454 2019-07-14  Bruno Haible  <bruno@clisp.org>
12456         pthread-mutex: New module.
12457         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12458         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12459         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12460         pthread_mutex_unlock): Remove inline definitions.
12461         * lib/pthread-mutex.c: New file.
12462         * m4/pthread-mutex.m4: New file.
12463         * modules/pthread-mutex: New file.
12464         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12465         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12466         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12467         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12468         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12469         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12470         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12471         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12472         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
12473         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
12474         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
12475         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
12477 2019-07-14  Bruno Haible  <bruno@clisp.org>
12479         pthread-once: New module.
12480         * lib/pthread-once.c: New file.
12481         * m4/pthread-once.m4: New file.
12482         * modules/pthread-once: New file.
12483         * doc/posix-functions/pthread_once.texi: Mention the new module.
12485 2019-07-14  Bruno Haible  <bruno@clisp.org>
12487         pthread-thread: New module.
12488         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
12489         inline definitions.
12490         * lib/pthread-thread.c: New file.
12491         * m4/pthread-thread.m4: New file.
12492         * modules/pthread-thread: New file.
12493         * doc/posix-functions/pthread_create.texi: Mention the new module.
12494         * doc/posix-functions/pthread_attr_init.texi: Likewise.
12495         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
12496         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
12497         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
12498         * doc/posix-functions/pthread_self.texi: Likewise.
12499         * doc/posix-functions/pthread_equal.texi: Likewise.
12500         * doc/posix-functions/pthread_detach.texi: Likewise.
12501         * doc/posix-functions/pthread_join.texi: Likewise.
12502         * doc/posix-functions/pthread_exit.texi: Likewise.
12504 2019-07-14  Bruno Haible  <bruno@clisp.org>
12506         pthread-h: Prepare for adding new modules.
12507         * lib/pthread.in.h: Define the types and macros for each of the
12508         facilities separately.
12509         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
12510         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12511         HAVE_PTHREAD_PROCESS_SHARED.
12512         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
12513         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12514         HAVE_PTHREAD_PROCESS_SHARED.
12515         * modules/pthread-h (Makefile.am): Substitute
12516         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
12517         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
12519 2019-07-14  Bruno Haible  <bruno@clisp.org>
12521         pthread-h: Add declarations of essential pthread functions.
12522         * lib/pthread.in.h: Include snippets.
12523         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
12524         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
12525         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
12526         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
12527         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
12528         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
12529         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
12530         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
12531         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
12532         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
12533         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
12534         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
12535         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
12536         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
12537         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
12538         pthread_key_create, pthread_setspecific, pthread_getspecific,
12539         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
12540         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
12541         declarations.
12542         (pthread_mutex_timedlock): Move declaration.
12543         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
12544         declared.
12545         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
12546         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
12547         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
12548         HAVE_* and REPLACE_* variables for the new functions.
12549         * modules/pthread-h (Depends-on): Add snippet/c++defs,
12550         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
12551         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
12552         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
12553         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
12554         variables for the new functions. Split the sed script, to avoid the
12555         limit of 99 commands of HP-UX sed.
12556         * tests/test-pthread-c++.cc: Check the signature of the new functions.
12558 2019-07-14  Bruno Haible  <bruno@clisp.org>
12560         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
12561         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
12562         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
12563         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
12564         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
12565         * modules/pthread-h (Depends-on): Add threadlib.
12566         (Link): Change to $(LIBTHREAD).
12567         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
12568         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
12570 2019-07-14  Bruno Haible  <bruno@clisp.org>
12572         pthread-h: Add C++ tests.
12573         * tests/test-pthread-c++.cc: New file.
12574         * modules/pthread-h-c++-tests: New file.
12576 2019-07-14  Bruno Haible  <bruno@clisp.org>
12578         pthread-h: Add tests.
12579         * tests/test-pthread.c: New file.
12580         * modules/pthread-h-tests: New file.
12582 2019-07-14  Bruno Haible  <bruno@clisp.org>
12584         pthread-h: New module.
12585         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
12586         is 1.
12587         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
12588         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
12589         <pthread.h> pollutes the namespace; instead, prepare for generating a
12590         pthread.h always. Substitute HAVE_PTHREAD_H here.
12591         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
12592         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
12593         * modules/pthread-h: New file, based on modules/pthread.
12594         * modules/pthread: Rely on 'pthread-h'.
12595         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
12596         Update.
12597         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
12598         pthread.
12600 2019-07-14  Bruno Haible  <bruno@clisp.org>
12602         sched_yield: New module.
12603         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
12604         (sched_yield): New declaration.
12605         * lib/sched_yield.c: New file.
12606         * m4/sched_yield.m4: New file.
12607         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
12608         provide a replacement sched.h always. Test whether sched_yield is
12609         declared.
12610         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12611         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12612         (Makefile.am): Provide a replacement sched.h always. Substitute
12613         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12614         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12615         * modules/sched_yield: New file.
12616         * doc/posix-functions/sched_yield.texi: Mention the new module.
12618 2019-07-14  Bruno Haible  <bruno@clisp.org>
12620         windows-spin: New module.
12621         * lib/windows-spin.h: New file.
12622         * lib/windows-spin.c: New file.
12623         * modules/windows-spin: New file.
12625 2019-07-14  Bruno Haible  <bruno@clisp.org>
12627         windows-timedrwlock: New module.
12628         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
12629         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
12630         windows-cond.c.
12631         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
12632         redefinition conflict with windows-timedrwlock.h.
12633         * modules/windows-timedrwlock: New file.
12635 2019-07-14  Bruno Haible  <bruno@clisp.org>
12637         windows-rwlock: New module.
12638         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
12639         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
12640         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
12641         windows-initguard.h.
12642         (gl_rwlock_t): Define using glwthread_rwlock_t.
12643         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
12644         (glthread_rwlock_init): Define using glwthread_rwlock_init.
12645         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
12646         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
12647         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
12648         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
12649         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
12650         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
12651         glthread_rwlock_destroy_func): Remove declarations.
12652         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
12653         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
12654         gl_waitqueue_notify_all, glthread_rwlock_init_func,
12655         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
12656         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
12657         functions.
12658         * modules/windows-rwlock: New file.
12659         * modules/lock (Depends-on): Add windows-rwlock.
12661 2019-07-14  Bruno Haible  <bruno@clisp.org>
12663         windows-thread: Add support for creating a thread in detached state.
12664         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
12665         (glwthread_thread_create): Add attr argument.
12666         * lib/windows-thread.c (glwthread_thread_create): Likewise.
12667         * lib/glthread/thread.h (glthread_create): Update.
12668         * lib/thrd.c (thrd_create): Update.
12670 2019-07-14  Bruno Haible  <bruno@clisp.org>
12672         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
12673         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
12674         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
12675         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
12676         * lib/windows-mutex.h: Update.
12677         * lib/windows-recmutex.h: Likewise.
12678         * lib/windows-timedmutex.h: Likewise.
12679         * lib/windows-timedrecmutex.h: Likewise.
12680         * lib/windows-cond.h: Likewise.
12681         * lib/glthread/lock.h: Likewise.
12682         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12683         lib/windows-spinlock.h.
12684         * modules/windows-recmutex (Files): Likewise.
12685         * modules/windows-timedmutex (Files): Likewise.
12686         * modules/windows-timedrecmutex (Files): Likewise.
12687         * modules/windows-cond (Files): Likewise.
12688         * modules/threads-h (Files): Likewise.
12690 2019-07-14  Bruno Haible  <bruno@clisp.org>
12692         doc: Fix info about pthread API in HP-UX.
12693         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12695 2019-07-14  Bruno Haible  <bruno@clisp.org>
12697         threads-h: Fix generation of threads.h.
12698         * modules/threads-h (Makefile.am): Insert the required header file
12699         snippets.
12701 2019-07-09  Bruno Haible  <bruno@clisp.org>
12703         striconveh test: Fix a compilation failure when iconv is not available.
12704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12705         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12706         HAVE_ICONV.
12708 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12710         argmatch: adjust columns for help2man.
12711         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12712         requires column 20 or more, return 20.
12714 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12716         areadlink-with-size: avoid realloc when size==0
12717         * lib/areadlink-with-size.c (areadlink_with_size):
12718         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12719         Reallocate at the end to the actual size, to avoid memory waste,
12720         as suggested by Bruno Haible.  But when the guessed size is zero -
12721         useful when the size is unknown - do the initial small readlink
12722         into the stack, to avoid that realloc in the usual case.
12724 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12726         areadlink-with-size: guess a buffer size with 0 size
12727         The size is usually taken from st_size, which can be zero,
12728         resulting in inefficient operation.
12729         Instead let zero select an initial memory allocation
12730         of 128 bytes, which most symlinks fit within.
12731         * lib/areadlink-with-size.c (areadlink_with_size):
12732         Start with a 128 byte buffer, for SIZE == 0.
12733         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12735 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12737         Replace manually crafted hex regexes with [:xdigit:]
12738         * build-aux/gitlog-to-changelog (parse_amend_file)
12739         (git_dir_option):
12740         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12741         This patch is backported from Emacs (Bug#36167).
12743 2019-07-06  Bruno Haible  <bruno@clisp.org>
12745         error: Fix documentation.
12746         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12747         module provides.
12748         * doc/glibc-functions/error_message_count.texi: Likewise.
12749         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12750         * doc/glibc-functions/error_print_progname.texi: Likewise.
12752 2019-07-06  Bruno Haible  <bruno@clisp.org>
12754         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12755         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12756         and older is unsupported.
12757         * doc/**/*.texi: Update.
12759 2019-07-06  Bruno Haible  <bruno@clisp.org>
12761         doc: Remove documentation of Linux libc5 as a supported platform.
12762         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12763         to Linux libc5.
12764         * doc/posix-functions/iswalpha.texi: Likewise.
12765         * doc/posix-functions/iswblank.texi: Likewise.
12766         * doc/posix-functions/iswcntrl.texi: Likewise.
12767         * doc/posix-functions/iswdigit.texi: Likewise.
12768         * doc/posix-functions/iswgraph.texi: Likewise.
12769         * doc/posix-functions/iswlower.texi: Likewise.
12770         * doc/posix-functions/iswprint.texi: Likewise.
12771         * doc/posix-functions/iswpunct.texi: Likewise.
12772         * doc/posix-functions/iswspace.texi: Likewise.
12773         * doc/posix-functions/iswupper.texi: Likewise.
12774         * doc/posix-functions/iswxdigit.texi: Likewise.
12775         * doc/posix-functions/snprintf.texi: Likewise.
12776         * doc/posix-functions/vsnprintf.texi: Likewise.
12778 2019-07-06  Bruno Haible  <bruno@clisp.org>
12780         doc: Remove documentation of Tandem/NSK as a supported platform.
12781         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12782         Tandem/NSK.
12783         * doc/**/*.texi: Update.
12785 2019-07-06  Bruno Haible  <bruno@clisp.org>
12787         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12788         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12789         and older is unsupported.
12790         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12791         Mac OS X 10.4 and older.
12792         * doc/posix-functions/asinl.texi: Likewise.
12793         * doc/posix-functions/atanl.texi: Likewise.
12794         * doc/posix-functions/cosl.texi: Likewise.
12795         * doc/posix-functions/expl.texi: Likewise.
12796         * doc/posix-functions/frexpl.texi: Likewise.
12797         * doc/posix-functions/gettimeofday.texi: Likewise.
12798         * doc/posix-functions/logl.texi: Likewise.
12799         * doc/posix-functions/mkstemp.texi: Likewise.
12800         * doc/posix-functions/sinl.texi: Likewise.
12801         * doc/posix-functions/sqrtl.texi: Likewise.
12802         * doc/posix-functions/tanl.texi: Likewise.
12803         * doc/posix-functions/wcswidth.texi: Likewise.
12804         * doc/**/*.texi: Update.
12806 2019-07-06  Bruno Haible  <bruno@clisp.org>
12808         doc: Remove documentation of AIX 4 as a supported platform.
12809         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12810         unsupported.
12811         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12812         workarounds.
12813         * doc/posix-functions/strnlen.texi: Likewise.
12814         * doc/posix-headers/inttypes.texi: Likewise.
12815         * doc/**/*.texi: Update.
12817 2019-07-06  Bruno Haible  <bruno@clisp.org>
12819         doc: Remove documentation of HP-UX 10 as a supported platform.
12820         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12821         unsupported.
12822         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12823         workarounds.
12824         * doc/posix-functions/gmtime_r.texi: Likewise.
12825         * doc/posix-functions/localtime_r.texi: Likewise.
12826         * doc/posix-functions/mkstemp.texi: Likewise.
12827         * doc/**/*.texi: Update.
12829 2019-07-06  Bruno Haible  <bruno@clisp.org>
12831         doc: Remove documentation of Interix 3.5 as a supported platform.
12832         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12833         unsupported.
12834         * doc/posix-functions/select.texi: Don't mention Interix specific
12835         workarounds.
12836         * doc/posix-headers/signal.texi: Likewise.
12837         * doc/**/*.texi: Update.
12839 2019-07-06  Bruno Haible  <bruno@clisp.org>
12841         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12842         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12843         unsupported.
12844         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12845         workarounds.
12846         * doc/posix-functions/nl_langinfo.texi: Likewise.
12847         * doc/posix-functions/remainder.texi: Likewise.
12848         * doc/posix-functions/towlower.texi: Likewise.
12849         * doc/posix-functions/towupper.texi: Likewise.
12850         * doc/posix-functions/vsnprintf.texi: Likewise.
12851         * doc/posix-functions/wcscat.texi: Likewise.
12852         * doc/posix-functions/wcschr.texi: Likewise.
12853         * doc/posix-functions/wcscmp.texi: Likewise.
12854         * doc/posix-functions/wcscpy.texi: Likewise.
12855         * doc/posix-functions/wcscspn.texi: Likewise.
12856         * doc/posix-functions/wcslen.texi: Likewise.
12857         * doc/posix-functions/wcsncat.texi: Likewise.
12858         * doc/posix-functions/wcsncmp.texi: Likewise.
12859         * doc/posix-functions/wcsncpy.texi: Likewise.
12860         * doc/posix-functions/wcspbrk.texi: Likewise.
12861         * doc/posix-functions/wcsrchr.texi: Likewise.
12862         * doc/posix-functions/wcsspn.texi: Likewise.
12863         * doc/posix-headers/langinfo.texi: Likewise.
12864         * doc/posix-headers/signal.texi: Likewise.
12865         * doc/posix-headers/wchar.texi: Likewise.
12866         * doc/posix-headers/wctype.texi: Likewise.
12867         * doc/**/*.texi: Update.
12869 2019-07-05  Bruno Haible  <bruno@clisp.org>
12871         doc: Remove documentation of OSF/1 as supported platform.
12872         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12873         unsupported.
12874         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12875         workarounds.
12876         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12877         * doc/glibc-functions/ptsname_r.texi: Likewise.
12878         * doc/posix-functions/ceil.texi: Likewise.
12879         * doc/posix-functions/ceilf.texi: Likewise.
12880         * doc/posix-functions/ceill.texi: Likewise.
12881         * doc/posix-functions/fchdir.texi: Likewise.
12882         * doc/posix-functions/floor.texi: Likewise.
12883         * doc/posix-functions/floorf.texi: Likewise.
12884         * doc/posix-functions/fmod.texi: Likewise.
12885         * doc/posix-functions/fmodf.texi: Likewise.
12886         * doc/posix-functions/fmodl.texi: Likewise.
12887         * doc/posix-functions/log.texi: Likewise.
12888         * doc/posix-functions/logf.texi: Likewise.
12889         * doc/posix-functions/logl.texi: Likewise.
12890         * doc/posix-functions/log10.texi: Likewise.
12891         * doc/posix-functions/log10f.texi: Likewise.
12892         * doc/posix-functions/log10l.texi: Likewise.
12893         * doc/posix-functions/log2.texi: Likewise.
12894         * doc/posix-functions/log2f.texi: Likewise.
12895         * doc/posix-functions/log2l.texi: Likewise.
12896         * doc/posix-functions/mbrtowc.texi: Likewise.
12897         * doc/posix-functions/recv.texi: Likewise.
12898         * doc/posix-functions/recvfrom.texi: Likewise.
12899         * doc/posix-functions/remainder.texi: Likewise.
12900         * doc/posix-functions/remainderf.texi: Likewise.
12901         * doc/posix-functions/remainderl.texi: Likewise.
12902         * doc/posix-functions/round.texi: Likewise.
12903         * doc/posix-functions/roundf.texi: Likewise.
12904         * doc/posix-functions/roundl.texi: Likewise.
12905         * doc/posix-functions/send.texi: Likewise.
12906         * doc/posix-functions/sendto.texi: Likewise.
12907         * doc/posix-functions/setenv.texi: Likewise.
12908         * doc/posix-functions/snprintf.texi: Likewise.
12909         * doc/posix-functions/tcgetsid.texi: Likewise.
12910         * doc/posix-functions/trunc.texi: Likewise.
12911         * doc/posix-functions/truncf.texi: Likewise.
12912         * doc/posix-functions/truncl.texi: Likewise.
12913         * doc/posix-functions/ttyname_r.texi: Likewise.
12914         * doc/posix-functions/unsetenv.texi: Likewise.
12915         * doc/posix-functions/wcsrtombs.texi: Likewise.
12916         * doc/posix-headers/sys_select.texi: Likewise.
12917         * doc/posix-headers/wchar.texi: Likewise.
12918         * doc/posix-headers/wctype.texi: Likewise.
12919         * doc/**/*.texi: Update.
12921 2019-07-05  Bruno Haible  <bruno@clisp.org>
12923         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12924         * doc/**/*.texi: Update.
12926 2019-07-05  Bruno Haible  <bruno@clisp.org>
12928         doc: Remove documentation of Solaris 8 and older as supported platforms.
12929         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12930         unsupported.
12931         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12932         workarounds.
12933         * doc/posix-functions/memcmp.texi: Likewise.
12934         * doc/posix-functions/rename.texi: Likewise.
12935         * doc/posix-functions/tzset.texi: Likewise.
12936         * doc/posix-headers/wctype.texi: Likewise.
12937         * doc/**/*.texi: Update.
12939 2019-07-05  Bruno Haible  <bruno@clisp.org>
12941         doc: Remove documentation of Interix 3.5 as a supported platform.
12942         * doc/**/*.texi: Update.
12944 2019-07-05  Bruno Haible  <bruno@clisp.org>
12946         doc: Remove documentation of BeOS as a supported platform.
12947         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12948         unsupported.
12949         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12950         * doc/posix-functions/getdelim.texi: Likewise.
12951         * doc/**/*.texi: Update.
12953 2019-07-05  Bruno Haible  <bruno@clisp.org>
12955         thread, lock, cond, tls: Remove support for Pth threads.
12956         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12957         --enable-threads=pth any more.
12958         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12959         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12960         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12961         threads and ISO C11 threads.
12962         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12963         * lib/glthread/lock.h: Likewise.
12964         * lib/glthread/lock.c: Likewise.
12965         * lib/glthread/cond.h: Likewise.
12966         * lib/glthread/cond.c: Likewise.
12967         * lib/glthread/tls.h: Likewise.
12968         * lib/glthread/tls.c: Likewise.
12969         * lib/glthread/yield.h: Likewise.
12970         * lib/regex_internal.h: Likewise.
12971         * tests/test-thread_create.c: Likewise.
12972         * tests/test-lock.c: Likewise.
12973         * tests/test-cond.c: Likewise.
12974         * tests/test-tls.c: Likewise.
12975         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12976         (main): Sleep without calling gl_thread_yield.
12978 2019-07-05  Bruno Haible  <bruno@clisp.org>
12980         thread, lock, cond, tls: Remove support for old Solaris threads.
12981         Solaris >= 2.5.1 has POSIX threads.
12982         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12983         --enable-threads=solaris any more.
12984         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12985         * lib/glthread/thread.c: Update comment.
12986         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12987         * lib/glthread/lock.h: Likewise.
12988         * lib/glthread/lock.c: Likewise.
12989         * lib/glthread/cond.h: Likewise.
12990         * lib/glthread/cond.c: Likewise.
12991         * lib/glthread/tls.h: Likewise.
12992         * lib/glthread/tls.c: Likewise.
12993         * lib/glthread/yield.h: Likewise.
12994         * lib/regex_internal.h: Likewise.
12995         * tests/test-thread_create.c: Likewise.
12996         * tests/test-lock.c: Likewise.
12997         * tests/test-cond.c: Likewise.
12998         * tests/test-tls.c: Likewise.
13000 2019-07-05  Bruno Haible  <bruno@clisp.org>
13002         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
13003         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
13004         needed size is equal to the allocated size.
13005         * lib/getcwd.c (__getcwd): Likewise.
13007 2019-07-05  Bruno Haible  <bruno@clisp.org>
13009         xgetdomainname: Don't return an excessive memory allocation.
13010         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
13011         before returning it.
13013 2019-07-05  Bruno Haible  <bruno@clisp.org>
13015         xgethostname: Don't return an excessive memory allocation.
13016         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
13017         returning it.
13019 2019-07-05  Bruno Haible  <bruno@clisp.org>
13021         areadlinkat-with-size: Don't return an excessive memory allocation.
13022         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
13023         before returning it.
13025 2019-07-05  Bruno Haible  <bruno@clisp.org>
13027         areadlink-with-size: Don't return an excessive memory allocation.
13028         Reported by Andreas Dilger <adilger@whamcloud.com>.
13029         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
13030         before returning it.
13032 2019-07-03  Bruno Haible  <bruno@clisp.org>
13034         renameatu: Fix test failure on MSVC.
13035         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
13036         empty string.
13038 2019-07-03  Bruno Haible  <bruno@clisp.org>
13040         mbrtowc: Fix invalid use of mbtowc() on MSVC.
13041         * lib/mbrtowc.c: Include glthread/lock.h.
13042         (mbtowc_lock): New variable.
13043         (mbrtowc): Treat UTF-8 encoding without locking. For the other
13044         encodings, explicitly reset the internal state of mbtowc, and protect
13045         this through a lock.
13046         * modules/mbrtowc (Depends-on): Add lock.
13048 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
13050         argmatch: don't define _ in the header.
13051         Reported by Jim Meyering.
13052         * lib/argmatch.h (N_, _): Don't define.
13053         Use gettext instead.
13054         * lib/argmatch.h (_): Define.
13055         * tests/test-argmatch.c (N_): Define.
13057 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13059         verify: document ‘assume’ better
13060         * lib/verify.h: Reword doc (Bug#36370).
13062 2019-07-02  Bruno Haible  <bruno@clisp.org>
13064         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
13065         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
13066         "CPutf8".
13067         * lib/nl_langinfo.c (ctype_codeset): Likewise.
13069 2019-07-02  Bruno Haible  <bruno@clisp.org>
13071         getcwd: Fix crash when invoked with size = 0 on MSVC.
13072         * lib/getcwd.c: Include msvc-inval.h.
13073         (getcwd_nothrow): New function/macro.
13074         (getcwd_system): New macro.
13075         (__getcwd): Use it instead of getcwd.
13076         * modules/getcwd (Depends-on): Add msvc-inval.
13077         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
13079 2019-07-02  Bruno Haible  <bruno@clisp.org>
13081         nonblocking-pipe tests: Fix test failure on MSVC.
13082         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
13083         native Windows.
13085 2019-07-02  Bruno Haible  <bruno@clisp.org>
13087         usleep: Implement with millisecond resolution on native Windows.
13088         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
13089         * doc/pastposix-functions/usleep.texi: Update accordingly.
13091 2019-07-02  Bruno Haible  <bruno@clisp.org>
13093         lstat tests: Fix test failure on MSVC.
13094         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
13095         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13097 2019-07-02  Bruno Haible  <bruno@clisp.org>
13099         stat tests: Fix test failure on MSVC.
13100         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
13101         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13103 2019-07-02  Bruno Haible  <bruno@clisp.org>
13105         getaddrinfo tests: Fix test failure on MSVC.
13106         * tests/test-getaddrinfo.c: Include sockets.h.
13107         (main): Invoke gl_sockets_startup.
13108         * modules/getaddrinfo-tests (Depends-on): Add sockets.
13110 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
13112         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
13113         * lib/poll.c: Call Windows native select() with Windows native timeval.
13115 2019-06-30  Bruno Haible  <bruno@clisp.org>
13117         argmatch: Fix compilation errors.
13118         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
13119         * tests/test-argmatch.c (main): Update after last-minute function names
13120         change.
13122 2019-06-30  Bruno Haible  <bruno@clisp.org>
13124         Include <stdlib.h> when needed.
13125         * lib/cnd.c: Include <stdlib.h>, needed for abort().
13126         * lib/fcntl.c: Likewise.
13127         * lib/mbscasestr.c: Likewise.
13128         * lib/mbssep.c: Likewise.
13129         * lib/mbsstr.c: Likewise.
13130         * lib/openat.c: Include <stdlib.h>, needed for free().
13131         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
13132         abort().
13134 2019-06-30  Bruno Haible  <bruno@clisp.org>
13136         Include <stdlib.h> when needed.
13137         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
13138         * lib/faccessat.c: Likewise.
13139         * lib/fchmodat.c: Likewise.
13140         * lib/fchownat.c: Likewise.
13141         * lib/fstatat.c: Likewise.
13142         * lib/mkfifoat.c: Likewise.
13143         * lib/mknodat.c: Likewise.
13144         * lib/readlinkat.c: Likewise.
13145         * lib/symlinkat.c: Likewise.
13146         * lib/utimensat.c: Likewise.
13147         * lib/mkdirat.c: Likewise. Include also the specification header.
13149 2019-06-30  Bruno Haible  <bruno@clisp.org>
13151         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
13152         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
13153         from gl_PREREQ_SYS_H_SOCKET.
13154         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
13155         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
13156         gl_PREREQ_SYS_H_WS2TCPIP.
13157         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
13158         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
13159         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
13161 2019-06-30  Bruno Haible  <bruno@clisp.org>
13163         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
13164         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
13165         REPLACE_INET_NTOP to 1 always.
13166         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
13167         REPLACE_INET_PTON to 1 always.
13169 2019-06-30  Bruno Haible  <bruno@clisp.org>
13171         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
13172         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
13173         not REPLACE_INET_NTOP.
13175 2019-06-30  Bruno Haible  <bruno@clisp.org>
13177         poll: Add comment.
13178         * lib/poll.c: Add comment about WSAPoll.
13180 2019-06-30  Bruno Haible  <bruno@clisp.org>
13182         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
13183         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
13184         * lib/poll.in.h: Include <winsock2.h>.
13185         (POLL*, pollfd): Override on native Windows.
13186         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13187         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
13188         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13190 2019-06-28  Bruno Haible  <bruno@clisp.org>
13192         accept4: Fix compilation error on OpenIndiana.
13193         Reported by Michal Nowak <mnowak@startmail.com>
13194         via Mark H Weaver <mhw@netris.org>.
13195         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13196         whether it exists as a function.
13198 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13200         strverscmp: sync from glibc
13201         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
13202         comments, include libc-config.h, define __strverscmp to be
13203         strverscmp, and don’t assume types line uint8_t and int8_t that
13204         that C99 doesn’t guarantee.
13205         [!_LIBC]: Include libc-config.h; define __strverscmp.
13206         Include stdint.h.
13207         (__strverscmp): Assume C99.  Use uint_least8_t
13208         and int_least8_t instead of unsigned char and signed char.
13209         * modules/strverscmp (Depends-on): Add libc-config, stdint.
13211 2019-06-25  Bruno Haible  <bruno@clisp.org>
13213         tss tests: Add tests for destructors and races.
13214         * tests/test-tss.c (worker_thread): Fix typo in debug message.
13215         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
13216         functions.
13217         (main): Invoke them.
13218         * modules/tls-tests (Depends-on): Add mtx.
13220 2019-06-25  Bruno Haible  <bruno@clisp.org>
13222         tls tests: Add tests for destructors and races.
13223         * tests/test-tls.c: Include glthread/lock.h.
13224         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
13225         functions.
13226         (main): Invoke them.
13227         * modules/tls-tests (Depends-on): Add lock.
13229 2019-06-25  Bruno Haible  <bruno@clisp.org>
13231         windows-tls: Implement TLS key destructors for native Windows.
13232         * lib/windows-tls.h (glwthread_tls_process_destructors): New
13233         declaration.
13234         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
13235         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
13236         (dtor_table_init_once, dtor_table_lock: New variables.
13237         (struct dtor): New type.
13238         (dtor_table, dtors_count, dtors_used, dtors_allocated,
13239         dtor_processing_threads): New variables.
13240         (dtor_table_initialize, dtor_table_ensure_initialized,
13241         dtor_table_shrink_used, glwthread_tls_process_destructors): New
13242         functions.
13243         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
13244         handle non-NULL destructors.
13245         * modules/windows-tls (Depends-on): Add windows-once.
13246         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
13247         Use the functions declared in windows-tls.h.
13248         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
13249         GLWTHREAD_DESTRUCTOR_ITERATIONS.
13250         * lib/windows-thread.c: Include windows-tls.h.
13251         (wrapper_func, glwthread_thread_exit): Invoke
13252         glwthread_tls_process_destructors.
13253         * modules/windows-thread (Depends-on): Add windows-tls.
13255 2019-06-25  Bruno Haible  <bruno@clisp.org>
13257         threadlib: Avoid autoconf warning "was expanded before it was required".
13258         * modules/threadlib (configure.ac): Require gl_THREADLIB.
13260 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
13262         argmatch: remove duplicate const qualifier
13263         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
13265 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13267         unistd: stddef.h and sys/types.h namespace cleanup
13268         * lib/unistd.in.h [__GLIBC__]:
13269         Do not include stddef.h or sys/types.h.
13270         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
13271         supposed to declare off_t and ssize_t.  Problem found when looking
13272         at why @GNULIB_PWRITE@ was different from the newly-added
13273         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
13275 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13277         maintainer-makefile: restore portability to non-GNU awks
13278         Reported by Tim Rühsen.
13279         * top/maint.mk (AWK): New variable.  Use it.
13280         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
13282 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13284         Document setvbuf _IOLBF problem
13285         * doc/posix-functions/setvbuf.texi (setvbuf):
13286         Document MS-Windows portability problem with _IOLBF.
13288         Document lseek SEEK_DATA/SEEK_HOLE
13289         * doc/posix-functions/lseek.texi (lseek):
13290         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
13292 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13294         argmatch: put all the docs member last.
13295         Reported by Bruno Haible.
13296         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
13297         member before the docs done.
13298         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
13300 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
13302         argmatch: add support to generate the usage message.
13303         * lib/argmatch.c: Move some #includes and gettext support to...
13304         * lib/argmatch.h: here.
13305         (ARGMATCH_DEFINE_GROUP): New macro.
13306         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
13307         (argmatch_backup_group): New.
13308         (CHECK): New.
13309         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
13310         argmatch_backup_argument and argmatch_backup_usage.
13311         * modules/argmatch: We depend on c99.
13312         * doc/argmatch.texi (Recognizing Option Arguments): New.
13313         * doc/gnulib.texi: Use it.
13315 2019-06-21  Bruno Haible  <bruno@clisp.org>
13317         thrd: Add comment.
13318         * lib/thrd.c (pthread_main_func): Add comment.
13320 2019-06-21  Bruno Haible  <bruno@clisp.org>
13322         threads-h: Define 'thread_local' if and only if it actually works.
13323         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
13324         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
13325         Oracle Solaris Studio C. Compile a simple program, to see whether
13326         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
13327         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
13328         * lib/threads.in.h (thread_local): Undefine if it does not work.
13329         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
13330         (Link): Mention LIBTHREADLOCAL.
13331         * tests/test-threads.c: Don't check that thread_local is defined.
13332         * tests/test-thread_local.c: New file.
13333         * modules/threads-h-tests (Files): Add it and macros.h.
13334         (Depends-on): Add thrd and stdint.
13335         (configure.ac): Test whether 'alarm' is declared.
13336         (Makefile.am): Arrange to build and link test-thread_local.
13337         * doc/posix-headers/threads.texi: Mention the platforms that don't
13338         support 'thread_local'.
13340 2019-06-20  Bruno Haible  <bruno@clisp.org>
13342         threads-h: Simplify link dependencies.
13343         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
13344         Don't set LTLIBSTDTHREAD.
13345         * modules/thrd (Link): Simplify accordingly.
13346         * modules/mtx (Link): Likewise.
13347         * modules/cnd (Link): Likewise.
13348         * modules/tss (Link): Likewise.
13349         * modules/threads (Link): Likewise.
13351 2019-06-20  Bruno Haible  <bruno@clisp.org>
13353         threads-h: Fix link error on FreeBSD 11.
13354         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
13355         also with -lpthread.
13357 2019-06-20  Bruno Haible  <bruno@clisp.org>
13359         threadlib: Fix typo (regression from today).
13360         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13362 2019-06-20  Bruno Haible  <bruno@clisp.org>
13364         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13365         * lib/windows-thread.c: Include <errno.h>.
13366         * lib/windows-tls.c: Likewise.
13368 2019-06-20  Bruno Haible  <bruno@clisp.org>
13370         tss tests: Small improvement.
13371         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13373 2019-06-20  Bruno Haible  <bruno@clisp.org>
13375         threads: New module.
13376         * modules/threads: New file.
13378 2019-06-20  Bruno Haible  <bruno@clisp.org>
13380         tss: Add tests.
13381         * tests/test-tss.c: New file, based on tests/test-tls.c.
13382         * modules/tss-tests: New file.
13384 2019-06-20  Bruno Haible  <bruno@clisp.org>
13386         cnd: Add tests.
13387         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13388         * modules/cnd-tests: New file.
13390 2019-06-20  Bruno Haible  <bruno@clisp.org>
13392         mtx: Add tests.
13393         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13394         * tests/test-call_once.c: New file, based on tests/test-once.c.
13395         * modules/mtx-tests: New file.
13397 2019-06-20  Bruno Haible  <bruno@clisp.org>
13399         thrd: Add tests.
13400         * tests/test-thrd_create.c: New file, based on
13401         tests/test-thread_create.c.
13402         * tests/test-thrd_current.c: New file, based on
13403         tests/test-thread_self.c.
13404         * modules/thrd-tests: New file.
13406 2019-06-20  Bruno Haible  <bruno@clisp.org>
13408         tss: New module.
13409         * lib/tss.c: New file.
13410         * modules/tss: New file.
13411         * doc/posix-functions/tss_create.texi: Mention the new module.
13412         * doc/posix-functions/tss_set.texi: Likewise.
13413         * doc/posix-functions/tss_get.texi: Likewise.
13414         * doc/posix-functions/tss_delete.texi: Likewise.
13416 2019-06-20  Bruno Haible  <bruno@clisp.org>
13418         cnd: New module.
13419         * lib/cnd.c: New file.
13420         * modules/cnd: New file.
13421         * doc/posix-functions/cnd_init.texi: Mention the new module.
13422         * doc/posix-functions/cnd_wait.texi: Likewise.
13423         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13424         * doc/posix-functions/cnd_signal.texi: Likewise.
13425         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13426         * doc/posix-functions/cnd_destroy.texi: Likewise.
13428 2019-06-20  Bruno Haible  <bruno@clisp.org>
13430         mtx: New module.
13431         * lib/mtx.c: New file.
13432         * modules/mtx: New file.
13433         * doc/posix-functions/call_once.texi: Mention the new module.
13434         * doc/posix-functions/mtx_init.texi: Likewise.
13435         * doc/posix-functions/mtx_lock.texi: Likewise.
13436         * doc/posix-functions/mtx_trylock.texi: Likewise.
13437         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13438         * doc/posix-functions/mtx_unlock.texi: Likewise.
13439         * doc/posix-functions/mtx_destroy.texi: Likewise.
13441 2019-06-20  Bruno Haible  <bruno@clisp.org>
13443         thrd: New module.
13444         * lib/thrd.c: New file.
13445         * m4/thrd.m4: New file.
13446         * modules/thrd: New file.
13447         * doc/posix-functions/thrd_current.texi: Mention the new module.
13448         * doc/posix-functions/thrd_detach.texi: Likewise.
13449         * doc/posix-functions/thrd_equal.texi: Likewise.
13450         * doc/posix-functions/thrd_exit.texi: Likewise.
13451         * doc/posix-functions/thrd_sleep.texi: Likewise.
13452         * doc/posix-functions/thrd_yield.texi: Likewise.
13453         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13454         AIX bug.
13455         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13456         AIX and Solaris bugs.
13458 2019-06-20  Bruno Haible  <bruno@clisp.org>
13460         threads-h: Add tests.
13461         * tests/test-threads.c: New file.
13462         * modules/threads-h-tests: New file.
13463         * tests/test-threads-c++.cc: New file.
13464         * modules/threads-h-c++-tests: New file.
13466 2019-06-20  Bruno Haible  <bruno@clisp.org>
13468         threads-h: New module.
13469         * lib/threads.in.h: New file.
13470         * m4/threads.m4: New file.
13471         * m4/yield.m4 (gl_YIELD): Update comment.
13472         * modules/threads-h: New file.
13473         * modules/yields (configure.ac): Use AC_REQUIRE.
13474         * doc/posix-headers/threads.texi: Mention the new module and the AIX
13475         bugs.
13477 2019-06-20  Bruno Haible  <bruno@clisp.org>
13479         windows-thread: New module.
13480         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
13481         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
13482         * lib/glthread/thread.h: Include windows-thread.h.
13483         (gl_thread_t): Define using glwthread_thread_t.
13484         (glthread_create): Define using glwthread_thread_create.
13485         (glthread_join): Define using glwthread_thread_join.
13486         (gl_thread_self): Define using glwthread_thread_self.
13487         (gl_thread_exit): Define using glwthread_thread_exit.
13488         (glthread_create_func, glthread_join_func, gl_thread_self_func,
13489         gl_thread_exit_func): Remove declarations.
13490         * lib/glthread/thread.c (self_key): Remove variable.
13491         (do_init_self_key, init_self_key): Remove functions.
13492         (struct gl_thread_struct): Remove type.
13493         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
13494         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
13495         functions.
13496         * modules/windows-thread: New file.
13497         * modules/thread (Depends-on): Add windows-thread.
13499 2019-06-20  Bruno Haible  <bruno@clisp.org>
13501         windows-tls: New module.
13502         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
13503         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
13504         * lib/glthread/tls.h: Include windows-tls.h.
13505         (gl_tls_key_t): Define using glwthread_tls_key_t.
13506         * modules/windows-tls: New file.
13507         * modules/tls (Depends-on): Add windows-tls.
13509 2019-06-20  Bruno Haible  <bruno@clisp.org>
13511         windows-cond: New module.
13512         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
13513         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
13514         * lib/glthread/cond.h: Include windows-cond.h.
13515         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
13516         (gl_cond_t): Define using glwthread_cond_t.
13517         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
13518         (glthread_cond_init): Define using glwthread_cond_init.
13519         (glthread_cond_wait): Define using glwthread_cond_wait.
13520         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
13521         (glthread_cond_signal): Define using glwthread_cond_signal.
13522         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
13523         (glthread_cond_destroy): Define using glwthread_cond_destroy.
13524         (glthread_cond_init_func, glthread_cond_wait_func,
13525         glthread_cond_timedwait_func, glthread_cond_signal_func,
13526         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13527         declarations.
13528         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
13529         types.
13530         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13531         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
13532         glthread_cond_init_func, glthread_cond_wait_func,
13533         glthread_cond_timedwait_func, glthread_cond_signal_func,
13534         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13535         functions.
13536         * modules/windows-cond: New file.
13537         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
13539 2019-06-20  Bruno Haible  <bruno@clisp.org>
13541         windows-timedrecmutex: New module.
13542         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
13543         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
13544         * modules/windows-timedrecmutex: New file.
13546 2019-06-20  Bruno Haible  <bruno@clisp.org>
13548         windows-timedmutex: New module.
13549         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
13550         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
13551         * modules/windows-timedmutex: New file.
13553 2019-06-20  Bruno Haible  <bruno@clisp.org>
13555         windows-recmutex: New module.
13556         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
13557         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
13558         * lib/glthread/lock.h: Include windows-recmutex.h.
13559         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
13560         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
13561         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
13562         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
13563         (glthread_recursive_lock_unlock): Define using
13564         glwthread_recmutex_unlock.
13565         (glthread_recursive_lock_destroy): Define using
13566         glwthread_recmutex_destroy.
13567         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
13568         glthread_recursive_lock_unlock_func,
13569         glthread_recursive_lock_destroy_func): Remove declarations.
13570         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
13571         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
13572         glthread_recursive_lock_destroy_func): Remove functions.
13573         * modules/windows-recmutex: New file.
13574         * modules/lock (Depends-on): Add windows-recmutex.
13576 2019-06-20  Bruno Haible  <bruno@clisp.org>
13578         windows-mutex: New module.
13579         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
13580         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
13581         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
13582         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
13583         (gl_spinlock_t): Remove type.
13584         (gl_lock_t): Define using glwthread_mutex_t.
13585         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
13586         (glthread_lock_init): Define using glwthread_mutex_init.
13587         (glthread_lock_lock): Define using glwthread_mutex_lock.
13588         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
13589         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
13590         (glthread_lock_init_func, glthread_lock_lock_func,
13591         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13592         declarations.
13593         Use glwthread_spinlock_t instead of gl_spinlock_t.
13594         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
13595         GLWTHREAD_SPINLOCK_INIT.
13596         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
13597         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13598         functions.
13599         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
13600         gl_spinlock_t.
13601         * modules/windows-mutex: New file.
13602         * modules/lock (Depends-on): Add windows-mutex.
13604 2019-06-20  Bruno Haible  <bruno@clisp.org>
13606         windows-once: New module.
13607         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
13608         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13609         * lib/glthread/lock.h: Include windows-once.h.
13610         (gl_once_t): Define using glwthread_once_t.
13611         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13612         (glthread_once): Define using glwthread_once.
13613         (glthread_once_func): Remove declaration.
13614         * lib/glthread/lock.c (glthread_once_func): Remove function.
13615         * modules/windows-once: New file.
13616         * modules/lock (Depends-on): Add windows-once.
13618 2019-06-20  Bruno Haible  <bruno@clisp.org>
13620         lock, cond: Avoid possible counter wraparound on Windows.
13621         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
13622         field of the guard unchanged if it was already positive.
13623         (glthread_rwlock_rdlock_func): Likewise.
13624         (glthread_rwlock_wrlock_func): Likewise.
13625         (glthread_recursive_lock_lock_func): Likewise.
13626         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
13627         (glthread_cond_timedwait_func): Likewise.
13629 2019-06-20  Bruno Haible  <bruno@clisp.org>
13631         cond: Make glthread_cond_timedwait more reliable on Windows.
13632         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
13633         condition variable before looking at the current time.
13635 2019-06-20  Bruno Haible  <bruno@clisp.org>
13637         pthread_mutex_timedlock: New module.
13638         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
13639         new declaration.
13640         * lib/pthread_mutex_timedlock.c: New file.
13641         * m4/pthread_mutex_timedlock.m4: New file.
13642         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
13643         whether pthread_mutex_timedlock is declared.
13644         (gl_PTHREAD_MODULE_INDICATOR): New macro.
13645         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13646         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13647         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
13648         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13649         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13650         * modules/pthread_mutex_timedlock: New file.
13651         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
13652         module.
13654 2019-06-20  Bruno Haible  <bruno@clisp.org>
13656         thread, lock, cond, tls: Recognize C11 multithreaded applications.
13657         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
13658         * lib/glthread/thread.h (c11_threads_in_use): New macro.
13659         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13660         * lib/glthread/lock.h (c11_threads_in_use): New macro.
13661         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13662         * lib/glthread/cond.h (c11_threads_in_use): New macro.
13663         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13664         * lib/glthread/tls.h (c11_threads_in_use): New macro.
13665         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13667 2019-06-20  Bruno Haible  <bruno@clisp.org>
13669         tls tests: Small improvements.
13670         * tests/test-tls.c: Include <stdint.h>.
13671         (worker_thread): Avoid gcc warning on 64-bit mingw.
13672         (test_tls): Pass a different id to each thread.
13673         * modules/tls-tests (Depends-on): Add stdint.
13675 2019-06-20  Bruno Haible  <bruno@clisp.org>
13677         cond tests: Simplify.
13678         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
13680 2019-06-20  Bruno Haible  <bruno@clisp.org>
13682         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13683         * tests/test-lock.c (test_once): Don't reference fire_signal if
13684         !ENABLE_LOCKING.
13686 2019-06-19  Bruno Haible  <bruno@clisp.org>
13688         nanosleep: Relicense under LGPLv2+.
13689         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13690         * modules/nanosleep (License): Change to LGPLv2+.
13692 2019-06-19  Bruno Haible  <bruno@clisp.org>
13694         Reorder pieces of header in perl scripts.
13695         The desired order is
13696         - Prologue part 1 (2 lines with #!)
13697         - Program short description
13698         - Copyright and license notice
13699         - Written-by notice
13700         - Program short description (optional)
13701         - Program long description (optional)
13702         - Prologue part 2
13703         - Time stamp
13704         - Code
13705         Reported by Paul Eggert.
13706         * build-aux/announce-gen: Reorder header.
13707         * build-aux/gitlog-to-changelog: Likewise.
13708         * build-aux/useless-if-before-free: Likewise.
13709         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13710         description.
13711         * build-aux/update-copyright: Likewise. Add short description. Bump
13712         time-stamp-line-limit to 200.
13714 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13716         verify-tests: work around xlc bug
13717         Problem reported by Bruno Haible in:
13718         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13719         * tests/test-verify.c (item): Move the arithmetic inside the
13720         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13722 2019-06-16  Bruno Haible  <bruno@clisp.org>
13724         Restore Emacs time-stamp hook applicability.
13725         Reported by Darshit Shah <darnir@gnu.org>.
13726         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13727         * build-aux/announce-gen: Likewise.
13728         * build-aux/gitlog-to-changelog: Likewise.
13729         * build-aux/prefix-gnulib-mk: Likewise.
13730         * build-aux/update-copyright: Likewise.
13732 2019-06-15  Bruno Haible  <bruno@clisp.org>
13734         Fix scripts to have valid executable format on Alpine Linux.
13735         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13736         Idea by Paul Eggert.
13737         * build-aux/useless-if-before-free: Use a prologue that starts with
13738         '#!/bin/sh'.
13739         * build-aux/announce-gen: Likewise.
13740         * build-aux/gitlog-to-changelog: Likewise.
13741         * build-aux/prefix-gnulib-mk: Likewise.
13742         * build-aux/update-copyright: Likewise.
13743         * tests/test-update-copyright.sh: Update test program accordingly.
13745 2019-06-10  Bruno Haible  <bruno@clisp.org>
13747         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13748         Reported by Nikita Ermakov <arei@altlinux.org> in
13749         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13750         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13751         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13753 2019-06-10  Bruno Haible  <bruno@clisp.org>
13755         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13756         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13757         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13758         a copy of the path argument.
13759         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13760         it.
13762 2019-06-10  Bruno Haible  <bruno@clisp.org>
13764         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13765         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13766         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13767         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13768         a copy of the path argument.
13769         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13770         it.
13772 2019-06-10  Bruno Haible  <bruno@clisp.org>
13774         posix_spawn_file_actions_addfchdir: Add tests.
13775         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13776         * tests/test-posix_spawn5.c: New file.
13777         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13779 2019-06-10  Bruno Haible  <bruno@clisp.org>
13781         posix_spawn_file_actions_addfchdir: New module.
13782         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13783         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13784         union member 'fchdir_action'.
13785         * lib/spawn_faction_addfchdir.c: New file.
13786         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13787         * m4/posix_spawn_faction_addfchdir.m4: New file.
13788         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13789         'posix_spawn_file_actions_addfchdir' is present and whether
13790         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13791         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13792         posix_spawn_file_actions_addfchdir is declared.
13793         (gl_SPAWN_H_DEFAULTS): Initialize
13794         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13795         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13796         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13797         * modules/spawn (Makefile.am): Substitute
13798         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13799         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13801         * modules/posix_spawn_file_actions_addfchdir: New file.
13802         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13803         signature.
13804         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13805         * doc/posix-functions/posix_spawnp.texi: Likewise.
13806         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13807         Likewise.
13809 2019-06-10  Bruno Haible  <bruno@clisp.org>
13811         doc: Document existence of posix_spawn_file_actions_addchdir module.
13812         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13813         the posix_spawn_file_actions_addchdir module.
13815 2019-06-10  Bruno Haible  <bruno@clisp.org>
13817         posix_spawn-internal: Fix module description.
13818         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13819         from here...
13820         * modules/posix_spawnp (configure.ac): ... and here...
13821         * modules/posix_spawn-internal (configure.ac): ... to here.
13823 2019-06-10  Bruno Haible  <bruno@clisp.org>
13825         doc: Update and improve documentation of glibc functions.
13826         This is a series of commits that
13827         - updates the documentation to the state of glibc 2.29,
13828         - adds references to Linux man pages and glibc documentation,
13829         - marks Linux specific functions as such.
13830         These are the commits:
13831         doc: Update after removal of crypt functions from glibc 2.28.
13832         doc: Remove mention of function vm86 (does not exist on x86_64).
13833         doc: Remove mention of functions that are gone from glibc.
13834         doc: Mention that glibc no longer provides h_errno.
13835         doc: Mention the availability of specific functions in glibc versions.
13836         doc: Mention eaccess.
13837         doc: Add references to Linux man pages.
13838         doc: Add references to glibc documentation.
13839         doc: Mention inotify_* functions.
13840         doc: Mention ppoll.
13841         doc: Mention sched_getcpu.
13842         doc: Mention sync_file_range.
13843         doc: Mention epoll_pwait.
13844         doc: Mention eventfd, eventfd_read, eventfd_write.
13845         doc: Mention signalfd.
13846         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13847         doc: Mention epoll_create1.
13848         doc: Mention getauxval.
13849         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13850         doc: Mention nextdown, nextup.
13851         doc: Mention more ISO TS 18661-1 <math.h> functions.
13852         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13853         doc: Mention getrandom, getentropy.
13854         doc: Mention strfromf, strfromd, strfroml.
13855         doc: Mention preadv2, pwritev2.
13856         doc: Mention copy_file_range.
13857         doc: Mention memfd_create.
13858         doc: Mention mlock2.
13859         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13860         doc: Mention more ISO TS 18661-1 <math.h> functions.
13861         doc: Mention renameat2.
13862         doc: Mention statx.
13863         doc: Mention the ISO C11 multithreading header and functions.
13864         doc: Mention getcpu.
13865         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13866         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13867         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13868         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13869         doc: Some glibc functions also exist on Solaris 11.
13870         doc: Some glibc functions also exist on Solaris 11.4.
13871         doc: Some glibc functions also exist on FreeBSD.
13872         doc: Some glibc functions also exist on BeOS.
13873         doc: Some glibc functions also exist on Haiku.
13874         doc: Mark functions which exist only on Linux.
13875         doc: Mark functions which exist only on Linux and illumos.
13877 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13879         copy-file: fix typo
13880         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13882         copy-file-range: simplify into a stub
13883         Based on a comment by Florian Weimer in:
13884         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13885         It turns out that Emacs (which will use this module) won’t need an
13886         emulation and I suspect other programs won’t either, because these
13887         programs will need to fall back on read+write anyway.  Perhaps I
13888         am wrong and other programs will be able to use an emulation; if
13889         so, this patch can be reverted.
13890         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13891         Just call it copy_file_range.
13892         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13893         Check via AC_LINK_IFELSE.
13894         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13896 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13898         copy-file: prefer copy_file_range
13899         * lib/copy-file.c: Do not include xalloc.h.
13900         (qcopy_file_preserving): Allocate a buffer only if
13901         copy_file_range does not suffice.  If the allocation fails
13902         don't give up; just use a small stack-based buffer.
13903         Prefer copy_file_range if it works.
13904         * modules/copy-file (Depends-on): Add copy-file-range.
13905         Remove xalloc.
13907         copy-file-range: new module
13908         * MODULES.html.sh: Add copy-file-range.
13909         * lib/copy-file-range.c, m4/copy-file-range.m4:
13910         * modules/copy-file-range: New files.
13911         * lib/unistd.in.h (copy_file_range): Declare.
13912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13913         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13914         * modules/unistd (unistd.h): Substitute them.
13916 2019-05-28  Bruno Haible  <bruno@clisp.org>
13918         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13919         Reported by KO Myung-Hun <komh78@gmail.com> in
13920         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13921         * lib/binary-io.h (__gl_setmode_check): Remove function.
13922         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13923         * lib/binary-io.c (__gl_setmode_check): Remove function.
13924         (set_binary_mode): Define here on DJGPP and EMX. Inline
13925         __gl_setmode_check. In case of a tty, don't return an error code.
13927 2019-05-28  James Youngman  <jay@gnu.org>
13929         dirent-safer: Make opendir_safer usable from C++.
13930         * lib/dirent-safer.h: use extern "C".
13932 2019-05-28  James Youngman  <jay@gnu.org>
13934         canonicalize: Make canonicalize_filename_mode usable from C++.
13935         * lib/canonicalize.h: use extern "C".
13937 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13939         prefix-gnulib-mk: Fix CPPFLAGS migration.
13940         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13941         _a part of the library name.
13943 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13945         flexmember: update comments again
13946         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13948         flexmember: update comment
13949         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13951 2019-05-20  Bruno Haible  <bruno@clisp.org>
13953         setlocale: Improve fallback on macOS.
13954         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13955         invocation.
13956         (locales_with_principal_territory): New array.
13957         (langcmp, get_main_locale_with_same_language): New functions.
13958         (locales_with_principal_language): New array.
13959         (terrcmp, get_main_locale_with_same_territory): New functions.
13960         (rpl_setlocale): When setlocale_single failed, try again with a locale
13961         that is more likely to exist. Don't warn if the environment variable
13962         SETLOCALE_VERBOSE is not set.
13964 2019-05-19  Bruno Haible  <bruno@clisp.org>
13966         localename: Fix default on macOS.
13967         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13968         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13969         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13970         HAVE_CFLOCALECOPYCURRENT.
13971         * lib/localename.h (gl_locale_name_default): Update.
13973 2019-05-19  Karl Berry  <karl@freefriends.org>
13975         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13976         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13977         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13979 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13981         maintainer-makefile: catch uses of $< in non-implicit rules
13982         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13984 2019-05-18  Bruno Haible  <bruno@clisp.org>
13986         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13987         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13988         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13989         gl_use_threads accordingly.
13991 2019-05-18  Bruno Haible  <bruno@clisp.org>
13993         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13994         Reported by Tim Rühsen in
13995         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13996         and Michele Locati in
13997         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13998         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13999         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
14000         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
14001         in use and regardless which threads API is chosen.
14003 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14005         close-stream, closein, closeout: simplify
14006         I noticed this opportunity for simplification while drafting a
14007         new, related module that I haven’t had time to finish yet.
14008         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
14009         * modules/close-stream (Files): Remove m4/close-stream.m4.
14010         (configure.ac): Omit gl_CLOSE_STREAM.
14011         * modules/closein (Files): Remove m4/closein.m4
14012         (configure.ac): Omit gl_CLOSEIN.
14013         * modules/closeout (Files): Remove m4/closeout.m4.
14014         (configure.ac): Omit gl_CLOSEOUT.
14016 2019-05-12  Bruno Haible  <bruno@clisp.org>
14018         libtool-next-version: New program.
14019         * build-aux/libtool-next-version: New file.
14021 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
14022             Bruno Haible  <bruno@clisp.org>
14024         version-etc: Ease translation.
14025         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
14026         URLs and formatting newlines out of translatable string.
14028 2019-05-11  Bruno Haible  <bruno@clisp.org>
14030         gnupload: Explain how to create symlinks.
14031         * build-aux/gnupload (usage): Add an example that creates symlinks.
14033 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14035         fpucw: port to gcc -pedantic
14036         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
14037         Use __extension__ if using ({ ... }).
14039         crypto/af_alg: port to strict C compilers
14040         * lib/af_alg.c: Include af_alg.h regardless, so that the
14041         compilation unit is nonempty.
14043 2019-05-10  Bruno Haible  <bruno@clisp.org>
14045         base64: Avoid false positive warning from Coverity.
14046         Reported by Kamil Dudka <kdudka@redhat.com>.
14047         Idea by Paul Eggert.
14048         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
14049         '& 0x3f' to the array index expressions. This convinces Coverity that
14050         there is no out-of-bounds array reference, regardless of the input.
14052 2019-05-09  Bruno Haible  <bruno@clisp.org>
14054         gettext: Update to gettext 0.20.
14055         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
14056         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
14057         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
14058         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
14059         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
14060         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
14061         (configure.ac): Request infrastructure compatible with gettext 0.20.
14062         * m4/glibc2.m4: Remove file.
14063         * m4/intdiv0.m4: Remove file.
14064         * m4/intl.m4: Remove file.
14065         * m4/intldir.m4: Remove file.
14066         * m4/intmax.m4: Remove file.
14067         * m4/printf-posix.m4: Remove file.
14068         * m4/uintmax_t.m4: Remove file.
14069         * m4/gettext.m4: Update from gettext 0.20.
14070         * m4/po.m4: Likewise.
14072 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14074         verify: remove verify_true
14075         * NEWS: Mention this.
14076         * lib/verify.h (verify_true): Remove.
14077         * tests/test-verify.c (item): Test verify_expr, not verify_true.
14079         Support C2X and C++17 static_assert
14080         C2X and C++17 finally added support for a simple, single-argument
14081         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
14082         doing back in 2005.  Implement static_assert on older platforms.
14083         The only remaining advantage of ‘verify’ is a shorter name.
14084         * doc/posix-headers/assert.texi (assert.h):
14085         * doc/verify.texi (Compile-time Assertions):
14086         Modernize for C2X and C++17.
14087         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
14088         New macros.
14089         (_GL_HAVE__STATIC_ASSERT): Remove.
14090         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
14091         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
14092         string.  All callers changed.
14093         (_GL_VERIFY): Require 3 or more args, of which only the first 2
14094         are used.  All callers changed.
14095         (_Static_assert): Allow either 1 or 2 args, and define if
14096         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
14097         !_GL_HAVE__STATIC_ASSERT.
14098         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
14099         of defining if !_GL_HAVE_STATIC_ASSERT.
14100         (verify_expr, verify): Don’t bother trying to copy the expression
14101         into the diagnostic, since 1-argument static_assert doesn’t.
14102         (verify): Prefer 1-argument _Static_assert if it works.
14103         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
14105 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14107         Fix _GL_HAVE__STATIC_ASSERT typo
14108         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
14109         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
14111 2019-05-05  Bruno Haible  <bruno@clisp.org>
14113         wcwidth: Ensure width 1, not 2, for ambiguous characters.
14114         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
14115         via Akim Demaille <akim.demaille@gmail.com>.
14116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
14117         en_US.UTF-8 locale, since that is more likely to be present than an
14118         fr_FR.UTF-8 locale.
14119         * tests/test-wcwidth.c (main): Check the width of U+2202.
14120         * doc/posix-functions/wcwidth.texi: Mention the issue.
14122 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14124         Port manywarnings to GCC 9
14125         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
14126         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
14127         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
14128         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
14129         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
14130         --help=warnings output.
14131         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
14132         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
14133         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
14135 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14137         Sync lib/mktime-internal.h from glibc
14138         * config/srclist.txt: Add entry for lib/mktime-internal.h.
14139         * lib/mktime-internal.h: Autoupdate.
14141 2019-04-28  Bruno Haible  <bruno@clisp.org>
14143         tls tests: Prevent that the test takes too long.
14144         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
14145         (main): Let the test fail if it takes more than 10 minutes.
14146         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
14148 2019-04-27  Bruno Haible  <bruno@clisp.org>
14150         lock tests: Prevent that the test takes too long.
14151         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
14152         (main): Let the test fail if it takes more than 10 minutes.
14153         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
14155 2019-04-27  Bruno Haible  <bruno@clisp.org>
14157         localename: Fix crash on mingw (regression from 2018-11-23).
14158         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
14159         locale name that is null.
14161 2019-04-27  Bruno Haible  <bruno@clisp.org>
14163         Fix gcc warnings on 64-bit mode mingw.
14164         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
14165         * lib/gl_array_list.c: Likewise.
14166         * lib/gl_array_map.c: Likewise.
14167         * lib/gl_array_set.c: Likewise.
14168         * lib/gl_carray_list.c: Likewise.
14169         * lib/gl_sublist.c: Likewise.
14170         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
14171         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
14172         * lib/gl_hash_map.c (uintptr_t): Likewise.
14173         * lib/gl_hash_set.c (uintptr_t): Likewise.
14174         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
14175         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
14176         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
14177         * lib/iconv.c (uintptr_t): Likewise.
14178         * lib/iconv_close.c (uintptr_t): Likewise.
14179         * tests/test-lock.c: Include <stdint.h>.
14180         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
14181         'long'.
14182         * modules/clean-temp (Depends-on): Add stdint.
14183         * modules/array-list (Depends-on): Likewise.
14184         * modules/array-map (Depends-on): Likewise.
14185         * modules/array-set (Depends-on): Likewise.
14186         * modules/carray-list (Depends-on): Likewise.
14187         * modules/sublist (Depends-on): Likewise.
14188         * modules/lock-tests (Depends-on): Likewise.
14190 2019-04-27  Bruno Haible  <bruno@clisp.org>
14192         error: Tweak indentation.
14193         * lib/error.c: Correct indentation.
14195 2019-04-27  Bruno Haible  <bruno@clisp.org>
14197         term-style-control: Fix gcc warning on mingw.
14198         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
14199         of i.
14201 2019-04-26  Bruno Haible  <bruno@clisp.org>
14203         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
14204         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
14206 2019-04-26  Bruno Haible  <bruno@clisp.org>
14208         relocatable-prog: Fix gcc warning on mingw.
14209         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
14210         on EMX.
14212 2019-04-02  Bruno Haible  <bruno@clisp.org>
14214         gitsub.sh: New file.
14215         * top/gitsub.sh: New file.
14217 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
14219         argmatch: use void* for raw memory pointers
14220         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
14221         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
14222         to "values", keep char* for strings.
14224 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
14226         prefix-gnulib-mk: fix the support for gnulib-po
14227         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
14228         Don't touch HAVE_* variables.
14229         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
14231 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
14233         di-set: allow free with 'ino_map' being NULL.
14234         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
14235         is NULL.  Bug introduced in commit 3703dbbe88dd.
14236         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
14237         as a test.
14239 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
14241         * lib/str-two-way.h: Fix comment typo.
14243 2019-04-13  Bruno Haible  <bruno@clisp.org>
14245         x-to-1: Restore ability to use original calling convention.
14246         * build-aux/x-to-1.in: Add comments. Accept the original form of
14247         HELP2MAN argument as well as the form expected since 2012-12-12.
14249 2019-04-13  Bruno Haible  <bruno@clisp.org>
14251         x-to-1: Avoid failure due to missing perl modules.
14252         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
14253         needs are installed.
14255 2019-04-13  Bruno Haible  <bruno@clisp.org>
14257         openmp-init: New module.
14258         * modules/openmp-init: New file.
14259         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
14260         the changes from 2019-04-09.
14262 2019-04-12  Bruno Haible  <bruno@clisp.org>
14264         signbit: Fix compilation error when gnulib's math.h exists twice.
14265         * lib/math.in.h (GNULIB_defined_signbit): New macro.
14267 2019-04-12  Bruno Haible  <bruno@clisp.org>
14269         openmp: Fix compilation error on platforms without OpenMP.
14270         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
14272 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
14274         mountlist: make parsing /proc/self/mountinfo more robust
14275         Cater for the following issues with mountinfo parsing (the first
14276         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
14277         in <https://bugs.gnu.org/35137>).
14278         1. The fields source, target, mntroot and fstype may contain characters
14279         like '\r'; sscanf(3) fails to read such values with the %s format
14280         specifier because it would stop at such characters.
14281         Example: "mount -t tmpfs tmpfs /foo^Mbar".
14282         The only true separator in that file is the ' ' character.
14283         2. The source field may be an empty string, which happens e.g. with
14284         "mount -t tmpfs '' /target".
14285         3. The fstype field may contain mangled characters as well which need
14286         unescaping.
14287         * lib/mountlist.c (terminate_at_blank): Add utility function.
14288         (read_file_system_list): In the block trying to read the mountinfo file,
14289         avoid using sscanf(3) with %s format; instead, parse the above fields
14290         separated by spaces one by one.
14291         This also handles the case when the source field is an empty string.
14292         Unescape the fstype field.
14294 2019-04-09  Bruno Haible  <bruno@clisp.org>
14296         openmp: Add workaround for 32-bit programs on AIX.
14297         * lib/omp.in.h: New file.
14298         * lib/omp-init.c: New file, based on lib/nproc.c.
14299         * m4/omp_h.m4: New file.
14300         * modules/openmp (Files): Add them.
14301         (Depends-on): Add include_next, c-ctype, setenv.
14302         (configure.ac): Invoke gl_OMP_H.
14303         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
14304         (Include): Mention <omp.h>.
14306 2019-04-09  Bruno Haible  <bruno@clisp.org>
14308         nproc: Fix return value for privileged processes.
14309         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
14310         getpid().
14312 2019-04-07  Bruno Haible  <bruno@clisp.org>
14314         Add copyright notices in several files.
14315         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
14316         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
14317         * lib/libunistring.valgrind: Likewise.
14318         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
14319         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
14320         * lib/memchr.valgrind: Likewise.
14321         * lib/memchr2.valgrind: Likewise.
14322         * lib/rawmemchr.valgrind: Likewise.
14323         * lib/relocatable.valgrind: Likewise.
14324         * lib/strchrnul.valgrind: Likewise.
14326 2019-03-25  Bruno Haible  <bruno@clisp.org>
14328         term-style-control tests: Fix link error.
14329         Reported by Tom G. Christensen in
14330         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
14331         * modules/term-style-control-tests (Makefile.am): Link
14332         test-term-style-control-hello and test-term-style-control-yes against
14333         LIBINTL.
14335 2019-03-24  Bruno Haible  <bruno@clisp.org>
14337         term-style-control: Add tests.
14338         * tests/test-term-style-control-hello.c: New file.
14339         * tests/test-term-style-control-yes.c: New file.
14340         * modules/term-style-control-tests: New file.
14342         term-style-control: New module.
14343         * lib/term-style-control.h: New file, based on libtextstyle's
14344         term-ostream.oo.h and term-ostream.oo.c.
14345         * lib/term-style-control.c: New file, based on libtextstyle's
14346         term-ostream.oo.c.
14347         * modules/term-style-control: New file.
14349 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14351         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
14352         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
14353         C++98 appears to be supported by Clang, but not by GCC nor ICC.
14355 2019-03-23  Bruno Haible  <bruno@clisp.org>
14357         Support cross-compilation to musl libc.
14358         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
14359         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
14360         musl libc.
14361         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14362         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14363         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14364         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14365         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14366         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14367         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14368         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14369         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14370         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14371         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14372         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14373         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14374         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14375         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14376         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14377         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14378         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14379         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14380         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14381         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14382         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14383         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14384         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14385         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14386         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14387         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14388         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14389         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14390         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14391         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14392         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14393         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14394         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14395         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14396         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14397         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14398         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14399         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14400         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14401         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14402         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14403         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14404         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14405         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14406         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14407         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14408         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14409         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14410         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14411         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14412         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14413         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14414         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14415         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14416         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14417         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14418         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14419         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14420         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14421         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14422         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14423         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14424         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14425         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14426         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14428         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14429         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14430         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14431         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14432         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14433         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14434         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14435         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14436         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14437         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14440 2019-03-23  Bruno Haible  <bruno@clisp.org>
14442         posix_spawn_file_actions_*: Document musl libc bugs.
14443         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14444         the bug.
14445         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14446         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14447         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14448         cross-compiling to a musl system, guess no.
14449         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14450         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14452 2019-03-23  Bruno Haible  <bruno@clisp.org>
14454         futimens: Document musl libc bug.
14455         * doc/posix-functions/futimens.texi: Mention the bug.
14456         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14457         cross-compiling, guess no on glibc and musl systems.
14459 2019-03-23  Bruno Haible  <bruno@clisp.org>
14461         Clarify that cross-compilation guesses are guesses.
14462         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14463         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14464         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14465         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14466         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14467         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14468         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14469         gl_cv_glob_lists_symlinks.
14470         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14471         'guessing ' to ac_cv_func_malloc_0_nonnull.
14472         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
14473         'guessing ' to ac_cv_func_realloc_0_nonnull.
14474         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
14475         'guessing ' to gl_cv_func_poll.
14476         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
14477         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
14478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
14480 2019-03-23  Bruno Haible  <bruno@clisp.org>
14482         strtold: Fix typo.
14483         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
14485 2019-03-23  Bruno Haible  <bruno@clisp.org>
14487         noreturn: In C++ mode with clang, use _Noreturn as fallback.
14488         Reported by Akim Demaille.
14489         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
14490         [[noreturn]] would not work, use _Noreturn instead.
14492 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14494         libtextstyle-optional: Fix compiler warnings.
14495         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
14496         as unused.
14498 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14500         bitset: fix memory leaks
14501         Reported by Bruno Haible.
14502         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
14503         * lib/bitset/vector.c (vbitset_free): New.
14504         (vbitset_vtable): Use it.
14506 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14508         bitset: minor changes
14509         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
14510         * lib/bitset/table.c: Formatting changes.
14511         Remove useless braces.
14512         Prefer using else in cascades of if/else-if with returns.
14513         * lib/bitset/vector.c: Reduce scopes.
14515 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14517         bitset: expose bitset_resize
14518         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
14519         * tests/test-bitset.c (check_attributes): Check bitset_resize.
14520         (main): Use a variable bitset as reference, since fixed does not support resize.
14522 2019-03-19  Bruno Haible  <bruno@clisp.org>
14524         doc: Document the 'stdnoreturn' and 'noreturn' modules.
14525         Reported by Akim Demaille.
14526         * doc/noreturn.texi: New file.
14527         * doc/gnulib.texi: Include it.
14529 2019-03-19  Bruno Haible  <bruno@clisp.org>
14531         doc: Document how to use 'static inline'.
14532         * doc/static-inline.texi: New file.
14533         * doc/gnulib.texi: Include it.
14535 2019-03-19  Bruno Haible  <bruno@clisp.org>
14537         libtextstyle-optional: Add tests.
14538         * tests/test-libtextstyle.c: New file, based on libtextstyle's
14539         adhoc-tests/hello.c.
14540         * tests/test-libtextstyle-default.css: New file, copied from
14541         libtextstyle's adhoc-tests/hello-default.css.
14542         * modules/libtextstyle-optional-tests: New file.
14544         libtextstyle-optional: New module.
14545         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
14546         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
14547         * modules/libtextstyle-optional: New file.
14549 2019-03-19  Bruno Haible  <bruno@clisp.org>
14551         c-stack: Make signal handlers more reliable.
14552         * lib/c-stack.c (progname): New variable.
14553         (die): Use it.
14554         (c_stack_action): Initialize it.
14555         (segv_handler): Save and restore errno.
14557 2019-03-19  Bruno Haible  <bruno@clisp.org>
14559         Help making signal handlers more reliable.
14560         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
14561         _GL_ASYNC_SAFE into config.h.
14562         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
14563         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
14564         argument.
14565         * lib/fatal-signal.c (action_t, uninstall_handlers,
14566         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
14567         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
14568         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
14569         _GL_ASYNC_SAFE.
14570         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
14571         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
14573 2019-03-18  Bruno Haible  <bruno@clisp.org>
14575         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
14576         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
14577         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
14579 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14581         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
14582         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
14583         GCC 4.8.
14585 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14587         fts: minor simplification
14588         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
14590 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14592         bitset, timevar: Depend on c99.
14593         Reported by Bruno Haible.
14594         * modules/bitset, modules/timevar (Depends-on): Add c99.
14596 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14598         bitset: a bit (...) more tests
14599         * tests/test-bitset.c (check_attributes): Check zero and ones.
14601 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14603         bitset: fix overflows.
14604         Reported by Bruno Haible.
14605         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
14606         * lib/bitset/table.c (tbitset_test): last_bit is the position of
14607         the bit in the array of bitset_word, so be sure to take its modulo
14608         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14609         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14611 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14613         bitset: style changes.
14614         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14615         Formatting changes.
14616         (tbitset_list): Reduce scopes.
14618 2019-03-16  Bruno Haible  <bruno@clisp.org>
14620         fatal-signal: Pass the signal number to the action.
14621         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
14622         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
14623         (fatal_signal_handler): Pass the signal number to the action.
14624         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
14625         signal number as parameter.
14626         (create_temp_dir): Update.
14627         * lib/wait-process.c (cleanup_slaves_action): New function.
14628         (register_slave_subprocess): Update at_fatal_signal invocation.
14629         * NEWS: Mention the change.
14631 2019-03-16  Bruno Haible  <bruno@clisp.org>
14633         fatal-signal: Add function that lists the fatal signals.
14634         * lib/fatal-signal.h (get_fatal_signals): New declaration.
14635         * lib/fatal-signal.c (get_fatal_signals): New function.
14637 2019-03-14  Bruno Haible  <bruno@clisp.org>
14639         isatty: Make it return true in Cygwin consoles on native Windows.
14640         * lib/isatty.c: Include <string.h>.
14641         (GetProcAddress): New macro.
14642         (GetNamedPipeClientProcessIdFuncType): New type.
14643         (GetNamedPipeClientProcessIdFunc): New variable.
14644         (QueryFullProcessImageNameFuncType): New type.
14645         (QueryFullProcessImageNameFunc): New variable.
14646         (initialized): New variable.
14647         (initialize): New function.
14648         (IsCygwinConsoleHandle): New function.
14649         (isatty): Invoke it.
14650         * doc/posix-functions/isatty.texi: Mention the issue.
14652 2019-03-14  Bruno Haible  <bruno@clisp.org>
14654         all: Update URLs to msdn.microsoft.com.
14655         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
14656         was moved to docs.microsoft.com.
14658 2019-03-13  Bruno Haible  <bruno@clisp.org>
14660         gnulib-tool: Clarify the coding style.
14661         Suggested by Pavel Raiskup <praiskup@redhat.com>.
14662         * gnulib-tool: Add comment about coding style.
14664 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14666         strtod: fix clash with strtold
14667         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
14668         * lib/strtod.c (compute_minus_zero, minus_zero):
14669         Simplify by remving the macro / external variable,
14670         and having just a function.  User changed.  This avoids
14671         the need for an external variable that might clash.
14673 2019-03-10  Bruno Haible  <bruno@clisp.org>
14675         alloca-opt: Fix conflict mingw's new <alloca.h> file.
14676         Reported by Eli Zaretskii <eliz@gnu.org>.
14677         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
14678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
14679         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14681 2019-03-10  Bruno Haible  <bruno@clisp.org>
14683         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14684         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14685         is in use.
14686         * tests/test-printf-posix2.c: Likewise.
14688 2019-03-10  Bruno Haible  <bruno@clisp.org>
14690         uninorm tests: Free allocated memory.
14691         * tests/uninorm/test-u32-normalize-big.h
14692         (struct normalization_test_file): Remove 'const' from allocated member.
14693         (free_normalization_test_file): New declaration.
14694         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14695         memory.
14696         (free_normalization_test_file): New function.
14697         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14698         'struct normalization_test_file' contents.
14699         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14700         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14701         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14703 2019-03-10  Bruno Haible  <bruno@clisp.org>
14705         di-set: Fix memory leak.
14706         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14707         not free().
14709 2019-03-10  Bruno Haible  <bruno@clisp.org>
14711         tests: Free allocated memory.
14712         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14713         * tests/test-astrxfrm.c (main): Free allocated memory.
14714         * tests/test-bitset.c (compare, check_attributes): Free allocated
14715         bitsets.
14716         * tests/test-filenamecat.c (main): Free allocated memory.
14717         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14718         * tests/test-freadptr.c (main): Likewise.
14719         * tests/test-freadptr2.c (main): Free allocated memory.
14720         * tests/test-freadseek.c (main): Likewise.
14721         * tests/test-gc-arcfour.c (main): Close allocated context.
14722         * tests/test-gc-arctwo.c (main): Likewise.
14723         * tests/test-gc-des.c (main): Close all allocated contexts.
14724         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14725         * tests/test-pipe-filter-ii1.c (main): Likewise.
14726         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14727         allocated file actions.
14728         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14729         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14730         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14731         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14732         * tests/test-strfmon_l.c (main): Free allocated locales.
14733         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14734         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14735         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14736         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14737         * tests/unistr/test-chr.h (main): Free input32.
14738         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14740 2019-03-10  Bruno Haible  <bruno@clisp.org>
14742         tests: Prepare for using valgrind.
14743         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14744         * tests/*/*.sh: Likewise.
14745         * tests/test-freadptr.c (main): Update accordingly.
14746         * tests/test-freadseek.c (main): Likewise.
14748 2019-03-09  Bruno Haible  <bruno@clisp.org>
14750         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14751         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14752         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14753         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14754         before exiting.
14756 2019-03-09  Jim Meyering  <meyering@fb.com>
14758         test-userspec.c: don't print NULL
14759         * tests/test-userspec.c (main): A test release of gcc,
14760         9.0.1 20190310, warned that this test would attempt to
14761         print a NULL pointer via a %s printf format.  Fix that
14762         and remove the unnecessary preceding "!diag" conjunct.
14763         Also add a comment.
14765 2019-03-03  Bruno Haible  <bruno@clisp.org>
14767         getloadavg: Write NULL for the null pointer.
14768         Reported by Michal Privoznik <mprivozn@redhat.com>.
14769         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14771 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14773         alloca, tsearch-tests: Write NULL for the null pointer.
14774         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14775         * tests/test-tsearch.c (mangle_tree): Likewise.
14777 2019-03-09  Bruno Haible  <bruno@clisp.org>
14779         strfmon_l: Fix -fsanitize=address finding.
14780         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14781         <string.h>.
14782         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14783         (directive_t, directives_t): New types.
14784         (fmon_parse): New function.
14785         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14786         format string. Consume 'long double' arguments in places where the
14787         format string indicates so.
14788         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14790 2019-03-09  Bruno Haible  <bruno@clisp.org>
14792         crypto/des: Fix undefined behaviour.
14793         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14794         shift operations on 'int'.
14796 2019-03-09  Bruno Haible  <bruno@clisp.org>
14798         Fix undefined behaviour.
14799         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14800         'unsigned int', to avoid shift operations on 'int'.
14801         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14802         * tests/test-count-leading-zeros.c (main): Use a random number that has
14803         as many bits as TYPE, not only 2*15 or 2*31 bits.
14804         * tests/test-count-trailing-zeros.c (main): Likewise.
14805         * tests/test-count-one-bits.c (main): Likewise.
14806         * tests/test-memmem.c: Don't include "null-ptr.h".
14807         (main): Use zerosize_ptr() instead of null_ptr().
14808         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14810 2019-03-08  Bruno Haible  <bruno@clisp.org>
14812         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14813         Reported by Jeffrey Walton <noloader@gmail.com>.
14814         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14815         invoke memset with a zero size.
14816         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14817         Likewise.
14818         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14819         Adjust accordingly.
14821 2019-03-08  Bruno Haible  <bruno@clisp.org>
14823         unistr/*, uniconv/*: Fix undefined behaviour.
14824         Reported by Jeffrey Walton <noloader@gmail.com>.
14825         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14826         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14827         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14828         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14830 2019-03-08  Bruno Haible  <bruno@clisp.org>
14832         unistr/u8-cmp: Fix undefined behaviour.
14833         Reported by Jeffrey Walton <noloader@gmail.com>.
14834         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14836 2019-03-08  Bruno Haible  <bruno@clisp.org>
14838         unictype/numeric: Fix undefined behaviour.
14839         Reported by Jeffrey Walton <noloader@gmail.com>.
14840         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14841         on shift overflow, caught by "gcc -fsanitize=undefined".
14842         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14843         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14844         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14846 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14848         git-version-gen: fix --version copyright year
14849         * build-aux/git-version-gen, build-aux/move-if-change (version):
14850         --version output copyright year is now taken from script year,
14851         so that it no longer needs to be updated by hand.
14853 2019-03-04  Bruno Haible  <bruno@clisp.org>
14855         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14856         This approach supports relocatable installation of shared libraries
14857         which depend on other shared libraries from the same package.
14858         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14859         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14860         wrapper around the original LIBTOOL.
14861         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14862         token '@loader_path' instead of '$ORIGIN'.
14863         * build-aux/libtool-reloc: New file.
14864         * modules/relocatable-prog (Files): Add it.
14865         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14866         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14867         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14868         Makefile.am, not in configure.ac.
14870 2019-03-04  Bruno Haible  <bruno@clisp.org>
14872         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14873         * build-aux/install-reloc: Revert change.
14874         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14876 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14878         nstrftime: support the ‘+’ flag
14879         * lib/nstrftime.c (add, __strftime_internal):
14880         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14881         (__strftime_internal): New arg ‘width’.  All uses changed.
14882         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14884 2019-02-24  Bruno Haible  <bruno@clisp.org>
14886         relocatable-prog: Improve verbose output.
14887         * build-aux/install-reloc (func_verbose): Escape characters that would
14888         be interpreted by the shell.
14890 2019-02-24  Bruno Haible  <bruno@clisp.org>
14892         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14893         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14894         "sys/stat.h".
14895         * lib/lstat.c: Likewise.
14896         * lib/fstat.c: Likewise.
14897         * lib/fstatat.c: Likewise.
14899 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14901         long-options: add parse_gnu_standard_options_only
14902         Discussed in https://bugs.gnu.org/33468 .
14904         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14905         (parse_gnu_standard_options_only): Add function to process
14906         the GNU default options --help and --version and fail for
14907         any other unknown long or short option. See
14908         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14909         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14910         * modules/long-options (depends-on): Add stdbool, exitfail.
14911         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14912         syntax-check rule, add new function name.
14914 2019-02-23  Bruno Haible  <bruno@clisp.org>
14916         relocatable-prog: Update documentation.
14917         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14918         the recent changes.
14920 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14922         nstrftime: tweak arg order
14923         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14924         All callers changed.  Suggested by TAMUKI Shoichi in:
14925         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14927 2019-02-23  Bruno Haible  <bruno@clisp.org>
14929         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14930         Reported by Paul Smith <psmith@gnu.org>.
14931         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14932         (func_relativize): New function, from gnulib-tool.
14933         Handle mode 'macosx' through invocations of 'otool' and
14934         'install_name_tool'.
14935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14936         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14937         'install-reloc' invocation with mode 'macosx'.
14939 2019-02-23  Bruno Haible  <bruno@clisp.org>
14941         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14942         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14943         Hurd with glibc >= 2.27.
14945 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14947         nstrftime: merge glibc strftime changes
14948         This incorporates:
14949         2019-02-11 Fix a few whitespace arrangement inconsistencies
14950         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14951         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14952         2019-01-11 strftime: use the "L_" macro with character literals
14953         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14954         callers changed.  Default width of %Ey is now 2.  This is needed
14955         for proper handling of Japanese dates starting on 2019-05-01.
14957 2019-02-19  Bruno Haible  <bruno@clisp.org>
14959         relocatable-prog: Use $ORIGIN trick on more platforms.
14960         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14961         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14962         Solaris >= 10, Haiku. But don't use it on Android.
14963         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14964         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14966 2019-02-19  Bruno Haible  <bruno@clisp.org>
14968         progreloc: Speed up executable lookup on various platforms.
14969         * lib/progreloc.c: Include <errno.h>.
14970         (safe_read, full_read): New functions.
14971         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14972         prefer the information from the /proc file system to a PATH search.
14974 2019-02-19  Bruno Haible  <bruno@clisp.org>
14976         progreloc: Simplify code for Android.
14977         * lib/progreloc.c (executable_fd): Don't define on Android.
14978         (maybe_executable, find_executable): Don't use executable_fd on Android.
14980 2019-02-15  Bruno Haible  <bruno@clisp.org>
14982         gnulib-tool: Support --import with just a few tests, not --with-tests.
14983         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14984         'inctests' when generating files; use 'inctests' only for computing the
14985         transitive closure.
14987 2019-02-14  Bruno Haible  <bruno@clisp.org>
14989         gnulib-tool: Improve handling of multiple --local-dir options.
14990         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14991         options work.
14992         * gnulib-tool (func_path_prepend): Remove function.
14993         (func_path_foreach): Make IFS handling more robust.
14994         (local_gnulib_path): Collect --local-dir values using func_path_append,
14995         not func_path_prepend.
14996         (func_determine_path_separator): Make IFS handling more robust.
14997         (func_lookup_file_cb): New function.
14998         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14999         func_lookup_local_file. Apply the patches in the reverse order of their
15000         origin in $local_gnulib_path.
15001         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
15002         * NEWS: Mention that the first --local-dir option is the one with
15003         highest priority.
15005 2019-02-10  Bruno Haible  <bruno@clisp.org>
15007         libtextstyle: New module.
15008         * m4/libtextstyle.m4: New file.
15009         * modules/libtextstyle: New file.
15011 2019-02-05  Bruno Haible  <bruno@clisp.org>
15013         declared.sh: Fix bug with variables of pointer type.
15014         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
15015         before the symbol to be omitted if the preceding character is a '*'.
15017 2019-02-04  Bruno Haible  <bruno@clisp.org>
15019         Add script for running tests under valgrind.
15020         * build-aux/run-test: New file, from GNU libunistring.
15021         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
15022         as well.
15024 2019-02-04  Bruno Haible  <bruno@clisp.org>
15026         declared.sh: Fix --version output.
15027         * build-aux/declared.sh (func_version): Update package name.
15029 2019-02-03  Bruno Haible  <bruno@clisp.org>
15031         Add script for determining the set of symbols to export from a library.
15032         * build-aux/declared.sh: New file, from GNU libunistring.
15033         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
15034         Mention it.
15036 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15038         vla: add commentary about VLA_ELEMS
15039         * lib/vla.h (VLA_ELEMS): Add commentary,
15040         some inspired by Bruno Haible’s proposal in:
15041         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
15043         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
15044         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
15045         assume the C99 signatures for strtod and strtold.  Programs that
15046         require stricter adherence to C99 should also use the strtod and
15047         strtold modules as needed, and we no longer need the
15048         HAVE_C99_STRTOLD macro.
15049         * NEWS: Mention this.
15050         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
15051         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
15052         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
15053         (Files): Remove m4/c-strtod.m4.
15054         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
15055         exists.
15057 2019-02-02  Bruno Haible  <bruno@clisp.org>
15059         fma: Improve code style.
15060         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
15062 2019-02-02  Colin Watson  <cjwatson@debian.org>
15064         *-map tests: Fix compilation error.
15065         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
15066         * tests/test-hash_map.c: Likewise.
15067         * tests/test-linkedhash_map.c: Likewise.
15069 2019-01-31  Bruno Haible  <bruno@clisp.org>
15071         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
15072         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
15073         GNULIB_defined_strtold_function): New macros.
15074         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
15075         (STRTOD): Ignore HAVE_C99_STRTOLD.
15076         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
15077         deemed buggy. But do use it on platforms where uselocale exists and is
15078         usable.
15079         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
15080         deemed buggy. On platforms where uselocale exists and is usable, use
15081         uselocale and strtod/strtold.
15082         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
15083         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
15084         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
15085         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
15086         (Depends-on): Add strtod.
15087         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
15088         (Depends-on): Add strtold.
15090 2019-01-31  Bruno Haible  <bruno@clisp.org>
15092         strtod, strtold: Use the locale's decimal point.
15093         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
15094         (decimal_point_char): New function, copied from lib/vasnprintf.c.
15095         (parse_number): Add a radixchar argument. Use it instead of '.'.
15096         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
15097         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
15098         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
15099         * tests/test-strtod1.c: New file.
15100         * tests/test-strtod1.sh: New file.
15101         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
15102         locale-fr.m4 and its dependencies.
15103         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15104         (Makefile.am): Arrange to compile test-strtod1.c and run
15105         test-strtod1.sh.
15106         * tests/test-strtold1.c: New file.
15107         * tests/test-strtold1.sh: New file.
15108         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
15109         locale-fr.m4 and its dependencies.
15110         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15111         (Makefile.am): Arrange to compile test-strtold1.c and run
15112         test-strtold1.sh.
15114 2019-01-31  Bruno Haible  <bruno@clisp.org>
15116         strtod, strtold tests: Simplify tests.
15117         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
15118         * tests/test-strtold.c (main): Likewise.
15120 2019-01-31  Bruno Haible  <bruno@clisp.org>
15122         strtod, strtold: Avoid unnecessary rounding errors.
15123         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
15124         decimal to DOUBLE conversion.
15126 2019-01-31  Bruno Haible  <bruno@clisp.org>
15128         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
15129         * lib/strtod.c (STRTOD): When there is an extra character after the
15130         exponent marker 'p', reparse the number.
15131         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
15132         * doc/posix-functions/strtold.texi: Likewise.
15134 2019-01-29  Bruno Haible  <bruno@clisp.org>
15136         strtold: Add tests.
15137         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
15138         * modules/strtold-tests: New file.
15140 2019-01-29  Bruno Haible  <bruno@clisp.org>
15142         strtold: New module.
15143         * lib/stdlib.in.h (strtold): New declaration.
15144         * lib/strtold.c: New file.
15145         * lib/strtod.c: Consider USE_LONG_DOUBLE.
15146         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
15147         USE_LDEXP): New macros.
15148         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
15149         USE_LONG_DOUBLE.
15150         (underlying_strtod): Remove function. Replace with some macros.
15151         Re-add the code for a missing underlying function that was removed on
15152         2013-02-19.
15153         * m4/strtold.m4: New file.
15154         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
15155         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
15156         REPLACE_STRTOLD.
15157         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
15158         REPLACE_STRTOLD.
15159         * modules/strtold: New file.
15160         * doc/posix-functions/strtold.texi: Document the new module.
15162 2019-01-29  Bruno Haible  <bruno@clisp.org>
15164         strtod: Fix compilation error on IRIX 6.5.
15165         * modules/strtod (Depends-on): Add 'math'.
15167 2019-01-28  Bruno Haible  <bruno@clisp.org>
15169         Fix build error when building a shared libunistring on Android.
15170         * tests/uninorm/test-nfc.c (n): Don't define on Android.
15171         (main): Add 'volatile', to defeat a GCC optimization that would
15172         eliminate the reference.
15173         * tests/uninorm/test-nfd.c (n): Don't define on Android.
15174         (main): Add 'volatile', to defeat a GCC optimization that would
15175         eliminate the reference.
15176         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
15177         (main): Add 'volatile', to defeat a GCC optimization that would
15178         eliminate the reference.
15179         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
15180         (main): Add 'volatile', to defeat a GCC optimization that would
15181         eliminate the reference.
15183 2019-01-27  Bruno Haible  <bruno@clisp.org>
15185         Avoid build errors due to wrong references between modules.
15186         * lib/uninorm/canonical-decomposition.c: Include
15187         "uninorm/decomposition-table.h", not "decomposition-table.h".
15188         * lib/uninorm/decomposition.c: Likewise.
15189         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
15190         not "decompose-internal.h".
15191         * lib/uninorm/u16-normalize.c: Likewise.
15192         * lib/uninorm/u32-normalize.c: Likewise.
15193         * lib/uninorm/uninorm-filter.c: Likewise.
15194         * lib/uninorm/nfkc.c: Likewise.
15195         * lib/uninorm/nfkd.c: Likewise.
15196         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
15197         "caseprop.h".
15198         * lib/unicase/u8-ct-totitle.c: Likewise.
15199         * lib/unicase/u8-prefix-context.c: Likewise.
15200         * lib/unicase/u8-suffix-context.c: Likewise.
15201         * lib/unicase/u16-casemap.c: Likewise.
15202         * lib/unicase/u16-ct-totitle.c: Likewise.
15203         * lib/unicase/u16-prefix-context.c: Likewise.
15204         * lib/unicase/u16-suffix-context.c: Likewise.
15205         * lib/unicase/u32-casemap.c: Likewise.
15206         * lib/unicase/u32-ct-totitle.c: Likewise.
15207         * lib/unicase/u32-prefix-context.c: Likewise.
15208         * lib/unicase/u32-suffix-context.c: Likewise.
15209         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
15210         "unicasemap.h".
15211         * lib/unicase/u8-toupper.c: Likewise.
15212         * lib/unicase/u8-ct-tolower.c: Likewise.
15213         * lib/unicase/u8-ct-toupper.c: Likewise.
15214         * lib/unicase/u16-tolower.c: Likewise.
15215         * lib/unicase/u16-toupper.c: Likewise.
15216         * lib/unicase/u16-ct-tolower.c: Likewise.
15217         * lib/unicase/u16-ct-toupper.c: Likewise.
15218         * lib/unicase/u32-tolower.c: Likewise.
15219         * lib/unicase/u32-toupper.c: Likewise.
15220         * lib/unicase/u32-ct-tolower.c: Likewise.
15221         * lib/unicase/u32-ct-toupper.c: Likewise.
15222         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
15223         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
15224         * lib/unicase/u16-ct-casefold.c: Likewise.
15225         * lib/unicase/u32-ct-casefold.c: Likewise.
15227 2019-01-27  Bruno Haible  <bruno@clisp.org>
15229         gperf: Fix error when this module is required by some test module.
15230         * modules/gperf (Applicability): Set to 'all'.
15232 2019-01-27  Bruno Haible  <bruno@clisp.org>
15234         tmpfile: Add support for Android.
15235         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
15236         works.
15237         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
15238         Android.
15239         * modules/tmpfile (Depends-on): Add 'stdbool'.
15240         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15241         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
15243 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
15245         bitsetv: allow free on NULL.
15246         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
15248 2019-01-27  Bruno Haible  <bruno@clisp.org>
15250         test-framework-sh: Improve maintainability.
15251         * tests/init.sh: Clarify what belongs together. Reorder definitions.
15253 2019-01-27  Bruno Haible  <bruno@clisp.org>
15255         tests: Don't assume that /tmp exists.
15256         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
15257         * tests/test-copy-acl-1.sh: Likewise.
15258         * tests/test-file-has-acl-1.sh: Likewise.
15259         * tests/test-copy-file-1.sh: Likewise.
15261 2019-01-27  Bruno Haible  <bruno@clisp.org>
15263         tests: Accommodate a shell that is not in /bin/sh.
15264         * tests/init.sh (setup_): Set srcdir and builddir.
15265         (BOURNE_SHELL): New variable.
15266         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
15267         * modules/file-has-acl-tests (Depends-on): Likewise.
15268         * modules/copy-file-tests (Depends-on): Likewise.
15269         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
15270         scripts through $BOURNE_SHELL.
15271         * tests/test-set-mode-acl-2.sh: Likewise.
15272         * tests/test-copy-acl-1.sh: Likewise.
15273         * tests/test-copy-acl-2.sh: Likewise.
15274         * tests/test-file-has-acl-1.sh: Likewise.
15275         * tests/test-file-has-acl-2.sh: Likewise.
15276         * tests/test-copy-file-1.sh: Likewise.
15277         * tests/test-copy-file-2.sh: Likewise.
15278         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
15279         invoker.
15280         * tests/test-copy-acl.sh (builddir): Likewise.
15281         * tests/test-file-has-acl.sh (builddir): Likewise.
15282         * tests/test-copy-file.sh (builddir): Likewise.
15283         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
15284         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
15285         * tests/test-vc-list-files-git.sh: Likewise.
15287 2019-01-27  Bruno Haible  <bruno@clisp.org>
15289         tests: Fix some "unused variable" warnings.
15290         * tests/test-fts.c (fts_dealloc): Remove unused variable.
15291         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
15292         * tests/test-striconveh.c (main): Move some variable into the
15293         '#if HAVE_ICONV'.
15294         * tests/test-striconveha.c (main): Likewise.
15295         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15296         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15297         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15298         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
15299         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15300         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15301         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15302         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15303         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15304         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
15305         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
15306         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
15307         * tests/test-tsearch.c (main): Move some variable into the
15308         '#if HAVE_INITSTATE'.
15310 2019-01-27  Bruno Haible  <bruno@clisp.org>
15312         unigbrk/uc-grapheme-breaks: Fix build failure.
15313         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
15314         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
15316 2019-01-27  Bruno Haible  <bruno@clisp.org>
15318         mountlist: Merge two .m4 files.
15319         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
15320         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
15321         * m4/ls-mntd-fs.m4: Remove file.
15322         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
15324 2019-01-27  Bruno Haible  <bruno@clisp.org>
15326         tests: Enable Linux specific tests on Android.
15327         * tests/test-flock.c (main): Treat Android like Linux.
15328         * tests/test-openat-safer.c (main): Likewise.
15330 2019-01-27  Bruno Haible  <bruno@clisp.org>
15332         relocatable-prog: Use Linux code on Android.
15333         * lib/progreloc.c: Treat Android like Linux.
15335 2019-01-26  Bruno Haible  <bruno@clisp.org>
15337         getloadavg: Add support for Android.
15338         * lib/getloadavg.c: Treat Android like Linux.
15340 2019-01-26  Bruno Haible  <bruno@clisp.org>
15342         vma-iter: Add support for Android.
15343         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
15344         * lib/vma-iter.c: Treat Android like Linux.
15345         * lib/get-rusage-data.c (get_rusage_data): Likewise.
15347 2019-01-26  Bruno Haible  <bruno@clisp.org>
15349         fts: Optimize on Android.
15350         * lib/fts.c: Treat Android like Linux.
15352 2019-01-26  Bruno Haible  <bruno@clisp.org>
15354         fts: Add support for Android.
15355         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
15356         defined by this module and the ones in libc.
15357         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
15359 2019-01-26  Bruno Haible  <bruno@clisp.org>
15361         mountlist: Use Linux code on Android.
15362         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15363         (unescape_tab, read_file_system_list): Enable Linux code on Android
15364         as well.
15365         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15366         and endmntent.
15367         * modules/mountlist (Depends-on): Add 'getline'.
15369 2019-01-26  Bruno Haible  <bruno@clisp.org>
15371         localename tests: Fix test failure on Android.
15372         * modules/localename-tests (Depends-on): Add 'setlocale'.
15374 2019-01-26  Bruno Haible  <bruno@clisp.org>
15376         mountlist: Port better to Android.
15377         * lib/mountlist.c (MOUNTED): Redefine on Android.
15378         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15379         Android.
15381 2019-01-26  Bruno Haible  <bruno@clisp.org>
15383         striconveh: Fix use of uninitialized iconv_t.
15384         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15385         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15386         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15388 2019-01-26  Bruno Haible  <bruno@clisp.org>
15390         nonblocking-socket-tests: Fix test failure on Android 4.3.
15391         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15392         also on Android.
15394 2019-01-26  Bruno Haible  <bruno@clisp.org>
15396         sh-filename: Add support for Android 4.3.
15397         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15399 2019-01-26  Bruno Haible  <bruno@clisp.org>
15401         ptsname_r: Work around bug on Android 4.3.
15402         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15403         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15404         correct.
15405         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15406         is defined, just fix the return value.
15407         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15408         The behaviour of musl libc is nothing to be "fixed", since it is
15409         compliant with the next POSIX standard.
15411 2019-01-26  Bruno Haible  <bruno@clisp.org>
15413         ttyname_r: Work around bug on Android 4.3.
15414         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15415         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15416         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15417         * doc/posix-functions/ttyname.texi: Likewise.
15419 2019-01-25  Bruno Haible  <bruno@clisp.org>
15421         getprogname: Port to Android 4.3.
15422         * lib/getprogname.c (getprogname): On Android, take only the last
15423         component of __progname.
15425 2019-01-25  Bruno Haible  <bruno@clisp.org>
15427         wcrtomb: Work around bug on Android 4.3.
15428         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15429         the C locale.
15430         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15431         which does not have the 'wctomb' function.
15432         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15433         * tests/test-wcrtomb.c (main): Accept argument '5'.
15434         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15436 2019-01-25  Bruno Haible  <bruno@clisp.org>
15438         setlocale: Work around bug on Android 4.3.
15439         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15440         the "C" locale.
15441         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15442         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15444 2019-01-24  Bruno Haible  <bruno@clisp.org>
15446         memchr: Work around bug on Android <= 5.0.
15447         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15448         * doc/posix-functions/memchr.texi: Mention the Android bug.
15450 2019-01-24  Bruno Haible  <bruno@clisp.org>
15452         random: Fix compilation error on Android 4.3.
15453         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15454         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15455         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15456         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15457         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15459         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15460         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15461         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15462         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15463         REPLACE_INITSTATE, REPLACE_SETSTATE.
15464         * doc/posix-functions/random.texi: Correct the description of the
15465         situation on Android.
15466         * doc/posix-functions/srandom.texi: Likewise.
15467         * doc/posix-functions/rand.texi: Likewise.
15468         * doc/posix-functions/srand.texi: Likewise.
15470 2019-01-24  Bruno Haible  <bruno@clisp.org>
15472         mbtowc: Fix compilation error on Android 4.3.
15473         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
15474         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
15475         HAVE_MBTOWC.
15476         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
15477         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
15478         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
15479         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
15480         * doc/posix-functions/mbtowc.texi: Mention the change.
15482 2019-01-24  Bruno Haible  <bruno@clisp.org>
15484         fdatasync: Fix compilation error on Android 4.3.
15485         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
15486         test whether fdatasync() exists.
15488 2019-01-24  Bruno Haible  <bruno@clisp.org>
15490         unlinkat: Fix compilation error on Android 4.3.
15491         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
15492         also on Android.
15493         * doc/posix-functions/unlinkat.texi: Mention the issue.
15495 2019-01-24  Bruno Haible  <bruno@clisp.org>
15497         renameat: Fix compilation error on Android 4.3.
15498         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
15499         * doc/posix-functions/renameat.texi: Mention the issue.
15501 2019-01-24  Bruno Haible  <bruno@clisp.org>
15503         fchownat: Fix compilation error on Android 4.3.
15504         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
15505         use.
15506         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
15507         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
15508         * doc/posix-functions/fchownat.texi: Mention the issue.
15510 2019-01-23  Bruno Haible  <bruno@clisp.org>
15512         gnulib-tool: Support running testdirs on Android.
15513         * build-aux/test-driver.diff: New file.
15514         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
15515         build-aux/test-driver after running automake.
15517 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15519         relocatable-prog: avoid warnings from Automake
15520         * modules/relocatable-prog: Don't declare PHONY dependencies in
15521         Automake conditionals.
15523 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15525         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
15526         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
15528 2019-01-23  Bruno Haible  <bruno@clisp.org>
15530         threadlib: Revert commit from 2018-06-25. We now have a better fix.
15531         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
15532         preceding -Wl,--as-needed option. Don't check whether the linker
15533         supports --as-needed/--no-as-needed and --push-state/--pop-state.
15535 2019-01-23  Bruno Haible  <bruno@clisp.org>
15537         thread: Force linking with -lpthread, even when --as-needed is in use.
15538         Reported by Richard W.M. Jones <rjones@redhat.com> in
15539         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
15540         * lib/glthread/thread.h (pthread_create): Don't declare weak.
15542 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
15543             Bruno Haible  <bruno@clisp.org>
15545         relocatable: avoid compiler warnings (-Wshadow)
15546         * lib/relocatable.c (compute_curr_prefix): Rename local variables
15547         to avoid name collisions with global variables.
15549 2019-01-22  Bruno Haible  <bruno@clisp.org>
15551         vasnprintf: Don't use %n on Android.
15552         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
15553         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
15554         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
15556 2019-01-22  Bruno Haible  <bruno@clisp.org>
15558         *printf: Support cross-compilation to Android.
15559         * m4/printf.m4: Add cross-compilation guesses for Android.
15561 2019-01-21  Bruno Haible  <bruno@clisp.org>
15563         diacrit: Mark deprecated.
15564         * modules/diacrit (Status, Notice): Mark as deprecated.
15565         * NEWS: Mention it.
15567 2019-01-20  Bruno Haible  <bruno@clisp.org>
15569         rintl: Override broken implementation on NetBSD.
15570         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
15571         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
15572         REPLACE_RINTL.
15573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
15574         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
15575         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
15576         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
15578 2019-01-20  Bruno Haible  <bruno@clisp.org>
15580         log10l: Work around inaccurate implementation on NetBSD.
15581         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
15582         * lib/log10l.c: Comment out too simplistic override.
15583         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
15585 2019-01-20  Bruno Haible  <bruno@clisp.org>
15587         logl: Work around inaccurate implementation on NetBSD.
15588         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
15589         * lib/logl.c: Comment out unused code.
15590         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
15592 2019-01-20  Bruno Haible  <bruno@clisp.org>
15594         expm1l: Work around inaccurate implementation on NetBSD.
15595         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
15596         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
15597         REPLACE_EXPM1L.
15598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
15599         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
15600         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
15601         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
15603 2019-01-20  Bruno Haible  <bruno@clisp.org>
15605         expl: Work around inaccurate implementation on NetBSD.
15606         * lib/math.in.h (expl): Test also REPLACE_EXPL.
15607         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
15608         REPLACE_EXPL.
15609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15610         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15611         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15612         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15614 2019-01-20  Bruno Haible  <bruno@clisp.org>
15616         exp2l: Work around inaccurate implementation on NetBSD.
15617         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
15618         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
15620 2019-01-20  Bruno Haible  <bruno@clisp.org>
15622         floor, floorl: Avoid autoconf warnings.
15623         * modules/floor (configure.ac): Use AC_REQUIRE.
15624         * modules/floorl (configure.ac): Likewise.
15626 2019-01-20  Bruno Haible  <bruno@clisp.org>
15628         Defeat current GCC optimizations in math autoconf tests.
15629         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
15630         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15631         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15632         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15633         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15634         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15635         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15636         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15637         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15638         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15639         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15640         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15641         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15642         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15643         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
15644         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15645         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
15646         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15647         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15648         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15649         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15650         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15651         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15652         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15653         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15654         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15655         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15656         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15657         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15658         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15659         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15660         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15661         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15662         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15663         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15664         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15665         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15666         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15668 2019-01-19  Pádraig Brady  <P@draigBrady.com>
15670         gettext: support disabling use of VLAs
15671         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
15673 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15675         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
15676         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
15678 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15680         fcntl: Fix syntax error (regression from 2018-10-05).
15681         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15683 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15685         relocatable: improve documentation.
15686         * doc/relocatable-maint.texi (Supporting Relocation): For
15687         substitutions performed by config.status, we need more variables
15688         (for instance datarootdir defaults to '${prefix}/share' so we need
15689         prefix).
15691 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15693         backup: update dependencies
15694         * modules/backup-rename (Depends-on): It now depends on opendirat
15695         instead of opendir.  It also uses stdint, and xalloc-oversized.
15696         But no longer dirfd.
15697         * modules/backupfile (Depends-on): Add xalloc-oversized.
15699 2019-01-13  Bruno Haible  <bruno@clisp.org>
15701         getcwd: Fix test failure when building on a Linux 9p file system.
15702         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15703         EINVAL from mkdir like ENAMETOOLONG.
15704         * tests/test-getcwd.c (test_long_name): Likewise.
15706 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15708         Fix typos found by codespell.
15709         * lib/*.[hc]: Fix typos in comments.
15710         * pygnulib/*.py: Fix typos in error messages and comments.
15712 2019-01-12  Bruno Haible  <bruno@clisp.org>
15714         doc: Fix documentation about container data types.
15715         Reported by Werner Lemberg <wl@gnu.org>.
15716         * doc/containers.texi (Container data types): Fix typo.
15718 2019-01-10  Bruno Haible  <bruno@clisp.org>
15720         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15721         Reported by Reuben Thomas <rrt@sc3d.org>.
15722         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15724 2019-01-06  Bruno Haible  <bruno@clisp.org>
15726         maintainer-makefile: Make the configure.ac section optional.
15727         * top/maint.mk (GREP, SED): Define if not defined.
15729 2019-01-06  Bruno Haible  <bruno@clisp.org>
15731         localename: Assume setlocale function.
15732         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15733         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15735 2019-01-06  Bruno Haible  <bruno@clisp.org>
15737         doc: Add documentation about container data types.
15738         * doc/containers.texi: New file.
15739         * doc/gnulib.texi (Particular Modules): Include it.
15741 2019-01-06  Bruno Haible  <bruno@clisp.org>
15743         doc: Update documentation about 'progname' module.
15744         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15745         title. Rewrite.
15746         * doc/gnulib.texi (Particular Modules): Update.
15748 2019-01-06  Bruno Haible  <bruno@clisp.org>
15750         doc: Document the xstdopen and *-safer modules.
15751         * doc/xstdopen.texi: New file.
15752         * doc/gnulib.texi (Particular Modules): Include it.
15754 2019-01-06  Bruno Haible  <bruno@clisp.org>
15756         xstdopen: Add tests.
15757         * tests/test-xstdopen.c: New file.
15758         * tests/test-xstdopen.sh: New file.
15759         * modules/xstdopen-tests: New file.
15761         xstdopen: New module.
15762         * lib/xstdopen.h: New file.
15763         * lib/xstdopen.c: New file.
15764         * modules/xstdopen: New file.
15766 2019-01-06  Bruno Haible  <bruno@clisp.org>
15768         stdopen: Fix compilation error with IRIX cc.
15769         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15771 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15773         xfreopen need not include stdio--.h
15774         * lib/xfreopen.c: Do not include stdio--.h.
15776         xfreopen need not depend on freopen-safer
15777         * modules/xfreopen (Depends-on):
15778         Depend on freopen, not freopen-safer.
15780         stdopen: modernize and simplify
15781         * lib/stdopen.c: Update copyright date
15782         Do not include sys/types.h; no longer needed these days.
15783         (stdopen): Use C99-style decl in loop.  Return int errno
15784         value, rather than just a bool.  Do not worry about fd mismatches,
15785         since the caller cares only if 0, 1, 2 are occupied.
15786         * lib/stdopen.h: No need to include <stdbool.h>.
15787         * m4/stdopen.m4: Remove.
15788         * modules/stdopen: New file.
15790         stdopen: copy from last use in coreutils
15791         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15792         New files, taken from their last commit in coreutils
15793         2007-07-23T12:35:58Z!jim@meyering.net
15794         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
15796 2019-01-05  Bruno Haible  <bruno@clisp.org>
15798         argp: Don't pass an invalid argument to dgettext().
15799         Reported by He X <xw897002528@gmail.com>.
15800         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
15801         dgettext().
15803 2019-01-05  Bruno Haible  <bruno@clisp.org>
15805         argp: Don't pass an invalid argument to dgettext().
15806         Reported by He X <xw897002528@gmail.com>.
15807         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15808         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15809         dgettext().
15811 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15813         stdioext: port to newer 32-bit Android
15814         Problem reported by Tom Yan in:
15815         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15816         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15817         (fp_) [__ANDROID__]: Use it.
15819 2019-01-04  Bruno Haible  <bruno@clisp.org>
15821         lock: Fix link error with --enable-threads=pth.
15822         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15823         Mark as weak.
15825 2019-01-04  Bruno Haible  <bruno@clisp.org>
15827         Fix link errors in unit tests.
15828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15829         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15830         * modules/array-map-tests (Makefile.am): Link test-array_map against
15831         libintl.
15832         * modules/array-set-tests (Makefile.am): Link test-array_set against
15833         libintl.
15834         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15835         libintl.
15836         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15837         libintl.
15838         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15839         against libintl.
15840         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15841         against libintl.
15843 2019-01-04  Bruno Haible  <bruno@clisp.org>
15845         Fix incorrect 'Link' sections.
15846         * modules/regex (Link): Mention the link requirement of module 'lock'.
15847         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15849 2019-01-04  Bruno Haible  <bruno@clisp.org>
15851         Fix some 'Link' sections.
15852         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15853         dependency.
15854         * modules/getaddrinfo (Link): Likewise.
15856 2019-01-04  Bruno Haible  <bruno@clisp.org>
15858         Remove redundant 'Link' sections.
15859         * modules/canon-host (Link): Remove section.
15860         * modules/timevar (Link): Likewise.
15862 2019-01-04  Bruno Haible  <bruno@clisp.org>
15864         Remove incorrect 'Link' sections.
15865         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15866         the dependencies instead.
15867         * modules/crypto/md5 (Link): Likewise.
15868         * modules/crypto/sha1 (Link): Likewise.
15869         * modules/crypto/sha256 (Link): Likewise.
15870         * modules/crypto/sha512 (Link): Likewise.
15871         * modules/faccessat (Link): Likewise.
15872         * modules/fdutimensat (Link): Likewise.
15873         * modules/iconv_open-utf (Link): Likewise.
15874         * modules/propername (Link): Likewise.
15875         * modules/qacl (Link): Likewise.
15876         * modules/unicodeio (Link): Likewise.
15877         * modules/utimecmp (Link): Likewise.
15878         * modules/utimensat (Link): Likewise.
15879         * modules/xstriconv (Link): Likewise.
15880         * modules/xstriconveh (Link): Likewise.
15882 2019-01-04  Bruno Haible  <bruno@clisp.org>
15884         gnulib-tool: New option --extract-recursive-link-directive.
15885         * gnulib-tool (func_usage): Document the new options
15886         --extract-recursive-dependencies, --extract-recursive-link-directive.
15887         (func_verify_module): Document output variables.
15888         (func_get_dependencies_recursively): New function.
15889         (func_get_link_directive_recursively): New function.
15890         Use them to implement the new options
15891         --extract-recursive-dependencies, --extract-recursive-link-directive.
15892         * doc/gnulib-tool.texi (Link-time requirements): New section.
15894 2019-01-04  Bruno Haible  <bruno@clisp.org>
15896         Clarify meaning of 'Link' section in module description.
15897         * doc/gnulib.texi (Module description): Clarify the meaning of the
15898         'Link' section versus the one of the dependencies.
15899         * NEWS: Mention the change.
15901 2019-01-04  Bruno Haible  <bruno@clisp.org>
15903         pselect: Fix module description.
15904         * modules/pselect (Link): Put one link option per line.
15906 2019-01-04  Bruno Haible  <bruno@clisp.org>
15908         cosl: Fix module description.
15909         * modules/cosl (Link): Fix typo.
15910         * modules/mathl (configure.ac): Likewise.
15912 2019-01-04  Bruno Haible  <bruno@clisp.org>
15914         c-xvasprintf: Fix module dependencies.
15915         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15917 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15919         bootstrap: die when some submodules are not initialized
15920         * build-aux/bootstrap: Make sure all submodules are initialized.
15922 2019-01-04  Bruno Haible  <bruno@clisp.org>
15924         bitsetv: Fix module dependencies.
15925         * lib/bitsetv.c: Include xalloc.h.
15926         * modules/bitsetv (Depends-on): Add 'xalloc'.
15928 2019-01-04  Bruno Haible  <bruno@clisp.org>
15930         xmemdup0: Remove redundant code.
15931         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15933 2019-01-04  Bruno Haible  <bruno@clisp.org>
15935         backupfile: Fix module dependencies.
15936         * modules/backupfile (Depends-on): Add 'xalloc'.
15938 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15940         bitset, crypto/gc: fix conflicts with Solaris 11
15941         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15942         avoid clash with Solaris 11 <sys/bitset.h>.
15943         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15944         with Solaris 11 <xorg/gc.h>.
15946 2019-01-04  Bruno Haible  <bruno@clisp.org>
15948         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15949         Reported by Andy Fiddaman <andy@omniosce.org>.
15950         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15952 2019-01-03  Eric Blake  <eblake@redhat.com>
15954         maintainer-makefile: fix typo in previous patch
15955         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15956         of Roman's work.
15958 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15960         maintainer-makefile: prefer $(GREP) over grep
15961         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15962         defined.
15963         * top/maint.mk: Use it everywhere.
15965         maintainer-makefile: split long argument lines
15966         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15967         it would be too long for exec limits on BSD.
15969 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15971         mkfifo: bring back HAVE_MKFIFO macro
15972         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15973         Problem reported by Andrew Janke in:
15974         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15976 2018-12-21  Bruno Haible  <bruno@clisp.org>
15978         Assume Autoconf >= 2.63.
15979         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15980         versions < 2.60.
15982 2018-12-21  Bruno Haible  <bruno@clisp.org>
15984         memcmp: Mention the clang bug.
15985         * tests/test-memcmp.c: Add comment about a known test failure.
15986         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15988 2018-12-20  Jim Meyering  <meyering@fb.com>
15990         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15991         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15992           echo '123-x'|LC_ALL=C grep -E '.\bx'
15993         The goal is to revert the first, but reverting it requires to restore
15994         the function deleted in the second. I ran this to restore the deleted
15995         function:
15996           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15997             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15998             | patch -R -p1
15999         * lib/dfa.c (charclass_context): Restore deleted function.
16000         Reverting the primary commit removes this change:
16001         dfa: Simplify a building state
16002         * lib/dfa.c (build_state): Simplify a building state.
16004 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16006         version-etc: allow zero authors
16007         * lib/version-etc.c (version_etc_arn): If no authors are given,
16008         omit authorship info instead of dumping core.
16010 2018-12-19  Bruno Haible  <bruno@clisp.org>
16012         lchown tests: Be more permissive regarding errno values.
16013         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
16014         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
16015         alternative to ENOSYS.
16016         * modules/lchown-tests (Depends-on): Add 'errno'.
16017         * modules/fchownat-tests (Depends-on): Likewise.
16019 2018-12-18  Bruno Haible  <bruno@clisp.org>
16021         duplocale: Avoid test failure on AIX 7.
16022         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
16023         (configure.ac): Invoke gt_FUNC_USELOCALE.
16024         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
16025         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
16026         works.
16028 2018-12-18  Bruno Haible  <bruno@clisp.org>
16030         localename: Fix test failure on AIX 7.
16031         Reported by Assaf Gordon in
16032         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
16033         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
16034         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
16035         instead of ac_cv_func_uselocale.
16036         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
16037         HAVE_USELOCALE.
16038         * lib/localename-table.h: Likewise.
16039         * lib/localename-table.c: Likewise.
16040         * tests/test-localename.c: Likewise.
16041         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
16043 2018-12-18  Bruno Haible  <bruno@clisp.org>
16045         localename: Update comments regarding Cygwin.
16046         * lib/localename.c: Update comment.
16047         * doc/posix-functions/uselocale.texi: Update platforms list.
16048         * doc/posix-functions/newlocale.texi: Likewise.
16049         * doc/posix-functions/duplocale.texi: Likewise.
16050         * doc/posix-functions/freelocale.texi: Likewise.
16052 2018-12-16  Bruno Haible  <bruno@clisp.org>
16054         c-stack: Fix for Linux/sparc.
16055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
16056         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
16058 2018-12-16  Bruno Haible  <bruno@clisp.org>
16060         localename: Avoid test failure on some glibc systems.
16061         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16062         Unset environment variables that might disturb the first setlocale call,
16063         and verify that this setlocale call succeeds.
16065 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
16067         random: Fix build error on native Windows (regression from 2018-06-21).
16068         * lib/random.c (__srandom, __initstate, __setstate, __random,
16069         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
16070         to the symbols without '__' prefix.
16072 2018-12-16  Bruno Haible  <bruno@clisp.org>
16074         obstack, libc-config: Support HP-UX cc in C99 mode.
16075         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
16076         compiler, even when in C99 mode.
16077         * lib/cdefs.h (__flexarr): Likewise.
16078         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
16080 2018-12-16  Bruno Haible  <bruno@clisp.org>
16082         localename: Fix test failure on OpenBSD >= 6.2.
16083         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
16084         locale system. Define HAVE_FAKE_LOCALES in this case.
16085         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
16086         HAVE_USELOCALE.
16087         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
16088         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
16089         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
16090         platforms list.
16091         * doc/posix-functions/newlocale.texi: Likewise.
16092         * doc/posix-functions/duplocale.texi: Update platforms list.
16093         * doc/posix-functions/freelocale.texi: Likewise.
16095 2018-12-16  Bruno Haible  <bruno@clisp.org>
16097         duplocale tests: Re-enable the test on platforms without <monetary.h>.
16098         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
16099         of the test, on platforms without <monetary.h>.
16101 2018-12-16  Bruno Haible  <bruno@clisp.org>
16103         localename: Update comments.
16104         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
16106 2018-12-15  Jim Meyering  <meyering@fb.com>
16108         regex: fix indentation
16109         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
16111 2018-12-15  Bruno Haible  <bruno@clisp.org>
16113         openat-safer tests: Avoid test failure on NetBSD 8.
16114         * tests/test-openat-safer.c (main): Execute a Linux specific test only
16115         on Linux.
16117 2018-12-15  Jim Meyering  <meyering@fb.com>
16119         regex: work around a bug in glibc-2.27 and prior
16120         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
16121         assertion for /0|()0|\1|0/.
16122         * tests/test-regex.c (main): Add the same test here.
16124 2018-12-15  Bruno Haible  <bruno@clisp.org>
16126         localename: Fix use of uninitialized shell variable.
16127         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
16128         gt_cv_locale_solaris114 always before use. Remove assignment without
16129         effect.
16131 2018-12-15  Bruno Haible  <bruno@clisp.org>
16133         dfa tests: Avoid test failure on Alpine Linux.
16134         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
16135         command found on Alpine Linux.
16137 2018-12-15  Jim Meyering  <meyering@fb.com>
16139         dfa: avoid new warnings from gcc
16140         These would prevent building with -Werror and a Dec snapshot of gcc.
16141         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
16142         Rename each inner instance to "p".
16143         (charclass_context): Remove unused static function.
16145 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16147         mkdir-p: improve diagnostic for FUSE mounts
16148         Problem reported by Niklas Hambüchen in:
16149         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
16150         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
16151         errno to mkdir errno if the stat errno is likely more interesting.
16153 2018-12-14  Bruno Haible  <bruno@clisp.org>
16155         hash-map: Add tests.
16156         * tests/test-hash_map.c: New file.
16157         * modules/hash-map-tests: New file.
16159         linkedhash-map: Add tests.
16160         * tests/test-linkedhash_map.c: New file.
16161         * modules/linkedhash-map-tests: New file.
16163         array-map: Add tests.
16164         * tests/test-array_map.c: New file.
16165         * modules/array-map-tests: New file.
16167         xmap: New module.
16168         * lib/gl_xmap.h: New file.
16169         * lib/gl_xmap.c: New file.
16170         * modules/xmap: New file.
16172         hash-map: New module.
16173         * lib/gl_hash_map.h: New file.
16174         * lib/gl_hash_map.c: New file.
16175         * modules/hash-map: New file.
16177         linkedhash-map: New module.
16178         * lib/gl_linkedhash_map.h: New file.
16179         * lib/gl_linkedhash_map.c: New file.
16180         * lib/gl_anyhash1.h: Update comments.
16181         * lib/gl_anyhash2.h: Likewise.
16182         * modules/linkedhash-map: New file.
16184         array-map: New module.
16185         * lib/gl_array_map.h: New file.
16186         * lib/gl_array_map.c: New file.
16187         * modules/array-map: New file.
16189         map: New module.
16190         * lib/gl_map.h: New file.
16191         * lib/gl_map.c: New file.
16192         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16193         conflict with gl_map.h.
16194         * modules/map: New file.
16196 2018-12-13  Bruno Haible  <bruno@clisp.org>
16198         select tests: Avoid test failure on Cygwin.
16199         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
16201 2018-12-13  Bruno Haible  <bruno@clisp.org>
16203         localtime-buffer: Avoid endless recursion in localtime and gmtime.
16204         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
16206 2018-12-13  Bruno Haible  <bruno@clisp.org>
16208         localeconv tests: Avoid test failure on Cygwin.
16209         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
16210         'mon_grouping' tests.
16212 2018-12-11  Bruno Haible  <bruno@clisp.org>
16214         omap: Don't dispose the old value when the function returns it.
16215         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
16216         here.
16217         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16218         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16219         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
16220         here.
16222         array-omap, avltree-omap, rbtree-omap: Tweak style.
16223         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
16224         false.
16225         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
16227         rbtree-omap: Add tests.
16228         * tests/test-rbtree_omap.c: New file.
16229         * modules/rbtree-omap-tests: New file.
16231         avltree-omap: Add tests.
16232         * tests/test-avltree_omap.c: New file.
16233         * modules/avltree-omap-tests: New file.
16235         array-omap: Add tests.
16236         * tests/test-array_omap.c: New file.
16237         * modules/array-omap-tests: New file.
16239         xomap: New module.
16240         * lib/gl_xomap.h: New file.
16241         * lib/gl_xomap.c: New file.
16242         * modules/xomap: New file.
16244         rbtree-omap: New module.
16245         * lib/gl_rbtree_omap.h: New file.
16246         * lib/gl_rbtree_omap.c: New file.
16247         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
16248         Parameterize.
16249         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
16250         * modules/rbtree-omap: New file.
16251         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
16252         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
16254         avltree-omap: New module.
16255         * lib/gl_avltree_omap.h: New file.
16256         * lib/gl_avltree_omap.c: New file.
16257         * lib/gl_avltree_ordered.h: Code moved to here from
16258         lib/gl_avltree_oset.c. Parameterize.
16259         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
16260         * lib/gl_anytree_omap.h: New file.
16261         * modules/avltree-omap: New file.
16262         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
16263         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
16265         array-omap: New module.
16266         * lib/gl_array_omap.h: New file.
16267         * lib/gl_array_omap.c: New file.
16268         * modules/array-omap: New file.
16270         omap: New module.
16271         * lib/gl_omap.h: New file.
16272         * lib/gl_omap.c: New file.
16273         * modules/omap: New file.
16275 2018-12-11  Bruno Haible  <bruno@clisp.org>
16277         hash-set, linkedhash-set: Reduce code duplication.
16278         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
16279         lib/gl_anyhash_set1.h.
16280         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
16281         lib/gl_anyhash_set2.h. Parameterize.
16282         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
16283         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
16284         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
16285         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
16286         * lib/gl_rbtreehash_list.c: Likewise.
16287         * lib/gl_linkedhash_list.c: Likewise.
16288         (hash_resize_after_add): Remove function.
16289         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
16290         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
16291         * gl_hash_set.c: Likewise.
16292         * modules/avltreehash-list (Files, Makefile.am): Update file list.
16293         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
16294         * modules/linkedhash-list (Files, Makefile.am): Likewise.
16295         * modules/linkedhash-set (Files, Makefile.am): Likewise.
16296         * modules/hash-set (Files, Makefile.am): Likewise.
16298 2018-12-11  Bruno Haible  <bruno@clisp.org>
16300         array-set: Optimize.
16301         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
16302         outside the loop, not inside the loop.
16304 2018-12-11  Bruno Haible  <bruno@clisp.org>
16306         times: Fix tests.
16307         * tests/test-times.c (doublecmp): Implement a total order.
16309 2018-12-11  Bruno Haible  <bruno@clisp.org>
16311         array-set, linkedhash-set, hash-set: Fix tests.
16312         * tests/test-array_set.c (cmp_objects_in_array): New function.
16313         (check_equals): Use it.
16314         * tests/test-hash_set.c: Likewise.
16315         * tests/test-linkedhash_set.c: Likewise.
16317 2018-12-08  Bruno Haible  <bruno@clisp.org>
16319         Fix comments.
16320         * lib/gl_list.h (gl_list_free): Clarify what it does.
16321         * lib/gl_oset.h (gl_oset_free): Likewise.
16322         * lib/gl_set.h (gl_set_free): Likewise.
16323         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
16324         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
16325         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
16326         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
16328 2018-12-03  Bruno Haible  <bruno@clisp.org>
16330         hash-set: Add tests.
16331         * tests/test-hash_set.c: New file.
16332         * modules/hash-set-tests: New file.
16334         linkedhash-set: Add tests.
16335         * tests/test-linkedhash_set.c: New file.
16336         * modules/linkedhash-set-tests: New file.
16338         array-set: Add tests.
16339         * tests/test-array_set.c: New file.
16340         * modules/array-set-tests: New file.
16342         xset: New module.
16343         * lib/gl_xset.h: New file.
16344         * lib/gl_xset.c: New file.
16345         * modules/xset: New file.
16347         hash-set: New module.
16348         * lib/gl_hash_set.h: New file.
16349         * lib/gl_hash_set.c: New file.
16350         * modules/hash-set: New file.
16352         linkedhash-set: New module.
16353         * lib/gl_linkedhash_set.h: New file.
16354         * lib/gl_linkedhash_set.c: New file.
16355         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
16356         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
16357         * lib/gl_anyhash_primes.h: New file, extracted from
16358         lib/gl_anyhash_list2.h.
16359         * lib/gl_anyhash_list2.h: Include it.
16360         (primes, next_prime): Remove definitions.
16361         * modules/linkedhash-set: New file.
16362         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16363         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16364         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16365         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16366         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16367         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16369         array-set: New module.
16370         * lib/gl_array_set.h: New file.
16371         * lib/gl_array_set.c: New file.
16372         * modules/array-set: New file.
16374         set: New module.
16375         * lib/gl_set.h: New file.
16376         * lib/gl_set.c: New file.
16377         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16378         gl_set.h.
16379         * modules/set: New file.
16381 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16383         bison: don't force the Yacc mode
16384         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16385         errors when Bison features are used in the grammar file.  Some of
16386         these features (such as %expect) were flagged non-yacc recently.  Most
16387         of the time, -y is actually used to please Automake's ylwrap which
16388         expects the output to be y.tab.c.
16389         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16391 2018-12-01  Bruno Haible  <bruno@clisp.org>
16393         gnupload: Document short options.
16394         * build-aux/gnupload (usage): Document the short options.
16396 2018-11-28  Ben Elliston  <bje@gnu.org>
16398         gnupload: Support option -h as alias of --help.
16399         * build-aux/gnupload: Support -h.
16401 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16403         memrchr: port better to clang
16404         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16405         longword *, to pacify clang -Wcast-align (Bug#33544).
16407 2018-11-29  Eric Blake  <eblake@redhat.com>
16409         docs: mention printf %m considerations
16410         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16411         is not portable, and is easy enough to work around.
16412         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16413         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16414         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16415         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16416         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16417         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16418         * doc/posix-functions/printf.texi (printf): Likewise.
16419         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16420         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16421         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16422         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16423         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16424         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16425         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16426         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16427         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16428         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16429         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16430         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16432 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16434         bitset: rename ebitset/expandable.* as tbitset/table.*
16435         See
16436         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16437         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16438         * lib/bitset/table.h, lib/bitset/table.c: these.
16439         Rename all the ebitset* symbols as tbitset*.
16440         Adjust dependencies.
16442 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16444         bitset: check the operations
16445         * tests/test-bitset.c (bitset_random): New.
16446         Use it.
16447         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16449 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16451         bitset: properly use false/true instead of 0/1 for Booleans
16452         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16453         0/1, as Booleans.
16455 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16457         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16458         For consistency with the name of the file.
16459         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16460         * lib/bitset/stats.c, lib/bitset/vector.c
16461         (BITSET_VARRAY): Rename as...
16462         (BITSET_VECTOR): this.
16464 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16466         strerror_r-posix: memmove, not memcpy
16467         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16468         since the source and destination might overlap in the call
16469         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16470         Simplify.
16472 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16474         bitsetv: new module
16475         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
16477 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16479         bitset: add tests and doc
16480         First stabs at providing a documentation and test for the bitset
16481         module.
16482         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
16484 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16486         bitset: new module
16487         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
16488         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
16489         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
16490         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
16491         * lib/bitset/vector.h, modules/bitset:
16492         New.
16494 2018-11-23  Bruno Haible  <bruno@clisp.org>
16496         localename: Fix gettext test failures on mingw.
16497         * lib/localename.c (gl_locale_name_posix): Convert the result of
16498         gl_locale_name_environ to XPG syntax.
16500 2018-11-23  Karl Berry  <karl@freefriends.org>
16502         * config/srclistvars.txt,
16503         * config/srclist.txt: remove all gettext references;
16504         the gettext maintainers will sync as needed.
16506 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16508         mktime: add libc-config dependency
16509         I missed this when we synced from glibc.
16510         * modules/mktime (Depends-on): Add libc-config.
16512 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16514         longlong: fix comment typo
16515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
16517 2018-11-11  Bruno Haible  <bruno@clisp.org>
16519         havelib: Remove the need to include asm-underscore.m4.
16520         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
16521         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
16522         gl_HOST_CPU_C_ABI.
16523         * modules/havelib (Files): Add host-cpu-c-abi.m4.
16524         (Depends-on): Remove host-cpu-c-abi.
16526 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16528         parse-datetime: simplify test for mktime failure
16529         * lib/parse-datetime.y (mktime_ok): Simplify.
16530         Remove args TZ and T; no longer needed.  Callers changed.
16532         posixtm: simplify test for mktime failure
16533         * lib/posixtm.c (posixtime): Simplify.
16535         nstrftime: simplify test for mktime failure
16536         * lib/nstrftime.c (__strftime_internal): Simplify.
16538 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16540         gnulib-common.m4: port _Noreturn to C++
16541         Problem reported by Akim Demaille in:
16542         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
16543         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
16544         Merge adjustments from _Noreturn.h and from glibc into the non-C++
16545         version.
16546         * lib/_Noreturn.h: Match gnulib-common.
16548 2018-10-30  Bruno Haible  <bruno@clisp.org>
16550         gnu-make: Fix for NetBSD 8 'make'.
16551         Reported by Reuben Thomas in
16552         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
16553         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
16554         output, ignoring exit codes.
16556 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
16558         maintainer-makefile: fix syntax-check rule for "same.h"
16559         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
16560         for 'same_nameat', too.
16562 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16564         havelib: fix nested ‘configure’ chatter
16565         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
16566         AC_CACHE_CHECK calls, which resulted in confusing output like
16567         “checking for the common suffixes of directories in the library
16568         search path... checking for 64-bit host... no lib,lib”.
16570         backupfile: tweak for better code
16571         * lib/backupfile.c: Sort include directives, and remove
16572         unnecessary <limits.h> include.
16573         (FALLTHROUGH): New macro, copied from other modules.
16574         (backupfile_internal): Use it to avoid code duplication.
16575         This lets GCC 8.2.1 generate better code by inlining the
16576         call to check_extension.
16578 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16580         backupfile: new dir_fd args
16581         New module opendirat with code taken from fts.
16582         Use this module to let backupfile use a directory file descriptor.
16583         * NEWS: Document the incompatible change.
16584         * lib/backup-find.c (find_backup_file_name):
16585         * lib/backup-rename.c (backup_file_rename):
16586         New arg DIR_FD.
16587         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
16588         (SIZE_MAX): Remove.
16589         Include opendirat.h rather than dirent--.h.
16590         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
16591         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
16592         (backupfile_internal): New arg DIR_FD.  All callers changed.
16593         * lib/fts.c: Include opendirat.h.
16594         (opendirat): Move to opendirat.c.
16595         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
16596         * modules/backupfile (Depends-on): Remove dirfd, opendir.
16597         Add opendirat.
16598         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
16599         Add opendirat.
16601 2018-10-23  Bruno Haible  <bruno@clisp.org>
16603         localename: Simplify support for per-thread locales on Solaris 11.4.
16604         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
16605         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
16606         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
16607         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
16608         specific code.
16609         * lib/localename-table.h: Update comments.
16610         * lib/localename-table.c: Update comments.
16611         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16612         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16613         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16614         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16615         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16616         HAVE_NAMELESS_LOCALES here.
16617         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
16618         m4/intlsolaris.m4.
16619         * modules/gettext (Files): Likewise.
16621 2018-10-22  Bruno Haible  <bruno@clisp.org>
16623         std-gnu11: Support Autoconf versions < 2.64.
16624         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
16625         when _AC_DO_LIMIT does not exist.
16627 2018-10-22  Bruno Haible  <bruno@clisp.org>
16629         Assume Autoconf >= 2.63.
16630         * DEPENDENCIES: Mention the requirement.
16632         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
16633         (func_get_filelist): Don't list m4/onceonly.m4 any more.
16634         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
16635         * m4/onceonly.m4: Remove file.
16637         * m4/openmp.m4: Remove file.
16638         * modules/openmp (Files): Remove m4/openmp.m4.
16640         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
16641         htmldir, dvidir, pdfdir, psdir, localedir.
16642         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
16644         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
16645         Autoconf < 2.60.
16646         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
16647         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
16649         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
16650         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
16651         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
16653         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
16654         exists.
16655         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
16657         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
16658         Autoconf < 2.61.
16660         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
16661         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
16662         Autoconf >= 2.52.
16664         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
16665         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
16666         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
16668 2018-10-22  Bruno Haible  <bruno@clisp.org>
16670         Assume Automake >= 1.11.
16671         * m4/configmake.m4: Update comments.
16672         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
16673         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
16674         of 'eval'.
16675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
16676         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
16677         requires Automake >= 1.11.
16679 2018-10-22  Bruno Haible  <bruno@clisp.org>
16681         localename: Fix typo in comment.
16682         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16684 2018-10-22  Bruno Haible  <bruno@clisp.org>
16686         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16687         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16689 2018-10-21  Bruno Haible  <bruno@clisp.org>
16691         locale: Ease integration with GNU libintl.
16692         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16693         GNULIB_defined_freelocale): New macros.
16695 2018-10-21  Bruno Haible  <bruno@clisp.org>
16697         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16698         * lib/localename-table.h: New file, extracted from lib/localename.c.
16699         * lib/localename-table.c: Likewise.
16700         * lib/localename.c: Include localename-table.h.
16701         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16702         locale_hash_function instead of pointer_hash.
16703         * modules/localename (Files): Add lib/localename-table.h,
16704         lib/localename-table.c.
16705         (lib_SOURCES): Add localename-table.c.
16706         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16707         for Solaris 11.4 locale system only on Solaris. Test for it
16708         independently whether getlocalename_l exists.
16709         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16710         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16711         HAVE_NAMELESS_LOCALES.
16712         * modules/gettext (Files): Add m4/intlsolaris.m4.
16714 2018-10-21  Bruno Haible  <bruno@clisp.org>
16716         Small update from gettext.
16717         * m4/intl.m4: Update from gettext:
16718         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16719         mode on AIX.
16720         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16721         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16723 2018-10-16  Bruno Haible  <bruno@clisp.org>
16725         mountlist: Remove support for Cray with UNICOS 9.
16726         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16727         MOUNTED_LISTMNTENT.
16728         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16730 2018-10-16  Bruno Haible  <bruno@clisp.org>
16732         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16733         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16734         STAT_STATFS2_FS_DATA.
16735         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16736         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16737         MOUNTED_GETMNT.
16738         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16739         * lib/getloadavg.c (decstation): Remove definition and case.
16740         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16741         * lib/getgroups.c: Likewise.
16742         * doc/posix-functions/getgroups.texi: Likewise.
16743         * lib/time.in.h: Update comments.
16745 2018-10-16  Bruno Haible  <bruno@clisp.org>
16747         getloadavg: Remove support for ConvexOS.
16748         * lib/getloadavg.c: Remove convex case.
16750 2018-10-16  Bruno Haible  <bruno@clisp.org>
16752         getloadavg: Remove support for Sony NEWS.
16753         * lib/getloadavg.c: Remove sony_news case.
16755 2018-10-16  Bruno Haible  <bruno@clisp.org>
16757         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16758         * lib/fsusage.c: Remove _SEQUENT_ case.
16759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16760         * lib/mountlist.c: Don't test for MNTTABNAME.
16761         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16762         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16763         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16764         * lib/stat-size.h: Don't mention the Sequent bug.
16765         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16767 2018-10-16  Bruno Haible  <bruno@clisp.org>
16769         fsusage: Remove support for AIX 3.
16770         * lib/fsusage.c: Remove code for AIX 3.
16771         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16773 2018-10-16  Bruno Haible  <bruno@clisp.org>
16775         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16776         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16777         * lib/fsusage.c: Remove code for AIX PS/2.
16778         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16779         * lib/getloadavg.c: Likewise.
16781 2018-10-16  Bruno Haible  <bruno@clisp.org>
16783         getloadavg: Remove support for HP-UX on m68k.
16784         * lib/getloadavg.c: Remove hp9000s300 case.
16786 2018-10-16  Bruno Haible  <bruno@clisp.org>
16788         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16789         * lib/fsusage.c: Remove DOLPHIN case.
16790         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16791         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16793 2018-10-16  Bruno Haible  <bruno@clisp.org>
16795         getloadavg: Remove support for Alliant FX/2800.
16796         * lib/getloadavg.c: Remove alliant case.
16798 2018-10-16  Bruno Haible  <bruno@clisp.org>
16800         getloadavg: Remove support for tek4300.
16801         * lib/getloadavg.c: Remove tek4300 case.
16803 2018-10-16  Bruno Haible  <bruno@clisp.org>
16805         getloadavg: Remove support for Ardent.
16806         * lib/getloadavg.c: Remove ardent case.
16808 2018-10-16  Bruno Haible  <bruno@clisp.org>
16810         mountlist: Remove support for SVR2.
16811         Reported by Andrew Borodin <aborodin@vmail.ru> in
16812         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16813         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16814         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16815         MOUNTED_FREAD.
16817 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16819         libc-config: merge from glibc
16820         * lib/cdefs.h (__glibc_has_attribute): New macro.
16822         regex: depend on libc-config
16823         * modules/regex (Depends-on): Add libc-config.
16824         This is needed after the recent autoupdate from glibc.
16826 2018-10-14  Bruno Haible  <bruno@clisp.org>
16828         localename: Add support for per-thread locales on Solaris 11.4.
16829         * lib/locale.in.h (newlocale, freelocale): New declarations.
16830         (duplocale): Declare also when the 'localename' module requests it.
16831         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16832         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16833         (struniq): Update.
16834         (struct locale_categories_names, struct locale_hash_node): New types.
16835         (LOCALE_HASH_TABLE_SIZE): New constant.
16836         (locale_hash_table, locale_lock): New variables.
16837         (pointer_hash, get_locale_t_name): New functions.
16838         (newlocale, duplocale, freelocale): New overridden functions.
16839         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16840         * m4/intlsolaris.m4: New file.
16841         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16842         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16843         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16844         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16845         declared.
16846         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16847         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16848         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16849         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16850         * modules/localename (Files): Add intlsolaris.m4.
16851         (Depends-on): Add 'locale'.
16852         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16853         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16854         the signatures.
16856 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16858         timevar: use gethrxtime to get wall clock time
16859         clock_gettime is not portable.  gethrxtime takes the best available
16860         option to get the wall clock time, including clock_gettime (monotonic
16861         clock), and gettime (non monotonic).
16862         Also, using xtime_t instead of float preserves the precision.
16863         Suggested by Bruno Haible.
16864         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16865         * modules/timevar (Depends-on): We need gethrxtime.
16866         We no longer use times().
16867         (Link): Update.
16868         * lib/timevar.h (timevar_time_def): Use xtime_t.
16869         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16870         (timevar_print): Instead of checking whether the timings themselves
16871         are large enough for the timevar to be printed, check the percentages.
16873 2018-10-14  Bruno Haible  <bruno@clisp.org>
16875         wcsnrtombs: Work around Solaris 11.4 bug.
16876         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16877         macro.
16878         (gl_FUNC_WCSNRTOMBS): Invoke it.
16879         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16881 2018-10-14  Bruno Haible  <bruno@clisp.org>
16883         mbsnrtowcs: Work around Solaris 11.4 bug.
16884         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16885         macro.
16886         (gl_FUNC_MBSNRTOWCS): Invoke it.
16887         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16889 2018-10-14  Bruno Haible  <bruno@clisp.org>
16891         doc: Update for Solaris 11.4.
16892         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16893         mention Solaris 11.4.
16894         * m4/printf.m4: Update comments about Solaris.
16895         * m4/log.m4: Likewise.
16896         * m4/log10.m4: Likewise.
16897         * m4/logb.m4: Likewise.
16898         * m4/logbf.m4: Likewise.
16899         * m4/logbl.m4: Likewise.
16900         * m4/rename.m4: Likewise.
16901         * m4/wcrtomb.m4: Likewise.
16902         * m4/hostent.m4: Likewise.
16903         * m4/servent.m4: Likewise.
16905 2018-10-14  Bruno Haible  <bruno@clisp.org>
16907         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16908         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16909         pointer.
16910         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16911         pointer.
16912         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16913         pointer.
16914         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16915         pointer.
16916         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16917         pointer.
16919 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16921         bootstrap: fix wget command for po files.
16922         * build-aux/bootstrap (po_download_command_format): Fix comment,
16923         and adjust callers.
16925 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16927         timevar: improve the output format
16928         Suggested by Bruno Haible.
16929         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16930         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16931         wall, since its resolution is much higher.
16933 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16935         timevar: expect that getrusage is available.
16936         Don't keep both times and getrusage as backend: both are guaranteed by
16937         gnulib, a single one suffices.  Using getrusage is open to possibly
16938         tracking other types of resources in the future.
16939         * modules/timevar (Depends-on): Add getrusage.
16940         (configure.ac): Remove gl_TIMEVAR.
16941         (Files): Remove m4/timevar.m4.
16942         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16943         * lib/timevar.h (timevar_enabled): Clarify documentation.
16944         * lib/timevar.c: Remove all the code about times.
16945         Remove all the CPP guards about getrusage: expect it to be present
16946         (courtesy of gnulib).
16948 2018-10-12  Bruno Haible  <bruno@clisp.org>
16950         mountlist: Improve support for Solaris in 64-bit mode.
16951         Reported by David Wood <David.Wood@deshaw.com> in
16952         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16953         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16954         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16955         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16957 2018-10-12  Bruno Haible  <bruno@clisp.org>
16959         mountlist: Add support for Minix.
16960         Reported by Assaf Gordon in
16961         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16963         AC_CHECK_FUNCS to check for 'getmntinfo'.
16964         * lib/mountlist.c: Update comments.
16966 2018-10-12  Bruno Haible  <bruno@clisp.org>
16968         Make better use of Autoconf.
16969         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16970         * m4/manywarnings.m4: Likewise.
16971         * m4/manywarnings-c++.m4: Likewise.
16972         * m4/socklen.m4: Likewise.
16973         * m4/sockpfaf.m4: Likewise.
16974         * m4/stdarg.m4: Likewise.
16975         * m4/visibility.m4: Likewise.
16976         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16977         indentation.
16978         * m4/ls-mntd-fs.m4: Likewise.
16980 2018-10-11  Bruno Haible  <bruno@clisp.org>
16982         mountlist: Modernize platform lists.
16983         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16984         platforms, deemphasizing the obsolete ones.
16985         * lib/mountlist.c: Likewise.
16987 2018-10-11  Bruno Haible  <bruno@clisp.org>
16989         getprogname: Add support for 32-bit programs on HP-UX.
16990         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16991         try the similar functions 32-bit programs on 64-bit HP-UX.
16993 2018-10-11  Bruno Haible  <bruno@clisp.org>
16995         getprogname: Work around program name truncation when possible.
16996         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16997         possibly use pst_cmd instead.
16999 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17001         fts: cleanup after FTS_NOATIME removal
17002         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
17003         (FTS_STOP): Shrink to minimal values.  We don’t need to
17004         worry about binary compatibility in Gnulib, and the old way
17005         of doing things had a hole in the user options that caused
17006         FTS_OPTIONMASK to not work as desired.
17008 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
17010         fts: remove FTS_NOATIME
17011         This reverts commit da4d6974013c822af1498941e32db774b2031765.
17012         We cannot guarantee that O_NOATIME works: e.g. openat fails
17013         with EPERM if the effective user ID of the caller does not match
17014         the owner of the file and the caller is not privileged.
17015         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
17016         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
17017         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
17018         (FTS_OPTIONMASK): Adjust.
17019         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
17020         (fd_ring_check): Likewise.
17022 2018-10-08  Bruno Haible  <bruno@clisp.org>
17024         csharpcomp*, csharpexec*: Remove support for pnet.
17025         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
17026         HAVE_CSCC.
17027         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
17028         Don't test HAVE_CSCC.
17029         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
17030         (compile_csharp_class): Don't invoke it.
17031         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
17032         HAVE_ILRUN.
17033         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
17034         Don't test HAVE_ILRUN.
17035         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
17036         (execute_csharp_program): Don't invoke it.
17037         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
17038         any more.
17040 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
17042         renameatu: prefer renameat2 to syscall
17043         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
17044         Use renameat2 instead of syscall (Bug#32796).
17045         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
17047 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17049         bootstrap, gnulib-tool: use https instead of insecure rsync
17050         * build-aux/bootstrap (download_po_files, po_download_command_format):
17051         Don't try using rsync; always use wget over https to fetch PO files.
17052         * gnulib-tool (func_import): Likewise.
17053         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17055 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17057         bootstrap, gnulib-tool: correct the translations wget command
17058         * build-aux/bootstrap (po_download_command_format2): Restrict
17059         recursion to a single level.
17060         * gnulib-tool (func_import): Likewise.
17061         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17063 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17065         doc: the gnulib snapshots are not maintained
17066         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
17068 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17070         timevar: add to lib_SOURCES
17071         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
17073 2018-10-07  Bruno Haible  <bruno@clisp.org>
17075         dirent: Update documentation.
17076         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
17078 2018-10-05  Bruno Haible  <bruno@clisp.org>
17080         strpbrk: Make it possible to namespace the defined symbol.
17081         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
17083 2018-10-05  Bruno Haible  <bruno@clisp.org>
17085         strcspn: Make it possible to namespace the defined symbol.
17086         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
17088 2018-10-05  Bruno Haible  <bruno@clisp.org>
17090         raise: Make it possible to namespace the defined symbol.
17091         * lib/raise.c (raise): Undefine only after the replacement function has
17092         been defined.
17093         (raise): Renamed from rpl_raise.
17094         (raise_nothrow): Move to the end of the compilation unit.
17096 2018-10-05  Bruno Haible  <bruno@clisp.org>
17098         memcmp: Make it possible to namespace the defined symbol.
17099         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
17101 2018-10-05  Bruno Haible  <bruno@clisp.org>
17103         explicit_bzero: Make it possible to namespace the defined symbol.
17104         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
17105         glibc.
17107 2018-10-05  Bruno Haible  <bruno@clisp.org>
17109         mkdir-p: Depend on 'mkdir'.
17110         * modules/mkdir-p (Depends-on): Add 'mkdir'.
17112 2018-10-05  Bruno Haible  <bruno@clisp.org>
17114         tempname: Depend on 'mkdir'.
17115         Reported by Maarten Bosmans <mkbosmans@gmail.com>
17116         at <https://savannah.gnu.org/bugs/?33379>.
17117         * modules/tempname (Depends-on): Add 'mkdir'.
17119 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
17121         timevar: rely on gnulib modules for time portability.
17122         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
17123         * m4/timevar.m4: Don't check for clock_t and struct tms,
17124         guaranteed by gnulib.
17125         * lib/timevar.h: Use extern "C" protection.
17126         Include <stdio.h> for FILE.
17127         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
17128         they are guaranteed by gnulib.
17129         Remove uses of clock as (now useless) fallback.
17131 2018-10-04  Bruno Haible  <bruno@clisp.org>
17133         sh-filename: New module.
17134         * m4/sh-filename.m4: New file.
17135         * modules/sh-filename: New file.
17136         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
17137         "/bin/sh".
17138         * tests/test-posix_spawn1.c (main): Likewise.
17139         * tests/test-posix_spawn2.c (main): Likewise.
17140         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
17141         is_envjavac_gcj43): Likewise.
17142         * lib/javaexec.c (execute_java_class): Likewise.
17143         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
17144         * modules/posix_spawnp-tests (Depends-on): Likewise.
17145         * modules/javacomp (Depends-on): Likewise.
17146         * modules/javaexec (Depends-on): Likewise.
17148 2018-10-04  Bruno Haible  <bruno@clisp.org>
17150         spawn-pipe tests: Avoid test failure on native Windows.
17151         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
17152         that fd 2 is closed.
17154 2018-10-04  Bruno Haible  <bruno@clisp.org>
17156         fcntl: Make it possible to namespace the defined symbol.
17157         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
17158         been defined.
17159         (fcntl): Renamed from rpl_fcntl.
17160         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
17161         from fcntl.
17162         (klibc_fcntl): Move to the end of the compilation unit.
17164 2018-10-02  Bruno Haible  <bruno@clisp.org>
17166         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
17167         * tests/test-vasnprintf.c (test_function): Change the test added on
17168         2018-09-23 to check only the 18 most significant digits.
17170         vasnprintf tests: Avoid test failure on Cygwin.
17171         * tests/test-vasnprintf.c (test_function): Change the test added on
17172         2018-09-23 to check only the 42 most significant digits.
17174 2018-10-01  Bruno Haible  <bruno@clisp.org>
17176         mkostemp, mkostemps: Update documentation.
17177         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
17178         * doc/glibc-functions/mkostemps.texi: Likewise.
17180 2018-10-01  Tom Tromey  <tom@tromey.com>
17182         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
17183         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
17184         on OS X.
17186 2018-09-30  Pádraig Brady  <P@draigBrady.com>
17188         hmac-*: refactor to remove repetitive code
17189         * lib/hmac.c: A new parameterized single implementation.
17190         * lib/hmac-md5.c: Define parameters and include implementation.
17191         * lib/hmac-sha1.c: Likewise.
17192         * lib/hmac-sha256.c: Likewise.
17193         * lib/hmac-sha512.c: Likewise.
17194         * modules/crypto/hmac-md5: Reference the new implementation file.
17195         * modules/crypto/hmac-sha1: Likewise.
17196         * modules/crypto/hmac-sha256: Likewise.
17197         * modules/crypto/hmac-sha512: Likewise.
17198         * tests/test-hmac-md5.c: Refactor common code to a single function.
17199         * tests/test-hmac-sha1.c: Likewise.
17200         * tests/test-hmac-sha256.c: Likewise.
17201         * tests/test-hmac-sha512.c: Likewise.
17203 2018-09-30  Zhang Qing  <zhangqingl@126.com>
17205         hmac-sha512: fix hash for keys > blocksize (128 bytes)
17206         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
17207         key length to that output by sha512, not the blocksize.
17208         Otherwise uninitialized data from the stack
17209         is used when computing the hash.
17210         * tests/test-hmac-sha512.c: Add a shortened key test case.
17211         Reported at https://github.com/coreutils/gnulib/pull/5
17213 2018-09-30  Bruno Haible  <bruno@clisp.org>
17215         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
17216         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
17217         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
17218         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
17219         'unsigned int' before comparison with an unsigned value.
17221 2018-09-30  Bruno Haible  <bruno@clisp.org>
17223         grantpt: Remove unnecessary dependency.
17224         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
17226 2018-09-30  Bruno Haible  <bruno@clisp.org>
17228         timevar: Small tweaks.
17229         * lib/timevar.h: Fix comments. Add parameter names to function
17230         declarations.
17231         * lib/timevar.c: Include timevar.h immediately after config.h.
17232         * lib/timevar.def: Fix comments.
17233         * modules/timevar (Maintainer): List Akim Demaille.
17235 2018-09-30  Bruno Haible  <bruno@clisp.org>
17237         timevar: Include documentation in gnulib manual.
17238         * doc/timevar.texi: Change node and section name to 'Profiling of
17239         program phases'.
17240         In the code snippets, tweak the #includes and use GNU coding style.
17241         * doc/gnulib.texi: Include timevar.texi.
17243 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
17245         timevar: import from Bison.
17246         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
17247         New files.
17248         * lib/timevar.def: New file.
17249         * doc/timevar.texi: New file.
17251 2018-09-26  Bruno Haible  <bruno@clisp.org>
17253         javacomp-script, javacomp: Add preliminary support for Java 12..17.
17254         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
17255         * lib/javacomp.c (default_target_version): Likewise.
17257 2018-09-26  Bruno Haible  <bruno@clisp.org>
17259         javacomp-script, javacomp: Add support for Java 11.
17260         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
17261         target-version 11.
17262         * lib/javaversion.h: Update comments.
17263         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17264         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17265         TARGET_VERSION_BOUND, target_version_index,
17266         corresponding_classfile_version): Accept source_version 11 and
17267         target_version 11.
17268         * lib/javacomp.h: Update comments accordingly.
17270 2018-09-23  Bruno Haible  <bruno@clisp.org>
17272         vasnprintf: Fix heap memory overrun bug.
17273         Reported by Ben Pfaff <blp@cs.stanford.edu> in
17274         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
17275         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
17276         memory.
17277         * tests/test-vasnprintf.c (test_function): Add another test.
17279 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17281         maint: mktime.c now shared with glibc
17282         * config/srclist.txt: intprops.h, timegm.c and mktime.c
17283         are now the same in Gnulib and glibc.
17285         mktime: fix _LIBC typo
17286         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
17288 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17290         dfa: optimization for state merge
17291         * lib/dfa.c (merge2): New function.
17292         (merge_nfa_state): Use it.
17294 2018-09-18  Jim Meyering  <meyering@fb.com>
17296         dfa: trivial comment fix: s/is/if/
17297         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
17299 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17301         dfa: use more-informative function name
17302         * lib/dfa.c (maybe_disable_superset_dfa):
17303         Rename from dfautf8noss.  Use change.
17305         dfa: tweak allocation performance
17306         * lib/dfa.c (merge_nfa_state, dfaoptimize):
17307         Prefer ptrdiff_t for indexes some more.
17308         Use char for flags, as it’s wide enough.
17309         Allocate queue and flags together, with one malloc call.
17310         No need to use xnmalloc since the multiplication and
17311         addition cannot overflow (it’s already been checked by
17312         earlier allocation).  Prefer memset to open-coding.
17314         dfa: prune states as we go
17315         * lib/dfa.c (prune): Remove.
17316         dfa: reorder enum for efficiency
17317         (merge_nfa_state): Prune as we go instead of at the end.
17318         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
17320         * lib/dfa.c (END): Now -1 again.  Reorder other elements
17321         of the enumeration to make it easier for GCC to generate
17322         efficient code by using fewer comparisons to check for
17323         ranges of values.
17324         (atom): Take advantage of the reordering.
17326 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17328         dfa: optimize alternation in NFA
17329         Even when similar states exist in alternation, the DFA treats them
17330         as separate items, which may complicate the transition in NFA and
17331         cause slowdown.  This change assembles the states into one.  For
17332         example, ab|ac is changed into a(b|c).  This change speeds-up
17333         matching for many branched patterns.  For example, grep speeds up
17334         more than 30× in:
17336           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
17337           time -p env LC_ALL=C grep -vf in in
17339         * lib/dfa.c (prune): New function.
17340         (merge_nfa_state): New function.  It merges similar NFA states.
17341         (dfaoptimize): New function.  It seeks merged and removed nodes.
17342         (dfaanalyze): Call new function.
17343         (dfautf8noss): Change name from dfaoptimize because of addition of new
17344         function.
17345         (dfacomp): Update caller.
17347         dfa: simplify initial state
17348         Simplifying the initial state enables easier optimization of the NFA.
17349         * lib/dfa.c (enum token): Add new element BEG.
17350         (prtok): Adjust due to adding element BEG.
17351         (dfaparse): Put BEG at a head of tokens.
17352         (state_index): Adjust due to adding element BEG.
17353         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
17354         build initial state.
17355         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
17357 2018-09-18  Bruno Haible  <bruno@clisp.org>
17359         file-has-acl: Fix test failure on Cygwin 2.9.
17360         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
17361         * lib/acl-internal.h: Likewise.
17362         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17363         * lib/acl-internal.c: Update comments regarding Cygwin.
17364         * lib/acl_entries.c: Likewise.
17365         * lib/file-has-acl.c: Likewise.
17366         (file_has_acl): For Cygwin, use a different way to determine whether
17367         the "default" ACL of a directory is nontrivial.
17368         * lib/get-permissions.c: Update comments regarding Cygwin.
17369         * lib/set-permissions.c: Likewise.
17371 2018-09-18  Bruno Haible  <bruno@clisp.org>
17373         stat-time tests: Fix test failure on Cygwin.
17374         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17376 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17378         doc: OS X 10.11 lacked ns time functions
17379         According to <https://github.com/zeromq/libzmq/issues/2175>,
17380         nanosecond-resolution timestamp functions were introduced
17381         in macOS 10.12, so document the last version (OS X 10.11)
17382         where they were absent.
17384         gettime: nanotime never existed
17385         Problem reported by Bruno Haible in:
17386         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17387         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17388         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17390 2018-09-18  Bruno Haible  <bruno@clisp.org>
17392         doc: Update statement about target platforms.
17393         Reported by Simon Sobisch.
17394         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17395         restrictions on MSVC versions.
17397 2018-09-18  Bruno Haible  <bruno@clisp.org>
17399         posix_spawn tests: Fix link error on 64-bit Cygwin.
17400         * tests/test-posix_spawn1.c (environ): Remove declaration.
17401         * tests/test-posix_spawn2.c (environ): Likewise.
17402         * tests/test-posix_spawn3.c (environ): Likewise.
17403         * tests/test-posix_spawn4.c (environ): Likewise.
17404         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17405         * modules/posix_spawnp-tests (Depends-on): Likewise.
17407 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17409         timespec: new function current_timespec
17410         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17411         and don’t worry about it failing on a CLOCK_REALTIME arg.
17412         POSIX requires it to succeed and I don’t know of any
17413         counterexamples where the fallbacks would work.
17414         (current_timespec): New function, taken from Emacs.  It is more
17415         convenient than gettime, and can help register allocation.
17416         * lib/timespec.h: Include arg-nonnull.h.
17417         (current_timespec): New declaration.
17418         (gettime, settime): Declare args to be nonnull.
17419         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17421 2018-09-16  Bruno Haible  <bruno@clisp.org>
17423         setlocale: Improve locale handling on macOS 10.12 or newer.
17424         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17425         gl_locale_name_canonicalize.
17426         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17427         and LC_MESSAGES.
17428         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17430 2018-09-16  Bruno Haible  <bruno@clisp.org>
17432         Update list of locale names with scripts on macOS.
17433         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17434         match Mac OS X 10.13 and recent glibc.
17436 2018-09-16  Bruno Haible  <bruno@clisp.org>
17438         gettext: Use newer macOS APIs when possible.
17439         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17440         CFLocaleCopyPreferredLanguages.
17442 2018-09-16  Bruno Haible  <bruno@clisp.org>
17444         localename: Revisit macOS specific code.
17445         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17446         Fix comments about Mac OS X versions.
17448 2018-09-15  Bruno Haible  <bruno@clisp.org>
17450         setlocale: Improve support for locales not supported by libc.
17451         Reported by Dapeng Gao <peter@dpgao.cc> at
17452         <https://savannah.gnu.org/bugs/?54479>.
17453         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17454         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17455         to be set is not supported by libc: Emit warnings instead of failing.
17457 2018-09-15  Bruno Haible  <bruno@clisp.org>
17459         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17460         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17461         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17462         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17464         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17465         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17466         * doc/glibc-functions/strcasestr.texi: Likewise.
17468 2018-09-14  Bruno Haible  <bruno@clisp.org>
17470         doc: Fix bottom of top-level page.
17471         Reported by Akim Demaille <akim.demaille@gmail.com> in
17472         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
17473         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
17474         mode.
17475         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
17476         accordingly.
17478 2018-09-12  Bruno Haible  <bruno@clisp.org>
17480         Add test case from a recent glibc bug.
17481         * tests/test-strstr.c (main): Add test of long needle.
17482         * tests/test-strcasestr.c (main): Likewise.
17483         * tests/test-c-strstr.c (main): Likewise.
17484         * tests/test-c-strcasestr.c (main): Likewise.
17485         * tests/test-memmem.c (main): Likewise.
17487 2018-09-12  Bruno Haible  <bruno@clisp.org>
17489         Apply Eric Blake's improvements from 2011-02-25 to more tests.
17490         * tests/test-c-strstr.c (main): Add the same tests here as well.
17492 2018-09-12  Bruno Haible  <bruno@clisp.org>
17494         Apply Jim Meyering's fix from 2015-01-11 to more tests.
17495         * tests/test-memmem.c (main): Free haystack.
17496         * tests/test-strcasestr.c (main): Likewise.
17497         * tests/test-c-strcasestr.c (main): Likewise.
17499 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17501         xstrtol: fix missing-TYPE_SIGNED typo
17502         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
17504 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17506         timespec: fix resolution confusion
17507         In normal usage, clock resolution is given in seconds, but the
17508         code was mistakenly using inverse seconds and calling it
17509         “resolution”.  Fix this, partly by renaming two identifiers.
17510         The old names will be kept for a bit, to ease transition.
17511         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
17512         New constants, replacing TIMESPEC_RESOLUTION and
17513         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
17514         All uses changed.
17516 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17518         mktime: simplify in prep for glibc merge
17519         * lib/mktime.c, lib/timegm.c [_LIBC]:
17520         Include mktime-internal.h (a small file just for glibc)
17521         instead of using a typedef.
17523 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17525         intprops: minor clarification of code
17526         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
17527         Use _GL_INT_CONVERT rather than reinventing it.
17529 2018-09-07  Bruno Haible  <bruno@clisp.org>
17531         Fix a comment.
17532         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
17534 2018-09-07  Bruno Haible  <bruno@clisp.org>
17536         posix_spawn_file_actions_addchdir: Add tests.
17537         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
17538         * tests/test-posix_spawn4.c: New file.
17539         * modules/posix_spawn_file_actions_addchdir-tests: New file.
17541 2018-09-07  Bruno Haible  <bruno@clisp.org>
17543         posix_spawn_file_actions_addchdir: New module.
17544         Suggested by Eric Blake in
17545         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
17546         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
17547         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
17548         union member 'chdir_action'.
17549         * lib/spawn_faction_addchdir.c: New file.
17550         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
17551         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
17552         HAVE_WORKING_POSIX_SPAWN.
17553         * lib/spawn_faction_adddup2.c: Likewise.
17554         * lib/spawn_faction_addopen.c: Likewise.
17555         * m4/posix_spawn_faction_addchdir.m4: New file.
17556         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
17557         'posix_spawn_file_actions_addchdir' is present and whether
17558         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
17559         instead of HAVE_WORKING_POSIX_SPAWN.
17560         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
17561         posix_spawn_file_actions_addchdir is declared.
17562         (gl_SPAWN_H_DEFAULTS): Initialize
17563         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17564         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17565         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17566         * modules/spawn (Makefile.am): Substitute
17567         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17568         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17569         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17570         * modules/posix_spawn_file_actions_addchdir: New file.
17571         * modules/posix_spawn_file_actions_addclose (Depends-on,
17572         configure.ac): Test also REPLACE_POSIX_SPAWN.
17573         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
17574         configure.ac): Likewise.
17575         * modules/posix_spawn_file_actions_addopen (Depends-on,
17576         configure.ac): Likewise.
17577         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
17578         signature.
17579         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17580         * doc/posix-functions/posix_spawnp.texi: Likewise.
17582 2018-09-06  Bruno Haible  <bruno@clisp.org>
17584         stddef: Override max_align_t on NetBSD 8.0/x86.
17585         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
17586         the value of __alignof__ (max_align_t).
17587         * doc/posix-headers/stddef.texi: Mention the issue.
17589 2018-09-06  Bruno Haible  <bruno@clisp.org>
17591         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
17592         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
17593         system fcntl.
17594         * doc/posix-functions/fcntl.texi: Document the issue.
17596 2018-09-06  Bruno Haible  <bruno@clisp.org>
17598         count-trailing-zeros tests: Rely on limits-h module.
17599         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
17600         definition.
17601         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
17603 2018-09-06  Bruno Haible  <bruno@clisp.org>
17605         count-leading-zeros tests: Rely on limits-h module.
17606         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
17607         definition.
17608         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17610 2018-09-06  Bruno Haible  <bruno@clisp.org>
17612         count-one-bits tests: Rely on limits-h module.
17613         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17614         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17616 2018-09-06  Bruno Haible  <bruno@clisp.org>
17618         xstrtoll: Rely on limits-h module.
17619         * lib/xstrtol.c: Don't include intprops.h.
17620         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17621         * modules/xstrtol (Depends-on): Remove 'intprops'.
17622         * modules/xstrtoll (Depends-on): Add 'limits-h'.
17624 2018-09-06  Bruno Haible  <bruno@clisp.org>
17626         strtoll, strtoull: Rely on limits-h module.
17627         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
17628         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17629         * modules/strtoll (Depends-on): Add limits-h.
17630         * modules/strtoull (Depends-on): Likewise.
17632 2018-09-06  Bruno Haible  <bruno@clisp.org>
17634         intprops tests: Fix compilation error with pre-C99 compiler.
17635         * tests/test-intprops.c (verify_stmt): New macro.
17636         (VERIFY, main): Use it.
17638 2018-09-06  Bruno Haible  <bruno@clisp.org>
17640         limits-h: Provide numerical limits macros.
17641         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
17642         IRIX and for GCC.
17643         (WORD_BIT, LONG_BIT): Define.
17644         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
17645         <limits.h> does not define LLONG_MAX or WORD_BIT.
17646         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
17647         TYPE_MAXIMUM): New macros, from intprops.h.
17648         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
17649         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
17650         provides.
17652 2018-09-05  Bruno Haible  <bruno@clisp.org>
17654         fcntl: Don't access nonexistent optional argument.
17655         Reported by Frank Busse <f.busse@imperial.ac.uk> in
17656         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
17657         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
17658         don't consume an argument. For actions that take an 'int' argument,
17659         consume an 'int' argument.
17661 2018-09-05  Eric Blake  <eblake@redhat.com>
17663         doc: mention environ pitfall
17664         * doc/posix-functions/environ.texi (environ): Assigning NULL to
17665         environ is a glibc extension.
17667 2018-09-03  Bruno Haible  <bruno@clisp.org>
17669         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
17670         Reported by Antoine Luong <antoine.luong@c-s.fr> in
17671         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
17672         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
17673         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
17674         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
17676 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17678         mktime: fix unlikely race+overflow bug
17679         Problem reported by Alexandre Oliva in:
17680         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17681         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17682         to avoid an unlikely race if the compiler delays a load and
17683         if this cascades into a signed integer overflow.
17685 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17687         mktime, timegm: simplify glibc time64_t
17688         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17689         Now long int, not time_t, since long int is the longstanding type
17690         for this in glibc and there is no need to change it even if time_t
17691         becomes 64 bits - even int would do, though this would be a change
17692         to the glibc generated code.  When this change is merged into
17693         glibc, it should simplify the time_t vs time64_t situation.
17695         mktime, timegm: simplify merge to glibc
17696         Move code around to make a merge to glibc easier to audit.
17697         This should not change behavior.
17698         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17699         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17700         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17701         simplify later conditionals; default the others to zero.  In uses
17702         of these conditionals, explicitly spell out how _LIBC affects
17703         things, so it’s easier to review from a glibc viewpoint.
17704         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17705         compartmentalize tzset issues.  Move system-dependent tzsettish
17706         code here from mktime.
17707         (mktime): Move tzsettish code to my_tzset, and move
17708         localtime_offset to within mktime so that it doesn’t
17709         need a separate ifdef.
17711 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17713         intprops: avoid evaluation of some expressions
17714         This makes EXPR_SIGNED (e) easier to use, as it no longer
17715         evaluates the expression E.  Formerly, E was required to be free
17716         of side effects.
17717         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17718         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17719         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17721 2018-08-23  Bruno Haible  <bruno@clisp.org>
17723         getcwd: Add cross-compilation guesses.
17724         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17725         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17726         Based on a patch by Paul Eggert.
17727         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17728         guesses for all GNU systems.
17730 2018-08-19  Bruno Haible  <bruno@clisp.org>
17732         glob-h: Formalize side effects from other modules.
17733         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17734         * m4/glob.m4 (gl_GLOB): Invoke it.
17736         fnmatch-h: Formalize side effects from other modules.
17737         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17738         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17740         limits-h: Formalize side effects from other modules.
17741         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17742         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17744 2018-08-19  Bruno Haible  <bruno@clisp.org>
17746         getpass: Move declaration to <unistd.h>.
17747         * lib/unistd.in.h (getpass): New declaration.
17748         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17749         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17750         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17751         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17752         On glibc systems, don't set REPLACE_GETPASS to 1.
17753         * modules/getpass (Depends-on): Add 'unistd'.
17754         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17755         (Include): Specify <unistd.h> instead of "getpass.h".
17756         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17757         (configure.ac): Sync with the configure.ac section of modules/getpass.
17758         (Include): Specify <unistd.h> instead of "getpass.h".
17759         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17760         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17761         REPLACE_GETPASS.
17762         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17763         REPLACE_GETPASS.
17764         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17765         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17766         and musl.
17767         * NEWS: Mention the change.
17769 2018-08-19  Bruno Haible  <bruno@clisp.org>
17771         glob: Fix over-optimization due to attribute __nonnull__.
17772         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17774 2018-08-19  Bruno Haible  <bruno@clisp.org>
17776         glob: Fix another compilation error when glob.h is not replaced.
17777         Reported by Reuben Thomas <rrt@sc3d.org> in
17778         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17779         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17780         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17782 2018-08-18  Bruno Haible  <bruno@clisp.org>
17784         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17785         Reported by Reuben Thomas <rrt@sc3d.org> in
17786         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17787         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17788         in config.h.
17790 2018-08-18  Bruno Haible  <bruno@clisp.org>
17792         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17793         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17794         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17795         Solution proposed by Eli Zaretskii.
17796         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17797         * lib/gettimeofday.c (GetProcAddress): Likewise.
17798         * lib/link.c (GetProcAddress): Likewise.
17799         * lib/physmem.c (GetProcAddress): Likewise.
17800         * lib/poll.c (GetProcAddress): Likewise.
17801         * lib/select.c (GetProcAddress): Likewise.
17802         * lib/stat-w32.c (GetProcAddress): Likewise.
17804 2018-08-18  Bruno Haible  <bruno@clisp.org>
17806         glob: Fix another compilation error when glob.h is not replaced.
17807         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17808         * lib/globfree.c: Include <libc-config.h>.
17810 2018-08-18  Bruno Haible  <bruno@clisp.org>
17812         glob: Fix compilation error when glob.h is not replaced.
17813         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17814         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17815         * lib/glob_pattern_p.c: Include <libc-config.h>.
17816         * modules/glob (Depends-on): Add libc-config.
17818 2018-08-18  Bruno Haible  <bruno@clisp.org>
17820         scratch_buffer: Add tests.
17821         * tests/test-scratch-buffer.c: New file.
17822         * modules/scratch_buffer-tests: New file.
17824 2018-08-18  Bruno Haible  <bruno@clisp.org>
17826         scratch_buffer: Fix include file.
17827         Reported by Reuben Thomas <rrt@sc3d.org> in
17828         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17829         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17830         double-inclusion guard.
17832 2018-08-18  Bruno Haible  <bruno@clisp.org>
17834         glob-h: Revert Paul Eggert's revert.
17835         * m4/glob_h.m4: Revert to previous state.
17836         * modules/glob-h: Likewise.
17838 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17840         glob-h: always build glob.h
17841         This works around a problem reported by Reuben Thomas in:
17842         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17843         This workaround always builds glob.h, even on platforms that
17844         do not need it; perhaps this could be improved someday.
17845         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17846         is always created now.
17847         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17849 2018-08-13  Bruno Haible  <bruno@clisp.org>
17851         monetary: Simplify m4 code.
17852         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17853         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17855 2018-08-13  Bruno Haible  <bruno@clisp.org>
17857         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17858         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17859         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17860         and by Paul J. Lucas <paul@lucasmail.org> in
17861         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17862         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17864 2018-08-11  Bruno Haible  <bruno@clisp.org>
17866         setlocale: Trivial simplification.
17867         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17869 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17871         verify: port 'assume' to traditional tools
17872         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17873         and other tools that use /*NOTREACHED*/ comments.
17875 2018-08-10  Bruno Haible  <bruno@clisp.org>
17877         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17878         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17879         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17880         'fnmatch-gnu' is in use.
17882 2018-08-07  Bruno Haible  <bruno@clisp.org>
17884         glob-h: Add tests.
17885         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17886         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17887         tests/test-glob-h.c.
17888         * modules/glob-h-tests: New file.
17889         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17890         conditions.
17891         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17892         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17894 2018-08-07  Bruno Haible  <bruno@clisp.org>
17896         glob-h: New module.
17897         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17898         replacements.
17899         * lib/glob.c: Include <config.h>.
17900         * m4/glob_h.m4: New file.
17901         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17902         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17903         REPLACE_GLOB_PATTERN_P as appropriate.
17904         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17905         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17906         * modules/glob-h: New file.
17907         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17908         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17909         lstat, sys_stat. Change conditions.
17910         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17911         REPLACE_GLOB_PATTERN_P. Set module indicator.
17912         (Makefile.am): Remove code that is moved to glob-h.
17913         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17914         * modules/posixcheck (Depends-on): Add glob-h.
17916 2018-08-06  Bruno Haible  <bruno@clisp.org>
17918         Force generation of substitute .h file when C++ support is enabled.
17919         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17920         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17921         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17922         FNMATCH_H to non-empty.
17923         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17924         ICONV_H to non-empty.
17925         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17926         MONETARY_H to non-empty.
17927         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17928         non-empty.
17930 2018-08-06  Bruno Haible  <bruno@clisp.org>
17932         fnmatch-h: Fix test compilation error on mingw (regression from today).
17933         * lib/fnmatch.in.h: Fix conditions.
17935 2018-08-06  Bruno Haible  <bruno@clisp.org>
17937         sys_resource: Relicense under LGPLv2+.
17938         John Malmberg's approval is in
17939         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17940         * modules/sys_resource (License): Change to LGPLv2+.
17942 2018-08-06  Bruno Haible  <bruno@clisp.org>
17944         fnmatch-h: Add tests.
17945         * tests/test-fnmatch-h.c: New file.
17946         * modules/fnmatch-h-tests: New file.
17947         * tests/test-fnmatch-h-c++.cc: New file.
17948         * modules/fnmatch-h-c++-tests: New file.
17950 2018-08-06  Bruno Haible  <bruno@clisp.org>
17952         fnmatch-h: New module.
17953         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17954         replacements.
17955         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17956         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17957         'posixcheck' warning.
17958         * m4/fnmatch_h.m4: New file.
17959         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17960         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17961         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17962         as appropriate.
17963         * modules/fnmatch-h: New file.
17964         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17965         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17966         conditions.
17967         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17968         indicator.
17969         (Makefile.am): Remove code that is moved to fnmatch-h.
17970         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17971         REPLACE_FNMATCH.
17972         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17973         * modules/posixcheck (Depends-on): Add fnmatch-h.
17975 2018-08-06  Bruno Haible  <bruno@clisp.org>
17977         Enable more C++ tests.
17978         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17979         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17980         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17981         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17982         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17984 2018-08-06  Bruno Haible  <bruno@clisp.org>
17986         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17987         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17988         getopt.h.
17989         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17991 2018-08-05  Bruno Haible  <bruno@clisp.org>
17993         utime-h: Generate header file when module 'posixcheck' is in use.
17994         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17995         UTIME_H to non-empty.
17997 2018-08-05  Bruno Haible  <bruno@clisp.org>
17999         monetary: Generate header file when module 'posixcheck' is in use.
18000         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
18001         use, set MONETARY_H to non-empty.
18003 2018-08-05  Bruno Haible  <bruno@clisp.org>
18005         iconv-h: Generate header file when module 'posixcheck' is in use.
18006         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
18007         set ICONV_H to non-empty.
18009 2018-08-05  Bruno Haible  <bruno@clisp.org>
18011         Optimize the "checking whether ... is declared without a macro" checks.
18012         Suggested by Paul Eggert in
18013         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18014         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
18015         Gnulib module 'posixcheck' is not in use.
18017 2018-08-05  Bruno Haible  <bruno@clisp.org>
18019         iconv-h: Enable 'posixcheck' warnings.
18020         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
18021         iconv_open.
18022         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
18024 2018-08-05  Bruno Haible  <bruno@clisp.org>
18026         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
18027         * m4/extern-inline.m4: Add more comments.
18028         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
18029         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
18030         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
18032 2018-08-04  Bruno Haible  <bruno@clisp.org>
18034         New module 'posixcheck'.
18035         * modules/posixcheck: New file.
18036         * m4/posixcheck.m4: New file.
18037         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
18038         (Which modules?): Reference it.
18040 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
18042         dfa: fix memory leak
18043         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
18045 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18047         ieee754-h: new module
18048         It looks like Emacs can use this for some NaN processing.
18049         Emacs uses it only on double NaNs so it should be safe.
18050         * MODULES.html.sh (func_all_modules): Add ieee754-h.
18051         * config/srclist.txt: Mention ieee754.h in a comment.
18052         * doc/glibc-headers/ieee754.texi (ieee754.h):
18053         Gnulib now has a substitute that should work
18054         except for long double and for non-IEEE platforms.
18055         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
18056         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
18058 2018-07-27  Bruno Haible  <bruno@clisp.org>
18060         iswcntrl: Mention minor problem on macOS.
18061         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
18063 2018-07-26  Colin Watson  <cjwatson@debian.org>
18065         bootstrap, gnulib-tool: fix translations rsync
18066         Previously, we created files such as $pobase/Makefile.in.in and then the
18067         subsequent rsync would immediately delete them.
18068         * build-aux/bootstrap (po_download_command_format): Avoid deleting
18069         non-.po files in target directory when rsyncing translations.
18070         * gnulib-tool (func_import): Likewise.
18071         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18073 2018-07-25  Jim Meyering  <meyering@fb.com>
18075         bootstrap: reinstate definition fo gnulib_mk.
18076         That variable is used at least by cppi.
18077         * build-aux/bootstrap (gnulib_mk): Restore definition.
18078         This reverts the deletion from v0.1-1844-gc66dba9ba.
18080 2018-07-23  Bruno Haible  <bruno@clisp.org>
18082         doc: For module names, use texinfo markup @code{} or @samp{}.
18083         * doc/alloca.texi: Mark gnulib module names with @code.
18084         * doc/alloca-opt.texi: Likewise.
18085         * doc/quote.texi: Likewise.
18086         * doc/posix-functions/freopen.texi: Likewise.
18087         * doc/posix-functions/open.texi: Likewise.
18088         * doc/posix-functions/readlink.texi: Likewise.
18089         * doc/posix-functions/readlinkat.texi: Likewise.
18090         * doc/posix-functions/stdout.texi: Likewise.
18091         * doc/posix-functions/stderr.texi: Likewise.
18092         * doc/posix-functions/unlink.texi: Likewise.
18093         * doc/posix-functions/unlinkat.texi: Likewise.
18094         * doc/posix-functions/utime.texi: Likewise.
18095         * doc/posix-functions/utimensat.texi: Likewise.
18096         * doc/posix-functions/utimes.texi: Likewise.
18097         * doc/posix-headers/stdint.texi: Likewise.
18098         * doc/glibc-functions/futimesat.texi: Likewise.
18099         * doc/glibc-functions/lutimes.texi: Likewise.
18100         * doc/glibc-functions/memmem.texi: Likewise.
18102 2018-07-23  Werner LEMBERG  <wl@gnu.org>
18104         doc: Avoid some overfull lines in the TeX output.
18105         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
18106         @example.
18107         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
18108         newline before the long URL.
18109         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
18110         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
18111         Add line breaks in code snippets.
18113 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18115         hard-locale: simplify by removing hard-locale.m4
18116         * m4/hard-locale.m4: Remove.
18117         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
18118         (configure.ac): Do not call gl_HARD_LOCALE.
18120         gnulib-tool: limit line length for git send-email
18121         * gnulib-tool (func_import): Break actioncmd log line
18122         into multiple lines.
18124 2018-07-16  Bruno Haible  <bruno@clisp.org>
18126         ffs: Ensure declaration on mingw.
18127         Reported by Daniel P. Berrangé <berrange@redhat.com>
18128         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
18129         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
18130         also declared.
18132 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18134         regex-tests: add dependency
18135         * modules/regex-tests (Depends-on): Add gettext-h.
18136         This is needed given the recent changes to regex,
18137         which no longer depends on gettext-h.
18139 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18141         regex: now in sync with glibc
18142         * config/srclist.txt: Gnulib and glibc regex code
18143         are synchronized again.
18145 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18147         renameatu: rename from renameat2
18148         It's looking like Glibc will add a renameat2 function
18149         that is incompatible with Gnulib renameat2; see:
18150         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
18151         To help avoid future confusion, rename renameat2 to something else.
18152         Use the name 'renameatu', as the Gnulib function is close to the
18153         Glibc function.  Perhaps someday there will also be a renameat2
18154         Gnulib module, which mimicks the future glibc renameat2, but that
18155         can wait as nobody seems to need such a module now.
18156         * NEWS: Mention this.
18157         * lib/renameatu.c: Rename from lib/renameat2.c.
18158         * lib/renameatu.h: Rename from lib/renameat2.h.
18159         * modules/renameatu: Rename from modules/renameat2.
18160         * modules/renameatu-tests: Rename from modules/renameat2-tests.
18161         All uses of "renameat2" in identifiers or file name
18162         changed to "renameatu", except for two instances in
18163         lib/renameatu.c that deal with the Linux kernel's
18164         renameat2 syscall.
18166 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18168         gnulib-tool: minor tweaks for --gnu-make
18169         * gnulib-tool: Do not allow --gnu-make in test modes,
18170         since they all require automake.
18171         (func_emit_lib_Makefile_am): Don’t emit automake comment
18172         if --gnu-make.
18174         regex: work around conditional-dependencies glitch
18175         * modules/regex (Depends-on): Add langinfo.
18176         Without this change, I had problems building an experimental
18177         version of GNU Emacs.  The symptom of the bug was a message
18178         ‘./configure: line 12726: test: =: unary operator expected’.
18179         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
18180         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
18181         was unset.  Although gl_FUNC_NL_LANGINFO has
18182         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
18183         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
18184         --conditional-dependencies sometimes arranges for the
18185         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
18186         code.  Since the regex code includes <langinfo.h> it should be
18187         depending on the langinfo module anyway, and this happens to work
18188         around the bug, so install that as a workaround for now.  To
18189         reproduce the original problem, run the following shell script on
18190         the version of Gnulib just before this patch was installed.
18191                 rm -fr foo
18192                 mkdir foo
18193                 cat >foo/configure.ac <<'EOF'
18194                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18195                 gl_EARLY
18196                 gl_INIT
18197                 AC_OUTPUT
18198                 EOF
18199                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
18200                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
18201                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
18202                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
18203                 cd foo
18204                 aclocal -I m4
18205                 autoconf
18206                 ./configure --with-included-regex
18208 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18210         wchar: fix bug when checking for ‘inline’
18211         I discovered this when looking into using the regex module
18212         with Emacs.
18213         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
18214         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
18215         conftest1.c and conftest2.c but these files were not created.
18216         As far as I can see, this check never worked and nobody reported
18217         it until now, which is a bit worrisome.
18219 2018-06-30  Jim Meyering  <meyering@fb.com>
18221         bootstrap: s/--option val/--option=val/
18222         * build-aux/bootstrap (gnulib_tool_options): Change the
18223         spelling of "--option val" pairs to "--option=val", for
18224         aesthetics, and also so that this file no longer triggers
18225         a common help2man syntax-check warning when copied into
18226         projects like grep, gzip, etc.
18228 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18230         manywarnings: omit -Wswitch-default
18231         This should make things more consistent, as we already ignore
18232         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
18233         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
18234         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
18235         Add -Wswitch-default.
18236         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
18237         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18238         Remove -Wswitch-default.
18240         regex: revert most trimming
18241         Problems reported by Bruno Haible in:
18242         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
18243         * modules/regex (Depends-on): Add lock, memcmp, memmove,
18244         and wctype back in.  lock because regex users shouldn’t
18245         need to know that regex needs locking, and the rest because
18246         gnulib-tool should ordinarily ignore them anyway.
18248 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18250         regex: trim module dependencies
18251         * modules/regex (Depends-on): Remove gettext-h and lock,
18252         since the regex code should work OK without these modules,
18253         and Emacs uses it that way.  Also remove memcmp, memmove,
18254         and wctype, as these modules are obsolete and should not be
18255         needed any more.
18257 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
18259         regex: glibc does not use intprops.h
18260         Maybe we can talk glibc into using intprops.h someday, but
18261         now doesn’t seem to be a good time.
18262         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
18263         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
18264         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
18266 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
18268         regex: port to recently proposed glibc regex merge
18269         This patch is inspired by Adhemerval Zanella's recent proposal
18270         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
18271         to merge glibc and Gnulib regex.  It aims to simplify the merge on
18272         the glibc side, without keeping Gnulib portable.
18273         * lib/regex.h: Fix a problem with glibc installed-header checking,
18274         as follows:
18275         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
18276         (_Restrict_arr_): Prefer __restrict_arr if defined,
18277         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
18278         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
18279         (build_wcs_upper_buffer, build_upper_buffer)
18280         (re_string_translate_buffer, re_string_context_at):
18281         Move decls here from lib/regex_internal.h, for glibc internal tests.
18282         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18283         glibc BZ #18496.
18284         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
18285         -Wunused-value.
18286         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
18287         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18288         (bitset_mask): Now static inline, and without any __attribute__
18289         ((unused)) decoration, for glibc internal tests.
18291 2018-06-25  Bruno Haible  <bruno@clisp.org>
18293         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
18294         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
18295         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
18296         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
18297         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
18298         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
18299         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
18300         / -lthread / -lpth does not get optimized away by a preceding
18301         --as-needed option.
18303 2018-06-25  Bruno Haible  <bruno@clisp.org>
18305         Continue to use spaces for indentation, not tabs.
18306         * MODULES.html.sh: Untabify.
18307         * doc/regex.texi: Likewise.
18308         * lib/acl-internal.c: Likewise.
18309         * lib/dfa.c: Likewise.
18310         * lib/exclude.c: Likewise.
18311         * lib/exclude.h: Likewise.
18312         * lib/get-permissions.c: Likewise.
18313         * lib/gettimeofday.c: Likewise.
18314         * lib/parse-datetime.y: Likewise.
18315         * lib/pselect.c: Likewise.
18316         * lib/set-permissions.c: Likewise.
18317         * lib/time.in.h: Likewise.
18318         * m4/canonicalize.m4: Likewise.
18319         * m4/gc.m4: Likewise.
18320         * m4/gnulib-common.m4: Likewise.
18321         * m4/pthread_sigmask.m4: Likewise.
18322         * m4/vararrays.m4: Likewise.
18323         * tests/test-digest.h: Likewise.
18324         * tests/test-fcntl-h.c: Likewise.
18325         * tests/test-timespec.c: Likewise.
18326         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
18328 2018-06-25  Bruno Haible  <bruno@clisp.org>
18330         manywarnings: Don't enable -Wjump-misses-init warnings by default.
18331         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
18332         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
18333         -Wjump-misses-init.
18335 2018-06-25  Jim Meyering  <meyering@fb.com>
18337         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
18338         * lib/acl-internal.h (free_permission_context): Remove that
18339         attribute directive.  Otherwise, it would provoke this from GCC 9:
18340         lib/acl-internal.h:300:3: error: 'const' attribute on function \
18341           returning 'void' [-Werror=attributes]
18343 2018-06-24  Jim Meyering  <meyering@fb.com>
18345         parse-datetime: accommodate gcc-4.8.5
18346         Bruno Haible reported the build failure in
18347         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
18348         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
18349         on declaration of new local.
18351 2018-06-24  Bruno Haible  <bruno@clisp.org>
18353         af_alg: Fail in continuable manner on Linux/powerpc64le.
18354         Reported by Assaf Gordon <assafgordon@gmail.com>
18355         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
18356         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
18357         byte send() as the first round.
18359 2018-06-24  Bruno Haible  <bruno@clisp.org>
18361         af_alg: Fix state of stream after sendfile() succeeds.
18362         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18363         the stream is correctly positioned afterwards.
18364         * modules/crypto/af_alg (Depends-on): Add fflush.
18365         * tests/test-digest.h (test_digest_on_files): Verify that after the
18366         operation the stream is positioned at end of file.
18368 2018-06-24  Jim Meyering  <meyering@fb.com>
18370         canon-host: take GCC9's advice rather than ignoring warning
18371         Pádraig Brady suggested not to ignore this GCC9 advice.
18372         * lib/canon-host.c: Undo preceding change.
18373         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18375         parse-datetime.y: avoid spurious GCC 9 warning
18376         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18377         a function local prior to the first "goto fail".  The prior use would
18378         evoke this:
18379         parse-datetime.y: In function 'parse_datetime2':
18380         parse-datetime.y:1791:19: error: jump skips variable initialization \
18381           [-Werror=jump-misses-init]
18382         parse-datetime.y:2385:2: note: label 'fail' defined here
18383         parse-datetime.y:188:43: note: '({anonymous})' declared here
18384         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18386         canon-host.c: avoid spurious GCC 9 warning
18387         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18389         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18390         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18391         * m4/manywarnings.m4: Remove them.
18392         Otherwise, building coreutils, I would see this:
18393         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18394         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18395         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18396           which is also used by default
18397         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18399 2018-06-24  Bruno Haible  <bruno@clisp.org>
18401         af_alg tests: Add another test.
18402         * tests/test-digest.h (test_digest_on_files): Also check a large file
18403         with a skipped header.
18404         * tests/test-md5.c: Include macros.h.
18405         * tests/test-sha1.c: Likewise.
18406         * tests/test-sha256.c: Likewise.
18407         * tests/test-sha512.c: Likewise.
18408         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18409         * modules/crypto/sha1-tests (Files): Likewise.
18410         * modules/crypto/sha256-tests (Files): Likewise.
18411         * modules/crypto/sha512-tests (Files): Likewise.
18413 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18415         maint: clarify comments about sticky EOF
18416         * lib/af_alg.c: Be more direct that we can't
18417         assume stickiness of EOF for portability reasons.
18418         * lib/md5.c: Clarify that this isn't just a glibc issue.
18419         * lib/sha1.c: Likewise.
18420         * lib/sha256.c: Likewise.
18421         * lib/sha512.c: Likewise.
18423 2018-06-24  Bruno Haible  <bruno@clisp.org>
18425         af_alg: Comment and style improvements.
18426         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18427         (afalg_buffer, afalg_stream): Improve comments.
18429 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18431         af_alg: disable kernel hash functions by default
18432         All the kernel routines were seen to be significantly slower
18433         with these relatively recent components on an i3-2310M system:
18434           kernel-4.10.6-200.fc25.x86_64
18435           openssl-1.0.2m-1.fc25.x86_64
18436         sha1 was nearly twice as slow in the kernel for example.
18437         Further considerations why this should not be the default, at:
18438         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18440         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18441         * m4/gl-openssl.m4: Tweak accordingly.
18443 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18445         af_alg: avoid hangs when reading from streams
18446         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18447         and thus avoid doing a fread() when feof() is set.
18448         * lib/md5.c: Ensure feof() is called before fread().
18449         * lib/sha1.c: Likewise.
18450         * lib/sha256.c: Likewise.
18451         * lib/sha512.c: Likewise.
18453 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18455         af_alg: fix error handling when hash not returned
18456         * lib/af_alg.c (afalg_stream): Handle the case where we've
18457         successfully written data to the kernel in the read/write loop,
18458         but the kernel doesn't respond with the hash.
18460 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18462         libc-config: merge from glibc
18463         * lib/cdefs.h (__inline, __restrict):
18464         Copy from current glibc.  This fixes glibc bug 17721,
18465         which Gnulib had already fixed in a different way.
18466         (__nonnull): Lessen the distance from glibc by using the
18467         glibc definition inside an ‘#ifndef __nonnull’.
18468         (__attribute_nonstring__): New macro, copied from
18469         current glibc.
18470         * lib/libc-config.h (__attribute_nonstring__): New undef.
18471         (__restrict): Remove; workaround no longer needed.
18472         Keep the __inline workaround, though, as it uses HAVE___INLINE to
18473         support more compilers than the glibc __inline can.
18475 2018-06-24  Bruno Haible  <bruno@clisp.org>
18477         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
18478         * lib/mbrtowc.c (enc_t): New enum type.
18479         (locale_enc, locale_enc_cached): New functions.
18480         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
18481         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
18482         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
18483         instead.
18484         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
18485         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
18486         * modules/wcwidth (configure.ac): Invoke it.
18488 2018-06-24  Bruno Haible  <bruno@clisp.org>
18490         wchar-single: Fix test failure in wcwidth tests.
18491         * tests/test-wcwidth.c (main): If the wchar-single module is present,
18492         skip the tests in the C locale.
18494 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18496         crypto: mention --without-linux-crypto in --with-openssl --help
18497         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
18498         routines take precedence in --with-openssl help output.
18500 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18502         wchar-single: a new module to enable optimizations in wchar replacements
18503         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
18504         GNULIB_WCHAR_SINGLE is enabled.
18505         * lib/wcwidth.c (wcwidth): Likewise.
18507 2018-06-23  Bruno Haible  <bruno@clisp.org>
18509         libc-config: Fix conflict with FreeBSD include files.
18510         * lib/cdefs.h (__nonnull): Remove definition.
18511         * lib/libc-config.h (__nonnull): Remove undefinition.
18513 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18515         random_r: do not crash if state is unaligned
18516         Problem reported by Bruce Korb in:
18517         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
18518         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
18519         with 'cc -O2 -xmemalign=8s'.
18520         * lib/random_r.c: Include string.h, for memcpy.
18521         (get_int32, set_int32): New functions.
18522         (__srandom_r, __initstate_r, __setstate_r, __random_r):
18523         Use them to avoid assumption that state pointer is aligned.
18524         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
18525         * tests/test-random_r.c (test_failed): New function.
18526         (main): Use it, to test for alignment bugs.
18528         random_r: omit unnecessary include
18529         * lib/random_r.c: Do not include limits.h.
18531         random, random_r: merge from glibc
18532         * lib/random.c, lib/random_r.c:
18533         Include libc-config.h if !_LIBC, not config.h unilaterally.
18534         * lib/random.c:
18535         Do not include stdint.h or time.h; not needed.
18536         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
18537         (unsafe_state): Rename from generator.  All uses changed.
18538         Use C99-style initializers.
18539         (__random, __srandom, __initstate, __setstate): Rename from
18540         non-underscored version, but define it to non-underscored version
18541         on Gnulib.  Add a lock.
18542         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
18543         Likewise.
18544         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
18545         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
18546         (__srandom_r): Use int32_t instead of long int where int32_t will do.
18547         (__random_r): Use uint32 to fix glibc bug 17343.
18548         * modules/random, modules/random_r (Depends-on): Add libc-config.
18549         Depend on stdint only if $HAVE_RANDOM = 0.
18551 2018-06-19  Jim Meyering  <meyering@fb.com>
18553         README-release: also run any check-very-expensive tests
18554         * top/README-release: Adjust instructions so they run the
18555         check-very-expensive tests when there is such a target.
18557 2018-06-18  Bruno Haible  <bruno@clisp.org>
18559         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
18560         * m4/pthread_rwlock_rdlock.m4: Add comment.
18561         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
18562         are reader-preferring in glibc.
18563         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
18564         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
18566 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18568         crypto: use byteswap
18569         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
18570         * lib/sm3.c: Include <byteswap.h>.
18571         (SWAP): Use its macros rather than reinventing the wheel.
18572         * modules/crypto/md4, modules/crypto/md5-buffer:
18573         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
18574         * modules/crypto/sha512-buffer, modules/crypto/sm3:
18575         (Depends-on): Add byteswap.
18577 2018-06-17  Pádraig Brady  <P@draigBrady.com>
18579         gendocs.sh: fix support for legacy --texi2html
18580         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
18581         to the default makeinfo invocation.
18582         Reported by Bruce Korb
18584 2018-06-17  Bruno Haible  <bruno@clisp.org>
18586         gettext po infrastructure: Update from current gettext git.
18587         Reported by Akim Demaille <akim@lrde.epita.fr>.
18588         * build-aux/po/Makefile.in.in: Update from current gettext git.
18589         * build-aux/po/remove-potcdate.sin: Likewise.
18590         * config/srclist.txt: Temporarily disable sync for these files.
18592 2018-06-17  Bruno Haible  <bruno@clisp.org>
18594         getloadavg: Return 0 on Windows without Cygwin.
18595         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
18597 2018-06-17  Paul Smith  <psmith@gnu.org>
18599         getloadavg: Allow building on Windows without Cygwin
18600         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
18601         * m4/getloadavg.m4: Check for unistd.h.
18603 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
18605         Port crypto/af_alg to GCC 4.8.4
18606         Problem reported by Peter Simons in:
18607         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
18608         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18610 2018-05-27  Colin Watson  <cjwatson@debian.org>
18612         bootstrap: document source fetching in --help
18613         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18615 2018-04-09  Colin Watson  <cjwatson@debian.org>
18617         bootstrap: allow non-submodule control of gnulib
18618         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
18619         bootstrap.conf when fetching gnulib using "git clone" or via
18620         GNULIB_SRCDIR.
18622 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18624         crypto: omit stream ops Emacs doesn’t need
18625         * lib/md5.c (md5_stream):
18626         * lib/sha1.c (sha1_stream):
18627         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
18628         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18629         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
18630         defined.  Emacs needs this, as it does not use the stream
18631         operations and doesn’t need all the af_alg stuff we’ve recently
18632         added.  Perhaps a similar change is needed to the other crypto
18633         modules, but this patch changes only those needed for Emacs.
18634         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
18635         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
18636         New modules, used by Emacs.
18637         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18638         * modules/crypto/sha512: Rewrite to depend on the new modules.
18640 2018-05-20  Pádraig Brady  <P@draigBrady.com>
18642         fts: avoid a memory leak edge case
18643         * lib/fts.c (fts_open): Set an appropriate fts_level
18644         so that an immediate fts_close() will free the allocation.
18645         * tests/test-fts.c (fts_dealloc): Add a test case which
18646         will trigger under valgrind or address sanitizer.
18647         Fixes https://bugs.gnu.org/31439
18649 2018-05-20  Bruno Haible  <bruno@clisp.org>
18651         wcwidth tests: Fix link error.
18652         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
18653         $(LIBUNISTRING).
18655 2018-05-20  Bruno Haible  <bruno@clisp.org>
18657         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
18658         * modules/regex (Files): Add m4/glibc21.m4.
18660 2018-05-20  Bruno Haible  <bruno@clisp.org>
18662         localcharset: Optimize.
18663         * lib/localcharset.c (alias_table): Comment out no-op mappings for
18664         platforms where these don't matter. This reduces the table size,
18665         which in turn reduces the lookup time.
18667 2018-05-19  Bruno Haible  <bruno@clisp.org>
18669         localcharset: Map the locale encodings found in newer OSes.
18670         * lib/localcharset.c (alias_table): Add mapping for locale encodings
18671         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
18672         IRIX 6.5, Minix 3.3.
18673         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
18675 2018-05-19  Bruno Haible  <bruno@clisp.org>
18677         localcharset: Move mapping tables into the code. Use a binary search.
18678         * lib/localcharset.h: Document the GNU canonical names for character
18679         encodings here.
18680         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18681         relocatable.h, configmake.h.
18682         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18683         macros.
18684         (charset_aliases): Remove variable.
18685         (get_charset_aliases): Remove function.
18686         (struct table_entry): New type.
18687         (alias_table, locale_table): New constants.
18688         (locale_charset): Use the alias_table or locale_table to get the
18689         canonicalized encoding name.
18690         * lib/config.charset: Remove file.
18691         * lib/ref-add.sin: Remove file.
18692         * lib/ref-del.sin: Remove file.
18693         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18694         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18695         * modules/localcharset (Notice): Remove.
18696         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18697         glibc21.m4.
18698         (Depends-on): Remove configmake.
18699         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18700         (Makefile.am): Simplify.
18701         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18703 2018-05-19  Bruno Haible  <bruno@clisp.org>
18705         localcharset: Add a manual test.
18706         * tests/test-localcharset.c: New file.
18707         * modules/localcharset-tests: New file.
18709 2018-05-19  Bruno Haible  <bruno@clisp.org>
18711         localcharset: Remove support for obsolete platforms.
18712         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18713         Mac OS X 10.2. Comment out dubious entry for Solaris.
18715 2018-05-19  Jim Meyering  <meyering@fb.com>
18717         gnupload: adjust comment
18718         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18719         more likely we'll remove the just-added code in a year or two.
18721 2018-05-19  Bruno Haible  <bruno@clisp.org>
18723         gnupload: Fix "gpg-agent is not available in this session" error.
18724         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18726 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18728         crypto/af_alg: fix --help
18729         * m4/af_alg.m4: Avoid spurious newline in --help output.
18731 2018-05-13  Bruno Haible  <bruno@clisp.org>
18733         nl_langinfo: Fix compilation error on Android.
18734         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18735         INT_CURR_SYMBOL, etc. only if these items are defined.
18737 2018-05-13  Bruno Haible  <bruno@clisp.org>
18739         truncate: Fix compilation error on Android.
18740         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18741         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18742         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18743         HAVE_TRUNCATE.
18744         * modules/truncate: Likewise.
18745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18746         not HAVE_TRUNCATE.
18747         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18748         HAVE_TRUNCATE.
18749         * doc/posix-functions/truncate.texi: Mention the issue.
18751 2018-05-13  Bruno Haible  <bruno@clisp.org>
18753         pthread: Fix compilation error on Android.
18754         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18755         recursive inclusion of this file.
18757 2018-05-13  Bruno Haible  <bruno@clisp.org>
18759         posix_spawn: Fix compilation error on Android.
18760         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18761         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18762         (posix_spawn_file_actions_t): Consider also the case
18763         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18765 2018-05-13  Bruno Haible  <bruno@clisp.org>
18767         tsearch: Move from K&R C to ANSI C.
18768         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18770 2018-05-13  Bruno Haible  <bruno@clisp.org>
18772         tsearch: Fix compilation error on Android.
18773         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18774         is 0.
18775         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18776         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18777         GNULIB_defined_tsearch is true.
18778         (twalk): Define only if GNULIB_defined_twalk is true.
18779         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18780         is 0.
18781         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18782         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18783         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18785 2018-05-13  Bruno Haible  <bruno@clisp.org>
18787         imaxdiv: Fix compilation error on Android.
18788         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18789         is not defined.
18790         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18791         HAVE_DECL_IMAXDIV, is 0.
18792         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18793         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18795 2018-05-13  Bruno Haible  <bruno@clisp.org>
18797         Support selective inclusion mechanism of recent mingw.org header files.
18798         Reported by Eli Zaretskii <eliz@gnu.org>.
18799         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18800         __need_ssize_t, or __need_time_t is defined, just include the system's
18801         <sys/types.h>.
18802         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18803         include the system's <locale.h>.
18805 2018-05-13  Bruno Haible  <bruno@clisp.org>
18807         Avoid compilation error due to 'mmap' on Android.
18808         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18809         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18810         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18811         Undefine on Android.
18813 2018-05-13  Bruno Haible  <bruno@clisp.org>
18815         Add cross-compilation guesses for Linux systems without glibc.
18816         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18818         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18819         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18820         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18821         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18822         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18823         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18824         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18825         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18826         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18827         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18828         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18829         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18830         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18831         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18832         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18833         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18835 2018-05-13  Bruno Haible  <bruno@clisp.org>
18837         getpagesize: Fix compilation error on Android.
18838         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18839         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18840         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18841         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18842         HAVE_GETPAGESIZE accordingly.
18843         * modules/getcwd (Files): Add m4/getpagesize.m4.
18845 2018-05-13  Bruno Haible  <bruno@clisp.org>
18847         tcgetsid: Fix compilation error on Android.
18848         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18849         AC_CHECK_FUNC.
18851 2018-05-13  Bruno Haible  <bruno@clisp.org>
18853         getpass: Fix configure test for Android.
18854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18855         AC_CHECK_FUNC.
18857 2018-05-13  Bruno Haible  <bruno@clisp.org>
18859         ffs: Fix compilation error on Android.
18860         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18862 2018-05-13  Bruno Haible  <bruno@clisp.org>
18864         mkfifo: Fix compilation error on Android.
18865         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18866         AC_CHECK_FUNC.
18868 2018-05-13  Bruno Haible  <bruno@clisp.org>
18870         c-strtod: Fix configure test for Android.
18871         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18872         AC_CHECK_FUNC.
18874 2018-05-13  Bruno Haible  <bruno@clisp.org>
18876         random: Fix compilation error on Android.
18877         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18878         AC_CHECK_FUNC.
18880 2018-05-13  Bruno Haible  <bruno@clisp.org>
18882         grantpt: Fix compilation error on Android.
18883         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18884         AC_CHECK_FUNC.
18886 2018-05-13  Bruno Haible  <bruno@clisp.org>
18888         stdioext: Fix compilation errors with newer Android headers.
18889         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18890         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18891         fallbacks for Android.
18892         * lib/fpending.c: Update comments.
18893         * lib/fpurge.c: Likewise.
18894         * lib/freadable.h: Likewise.
18895         * lib/freadable.c: Likewise.
18896         * lib/freadahead.c: Likewise.
18897         * lib/freading.h: Likewise.
18898         * lib/freadptr.c: Likewise.
18899         * lib/fseterr.c: Likewise.
18900         * lib/fwritable.h: Likewise.
18901         * lib/fwritable.c: Likewise.
18902         * lib/fwriting.h: Likewise.
18903         * lib/fwriting.c: Likewise.
18905 2018-05-13  Bruno Haible  <bruno@clisp.org>
18907         doc: Add info about Android versions 2.0 to 8.1.
18908         * doc/**/*.texi: Add info about functions in all released versions of
18909         Bionic.
18911 2018-05-12  Bruno Haible  <bruno@clisp.org>
18913         fseeko: On mingw, don't use the hidden function _fseeki64.
18914         Reported by Eli Zaretskii <eliz@gnu.org>.
18915         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18916         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18918 2018-05-12  Bruno Haible  <bruno@clisp.org>
18920         glob: Choose 'dirent_type' in a way that works better on mingw.
18921         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18922         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18924 2018-05-12  Bruno Haible  <bruno@clisp.org>
18926         execute, spawn-pipe: Avoid warning about redefining 'close'.
18927         Reported by Eli Zaretskii <eliz@gnu.org>.
18928         * lib/execute.c: Undefine 'close' before redefining it.
18929         * lib/spawn-pipe.c: Likewise.
18931 2018-05-12  Bruno Haible  <bruno@clisp.org>
18933         nanosleep: Avoid test failure on mingw when it has nanosleep.
18934         Reported by Eli Zaretskii <eliz@gnu.org>.
18935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18936         If it does not exist, use a simpler test program that does not call
18937         alarm().
18939 2018-05-10  Bruno Haible  <bruno@clisp.org>
18941         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18942         Reported by Devin Hussey <husseydevin@gmail.com>.
18943         Based on a patch by Paul Eggert.
18944         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18945         as witness of libpthread.
18946         * lib/glthread/cond.h (pthread_in_use): Likewise.
18947         * lib/glthread/thread.h (pthread_in_use): Likewise.
18948         * lib/glthread/tls.h (pthread_in_use): Likewise.
18950 2018-05-10  Bruno Haible  <bruno@clisp.org>
18952         cond tests: Fix compilation error on Solaris.
18953         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18954         macro.
18956 2018-05-10  Bruno Haible  <bruno@clisp.org>
18958         doc: Add partial info about Android 4.3.
18959         * doc/*-functions/*.texi: Add info about functions that were added
18960         to Bionic between Android 4.3 and Android 9.0.
18962 2018-05-10  Bruno Haible  <bruno@clisp.org>
18964         doc: Add info about Android 9.0.
18965         * doc/**/*.texi: Add info about functions and headers in Bionic from
18966         Android 9.0.
18968 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18970         af_alg: fix my typo in afalg_buffer
18971         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18972         (afalg_stream): Simplify and avoid the need for a runtime test
18973         at the end.
18975         af_alg: recover better from crypto failures
18976         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18977         input stream is seekable, by repositioning the stream back to
18978         where it was, possibly by just calling sendfile with an offset
18979         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18980         cases, which lets our callers try again with user-mode code.
18981         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18982         instead of on fflush and lseek.
18984         af_alg: distiguish I/O errors better
18985         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18986         not -EIO, if it’s OK for the caller to try again with user-mode code.
18987         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18988         some other error number) if fflush fails, as the caller should not
18989         try again that case.
18991         af_alg: avoid gotos
18992         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18993         gotos, as they were a source of unreliability and made the code a
18994         bit harder to follow.
18996         af_alg: don’t leak file descriptors into children
18997         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18998         This code should be compiled only on recent GNU/Linux platforms
18999         so we shouldn’t have to also depend on the accept4 module.
19001         af_alg: coalesce socket creation
19002         * lib/af_alg.c (alg_socket): New function.
19003         (afalg_buffer, afalg_stream): Use it.  This avoids some
19004         code duplication and gotos.
19006         af_alg: fix file descriptor leak
19007         * lib/af_alg.c (afalg_stream): Close leak.
19009         af_alg: Pacify --enable-gcc-warnings on GCC 8
19010         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
19011         and checking to pacify gcc -Wjump-misses-init on GCC 8.
19013 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19015         af_alg: Pacify --enable-gcc-warnings
19016         Problem reported by Assaf Gordon in:
19017         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
19018         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
19019         gcc -Wjump-misses-init.
19020         * lib/sha512.c (shaxxx_stream): Now static.
19022 2018-05-06  Bruno Haible  <bruno@clisp.org>
19024         af_alg: Add ability to use Linux kernel crypto API on data in memory.
19025         * lib/af_alg.h (afalg_buffer): New declaration.
19026         * lib/af_alg.c (afalg_buffer): New function.
19028 2018-05-06  Bruno Haible  <bruno@clisp.org>
19030         af_alg: Avoid warnings.
19031         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
19032         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
19034 2018-05-06  Bruno Haible  <bruno@clisp.org>
19036         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
19037         * tests/bench-digest.h: New file.
19038         * tests/bench-md5.c: New file.
19039         * tests/bench-sha1.c: New file.
19040         * tests/bench-sha224.c: New file.
19041         * tests/bench-sha256.c: New file.
19042         * tests/bench-sha384.c: New file.
19043         * tests/bench-sha512.c: New file.
19044         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
19045         tests/bench-digest.h.
19046         (Depends-on): Add getrusage, gettimeofday.
19047         (Makefile.am): Add variables to build bench-md5.
19048         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
19049         tests/bench-digest.h.
19050         (Depends-on): Add getrusage, gettimeofday.
19051         (Makefile.am): Add variables to build bench-sha1.
19052         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
19053         tests/bench-sha256.c, tests/bench-digest.h.
19054         (Depends-on): Add getrusage, gettimeofday.
19055         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
19056         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
19057         tests/bench-sha512.c, tests/bench-digest.h.
19058         (Depends-on): Add getrusage, gettimeofday.
19059         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
19061 2018-05-06  Bruno Haible  <bruno@clisp.org>
19063         af_alg: Fix a resource leak.
19064         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
19065         New local variable 'result'.
19067 2018-05-06  Bruno Haible  <bruno@clisp.org>
19069         af_alg: Fix bug with streams that are not at position 0.
19070         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
19071         assume that the stream is positioned at position 0.
19072         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
19073         of the stream.
19074         * lib/md5.h (md5_stream): Likewise.
19075         * lib/sha1.h (sha1_stream): Likewise.
19076         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
19077         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
19078         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
19080         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
19081         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
19082         stream that is not positioned at the beginning.
19084 2018-05-06  Bruno Haible  <bruno@clisp.org>
19086         af_alg: Add configure option to enable/disable use of Linux crypto API.
19087         Suggested by Assaf Gordon <assafgordon@gmail.com>.
19088         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
19089         USE_LINUX_CRYPTO_API.
19090         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
19091         * lib/af_alg.c: Likewise.
19093 2018-05-06  Bruno Haible  <bruno@clisp.org>
19095         Followup to 'af_alg: New module.'.
19096         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
19097         * modules/crypto/sha1 (Depends-on): Likewise.
19098         * modules/crypto/sha256 (Depends-on): Likewise.
19099         * modules/crypto/sha512 (Depends-on): Likewise.
19101 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19103         crypto/{md5,sha1,sha256,sha512}: simplify
19104         * lib/md5.c (md5_stream):
19105         * lib/sha1.c (sha1_stream):
19106         * lib/sha256.c (shaxxx_stream):
19107         Simplify, partly by assuming C99.
19108         * lib/sha256.c (shaxxx_stream):
19109         New function, which implements both sha256 and sha224.
19110         Simplify, partly by assuming C99.
19111         (sha256_stream, sha224_stream):
19112         Use it to avoid code duplication, removing a FIXME.
19113         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19114         Likewise.
19116         af_alg: Improve comments.
19117         * lib/af_alg.h: Use imperatives and tighten up wording.
19119 2018-05-05  Bruno Haible  <bruno@clisp.org>
19121         af_alg: Improve comments.
19122         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
19124 2018-05-05  Bruno Haible  <bruno@clisp.org>
19126         af_alg: New module.
19127         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
19128         * lib/af_alg.c: Include "af_alg.h" before the other header files.
19129         * lib/md5.c: Include "af_alg.h" unconditionally.
19130         (md5_stream): Invoke afalg_stream unconditionally.
19131         * lib/sha1.c: Include "af_alg.h" unconditionally.
19132         (sha1_stream): Invoke afalg_stream unconditionally.
19133         * lib/sha256.c: Include "af_alg.h" unconditionally.
19134         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
19135         * lib/sha512.c: Include "af_alg.h" unconditionally.
19136         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
19137         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
19138         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
19139         * modules/crypto/af_alg: New file.
19140         * modules/crypto/md5 (Files): Remove files that are now in the
19141         'crypto/af_alg' module.
19142         (Depends-on): Add crypto/af_alg.
19143         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19144         (Makefile.am): Don't mention af_alg.c here.
19145         * modules/crypto/sha1 (Files): Remove files that are now in the
19146         'crypto/af_alg' module.
19147         (Depends-on): Add crypto/af_alg.
19148         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19149         (Makefile.am): Don't mention af_alg.c here.
19150         * modules/crypto/sha256 (Files): Remove files that are now in the
19151         'crypto/af_alg' module.
19152         (Depends-on): Add crypto/af_alg.
19153         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19154         (Makefile.am): Don't mention af_alg.c here.
19155         * modules/crypto/sha512 (Files): Remove files that are now in the
19156         'crypto/af_alg' module.
19157         (Depends-on): Add crypto/af_alg.
19158         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19159         (Makefile.am): Don't mention af_alg.c here.
19161 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19163         crypto tests: pacify GCC
19164         * tests/test-digest.h (test_digest_on_files):
19165         Don’t assume digest size fits in int (!).
19167         af_alg: minor style improvements
19168         * lib/af_alg.c (afalg_stream): Prefer C99 style
19169         decl-after-statement, since we’re already assuming C99.  Clarify
19170         by strengthening the bind test and omit unnecessary assignment.
19172 2018-05-05  Bruno Haible  <bruno@clisp.org>
19174         af_alg: Fix bug on empty files.
19175         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
19176         stream is empty.
19178 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19180         sys-limits.h: new file for crypto and safe I/O
19181         * lib/af_alg.c: Include sys-limits.h.
19182         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
19183         (afalg_stream): Also reject negative sizes for sendfile; they
19184         should not happen and the code is a bit cleaner and faster this way.
19185         * lib/safe-read.c: Include sys-limits.h.
19186         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
19187         * lib/sys-limits.h: New file, with values and commentary derived
19188         from the old safe-read.c and from GNU Emacs sysdep.c.
19189         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19190         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
19191         Add lib/sys-limits.h to Files section.
19193 2018-05-05  Bruno Haible  <bruno@clisp.org>
19195         af_alg: Improve function signature.
19196         * lib/af_alg.h (afalg_stream): Swap second and third argument.
19197         * lib/af_alg.c (afalg_stream): Likewise.
19198         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
19200 2018-05-05  Bruno Haible  <bruno@clisp.org>
19202         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
19203         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
19204         * modules/crypto/sha1 (Depends-on): Likewise.
19205         * modules/crypto/sha256 (Depends-on): Likewise.
19206         * modules/crypto/sha512 (Depends-on): Likewise.
19208 2018-05-05  Bruno Haible  <bruno@clisp.org>
19210         crypto/{md5,sha1,sha256,sha512}: Fix module description.
19211         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
19212         * modules/crypto/sha1 (Depends-on): Likewise.
19213         * modules/crypto/sha256 (Depends-on): Likewise.
19214         * modules/crypto/sha512 (Depends-on): Likewise.
19216 2018-05-05  Bruno Haible  <bruno@clisp.org>
19218         af_alg: Add documentation.
19219         * lib/af_alg.h: Add comments.
19221 2018-05-05  Bruno Haible  <bruno@clisp.org>
19223         sha512: Add tests.
19224         * tests/test-sha512.c: New file.
19225         * modules/crypto/sha512-tests: New file.
19227 2018-05-05  Bruno Haible  <bruno@clisp.org>
19229         sha256: Add tests.
19230         * tests/test-sha256.c: New file.
19231         * modules/crypto/sha256-tests: New file.
19233 2018-05-05  Bruno Haible  <bruno@clisp.org>
19235         sha1 tests: Add test for sha1_stream.
19236         * tests/test-sha1.c: Include test-digest.h.
19237         (main): Invoke test_digest_on_files on 'sha1_stream'.
19238         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
19240 2018-05-05  Bruno Haible  <bruno@clisp.org>
19242         md5 tests: Add test for md5_stream.
19243         * tests/test-digest.h: New file.
19244         * tests/test-md5.c: Include test-digest.h.
19245         (main): Invoke test_digest_on_files on 'md5_stream'.
19246         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
19248 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19250         md5sum: Use AF_ALG when available.
19251         * lib/md5.c: Include af_alg.h.
19252         (md5_stream): Use afalg_stream when available.
19253         * modules/crypto/md5 (Files): Add the af_alg files.
19254         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19255         (Makefile.am): Add af_alg.c.
19257 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19259         sha512sum: Use AF_ALG when available.
19260         * lib/sha512.c: Include af_alg.h.
19261         (sha512_stream, sha384_stream): Use afalg_stream when available.
19262         * modules/crypto/sha512 (Files): Add the af_alg files.
19263         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19264         (Makefile.am): Add af_alg.c.
19266 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19268         sha256sum: Use AF_ALG when available.
19269         * lib/sha256.c: Include af_alg.h.
19270         (sha256_stream, sha224_stream): Use afalg_stream when available.
19271         * modules/crypto/sha256 (Files): Add the af_alg files.
19272         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19273         (Makefile.am): Add af_alg.c.
19275 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19277         sha1sum: Use AF_ALG when available.
19278         * lib/af_alg.h: New file.
19279         * lib/af_alg.c: New file.
19280         * lib/sha1.c: Include af_alg.h.
19281         (sha1_stream): Use afalg_stream when available.
19282         * m4/linux-if-alg.m4: New file.
19283         * modules/crypto/sha1 (Files): Add the new files.
19284         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19285         (Makefile.am): Add af_alg.c.
19287 2018-05-05  Bruno Haible  <bruno@clisp.org>
19289         all: Replace more http URLs by https URLs.
19290         * lib/localename.c: Use https: URL.
19291         * lib/timespec.h: Likewise.
19293 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19295         maint: port more modules to GCC 8
19296         * lib/dirname.h (base_name):
19297         * lib/exclude.h (new_exclude):
19298         * lib/xstrndup.h (xstrndup):
19299         Add malloc attribute.
19300         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
19301         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
19302         This pacifies GCC 8.
19303         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19304         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
19306 2018-05-03  Bruno Haible  <bruno@clisp.org>
19308         Simplify code. Drop support for Borland C++ on Windows.
19309         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
19310         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
19311         'defined _WIN32'.
19312         * lib/canonicalize-lgpl.c: Likewise.
19313         * lib/classpath.c: Likewise.
19314         * lib/clean-temp.c: Likewise.
19315         * lib/csharpexec.c: Likewise.
19316         * lib/ctime.c: Likewise.
19317         * lib/dosname.h: Likewise.
19318         * lib/dup2.c: Likewise.
19319         * lib/errno.in.h: Likewise.
19320         * lib/error.c: Likewise.
19321         * lib/euidaccess.c: Likewise.
19322         * lib/execute.c: Likewise.
19323         * lib/fcntl.in.h: Likewise.
19324         * lib/fcntl.c: Likewise.
19325         * lib/filename.h: Likewise.
19326         * lib/findprog.c: Likewise.
19327         * lib/flock.c: Likewise.
19328         * lib/fopen.c: Likewise.
19329         * lib/freopen.c: Likewise.
19330         * lib/fstat.c: Likewise.
19331         * lib/fsync.c: Likewise.
19332         * lib/gc-gnulib.c: Likewise.
19333         * lib/get-rusage-data.c: Likewise.
19334         * lib/getaddrinfo.c: Likewise.
19335         * lib/getdelim.c: Likewise.
19336         * lib/getdtablesize.c: Likewise.
19337         * lib/gethostname.c: Likewise.
19338         * lib/getlogin.c: Likewise.
19339         * lib/getlogin_r.c: Likewise.
19340         * lib/getopt.c: Likewise.
19341         * lib/getpagesize.c: Likewise.
19342         * lib/getpass.c: Likewise.
19343         * lib/getrusage.c: Likewise.
19344         * lib/gettimeofday.c: Likewise.
19345         * lib/glob.c: Likewise.
19346         * lib/inttypes.in.h: Likewise.
19347         * lib/isapipe.c: Likewise.
19348         * lib/javaexec.c: Likewise.
19349         * lib/link.c: Likewise.
19350         * lib/localcharset.c: Likewise.
19351         * lib/localename.h: Likewise.
19352         * lib/localename.c: Likewise.
19353         * lib/localtime.c: Likewise.
19354         * lib/lseek.c: Likewise.
19355         * lib/mbsinit.c: Likewise.
19356         * lib/mkdir.c: Likewise.
19357         * lib/msvc-nothrow.h: Likewise.
19358         * lib/nanosleep.c: Likewise.
19359         * lib/nl_langinfo.c: Likewise.
19360         * lib/nonblocking.c: Likewise.
19361         * lib/nproc.c: Likewise.
19362         * lib/open.c: Likewise.
19363         * lib/openpty.c: Likewise.
19364         * lib/pathmax.h: Likewise.
19365         * lib/pipe-filter-aux.c: Likewise.
19366         * lib/pipe-filter-gi.c: Likewise.
19367         * lib/pipe-filter-ii.c: Likewise.
19368         * lib/pipe.c: Likewise.
19369         * lib/pipe2.c: Likewise.
19370         * lib/poll.c: Likewise.
19371         * lib/popen.c: Likewise.
19372         * lib/posix_openpt.c: Likewise.
19373         * lib/printf-parse.c: Likewise.
19374         * lib/progreloc.c: Likewise.
19375         * lib/putenv.c: Likewise.
19376         * lib/read.c: Likewise.
19377         * lib/relocatable.c: Likewise.
19378         * lib/rename.c: Likewise.
19379         * lib/same-inode.h: Likewise.
19380         * lib/secure_getenv.c: Likewise.
19381         * lib/select.c: Likewise.
19382         * lib/sethostname.c: Likewise.
19383         * lib/setlocale.c: Likewise.
19384         * lib/sigaction.c: Likewise.
19385         * lib/sigprocmask.c: Likewise.
19386         * lib/sleep.c: Likewise.
19387         * lib/spawn-pipe.h: Likewise.
19388         * lib/spawn-pipe.c: Likewise.
19389         * lib/spawni.c: Likewise.
19390         * lib/stat-time.h: Likewise.
19391         * lib/stat-w32.c: Likewise.
19392         * lib/stat.c: Likewise.
19393         * lib/stdio.in.h: Likewise.
19394         * lib/stdio-impl.h: Likewise.
19395         * lib/stdio-read.c: Likewise.
19396         * lib/stdio-write.c: Likewise.
19397         * lib/stdlib.in.h: Likewise.
19398         * lib/strerror_r.c: Likewise.
19399         * lib/strftime-fixes.c: Likewise.
19400         * lib/sys_stat.in.h: Likewise.
19401         * lib/sys_types.in.h: Likewise.
19402         * lib/sys_wait.in.h : Likewise.
19403         * lib/system-quote.h: Likewise.
19404         * lib/system-quote.c: Likewise.
19405         * lib/tmpdir.c: Likewise.
19406         * lib/tzset.c: Likewise.
19407         * lib/uname.c: Likewise.
19408         * lib/unistd.in.h: Likewise.
19409         * lib/utime.in.h: Likewise.
19410         * lib/utime.c: Likewise.
19411         * lib/utimecmp.c: Likewise.
19412         * lib/utimens.c: Likewise.
19413         * lib/vasnprintf.c: Likewise.
19414         * lib/vma-iter.h: Likewise.
19415         * lib/vma-iter.c: Likewise.
19416         * lib/wait-process.c: Likewise.
19417         * lib/wcsftime.c: Likewise.
19418         * lib/wctype.in.h: Likewise.
19419         * lib/write.c: Likewise.
19420         * tests/nap.h: Likewise.
19421         * tests/test-cloexec.c: Likewise.
19422         * tests/test-dup-safer.c: Likewise.
19423         * tests/test-dup2.c: Likewise.
19424         * tests/test-dup3.c: Likewise.
19425         * tests/test-fcntl.c: Likewise.
19426         * tests/test-get-rusage-data.c: Likewise.
19427         * tests/test-getaddrinfo.c: Likewise.
19428         * tests/test-getlogin.h: Likewise.
19429         * tests/test-isatty.c: Likewise.
19430         * tests/test-localename.c: Likewise.
19431         * tests/test-mbrtowc-w32.c: Likewise.
19432         * tests/test-nonblocking.c: Likewise.
19433         * tests/test-nonblocking-pipe-main.c: Likewise.
19434         * tests/test-nonblocking-socket-main.c: Likewise.
19435         * tests/test-nonblocking-socket.h: Likewise.
19436         * tests/test-pipe.c: Likewise.
19437         * tests/test-pipe2.c: Likewise.
19438         * tests/test-poll.c: Likewise.
19439         * tests/test-pthread_sigmask1.c: Likewise.
19440         * tests/test-select.h: Likewise.
19441         * tests/test-sethostname2.c: Likewise.
19442         * tests/test-sigprocmask.c: Likewise.
19443         * tests/test-spawn-pipe-child.c: Likewise.
19444         * tests/test-stat-time.c: Likewise.
19445         * tests/test-system-quote-main.c: Likewise.
19446         * tests/test-utimens-common.h: Likewise.
19447         * tests/test-wcrtomb-w32.c: Likewise.
19448         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19449         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19450         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19451         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19452         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19453         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19454         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19455         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19456         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19457         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19458         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19459         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19460         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19461         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19462         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19463         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19465 2018-05-02  Bruno Haible  <bruno@clisp.org>
19467         localename: Fix test failures on mingw.
19468         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19469         native Windows.
19470         (gl_locale_name_posix): Move code specific to native Windows here.
19471         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19472         Accept result without charset suffix, as it appears on mingw.
19474 2018-04-28  Paul Smith  <psmith@gnu.org>
19476         bootstrap: Avoid gnulib operations if not needed
19477         * build-aux/bootstrap: Remove unused variable gnulib_mk.
19478         Set $gnulib_extra_files early so it can be overridden in .conf.
19479         Remove redundant --import flag from $gnulib_tool_options.
19480         Set $use_gnulib to false if no gnulib modules or files are needed.
19481         If $use_gnulib is false, don't do anything related to gnulib.
19482         A lot of this is just whitespace (indentation) changes.
19484 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19486         manywarnings: port to GCC 8.0
19487         * build-aux/gcc-warning.spec: Add -Wcatch-value,
19488         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
19489         fact that the GCC help message now mentions operands for
19490         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
19491         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
19492         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
19493         and -Wunused-const-variable.
19494         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
19495         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
19496         -Wmissing-attributes, -Wmultistatement-macros,
19497         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
19498         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
19500 2018-04-24  Bruno Haible  <bruno@clisp.org>
19502         sys_socket: Make SO_REUSEPORT available across platforms.
19503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19504         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
19505         * doc/posix-headers/sys_socket.texi: Mention the issue.
19506         * tests/test-poll.c (SO_REUSEPORT): Remove.
19507         * tests/test-select.h: Include <sys/socket.h>.
19508         (SO_REUSEPORT): Remove.
19509         * modules/select-tests (Depends-on): Add 'sys_socket'.
19511 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
19513         localcharset: short-circuit the search for an alias on a Mac
19514         * lib/localcharset.c (get_charset_aliases): Add a tautological
19515         UTF-8 entry to speed up the search for this case.
19516         Most machines default to a UTF-8 locale nowadays, so begin the
19517         list of aliases with a dummy UTF-8 entry so it will be found
19518         immediately and a time-consuming search through the rest of
19519         the list is avoided.
19521 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19523         fts: add comment
19524         * lib/fts.c (fts_build): Explain why ==, not >.
19525         See remark by Bernhard Voelker in:
19526         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
19528         fts: fix bug in find across filesystems
19529         This fixes a bug I introduced last summer.
19530         Problem reported by Kamil Dudka in:
19531         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
19532         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
19533         (leaf_optimization):
19534         New arg for file descriptor.  All callers changed.
19535         (fts_build): Check for whether inodes should be sorted
19536         before closing the directory.
19538 2018-04-07  Bruno Haible  <bruno@clisp.org>
19540         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
19541         Reported by Genki Sky <sky@genki.is>.
19542         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
19543         version 0.9.10 or newer.
19544         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
19545         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
19546         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
19547         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
19548         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
19550 2018-04-07  Bruno Haible  <bruno@clisp.org>
19552         execute: Update comment.
19553         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
19555 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19557         fts: treat CIFS like NFS
19558         Problem reported by Kamil Dudka in:
19559         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
19560         * lib/fts.c (S_MAGIC_CIFS): New macro.
19561         (dirent_inode_sort_may_be_useful, leaf_optimization):
19562         Treat CIFS like NFS.
19564 2018-03-28  Bruno Haible  <bruno@clisp.org>
19566         c-stack: Fix possible build failure on some platforms.
19567         * lib/c-stack.c (die): Define whenever this function is referenced.
19569 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
19571         time_rz: fix workaround for Mac OS X 10.6 infloop
19572         Problems reported by Charles A. Roelli (Bug#27736#117).
19573         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
19574         Also, discard output, which clutters the 'configure' log.
19576 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
19578         havelib: port to Solaris 10 /bin/sh
19579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
19580         instead of '! test EXPR'.
19582 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19584         time_rz: work around Mac OS X 10.6 infloop
19585         * doc/posix-functions/localtime.texi:
19586         * doc/posix-functions/localtime_r.texi: Mention the bug.
19587         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
19588         better to fix localtime and localtime_r instead, but that would be
19589         more work and is not needed to fix the Emacs problem.
19590         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
19592 2018-03-24  Jim Meyering  <meyering@fb.com>
19594         test-version-etc.sh: don't use diff directly: use init.sh's compare
19595         We'd rather not sacrifice readable "diff -u" output even for
19596         "diff -c" output (not supported by busybox) or for even less
19597         readable ed-style "diff" output.  So use init.sh's compare function
19598         * tests/test-version-etc.sh: Source init.sh and add "." to path.
19599         Remove "./" from invocation of test-version-etc, so we use path.
19600         And s/diff/compare/.
19601         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
19602         to get init.sh.
19603         Prompted by Eric Blake's comments in
19604         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
19606 2018-03-24  Bruno Haible  <bruno@clisp.org>
19608         javacomp-script, javacomp: Add support for Java 10.
19609         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19610         target-version 10.
19611         * lib/javaversion.h: Update comments.
19612         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19613         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19614         TARGET_VERSION_BOUND, target_version_index,
19615         corresponding_classfile_version): Accept source_version 10 and
19616         target_version 10.
19617         * lib/javacomp.h: Update comments accordingly.
19619 2018-03-24  Bruno Haible  <bruno@clisp.org>
19621         javacomp-script, javacomp: Update comments.
19622         * m4/javacomp.m4: Update comments regarding gcj.
19623         * lib/javacomp.h: Likewise.
19625 2018-03-24  Bruno Haible  <bruno@clisp.org>
19627         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
19628         * lib/javaversion.h: Update comments.
19629         * lib/javacomp.h: Likewise.
19630         * lib/javacomp.c (default_target_version, source_version_index,
19631         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
19632         "1.9".
19633         (TARGET_VERSION_BOUND): Bump to 9.
19634         (target_version_index, corresponding_classfile_version): Recognize "9"
19635         instead of "1.9".
19636         (get_source_version_for_javac): New function.
19637         (is_envjavac_nongcj_usable, is_javac_usable): Add
19638         source_version_for_javac argument.
19639         (compile_java_class): Determine and pass source_version_for_javac.
19640         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
19641         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
19642         appropriate.
19644 2018-03-23  Jim Meyering  <meyering@fb.com>
19646         test-version-etc.sh: port to diff without -c
19647         * tests/test-version-etc.sh: Don't use diff's -c option.
19648         This caused spurious test failure on Alpine Linux, which
19649         uses busybox's diff. Reported by Assaf Gordon in
19650         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
19652 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19654         c-stack: port to recent GCC build
19655         Problem reported by The Fireplace (Bug#30913).
19656         * lib/c-stack.c (die): Define only if used.
19658 2018-03-20  Bruno Haible  <bruno@clisp.org>
19660         euidaccess: Port to native Windows.
19661         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
19662         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
19664 2018-03-19  Bruno Haible  <bruno@clisp.org>
19666         javacomp: Add support for Java 7, 8, 9.
19667         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19668         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19669         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
19670         and target_version 1,7, 1.8, 1.9.
19671         * lib/javacomp.h: Update comments accordingly.
19673 2018-03-19  Bruno Haible  <bruno@clisp.org>
19675         javacomp-script: Add support for Java 9.
19676         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
19677         target-version 1.9.
19679 2018-03-16  Bruno Haible  <bruno@clisp.org>
19681         glob: Don't compile replacements on recent glibc systems.
19682         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19683         REPLACE_GLOB is 0, include the system's <glob.h> and use
19684         _GL_CXXALIAS_SYS.
19685         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19686         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19687         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19688         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19689         Remove snippet/warn-on-use.
19690         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19691         (Makefile.am): Create glob.h always. Update list of substitutions in
19692         glob.h. Don't depend on $(WARN_ON_USE_H).
19694 2018-03-16  Bruno Haible  <bruno@clisp.org>
19696         glob: Fix link error on native Windows.
19697         * modules/glob (Depends-on): Add 'lstat'.
19699 2018-03-15  Bruno Haible  <bruno@clisp.org>
19701         glob: Fix compilation error in C++ mode.
19702         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19704 2018-03-15  Bruno Haible  <bruno@clisp.org>
19706         host-cpu-c-abi: Support for RISC-V CPU.
19707         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19708         riscv32 and riscv64 ABIs.
19709         References:
19710         https://github.com/riscv/riscv-toolchain-conventions
19711         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19712         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19714 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19716         fflush: be more paranoid about libio.h change
19717         Suggested by Eli Zaretskii in:
19718         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19719         * lib/fbufmode.c (fbufmode):
19720         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19721         (disable_seek_optimization, rpl_fflush):
19722         * lib/fpending.c (__fpending):
19723         * lib/fpurge.c (fpurge):
19724         * lib/freadable.c (freadable):
19725         * lib/freadahead.c (freadahead):
19726         * lib/freading.c (freading):
19727         * lib/freadptr.c (freadptr):
19728         * lib/freadseek.c (freadptrinc):
19729         * lib/fseeko.c (fseeko):
19730         * lib/fseterr.c (fseterr):
19731         * lib/fwritable.c (fwritable):
19732         * lib/fwriting.c (fwriting):
19733         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19735 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19737         maint: write-file-hooks -> before-save-hook
19738         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19739         it's time to use the recommended replacement.
19740         Problem reported by Glenn Morris in:
19741         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19742         * build-aux/announce-gen, build-aux/bootstrap:
19743         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19744         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19745         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19746         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19747         * build-aux/update-copyright, build-aux/useless-if-before-free:
19748         * build-aux/vc-list-files:
19749         Update hook usage for files where Gnulib is the canonical source.
19751 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19753         binary-io: pacify gcc -Wunused-parameter
19754         Problem reported by Reuben Thomas in:
19755         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19756         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19757         Use _GL_UNUSED where appropriate.
19759         fflush: adjust to glibc 2.28 libio.h removal
19760         Problem reported by Daniel P. Berrangé in:
19761         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19762         * lib/fbufmode.c (fbufmode):
19763         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19764         (disable_seek_optimization, rpl_fflush):
19765         * lib/fpending.c (__fpending):
19766         * lib/fpurge.c (fpurge):
19767         * lib/freadable.c (freadable):
19768         * lib/freadahead.c (freadahead):
19769         * lib/freading.c (freading):
19770         * lib/freadptr.c (freadptr):
19771         * lib/freadseek.c (freadptrinc):
19772         * lib/fseeko.c (fseeko):
19773         * lib/fseterr.c (fseterr):
19774         * lib/fwritable.c (fwritable):
19775         * lib/fwriting.c (fwriting):
19776         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19777         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19778         Define if not already defined.
19780 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19782         environ: fix link error on 32-bit Cygwin
19783         Problem reported for GNU Emacs by Ken Brown in:
19784         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19785         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19787 2018-02-24  Bruno Haible  <bruno@clisp.org>
19789         mbrtowc tests: Fix regression on glibc.
19790         Reported by Bernhard Voelker.
19791         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19793 2018-02-24  Bruno Haible  <bruno@clisp.org>
19795         striconveha, uniconv/*: Avoid test failures on musl libc.
19796         * tests/iconvsupport.c: New file.
19797         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19798         does not support the ISO-2022-JP-2 encoding.
19799         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19800         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19801         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19802         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19803         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19804         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19805         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19806         (Makefile.am): Link test-striconveha with iconvsupport.o.
19807         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19808         tests/iconvsupport.c.
19809         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19810         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19811         tests/iconvsupport.c.
19812         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19813         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19814         tests/iconvsupport.c.
19815         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19816         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19817         tests/iconvsupport.c.
19818         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19819         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19820         tests/iconvsupport.c.
19821         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19822         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19823         tests/iconvsupport.c.
19824         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19826 2018-02-24  Bruno Haible  <bruno@clisp.org>
19828         localename: Add support for musl libc.
19829         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19830         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19831         on Linux platforms which define NL_LOCALE_NAME.
19833 2018-02-24  Bruno Haible  <bruno@clisp.org>
19835         mbrtowc tests: Don't make assumptions about the charset the C locale.
19836         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19837         particular mapping in the C locale.
19839 2018-02-24  Bruno Haible  <bruno@clisp.org>
19841         ptsname_r: Don't expect that this function sets errno.
19842         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19843         from ptsname_r().
19844         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19846 2018-02-23  Bruno Haible  <bruno@clisp.org>
19848         xmalloca: pacify gcc -Wbad-function-cast
19849         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19851 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19853         nl_langinfo: pacify gcc -Wunused-function
19854         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19855         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19856         this case.  Without this change, I got a diagnostic when building
19857         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19859         same: pacify gcc -Wunused-variable
19860         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19861         Omit unused variable.
19863         malloca: pacify gcc -Wbad-function-cast
19864         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19865         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19866         To pacify GCC, I had to cast alloca’s result to some type other
19867         than void * before casting that to uintptr_t.
19869 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19871         utimecmp: new function utimecmpat
19872         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19873         Do not include utimens.h.
19874         (utimecmpat): New function, generalizing utimecmp.
19875         (utimecmp): Now a thin layer around utimecmpat.
19876         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19877         utimensat instead of on lstat and utimens.
19879         same: new function same_nameat
19880         * lib/same.c: Include fcntl.h.
19881         * lib/same.c (same_nameat): New function, generalizing same_name.
19882         (same_name): Now a thin layer around same_nameat.
19883         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19884         * modules/same (Depends-on): Depend on fstatat, openat.
19886 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19888         warnings: Add support for Objective C.
19889         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19890         macro.
19892 2018-02-17  Bruno Haible  <bruno@clisp.org>
19894         lock: Fix test-once1 crash on FreeBSD11.
19895         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19896         'pthread_create', not 'pthread_cancel'.
19898 2018-02-17  Bruno Haible  <bruno@clisp.org>
19900         lock: Add test of gl_once.
19901         * tests/test-once.c: New file.
19902         * modules/lock-tests (Files): Add it.
19903         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19905 2018-02-17  Bruno Haible  <bruno@clisp.org>
19907         thread: Fix compilation error on IRIX.
19908         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19909         needed; include it outside the C++ extern "C" {} block.
19910         * doc/posix-headers/pthread.texi: Mention the problem with
19911         pthread_atfork on IRIX.
19913 2018-02-04  Bruno Haible  <bruno@clisp.org>
19915         nl_langinfo: Override the system's nl_langinfo() when needed.
19916         Reported by Jim Meyering.
19917         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19918         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19920 2018-02-04  Bruno Haible  <bruno@clisp.org>
19922         signal-h, monetary, strings: Fix build failure in some cases.
19923         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19924         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19925         as delimiter in sed command, not '|'.
19926         * modules/monetary (Makefile.am): Likewise.
19927         * modules/strings (Makefile.am): Likewise.
19929 2018-02-03  Jim Meyering  <meyering@fb.com>
19931         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19932         * top/maint.mk (sc_file_system): Don't complain about
19933         "/proc/filesystems".
19935 2018-02-03  Bruno Haible  <bruno@clisp.org>
19937         stdlib: Fix compilation error on OpenIndiana.
19938         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19939         <sys/time.h>.
19940         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19941         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19943 2018-02-03  Bruno Haible  <bruno@clisp.org>
19945         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19946         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19947         and use $EGREP instead of 'grep -E'.
19948         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19949         'grep -E'.
19951 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19953         malloca: Add a compile-time verification.
19954         * lib/malloca.c (small_t): Verify that it is wide enough.
19955         * modules/malloca (Depends-on): Add verify.
19957 2018-02-02  Bruno Haible  <bruno@clisp.org>
19959         malloca: Add an argument check.
19960         Suggested by Paul Eggert.
19961         * lib/malloca.c (freea): Check against an invalid argument.
19963 2018-02-02  Bruno Haible  <bruno@clisp.org>
19965         localename: Add support for OpenIndiana.
19966         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19967         Solaris 11 variants with uselocale() but without getlocalename_l().
19969 2018-02-02  Bruno Haible  <bruno@clisp.org>
19971         malloca, xmalloca: Make multithread-safe.
19972         Reported by Florian Weimer <fweimer@redhat.com>.
19973         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19974         * lib/malloca.h (malloca): In the stack allocation case, return a
19975         pointer that is a multiple of 2 * sa_alignment_max.
19976         (sa_increment): Remove enum item.
19977         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19978         a pointer that is a multiple of 2 * sa_alignment_max.
19979         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19980         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19981         HASH_TABLE_SIZE, mmalloca_results): Remove.
19982         (small_t): New type.
19983         (mmalloca, free): Rewritten.
19984         * lib/malloca.valgrind: Remove file.
19985         * modules/malloca (Files): Remove it.
19986         (Depends-on): Remove verify.
19988 2018-01-31  Bruno Haible  <bruno@clisp.org>
19990         environ: Fix link error on 64-bit Cygwin.
19991         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19992         __declspec(dllimport) attribute.
19993         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19995 2018-01-30  Bruno Haible  <bruno@clisp.org>
19997         get-rusage-data: Add support for Minix 3.
19998         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
20000 2018-01-30  Bruno Haible  <bruno@clisp.org>
20002         vma-iter: Add support for Minix 3.
20003         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
20004         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
20006 2018-01-27  Bruno Haible  <bruno@clisp.org>
20008         Fix malfunction of socket functions on HP-UX in 64-bit mode.
20009         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
20010         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
20011         _HPUX_ALT_XOPEN_SOCKET_API.
20012         * modules/accept (Depends-on): Add 'extensions'.
20013         * modules/getpeername (Depends-on): Likewise.
20014         * modules/getsockname (Depends-on): Likewise.
20015         * modules/getsockopt (Depends-on): Likewise.
20016         * modules/recvfrom (Depends-on): Likewise.
20017         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
20018         * doc/posix-functions/getpeername.texi: Likewise.
20019         * doc/posix-functions/getsockname.texi: Likewise.
20020         * doc/posix-functions/getsockopt.texi: Likewise.
20021         * doc/posix-functions/recvfrom.texi: Likewise.
20023 2018-01-27  Bruno Haible  <bruno@clisp.org>
20025         getsockname tests: More tests.
20026         * tests/test-getsockname.c (open_server_socket): New function, mostly
20027         copied from test-poll.c.
20028         (main): Check that getsockname fills in addr.
20029         * modules/getsockname-tests (Depends-on): Add the necessary
20030         dependencies.
20031         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
20033 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20035         manywarnings: fix maintainer comment
20036         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
20037         it does not mistakenly think that ‘-1)’ is an option.
20039 2018-01-26  Bruno Haible  <bruno@clisp.org>
20041         langinfo: Fix last commit.
20042         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20043         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
20045 2018-01-24  Bruno Haible  <bruno@clisp.org>
20047         langinfo, nl_langinfo: Add support for alternative month names.
20048         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
20049         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
20050         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
20051         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
20052         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
20053         * doc/posix-functions/nl_langinfo.texi: Likewise.
20055 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20057         Merge strftime.c changes from glibc
20058         This incorporates:
20059         2017-11-14 [BZ #10871] Implement alternative month names
20060         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
20061         2017-06-20 Use locale_t, not __locale_t, throughout glibc
20062         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
20063         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
20064         Use locale_t, not __locale_t.
20065         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
20066         (__strftime_internal): Add support for alternate months.
20068 2018-01-23  Bruno Haible  <bruno@clisp.org>
20070         doc: Mention another prerequisite for using Gnulib.
20071         Reported at <https://stackoverflow.com/questions/48378214/>.
20072         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
20073         AC_CONFIG_HEADERS.
20075 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
20077         build: GuixSD doesn't have /bin/bash
20078         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
20080 2018-01-21  Bruno Haible  <bruno@clisp.org>
20082         Avoid test failures on Microsoft Windows Subsystem for Linux.
20083         * tests/test-fcntl.c (main): Allow a different errno.
20084         * tests/test-rename.h (test_rename): Likewise.
20085         * tests/test-renameat.c (main): Likewise.
20086         * tests/test-renameat2.c (main): Likewise.
20088 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20090         filenamecat: make base a suffix of result
20091         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
20092         (mfile_name_concat): Always make BASE a suffix of the result, as
20093         cp expects this.  To implement this, separate with '.' instead of
20094         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
20095         * tests/test-filenamecat.c (main): Adjust tests to match
20096         current behavior.  Check that BASE_IN_RESULT points to
20097         a copy of BASE and is a suffix of the resultk, and that DIR
20098         is a prefix of the result that is no longer than the prefix
20099         indicated by BASE_IN_RESULT.
20101 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
20103         update-copyright: Handle use of ©
20104         * build-aux/update-copyright ($circle_c_re): Update regex to
20105         handle use of © in headers.
20107 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
20109         Fix -Wundef warning in user-included header lib/cdefs.h.
20110         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
20112 2018-01-04  Bruno Haible  <bruno@clisp.org>
20114         pthread_sigmask: Avoid compilation error on mingw.
20115         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20116         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
20117         macro.
20119 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20121         test-framework-sh: ‘ps -ef’, not ‘ps ef’
20122         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
20123         Suggested by Bob Proulx (Bug#29968).
20124         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
20126 2018-01-02  Eric Blake  <eblake@redhat.com>
20128         stat-time: silence -Wunused-parameter regression
20129         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20130         Prefer attribute over cast-to-void.
20131         (stat_time_normalize): Mark st as potentially unused.
20133 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20135         test-framework-sh: avoid netstat
20136         Problem reported by Kristýna Streitová (Bug#29947).
20137         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
20138         deprecated on SuSE and it's not that important anyway.
20140 2018-01-01  Jim Meyering  <meyering@fb.com>
20142         update-copyright: add code to handle more special cases
20143         After running "make update-copyright" this year, five files
20144         required additional manual changes.  Automate those adjustments
20145         for next year.
20146         * Makefile (_year_and_prev): Define.
20147         (update-copyright): Add perl commands to induce this year's post-
20148         update-copyright adjustments.
20150 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20152         version-etc: new year
20153         * build-aux/gendocs.sh (version):
20154         * doc/gendocs_template:
20155         * doc/gendocs_template_min:
20156         * doc/gnulib.texi:
20157         * lib/version-etc.c (COPYRIGHT_YEAR):
20158         Update copyright dates by hand in templates and the like.
20160         maint: fix 'make update-copyright'
20161         * Makefile (update-copyright): Adjust to 2016-11-23 change
20162         to config/srclist-update, which changed the format of srclist.txt.
20164 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20166         chdir-safer: remove this module
20167         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
20168         * NEWS: Document removal.
20169         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
20170         * modules/chdir-safer: Remove these files.
20172 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
20174         Add cross-compilation results for GNU/Hurd.
20175         * m4/calloc.m4: Add GNU/Hurd guess.
20176         * m4/cbrtl.m4: Likewise.
20177         * m4/ceil.m4: Likewise.
20178         * m4/ceilf.m4: Likewise.
20179         * m4/ceill.m4: Likewise.
20180         * m4/chown.m4: Likewise.
20181         * m4/duplocale.m4: Likewise.
20182         * m4/exp2l.m4: Likewise.
20183         * m4/expm1.m4: Likewise.
20184         * m4/fchdir.m4: Likewise.
20185         * m4/floor.m4: Likewise.
20186         * m4/floorf.m4: Likewise.
20187         * m4/fmod.m4: Likewise.
20188         * m4/fmodf.m4: Likewise.
20189         * m4/fmodl.m4: Likewise.
20190         * m4/getcwd.m4: Likewise.
20191         * m4/getgroups.m4: Likewise.
20192         * m4/gettimeofday.m4: Likewise.
20193         * m4/hypot.m4: Likewise.
20194         * m4/hypotf.m4: Likewise.
20195         * m4/hypotl.m4: Likewise.
20196         * m4/link-follow.m4: Likewise.
20197         * m4/link.m4: Likewise.
20198         * m4/linkat.m4: Likewise.
20199         * m4/log.m4: Likewise.
20200         * m4/log10.m4: Likewise.
20201         * m4/log10f.m4: Likewise.
20202         * m4/log1p.m4: Likewise.
20203         * m4/log1pf.m4: Likewise.
20204         * m4/log1pl.m4: Likewise.
20205         * m4/log2.m4: Likewise.
20206         * m4/log2f.m4: Likewise.
20207         * m4/logf.m4: Likewise.
20208         * m4/lstat.m4: Likewise.
20209         * m4/malloc.m4: Likewise.
20210         * m4/mbrlen.m4: Likewise.
20211         * m4/mbrtowc.m4: Likewise.
20212         * m4/mkdir.m4: Likewise.
20213         * m4/mkfifo.m4: Likewise.
20214         * m4/mknod.m4: Likewise.
20215         * m4/mkstemp.m4: Likewise.
20216         * m4/modf.m4: Likewise.
20217         * m4/modff.m4: Likewise.
20218         * m4/modfl.m4: Likewise.
20219         * m4/printf.m4: Likewise.
20220         * m4/pselect.m4: Likewise.
20221         * m4/ptsname.m4: Likewise.
20222         * m4/putenv.m4: Likewise.
20223         * m4/readlink.m4: Likewise.
20224         * m4/realloc.m4: Likewise.
20225         * m4/remainder.m4: Likewise.
20226         * m4/remainderf.m4: Likewise.
20227         * m4/remainderl.m4: Likewise.
20228         * m4/rmdir.m4: Likewise.
20229         * m4/round.m4: Likewise.
20230         * m4/roundf.m4: Likewise.
20231         * m4/roundl.m4: Likewise.
20232         * m4/select.m4: Likewise.
20233         * m4/setenv.m4: Likewise.
20234         * m4/signbit.m4: Likewise.
20235         * m4/sleep.m4: Likewise.
20236         * m4/stat.m4: Likewise.
20237         * m4/strerror.m4: Likewise.
20238         * m4/strtok_r.m4: Likewise.
20239         * m4/symlink.m4: Likewise.
20240         * m4/symlinkat.m4: Likewise.
20241         * m4/trunc.m4: Likewise.
20242         * m4/truncf.m4: Likewise.
20243         * m4/truncl.m4: Likewise.
20244         * m4/tzset.m4: Likewise.
20245         * m4/ungetc.m4: Likewise.
20246         * m4/usleep.m4: Likewise.
20247         * m4/wcwidth.m4: Likewise.
20249 2017-12-28  Bruno Haible  <bruno@clisp.org>
20251         gnulib-tool: Make --conditional-dependencies work better.
20252         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
20253         * gnulib-tool (Options): Don't reject the combination of
20254         --conditional-dependencies with --with-tests.
20255         (func_emit_autoconf_snippets): Add argument referenceable_modules.
20256         Don't reference $modules.
20257         (func_import, func_create_testdir): Pass it.
20259 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20261         regex: use re_malloc etc. consistently
20262         Problem and original patch reported by Arnold Robbins in:
20263         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
20264         * lib/regcomp.c (re_comp):
20265         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
20266         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
20268 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
20269             Paul Eggert  <eggert@cs.ucla.edu>
20271         glob: Silence warning about void pointer arithmetic.
20272         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20273         arithmetic.
20275 2017-12-15  Bruno Haible  <bruno@clisp.org>
20277         spawn-pipe: Silence a clang warning.
20278         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20279         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
20280         in this file.
20282 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20284         explicit_bzero: port to macOS + Clang 9.0.0
20285         Problem reported by Marcus Johnson (Bug#29658).
20286         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
20287         Don’t use asm.
20289 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20291         doc: Improve explanation of supporting relocatable libraries.
20292         * doc/relocatable-maint.texi (Supporting Relocation): Explain
20293         properly how to build the relocatable module for
20294         libraries. (Method and example code from Bruno Haible.)
20296 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20298         doc: Use better texinfo tags in a few cases.
20299         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
20300         instead of @samp in a few places.
20302 2017-12-11  Bruno Haible  <bruno@clisp.org>
20304         unistr/base: Update comment.
20305         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
20307 2017-12-10  Pádraig Brady  <P@draigBrady.com>
20309         test-faccessat.c: unlink temp file to avoid subsequent test failure
20310         * tests/test-faccessat.c: Remove the file to avoid failure
20311         to open the file on subsequent runs due to being created
20312         with no permissions.
20314 2017-12-10  Bruno Haible  <bruno@clisp.org>
20316         doc: New sect. "Modifying the build rules of a Gnulib import directory".
20317         * doc/gnulib-tool.texi (Modified build rules): New node.
20319 2017-12-10  Bruno Haible  <bruno@clisp.org>
20321         doc: Tweak wording.
20322         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
20323         "binaries".
20325 2017-12-05  Sam Steingold  <sds@gnu.org>
20326             Bruno Haible  <bruno@clisp.org>
20328         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
20329         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
20330         AC_EGREP_CPP pattern.
20332 2017-12-03  Bruno Haible  <bruno@clisp.org>
20334         all: Replace more http URLs by https URLs.
20335         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
20336         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
20337         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
20338         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
20340 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
20342         Port better to CentOS 5
20343         Problems reported by Tom G. Christensen in:
20344         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
20345         * doc/glibc-functions/strverscmp.texi (strverscmp):
20346         Document strverscmp bug with glibc 2.9 and earlier.
20347         * doc/posix-functions/tzset.texi (tzset):
20348         Document that TZ with angle brackets is POSIX-2001 and later.
20349         * tests/test-nstrftime.c: Include unistd.h.
20350         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
20351         (TZ): Use it to skip tests with angle brackets in TZ,
20352         for older systems.
20354         stat: add missing module dependencies
20355         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
20356         Add stat-time.
20358 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
20360         stat: fix compilation failure on macOS Sierra
20361         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20362         https://savannah.gnu.org/bugs/?52546
20363         * lib/stat.c: Add missing include of stat-time.h.
20365 2017-11-28  Jim Meyering  <meyering@fb.com>
20367         test-faccessat.c: correct BASE definition to avoid parallel test failure
20368         * tests/test-faccessat.c (BASE): Define using this file's name, not
20369         that of test-lstat.c.  Using the latter caused this test to fail
20370         sometimes when run concurrently with test-lstat.
20372 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20374         unicase: fix VPATH build
20375         * modules/unicase/special-casing (Makefile.am): Ensure that the
20376         base directory is created when generating
20377         unicase/special-casing.h.
20379 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20381         libunistring: update to Unicode 9.0.0
20382         * lib/gen-uni-tables.c (fill_properties): Recognize
20383         Sentence_Terminal and Prepended_Concatenation_Mark.
20384         (is_property_default_ignorable_code_point): Exclude U+08E2.
20385         (fill_arabicshaping): Allow missing whitespace when parsing;
20386         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20387         (output_blocks): Increase the element size of the level1 table to
20388         accommodate more blocks.
20389         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20390         Update each class according to the standard.
20391         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20392         E_Base_GAZ characters.
20393         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20394         Glue_After_Zwj, and E_Base_GAZ characters.
20395         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20396         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20397         enum value.
20398         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20399         value.
20400         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20401         LBP_ZWJ, LBP_EB, and LBP_EM.
20402         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20403         enum value.
20404         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20405         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20406         declaration.
20407         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20408         (uniwbrk_table): Implement WB14.
20409         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20410         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20411         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20412         uc-is-grapheme-break.
20413         * modules/unigbrk/uc-grapheme-breaks: New module.
20414         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20415         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20416         enum value.
20417         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20418         * lib/unigbrk/u-grapheme-breaks.h: New file.
20419         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20420         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20421         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20422         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20423         29.
20424         * tests/unigbrk/test-uc-gbrk-prop.c
20425         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20426         GBP_GAZ, and GBP_EBG.
20427         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20428         * tests/unigbrk/test-uc-is-grapheme-break.c
20429         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20430         GBP_GAZ, and GBP_EBG.
20431         (main): Skip unsupported rules involving 3 or more characters,
20432         namely GB10, GB12, and GB13.
20433         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20434         * all generated files under lib/uni* and tests/uni*: Regenerate.
20435         * all the affected modules: Bump version.
20437 2017-11-26  Bruno Haible  <bruno@clisp.org>
20439         strfmon_l: Fix compilation error with glibc 2.5.
20440         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20441         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20442         * lib/monetary.in.h: Include also <locale.h>.
20444 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20446         posixtm: remove PDS_LEADING_YEAR
20447         This changes the API slightly, in a hopefully-innocuous way.
20448         Without this change the code had undefined behavior when a
20449         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20450         Problem reported by Pádraig Brady in:
20451         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20452         * NEWS: Mention this.
20453         * lib/posixtm.c (posix_time_parse): Treat the absence of
20454         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20455         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20456         present, but define it as zero, for compatibility with existing
20457         source code).  All other PDS_* values moved up.
20458         * tests/test-posixtm.c (LY): New macro.
20459         (T): Use it.  Do not expect a particular numeric encoding
20460         for PDS_CENTURY etc.
20462 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20464         stat: work around Solaris bug with tv_nsec < 0
20465         * doc/posix-functions/fstat.texi (fstat):
20466         * doc/posix-functions/fstatat.texi (fstatat):
20467         * doc/posix-functions/lstat.texi (lstat):
20468         * doc/posix-functions/stat.texi (stat):
20469         Mention Solaris 11 bug.
20470         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20471         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20472         * lib/lstat.c (rpl_lstat):
20473         * lib/stat.c (rpl_stat):
20474         Normalize resulting timestamps.
20475         * lib/fstatat.c (normal_fstatat): New function.
20476         (rpl_fstatat): Use it.
20477         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
20478         (stat_time_normalize): New function.
20479         * m4/fstat.m4 (gl_FUNC_FSTAT):
20480         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
20481         * m4/lstat.m4 (gl_FUNC_LSTAT):
20482         * m4/stat.m4 (gl_FUNC_STAT):
20483         Replace on Solaris.
20484         * modules/fstat (Depends-on):
20485         * modules/fstatat (Depends-on):
20486         Add stat-time.
20487         * modules/stat-time (Depends-on): Add errno, intprops.
20489 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20491         regex: merge from glibc
20492         * lib/regcomp.c (init_word_char): Add comments.
20494 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20496         regex: merge from glibc
20497         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
20498         * lib/regex_internal.h (internal_function): Remove.
20499         All uses removed.
20501 2017-11-20  Bruno Haible  <bruno@clisp.org>
20503         crypto/gc-sm3: Fix buffer overrun.
20504         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
20505         Reported by Coverity.
20507 2017-11-12  Jim Meyering  <meyering@fb.com>
20509         maint: shorten https://lists.gnu.org/archive/html/... links
20510         Each /archive/html/ part can be replace with /r/.
20511         Run this to induce the change:
20512         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
20513         * ChangeLog: Perform that substitution.
20514         * Makefile: Likewise.
20515         * STATUS-libposix: Likewise.
20516         * build-aux/bootstrap: Likewise.
20517         * doc/maintain.texi: Likewise.
20518         * gnulib-tool: Likewise.
20519         * lib/allocator.h: Likewise.
20520         * lib/argp-ba.c: Likewise.
20521         * lib/argp-pv.c: Likewise.
20522         * lib/canon-host.c: Likewise.
20523         * lib/canonicalize-lgpl.c: Likewise.
20524         * lib/float.in.h: Likewise.
20525         * lib/fstat.c: Likewise.
20526         * lib/getdelim.c: Likewise.
20527         * lib/getprogname.c: Likewise.
20528         * lib/glthread/thread.h: Likewise.
20529         * lib/intprops.h: Likewise.
20530         * lib/mbsrtowcs-state.c: Likewise.
20531         * lib/safe-read.c: Likewise.
20532         * lib/signal.in.h: Likewise.
20533         * lib/stat.c: Likewise.
20534         * lib/stdbool.in.h: Likewise.
20535         * lib/stdio-impl.h: Likewise.
20536         * lib/stdio.in.h: Likewise.
20537         * lib/sysexits.in.h: Likewise.
20538         * lib/timespec.h: Likewise.
20539         * lib/wcsrtombs-state.c: Likewise.
20540         * m4/alloca.m4: Likewise.
20541         * m4/extern-inline.m4: Likewise.
20542         * m4/fstatat.m4: Likewise.
20543         * m4/gnulib-common.m4: Likewise.
20544         * m4/lib-ignore.m4: Likewise.
20545         * m4/printf.m4: Likewise.
20546         * m4/regex.m4: Likewise.
20547         * m4/stat-size.m4: Likewise.
20548         * m4/std-gnu11.m4: Likewise.
20549         * m4/stdbool.m4: Likewise.
20550         * m4/sys_types_h.m4: Likewise.
20551         * m4/threadlib.m4: Likewise.
20552         * m4/vararrays.m4: Likewise.
20553         * pygnulib/GLImport.py: Likewise.
20554         * tests/test-exp.h: Likewise.
20555         * tests/test-exp2.h: Likewise.
20556         * tests/test-expm1.h: Likewise.
20557         * tests/test-fflush2.c: Likewise.
20558         * tests/test-getopt_long.h: Likewise.
20559         * tests/test-intprops.c: Likewise.
20560         * tests/test-log.h: Likewise.
20561         * tests/test-log10.h: Likewise.
20562         * tests/test-log1p.h: Likewise.
20563         * tests/test-log2.h: Likewise.
20564         * tests/test-printf-posix.h: Likewise.
20565         * tests/test-regex.c: Likewise.
20566         * tests/test-snprintf-posix.h: Likewise.
20567         * tests/test-sprintf-posix.h: Likewise.
20568         * tests/test-stdalign.c: Likewise.
20569         * tests/test-stdbool.c: Likewise.
20570         * tests/test-vasnprintf-posix.c: Likewise.
20571         * tests/test-vasprintf-posix.c: Likewise.
20572         * top/maint.mk: Likewise.
20574 2017-11-12  Bruno Haible  <bruno@clisp.org>
20576         faccessat: Make the last change more robust.
20577         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
20578         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
20580 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20582         faccessat: port to macOS (Bug#29231)
20583         macOS faccessat has the same bug that lstat does: if the file
20584         name ends in '/' it ignores the trailing slash.
20585         Problem reported for Emacs by Vincent Zhang.
20586         * doc/posix-functions/faccessat.texi (faccessat): Document this.
20587         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
20588         around the initial includes.  Include errno.h, string.h, sys/stat.h.
20589         (orig_faccessat) [HAVE_FACCESSAT]: New function.
20590         Include "unistd.h" after defining it.
20591         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
20592         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
20593         Handle in the usual way.
20594         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
20595         lstat dereferences symlinks, since faccessat is likely to
20596         have the same problem.
20597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
20598         * modules/faccessat (Depends-on): Add fstatat.
20599         Depend if REPLACE_FACCESSAT is 1, too.
20600         (configure.ac): Link if REPLACE_FACCESSAT is 1.
20601         * modules/faccessat-tests (Depends-on): Add symlink.
20602         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
20603         * tests/test-faccessat.c (main): Test for the bug.
20605 2017-11-11  Bruno Haible  <bruno@clisp.org>
20607         getprogname: Fix compilation error on IRIX.
20608         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20609         'namesize'.
20611 2017-11-11  Bruno Haible  <bruno@clisp.org>
20613         year2038: Tweak last patch.
20614         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20616 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20618         year2038: be more insistent about 64-bit time_t
20619         Applications requiring access to arbitrary files should not be
20620         built with 32-bit time_t on hosts that have 64-bit timestamps,
20621         as this can lead to real trouble at runtime.
20622         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
20623         Check on all systems, not just MinGW.  Use a heuristic involving
20624         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
20625         output a failure or just a warning, to make it more likely that
20626         builders will select 64-bit time_t.
20628 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20630         havelib: fix typo in previous change
20631         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
20633         Don’t use AC_EGREP_CPP if affected by CFLAGS
20634         * m4/float_h.m4 (gl_FLOAT_H):
20635         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
20636         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
20637         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
20638         * m4/year2038.m4 (gl_YEAR2038):
20639         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
20640         likely to be affected by the choice of CFLAGS, since CFLAGS are
20641         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
20642         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
20644         fstatat: pacify GCC on unusual platform
20645         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
20646         Omit, as it’s unused in this case.
20648 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20650         timespec: prefer ‘assume’ to ‘assure’
20651         This avoids some runtime tests.  The rest of the module makes
20652         similar assumptions and there is little point to testing here.
20653         * lib/timespec.h: Include verify.h instead of assure.h.
20654         (timespec_cmp): Use ‘assume’, not ‘assure’.
20655         Also, remove an unnecessary cast to ‘int’, as lots of other
20656         code in this module now causes -Wconversion to complain, and
20657         this is a problem with -Wconversion not with the code.
20659         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
20661         Port recent gnulib-tool change to Dash
20662         * gnulib-tool (func_create_testdir): Don't assume that the shell
20663         retokenizes after expanding "$@" inside the call to
20664         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
20666 2017-10-27  Jim Meyering  <meyering@fb.com>
20668         timespec.h: use "assure" to avoid a spurious warning
20669         * lib/timespec.h: Include "assure.h" and use it to help
20670         gcc7's -Wstrict-overflow avoid a false positive warning
20671         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
20672         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
20673         * modules/timespec (Depends-on): Add assure.
20675 2017-10-29  Bruno Haible  <bruno@clisp.org>
20677         Avoid several test failures with traditional locales on Haiku.
20678         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
20679         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
20680         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20681         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20682         LOCALE_ZH_CN=none.
20684 2017-10-29  Bruno Haible  <bruno@clisp.org>
20686         strerror_r-posix: Fix behaviour and test failure on Haiku.
20687         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20688         are positive. Work around return value 0 instead of ERANGE on Haiku.
20689         For unknown error numbers, use a format string consistent with perror().
20690         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20691         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20692         are positive.
20694 2017-10-29  Bruno Haible  <bruno@clisp.org>
20696         get-rusage-data: Avoid crash on Haiku.
20697         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20699 2017-10-29  Bruno Haible  <bruno@clisp.org>
20701         get-rusage-as: Avoid crash on Haiku.
20702         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20704 2017-10-29  Bruno Haible  <bruno@clisp.org>
20706         ilogbl: Ensure replacement on Haiku.
20707         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20708         REPLACE_ILOGBL if ilogbl does not work.
20709         (gl_FUNC_ILOGBL_WORKS): New macro.
20710         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20712         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20713         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20714         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20716 2017-10-29  Bruno Haible  <bruno@clisp.org>
20718         expl: Ensure replacement on Haiku.
20719         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20720         zero.
20721         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20723 2017-10-29  Bruno Haible  <bruno@clisp.org>
20725         math: Fix test failure on Haiku.
20726         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20727         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20728         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20729         * doc/posix-headers/math.texi: Mention the Haiku problem.
20731 2017-10-29  Bruno Haible  <bruno@clisp.org>
20733         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20734         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20735         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20737 2017-10-29  Bruno Haible  <bruno@clisp.org>
20739         crypto/*: Verify that the header file is self-contained.
20740         * tests/test-gc-*.c: Include the module's header file immediately after
20741         <config.h>.
20742         * tests/test-hmac-*.c: Likewise.
20743         * tests/test-arcfour.c: Likewise.
20744         * tests/test-arctwo.c: Likewise.
20745         * tests/test-des.c: Likewise.
20746         * tests/test-md2.c: Likewise.
20747         * tests/test-md4.c: Likewise.
20748         * tests/test-md5.c: Likewise.
20749         * tests/test-rijndael.c: Likewise.
20750         * tests/test-sha1.c: Likewise.
20751         * tests/test-sm3.c: Likewise.
20753 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20754             Bruno Haible  <bruno@clisp.org>
20756         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20757         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20759 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20761         New module: crypto/gc-sm3
20762         * lib/gc.h: Declare SM3-related stuffs.
20763         * lib/gc-gnulib.c: Support sm3 in internal functions.
20764         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20765         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20766         * modules/crypto/gc-sm3: Define gc-sm3 module.
20767         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20768         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20769         * MODULES.html.sh: List gc-sm3 module.
20771 2017-10-29  Bruno Haible  <bruno@clisp.org>
20773         random, random_r: Mention different prototypes on Haiku.
20774         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20775         * doc/glibc-functions/random_r.texi: Likewise.
20776         * doc/glibc-functions/initstate_r.texi: Likewise.
20777         * doc/glibc-functions/setstate_r.texi: Likewise.
20779 2017-10-28  Bruno Haible  <bruno@clisp.org>
20781         posix_spawn: Avoid spurious message in configure output.
20782         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20783         'cmp' command.
20785 2017-10-28  Bruno Haible  <bruno@clisp.org>
20787         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20788         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20789         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20791 2017-10-28  Bruno Haible  <bruno@clisp.org>
20793         ioctl: Override non-POSIX declaration on Haiku.
20794         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20795         * lib/sys_ioctl.in.h: Add comment about Haiku.
20796         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20797         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20799 2017-10-28  Bruno Haible  <bruno@clisp.org>
20801         crypto/sm3: Add overview documentation to the .h file.
20802         * lib/sm3.h: Add comments.
20804 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20806         New module: crypto/sm3
20807         This new module can be used to compute SM3 message digest of files or
20808         memory blocks according to the specification GM/T 004-2012
20809         Cryptographic Hash Algorithm SM3, published by State Cryptography
20810         Administration, China.
20811         The official SM3 cryptographic hash algorithm specification is
20812         available at
20813         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20814         * lib/sm3.h: Declare the APIs of sm3 module.
20815         * lib/sm3.c: Implement SM3 hash algorithm.
20816         * m4/sm3.m4: m4 file for sm3 module.
20817         * modules/crypto/sm3: Define sm3 module.
20818         * tests/test-sm3.c: Implement SM3 test case.
20819         * modules/crypto/sm3-tests: Define sm3 test module.
20820         * MODULES.html.sh: List sm3 module.
20822 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20824         gc-libgcrypt: fix undefined enum type in switch statement
20825         Resolve the following build failure:
20826         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20827         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20828         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20829              case 0:
20830              ^~~~
20831         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20832         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20834 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20836         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20837         Resolve the following build failure:
20838         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20839         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20840         in signedness [-Werror=pointer-sign]
20841             digest = gcry_md_read (ctx->gch, 0);
20842                    ^
20843         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20845 2017-10-26  Bruno Haible  <bruno@clisp.org>
20847         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20848         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20849         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20851 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20853         glob: fix another heap buffer overflow
20854         Problem reported by Tim Rühsen in:
20855         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20856         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20858 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20860         quotearg: pacify compiler re unsigned
20861         * lib/quotearg.c (quotearg_n_options):
20862         Rewrite to avoid diagnostic from overly-picky compiler.
20863         Problem reported by Sami Kerola in:
20864         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20866         glob: fix heap buffer overflow
20867         * lib/glob.c (glob): Fix off-by-one error introduced into
20868         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20869         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20870         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20871         Fix suggested by Bruno Haible.
20873 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20875         glob: pacify fuzzer for mempcpy
20876         Problem reported by Tim Rühsen in:
20877         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20878         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20880 2017-10-12  Bruno Haible  <bruno@clisp.org>
20882         doc: Fix syntax error (regression from 2017-10-03).
20883         * doc/posix-functions/strncpy.texi: Fix syntax error.
20885 2017-10-12  Bruno Haible  <bruno@clisp.org>
20887         doc: Update for Solaris 11.3.
20888         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20889         mention Solaris 11.3.
20890         * m4/log2.m4: Fix comments.
20891         * m4/log2f.m4: Likewise.
20892         * m4/printf.m4: Update comments.
20893         * m4/rename.m4: Likewise.
20894         * m4/strncat.m4: Likewise.
20896         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20898 2017-10-10  Bruno Haible  <bruno@clisp.org>
20900         doc: Improve doc about ioctl.
20901         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20902         prototype.
20904 2017-10-09  Bruno Haible  <bruno@clisp.org>
20906         wcwidth: Don't use obsolete syntax of 'test'.
20907         Reported by Eric Blake.
20908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20909         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20911 2017-10-09  Bruno Haible  <bruno@clisp.org>
20913         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20914         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20915         and Daniel P. Berrange <berrange@redhat.com>.
20916         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20917         on glibc systems. The getopt-pfx-core.h file declares exactly what
20918         unistd.h needs, nothing more.
20920 2017-10-08  Bruno Haible  <bruno@clisp.org>
20922         vma-iter: Improve support for FreeBSD.
20923         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20924         vma_iterate.
20925         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20927 2017-10-08  Bruno Haible  <bruno@clisp.org>
20929         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20930         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20932 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20934         test-framework-sh: Fix 'invalid path dir' error.
20935         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20936         separator between a drive letter and directory parts.
20937         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20938         treated as an invalid path dir.
20939         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20940         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20941         instead of hard coded ':'.
20943 2017-10-07  Bruno Haible  <bruno@clisp.org>
20945         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20946         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20947         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20948         (rof_open): On Linux, do multiple read() calls and make sure
20949         MIN_LEFTOVER bytes are left when read() returns.
20951 2017-10-07  Bruno Haible  <bruno@clisp.org>
20953         vma-iter: Improve support for GNU/Hurd.
20954         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20955         API, not the /proc file system.
20957 2017-10-07  Bruno Haible  <bruno@clisp.org>
20959         test-framework-sh: Don't require bash on Windows and OS/2.
20960         Reported by KO Myung-Hun.
20961         * tests/test-init.sh: Use 'shopt' only when running in bash.
20963 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20965         wcwidth: check a macro version of wcwidth () as well
20966         * lib/wchar.in.h: Revert commit from 2016-01-14.
20967         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20969 2017-10-06  Bruno Haible  <bruno@clisp.org>
20971         getopt-posix: Clarify copyright header.
20972         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20973         * lib/getopt-pfx-core.h: Likewise.
20974         * lib/getopt-pfx-ext.h: Likewise.
20975         * lib/getopt-cdefs.in.h: Likewise.
20977 2017-10-03  Bruno Haible  <bruno@clisp.org>
20979         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20980         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20981         gl_HOST_CPU_C_ABI.
20983 2017-10-03  Bruno Haible  <bruno@clisp.org>
20985         doc: warn about misuse of strncpy and wcsncpy.
20986         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20987         memory allocation.
20988         * doc/posix-functions/wcscpy.texi: Likewise.
20989         * doc/posix-functions/strncpy.texi: Describe what this function is not
20990         useful for.
20991         * doc/posix-functions/wcsncpy.texi: Likewise.
20993 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20995         fsuage: fix typo in previous change
20996         * lib/fsusage.c: Remove stray include of full-read.h.
20997         Problem reported by Sam Steingold for macOS (Bug#28669).
20999 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21001         fsusage: remove SVR2 support
21002         SVR2 was obsolete by 1986 and is no longer supported by anybody,
21003         and its code was getting in the way of use of this module by
21004         Emacs, which has its own ‘read’ function anyway.
21005         * lib/fsusage.c: Do not include sys/filsys.h.
21006         (get_fs_usage): Remove SVR2-specific code.
21007         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
21008         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
21009         * modules/fsusage (Depends-on): Do not depend on full-read.
21011         Simplify autoupdate of licenses
21012         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
21013         place.
21015 2017-10-01  Bruno Haible  <bruno@clisp.org>
21017         vma-iter: Add support for GNU/Hurd.
21018         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
21019         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21021 2017-09-30  Bruno Haible  <bruno@clisp.org>
21023         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
21024         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
21025         fail when module 'largefile' is in use.
21026         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
21027         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
21028         Don't test HAVE_SYS_PROCFS_H.
21030 2017-09-30  Bruno Haible  <bruno@clisp.org>
21032         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
21033         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
21034         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
21035         * modules/havelib (Depends-on): Add host-cpu-c-abi.
21037 2017-09-30  Bruno Haible  <bruno@clisp.org>
21039         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
21040         * lib/uniname/uniname.c (unicode_name_character): Add braces around
21041         scope of local variables.
21043 2017-09-28  Bruno Haible  <bruno@clisp.org>
21045         string: code style
21046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
21047         substitutable variables.
21048         * modules/string (Makefile.am): Likewise.
21050 2017-09-26  Bruno Haible  <bruno@clisp.org>
21052         uniname/uniname-tests: Tighten code.
21053         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
21054         local variables into one.
21056 2017-09-26  Bruno Haible  <bruno@clisp.org>
21058         vma-iter: Improvements for Linux and BSD platforms.
21059         - Add support for DragonFly BSD.
21060         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
21061         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
21062         Read the entire file into memory in a single system call.
21063         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
21064         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
21066 2017-09-26  Bruno Haible  <bruno@clisp.org>
21068         vma-iter: Provide the protection flags on FreeBSD.
21069         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
21070         skip three fields between the addresses and the protection flags.
21072 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21074         glob: remove bogus extern decl
21075         * lib/glob.c (__glob_pattern_type): Remove now-spurious
21076         extern declaration.  Problem reported by Adhemerval Zanella in:
21077         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
21079 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21081         uniname/uniname-tests: integer overflow fix
21082         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
21083         Check for integer overflow.
21085         duplocale-tests: fix unlikely crash
21086         * tests/test-duplocale.c (get_locale_dependent_values):
21087         Don’t crash with absurdly long month names.
21089         maint: fix overflow checking in nap.h
21090         * modules/chown-tests:
21091         * modules/fchownat-tests, modules/fdutimensat-tests:
21092         * modules/futimens-tests, modules/lchown-tests:
21093         * modules/stat-time-tests, modules/utime-tests:
21094         * modules/utimens-tests, modules/utimensat-tests:
21095         Depend on intprops.
21096         * tests/nap.h: Include intprops.h.
21097         (diff_timespec): Handle overflow properly.
21099         sys_types: update URL
21100         * m4/sys_types_h.m4: Use https: URL.
21102         parse-datetime: fix dependency
21103         * modules/parse-datetime (Depends-on): Depend
21104         on nstrftime, not strftime.
21106         parse-datetime, posixtm: avoid uninit access
21107         * lib/parse-datetime.y (parse_datetime2):
21108         * lib/posixtm.c (posixtime):
21109         Do not access uninitialized storage, even though the resulting
21110         value is never used.
21112 2017-09-25  Bruno Haible  <bruno@clisp.org>
21114         vma-iter: Improvements for BSD platforms.
21115         - Add support for GNU/kFreeBSD.
21116         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
21117         - Speed up on OpenBSD.
21118         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
21119         (vma_iterate_bsd): New function.
21120         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
21121         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
21122         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21123         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
21125 2017-09-23  Bruno Haible  <bruno@clisp.org>
21127         strfmon_l: New module.
21128         * modules/strfmon_l: New file.
21129         * lib/strfmon_l.c: New file.
21130         * m4/strfmon_l.m4: New file.
21131         * doc/posix-functions/strfmon_l.texi: Mention the new module.
21132         * modules/strfmon_l-tests: New file.
21133         * tests/test-strfmon_l.c: New file.
21135         monetary: New module.
21136         * modules/monetary: New file.
21137         * lib/monetary.in.h: New file.
21138         * m4/monetary_h.m4: New file.
21139         * doc/posix-headers/monetary.texi: Mention the new module.
21140         * modules/monetary-tests: New file.
21141         * tests/test-monetary.c: New file.
21142         * modules/monetary-c++-tests: New file.
21143         * tests/test-monetary-c++.cc: New file.
21144         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
21146 2017-09-23  Bruno Haible  <bruno@clisp.org>
21148         duplocale tests: Fix test crash on Linux/x86.
21149         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
21150         locale from the current thread before freeing it.
21152 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
21154         mktime: port to OpenVMS
21155         Problem reported by John E. Malmberg in:
21156         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
21157         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
21159 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21161         manywarnings: port to GCC on 64-bit MS-Windows
21162         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
21163         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
21164         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
21166 2017-09-13  Bruno Haible  <bruno@clisp.org>
21168         all: Replace many more http URLs by https URLs. Update stale URLs.
21169         * users.txt: Remove mention of 'newts'.
21170         * lib/localename.c: Update comment about LANG_SOTHO.
21172 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21174         all: Replace many http URLs by https URLs.
21176 2017-09-12  Bruno Haible  <bruno@clisp.org>
21178         doc: Prefer https URLs where possible.
21179         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
21180         * doc/ld-output-def.texi: Remove unavailable URL.
21182 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21184         maintainer-makefile: FTP -> HTTPS
21185         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
21186         of FTP, which is planned to be decommissioned on 2017-11-01.
21188 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21190         libc-config: Fix __GNUC_PREREQ macro.
21191         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21192         __GNUC_MINOR.
21194 2017-09-09  Bruno Haible  <bruno@clisp.org>
21196         gnulib-tool: Simplify commit from 2015-08-20.
21197         * gnulib-tool (func_add_or_update): Remove local variable
21198         is_binary_file.
21200 2017-09-08  Bruno Haible  <bruno@clisp.org>
21202         stddef: Avoid conflict with system-defined max_align_t.
21203         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
21204         Reported by Werner Lemberg <wl@gnu.org> in
21205         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
21206         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
21207         (max_align_t): Define as a macro.
21208         (GNULIB_defined_max_align_t): New macro. Guards against multiple
21209         definitions of rpl_max_align_t in different copies of gnulib-generated
21210         <stddef.h>.
21212 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21214         libc-config: port to MSVC
21215         Problems reported by Gisle Vanem in:
21216         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
21217         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
21218         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
21219         * m4/__inline.m4: New file.
21220         * modules/libc-config (Files): Add it.
21221         (Depends-on): Use it.
21223         glob: Use enum for __glob_pattern_type result
21224         From a patch proposed by Adhemerval Zanella in:
21225         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
21226         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21227         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21228         * lib/glob_internal.h (__glob_pattern_type):
21229         * lib/glob.c (glob):
21230         * lib/glob_pattern_p.c (__glob_pattern_p):
21231         Use them.
21233         glob: fix for use in glibc
21234         Problem reported by Adhemerval Zanella in:
21235         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
21236         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
21237         Do not redefine if _LIBC.
21239 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21241         glob: fix bugs with long login names
21242         Problem reported by Adhemerval Zanella in:
21243         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
21244         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
21245         (glob): Use the same scratch buffer for both getlogin_r and
21246         getpwnam_r.  Don’t require preallocation of the login name.  This
21247         simplifies storage allocation, and corrects the handling of
21248         long login names.
21250 2017-09-02  Bruno Haible  <bruno@clisp.org>
21252         dirent: Update doc.
21253         * doc/posix-headers/dirent.texi: More concrete list of platforms.
21255 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21257         glob: fix getpwnam_r errno typo
21258         * lib/glob.c (glob): Fix longstanding misuse of errno after
21259         getpwnam_r, which returns an error number rather than setting
21260         errno.
21262         glob: fix typo in recent change
21263         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
21264         Fix recently-introduced typo.
21266 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21268         glob: don't save and restore errno unnecessarily
21269         * lib/glob.c (glob): Don't save and restore errno
21270         merely because we have getpwnam_r.
21272         glob: don't assume getpwnam_r
21273         * lib/glob.c (glob): Port recent patches to platforms
21274         lacking getpwnam_r.
21276         scratch_buffer: don’t use private glibc API
21277         Suggested by Florian Weimer in:
21278         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
21279         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
21280         * lib/scratch_buffer_grow.c: Rename to
21281         lib/malloc/scratch_buffer_grow.c.
21282         * lib/scratch_buffer_grow_preserve.c: Rename to
21283         lib/malloc/scratch_buffer_grow_preserve.c.
21284         * lib/scratch_buffer_set_array_size.c: Rename to
21285         lib/malloc/scratch_buffer_set_array_size.c.
21286         * lib/scratch_buffer.h: New file.
21287         * modules/scratch_buffer (Files, Makefile.am):
21288         Adjust to source-file renaming.
21290 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21292         glob: use scratch_buffer instead of extend_alloca
21293         Much of the lib/glob.c part of this patch comes from a glibc patch
21294         proposed by Adhemerval Zanella in:
21295         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
21296         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
21297         included via glob.h, does this for us now.
21298         (__set_errno): Remove, as libc-config does this for us now.
21299         Include <scratch_buffer.h>.
21300         (GETPW_R_SIZE_MAX): Remove.
21301         (glob): Use struct scratch_buffer instead of extend_alloca.
21302         * lib/glob.in.h: Include libc-config.h rather than
21303         including <sys/cdefs.h> conditionally.
21304         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
21305         (__glibc_unlikely, __restrict, weak_alias):
21306         Remove, as libc-config does this for us now.
21307         * m4/glob.m4 (gl_PREREQ_GLOB):
21308         Remove sys/cdefs.h tests; no longer needed.
21309         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
21310         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
21312         scratch_buffer: new module
21313         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
21314         * lib/scratch_buffer_grow_preserve.c:
21315         * lib/scratch_buffer_set_array_size.c:
21316         New files, copied from glibc with very minor changes that can be
21317         copied back.
21318         * modules/scratch_buffer: New file.
21320         libc-config: new module
21321         * MODULES.html.sh: Add libc-config.
21322         * lib/cdefs.h: New file, copied from the GNU C Library with very
21323         minor changes that can be copied back.
21324         * lib/libc-config.h, modules/libc-config: New files.
21326 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21328         glob: match dangling symlinks
21329         This fixes a bug I inadvertently introduced to Gnulib when I
21330         merged glibc glob back into gnulib on 2007-10-16.  This fix is
21331         inspired by a patch proposed for glibc by Adhemerval Zanella in:
21332         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
21333         * doc/posix-functions/glob.texi: Update list of affected platforms.
21334         * lib/glob.c (__lstat64): New macro.
21335         (is_dir): New function.
21336         (glob, glob_in_dir): Match symlinks even if they are dangling.
21337         (link_stat, link_exists_p): Remove.  All uses removed.
21338         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
21339         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
21340         * modules/glob-tests (Depends-on): Add symlink.
21341         * tests/test-glob.c: Include errno.h, unistd.h.
21342         (BASE): New macro.
21343         (main): Test dangling symlinks, if symlinks are supported.
21345         glob, backupfile: inode 0 is a valid inode number
21346         * doc/posix-functions/readdir.texi (readdir):
21347         * doc/posix-headers/dirent.texi (dirent.h):
21348         Document more readdir portability issues.
21349         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
21350         (numbered_backup): Don’t treat inode 0 any differently from
21351         other inode values.
21352         * lib/glob.c (struct readdir_result): Remove skip_entry member.
21353         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
21354         All uses removed.
21355         * modules/glob (Depends-on): Remove d-ino.
21357         glob: simplify symlink detection
21358         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
21359         uint8_t, as C99 does not require uint8_t.
21360         (struct readdir_result): Use it.  Do not define skip_entry unless
21361         it is needed; this saves a byte on platforms lacking d_ino.
21362         (readdir_result_type, readdir_result_skip_entry):
21363         New functions, replacing ...
21364         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21365         ... these functions, which were removed.  This makes the callers
21366         easier to read.  All callers changed.
21367         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21369 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21371         fts-tests: tag as a longrunning-test so not included by default
21372         * modules/fts-tests: This test takes about 20s on current systems,
21373         and uses about 285M of space on ext4.
21375 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21377         renameat2: fix compilation on alpine linux
21378         * m4/renameat.m4: Check for <linux/fs.h> presence.
21379         * lib/renameat2.h: Only include <linux/fs.h> if present.
21380         Reported by Assaf Gordon on Alpine Linux.
21382 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21384         glob: try to port recent changes to MS-Windows
21385         Problem reported by Bruno Haible in:
21386         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21387         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21388         * lib/glob.in.h (__glob_pattern_p): ... to here.
21390 2017-08-24  Eric Blake  <eblake@redhat.com>
21392         warnings: fix compilation with old autoconf
21393         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21394         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21395         AC_DEFUN.
21396         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21397         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21399 2017-08-24  Bruno Haible  <bruno@clisp.org>
21401         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21402         * modules/glob (Depends-on): Add c99.
21404 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21406         glob: fix typo that broke platforms lacking d_ino
21407         This typo also hurt performance on GNU/Linux and similar hosts.
21408         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21409         in previous change.
21411 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21413         glob: merge from glibc with Zanella glob changes
21414         Merge glob from glibc, with changes for glob proposed
21415         by Adhemerval Zanella in the thread starting here:
21416         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21417         plus some fixes for this merge.
21418         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21419         New files, ported from glibc.
21420         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21421         with __restrict.
21422         (__size_t): Remove.  All uses replaced by size_t.
21423         (size_t): Define by defining __need_size_t and including <stddef.h>.
21424         This should work even in non-glibc platforms, where any name
21425         pollution is OK.
21426         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21427         (struct stat64): Don’t worry about __GLOB_GNULIB.
21428         (glob, globfree, glob_pattern_p): Remove macros for
21429         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21430         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21431         but set errno.
21432         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21433         removed since the glibc behavior works on null pointers.
21434         Do not include stdio.h; old SunOS is irrelevant now.
21435         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21436         Include glob_internal.h.
21437         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21438         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21439         worked only coincidentally.
21440         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21441         Remove macros; now done in glob.in.h.
21442         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21443         (glob): Properly initialize glob structure with
21444         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21445         Remove old code using SHELL since Bash no longer
21446         uses this.
21447         (glob, prefix_array): Separate MS code better.
21448         (glob, glob_in_dir): Use C99 decls before statements when glibc
21449         does.
21450         (glob_in_dir): Remove old Amiga and VMS code.
21451         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21452         separate files.
21453         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21454         (__glibc_unlikely):
21455         Move here from glob.c.
21456         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21457         (weak_alias): New macro.
21458         (__size_t): Remove.  All uses replaced by size_t.
21459         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21460         * modules/glob (Files): Add +lib/glob_internal.h,
21461         lib/glob_pattern_p.c, lib/globfree.c.
21462         (Depends-on): Remove snippet/arg-nonnull.
21464 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21466         glob: port to clang's Undefined Sanitizer
21467         Problem reported by Tim Rühsen in:
21468         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21469         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21470         (glob_in_dir): Do not rely on undefined behavior in accessing
21471         struct members beyond their bounds.  Use a flexible array member
21472         instead.
21474 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21476         vc-list-files: port to Solaris 10
21477         * build-aux/vc-list-files: Don't assume test -e works.
21479 2017-08-21  Karl Berry  <karl@freefriends.org>
21481         * doc/posix-functions/srandom.texi (srandom): typo }.
21483 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21485         git-version-gen: port to Solaris 10
21486         Problem reported by Dagobert Michelsen in:
21487         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
21488         * build-aux/git-version-gen (v_from_git):
21489         Use expr instead of shell substitution.
21491 2017-08-19  Bruno Haible  <bruno@clisp.org>
21493         host-cpu-c-abi: Improve detection of MIPS ABI.
21494         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
21495         _MIPS_SIM.
21497 2017-08-17  Bruno Haible  <bruno@clisp.org>
21499         hypot tests: Fix test failure on FreeBSD 11.0/x86.
21500         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
21502 2017-08-17  Bruno Haible  <bruno@clisp.org>
21504         float: Fix LDBL_MIN value on FreeBSD/x86.
21505         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
21507 2017-08-17  Bruno Haible  <bruno@clisp.org>
21509         random: Fix test compilation failure on Cygwin 1.5.25.
21510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
21511         HAVE_DECL_SETSTATE.
21512         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
21513         declared.
21514         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
21515         HAVE_DECL_SETSTATE.
21516         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
21517         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
21518         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
21519         * doc/posix-functions/random.texi: Likewise.
21520         * doc/posix-functions/setstate.texi: Likewise.
21521         * doc/posix-functions/srandom.texi: Likewise.
21523 2017-08-16  Bruno Haible  <bruno@clisp.org>
21525         stdnoreturn: Fix test compilation failure on Cygwin.
21526         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
21527         <stdnoreturn.h> replacement.
21528         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
21529         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
21531 2017-08-16  Bruno Haible  <bruno@clisp.org>
21533         thread: Fix conflict with pthread_sigmask module.
21534         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
21535         it's defined as a macro.
21536         * modules/thread (Depends-on): Add pthread_sigmask.
21538 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21540         rename: port better to NetBSD
21541         * doc/posix-functions/rename.texi (rename): NetBSD 7
21542         does not have the link-count bug.
21543         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
21544         broken merely because rename ("a", "b") removes "a" when the two
21545         names are hard links to the same file.
21547 2017-08-16  Bruno Haible  <bruno@clisp.org>
21549         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
21550         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
21551         the target file names with '$(srcdir)/'.
21552         * modules/unicase/locale-language (Makefile.am): Likewise.
21553         * modules/unicase/special-casing (Makefile.am): Likewise.
21554         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
21555         * modules/unictype/category-byname (Makefile.am): Likewise.
21556         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21557         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21558         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21559         * modules/unictype/property-byname (Makefile.am): Likewise.
21560         * modules/unictype/scripts (Makefile.am): Likewise.
21561         * modules/uninorm/composition (Makefile.am): Likewise.
21563 2017-08-16  Bruno Haible  <bruno@clisp.org>
21565         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
21566         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
21567         value for OpenBSD.
21569 2017-08-16  Bruno Haible  <bruno@clisp.org>
21571         rename, renameat: Update doc regarding NetBSD.
21572         * doc/posix-functions/rename.texi: Clarify that when using
21573         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
21574         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
21575         version.
21577 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21579         renameat2: port better to macOS
21580         * lib/renameat2.c (renameat2): Use renameatx_np if available.
21582         futimens: don’t assume struct timespec layout
21583         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
21584         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
21585         * tests/test-fdutimensat.c (main):
21586         * tests/test-futimens.h (test_futimens):
21587         * tests/test-lutimens.h (test_lutimens):
21588         * tests/test-utimens.h (test_utimens):
21589         * tests/test-utimensat.c (main):
21590         Don’t assume that struct timespec is a two-member structure in
21591         tv_sec, tv_nsec order.  Although this is true on all platforms we
21592         know about, POSIX does not guarantee it.
21594         rename: document+test NetBSD rename
21595         Test failure reported by Bruno Haible in:
21596         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
21597         This is an area where NetBSD is better-behaved than POSIX,
21598         so allow the NetBSD behavior in tests.
21599         * doc/posix-functions/rename.texi:
21600         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
21601         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
21603 2017-08-15  Bruno Haible  <bruno@clisp.org>
21605         renameat: Ensure declaration in <stdio.h> on NetBSD.
21606         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
21607         * doc/posix-functions/renameat.texi: Mention this problem.
21609 2017-08-15  Bruno Haible  <bruno@clisp.org>
21611         duplocale: Work around NetBSD 7.0 bug.
21612         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21613         * lib/duplocale.c: Add comment about NetBSD problem.
21614         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21616 2017-08-15  Bruno Haible  <bruno@clisp.org>
21618         duplocale tests: Verify use with *_l functions.
21619         * modules/duplocale-tests (configure.ac): Test for uselocale and
21620         some *_l functions.
21621         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
21622         from main.
21623         (get_locale_dependent_values_from, test_with_locale_parameter): New
21624         functions.
21625         (main): Test both test_with_uselocale and test_with_locale_parameter.
21627 2017-08-15  Bruno Haible  <bruno@clisp.org>
21629         extensions: Enable NetBSD specific extensions.
21630         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
21632 2017-08-14  Bruno Haible  <bruno@clisp.org>
21634         open, openat: Update doc about O_CLOEXEC.
21635         * doc/posix-functions/open.texi: More concrete list of platforms.
21636         * doc/posix-functions/openat.texi: Likewise.
21638 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21640         open: support O_CLOEXEC
21641         * NEWS, doc/posix-functions/open.texi:
21642         * doc/posix-functions/openat.texi: Document this.
21643         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
21644         (GNULIB_defined_O_CLOEXEC): New symbol.
21645         * lib/open.c: Include cloexec.h.
21646         (open): Support O_CLOEXEC.
21647         * lib/openat.c: Include cloexec.h.
21648         (rpl_openat): Support O_CLOEXEC.
21649         * lib/popen-safer.c: Do not include cloexec.h.
21650         (open_noinherit): Remove.
21651         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
21652         * lib/save-cwd.c: Do not include cloexec.h.
21653         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
21654         * m4/open-cloexec.m4: New file.
21655         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
21656         Replace 'open' if O_CLOEXEC is not present.
21657         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
21658         Replace 'openat' if O_CLOEXEC is not present.
21659         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
21660         * modules/open (Files): Add m4/open-cloexec.m4.
21661         (Depends-on): Depend on cloexec if replacing 'open'.
21662         * modules/openat (Files): Add m4/open-cloexec.m4.
21663         (Depends-on): Depend on cloexec if replacing openat.
21664         * modules/popen-safer (Depends-on): Remove cloexec.
21665         * modules/save-cwd (Depends-on): Remove cloexec, and add
21666         fd-safer-flag and 'open'.
21668 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
21670         reallocarray: minor fixes
21671         * doc/glibc-functions/reallocarray.texi: Update version numbers.
21672         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
21673         * modules/reallocarray (License): Change from GPL to LGPL.
21674         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
21675         Indent properly and don't use tabs.
21677 2017-08-13  Darshit Shah  <darnir@gnu.org>
21679         reallocarray: New module
21680         reallocarray is a new function in glibc 2.26 to safely allocate an array
21681         of memory locations with integer overflow protection.
21682         * MODULES.html.sh: Add reallocarray.
21683         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21684         * lib/reallocarray.c: New file to implement module reallocarray.
21685         * lib/stdlib.in.h: Add function declarations for reallocarray.
21686         * m4/reallocarray.m4: New file.
21687         * m4/stdlib_h.m4: Declare reallocarray.
21688         * modules/reallocarray: New file.
21689         * modules/reallocarray-test: New file.
21690         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21691         * tests/test-reallocarray.c: New test.
21693 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21695         dirent-safer: fix cloexec race
21696         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21697         (opendir_safer): Use F_DUPFD_CLOEXEC.
21698         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21699         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21700         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21701         instead of dup_safer.
21703         fts: fix cloexec races
21704         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21705         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21706         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21707         (fd_ring_check): Set cloexec flag on new file descriptors.
21708         (fts_build, fd_ring_check): While we’re at it, make sure the
21709         resulting file descriptor is not 0, 1, or 2, since that is easy.
21711 2017-08-11  Bruno Haible  <bruno@clisp.org>
21713         fts tests: Fix link error.
21714         Reported by Tom G. Christensen in
21715         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21716         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21718 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21720         fts: port recent changes to CentOS 6
21721         Problem reported by Tom G. Christensen in:
21722         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21723         * lib/fts.c (fsword): New type.
21724         (struct dev_type, filesystem_type): Use it.
21725         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21726         Also, check for f_type only if fstatfs and sys/vfs.h work.
21728 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21730         tempname: do not depend on secure_getenv
21731         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21732         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21733         * modules/tempname (Depends-on): Remove secure_getenv.
21735 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21737         extensions: add _OPENBSD_SOURCE
21738         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21740 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21741             Bruno Haible  <bruno@clisp.org>
21743         manywarnings: Add support for C++.
21744         * build-aux/g++-warning.spec: New file.
21745         * m4/manywarnings-c++.m4: New file.
21746         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21747         redirects to manywarnings-c++.m4.
21748         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21750 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21752         git-version-gen: another fix for tags with "-"
21753         * build-aux/git-version-gen: Improve fix for tags containing "-".
21754         Suggested by Markus Armbruster in:
21755         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21757 2017-08-06  Bruno Haible  <bruno@clisp.org>
21759         warnings, manywarnings: Add support for multiple languages, not just C.
21760         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21761         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21762         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21763         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21764         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21765         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21766         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21767         of the current language. If C++ is the current language, modify
21768         WARN_CXXFLAGS instead of WARN_CFLAGS.
21769         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21770         gl_MANYWARN_ALL_GCC.
21771         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21773 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21775         git-version-gen: Fix for tags containing '-'
21777         Really old versions of git-describe (before v1.5.0, Feb 2007)
21778         don't have the number of commits in their long format output,
21779         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21780         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21781         recognizes both patterns, and normalizes the old format to the new one.
21783         Unfortunately, this normalization code gets confused when the tag
21784         contains '-'.  Reproducer:
21786             $ git-tag -m test v0.2-rc1
21787             $ build-aux/git-version-gen .tarball-version; echo
21788             build-aux/git-version-gen: WARNING: git rev-list failed
21789             UNKNOWN
21791         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21792         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21793         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21795         * git-version-gen: We could perhaps drop support for versions from
21796         more than a decade ago.  But tightening the pattern match is easy
21797         enough, so do that.  Still breaks when you use version tags ending in
21798         something matching -g????, but you arguably get what you deserve then.
21800 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21802         valgrind-tests: use ls, and cache
21803         * m4/valgrind-tests.m4: Test ls, not bash.
21804         Problem reported by Reuben Thomas.
21805         Also, cache the result so that it can be overridden.
21807 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21809         manywarnings: port to 64-bit GCC builds of Emacs
21810         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21811         object size rather than hardwiring 2147483647.  This is needed to
21812         build GNU Emacs, which has one conditional (and used
21813         only-in-theory) call to malloc with a literal greater than
21814         2147483647.
21816 2017-08-04  Bruno Haible  <bruno@clisp.org>
21818         Relax the license of some modules with no runtime code.
21819         * modules/std-gnu11 (License): Set to 'unlimited'.
21820         * modules/c99 (License): Likewise.
21821         Reported by Reuben Thomas <rrt@sc3d.org>.
21822         * modules/d-ino (License): Set to 'LGPL'.
21823         * modules/host-os (License): Likewise.
21824         * modules/longlong (License): Likewise.
21826 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21828         renameat2: port to RHEL 7 + NFS
21829         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21830         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21831         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21833 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21835         renameat2: port to non-renameat platforms
21836         Problem reported for MSVC-2015 by Gisle Vanem in:
21837         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21838         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21839         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21841 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21843         manywarnings: port to 32-bit GCC bug
21844         Problem reported by Pino Toscano in:
21845         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21846         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21847         not 2**63 - 1, to work around the following GCC bug:
21848         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21850 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21852         backupfile: new function to validate backup suffix
21853         * lib/backupfile.c (set_simple_backup_suffix): New function.
21854         (backupfile_internal): Use it.
21856         canonicalize: fix EOVERFLOW commentary
21857         Problem reported by Bruno Haible in:
21858         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21859         * lib/canonicalize.c (canonicalize_filename_mode):
21860         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21862         Don't interpret EOVERFLOW to mean nonexistence
21863         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21864         may be EOVERFLOW; this is likely more useful than reporting the
21865         stat errno.
21866         * lib/glob.c (link_stat): Rename from link_exists2_p and
21867         return -1/0 instead of 0/1.  Caller changed.
21868         * lib/glob.c (link_exists_p):
21869         * lib/renameat2.c (rename_noreplace, renameat2):
21870         * lib/tempname.c (try_nocreate):
21871         If errno == EOVERFLOW then the directory entry exists, so do not
21872         act as if it does not exist.
21874         backup-rename: new module
21875         It is like backupfile, except it avoids some race conditions,
21876         and it does not output to stderr or exit.
21877         * MODULES.html.sh: Add backup-rename.
21878         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21879         * modules/backup-rename: New files.
21880         * lib/backupfile.c: Turn this into an internals file, which
21881         contains code common to backupfile and backup_rename.  Include
21882         backupfile-internal.h instead of backupfile.h.  Do not include
21883         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21884         renameat2.h and fcntl.h.
21885         (BACKUP_NOMEM): New constant.
21886         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21887         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21888         (backupfile_internal): Rename from find_backup_file_name.
21889         Support new arg RENAME.
21890         (backup_args, backup_types, get_version, xget_version):
21891         Move to lib/backup-find.c.
21892         * lib/backupfile.h (backup_file_rename): New decl.
21893         * modules/backupfile (Files): Add lib/backup-internal.h,
21894         lib/backup-find.c.
21895         (Depends-on): Add dirfd, fcntl, renameat2.
21896         (lib_SOURCES): Add backup-find.c.
21898         renameat2: port better to older Solaris
21899         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21900         Add goto to use a label, to silence picky compilers.
21902         fts-tests: port to gcc -Wwrite-strings
21903         * tests/test-fts.c (base, base_d): New static vars.
21904         (argv, remove_tree, main): Use them.
21906 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21908         relocatable-lib{,-lgpl}: improve documentation
21909         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21910         Various other updates.
21912 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21913             Bruno Haible  <bruno@clisp.org>
21915         relocatable-lib{,-lgpl}: add Valgrind suppressions
21916         * lib/relocatable.valgrind: New file.
21917         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21918         * modules/relocatable-lib-lgpl: Likewise.
21920 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21922         relocatable: Make the license on the sources the GPL.
21923         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21924         LGPL, which was a special case so that the relocatable source files
21925         could be used without gnulib-tool, to GPL. They can still be used under
21926         the LGPL, using the --lgpl option to gnulib-tool.
21928 2017-07-30  Bruno Haible  <bruno@clisp.org>
21930         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21931         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21932         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21933         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21934         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21936 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21938         faccessat: document AT_SYMLINK_NOFOLLOW issue
21939         * doc/posix-functions/faccessat.texi: Modernize platform list.
21940         Document AT_SYMLINK_NOFOLLOW limitation.
21942         renameat2: port to Solaris 10
21943         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21944         with AT_SYMLINK_NOFOLLOW (which is not portable).
21945         (renameat): Undef before using, to avoid endless recursion when
21946         the replacement renameat calls renameat2 which calls the
21947         replacement renameat.
21948         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21949         * modules/renameat2 (Depends-on): Remove faccessat.
21950         * modules/renameat-tests (test_renameat_LDADD):
21951         * modules/renameat2-tests (test_renameat2_LDADD):
21952         Remove $(LIB_EACCESS).
21954         renameat2: new module
21955         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21956         useful to have access to its RENAME_NOREPLACE flag.
21957         * MODULES.html.sh (func_all_modules): Add renameat2.
21958         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21959         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21960         * lib/renameat.c (renameat): Move most of the implementation
21961         to renameat2, and just call renameat2.
21962         * modules/renameat (Files): Remove lib/at-func2.c.
21963         (Depends-on): Depend only on renameat2.
21964         (Include): Remove <fcntl.h>.
21965         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21966         since renameat (via renameat2) might use faccessat.
21968 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21970         vc-list-files: Adjust the script to support git worktrees
21971         * build-aux/vc-list-files: Require existence, not directory.
21973 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21975         doc: bring MODULES.html.sh up to date
21976         Somehow a few months ago we stopped updating MODULES.html.sh.
21977         I don’t recall explicitly deciding this, so I updated it now.
21978         Alternatively I suppose we could remove it.
21979         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21980         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21981         truncate, utime, utime-h, windows-stat-inodes,
21982         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21984 2017-07-26  Jim Meyering  <meyering@fb.com>
21986         fprintftime: fix build-break caused by recent renaming
21987         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21988         "strftime.c".
21989         * modules/fprintftime: Depend directly on nstrftime.
21991 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21993         regex: work with GCC7's -Werror=implicit-fallthrough=
21994         * lib/regex_internal.h (FALLTHROUGH): New macro.
21995         * lib/regcomp.c (peek_token_bracket, parse_expression):
21996         * lib/regexec.c (check_node_accept): Use it.
21998 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22000         fts: simplify fts_build
22001         * lib/fts.c (fts_build): Simplify, and be lazier about
22002         calling leaf_optimization.
22004         fts: three levels of leaf optimization
22005         * lib/fts.c (enum leaf_optimization): New type with three values.
22006         (S_MAGIC_AFS): New macro.  Sort them.
22007         (leaf_optimization): Rename from leaf_optimization_applies, and
22008         return enum leaf_optimization instead of bool.  All uses changed.
22009         Add cases for unknown type and for AFS.
22010         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
22012         fts: cache dirent_inode_sort_may_be_useful too
22013         * lib/fts.c (struct dev_type): New struct.
22014         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
22015         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
22016         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
22017         Now takes FTSENT const *, not int.  All uses changed.  Use
22018         filesystem_type to cache.
22019         (link_count_optimize_ok): Remove.  Caller changed to use
22020         leaf_optimization_applies, which now uses shared cache.
22022         fts: introduce MIN_DIR_NLINK
22023         * lib/fts.c (MIN_DIR_NLINK): New constant.
22024         Use it instead of 2, whenever we are talking about link counts.
22026         fts: nlink_t signedness fixups
22027         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
22028         so that root need not be a special case later.
22029         (fts_read): Remove now-redundant test for fts_level.
22030         Do not assume that nlink_t is signed.
22031         (fts_build): Remove useless decrement of nlinks.
22032         (fts_stat): Avoid unlikely signed integer overflow later, if
22033         nlink_t is signed.
22035         fts-tests: new module
22036         * modules/fts-tests, tests/test-fts.c: New files.
22038 2017-07-23  Bruno Haible  <bruno@clisp.org>
22040         Rename module 'strftime' to 'nstrftime'.
22041         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
22042         * lib/nstrftime.c: Renamed from lib/strftime.c.
22043         * modules/nstrftime: Renamed from modules/strftime.
22044         (Files, Makefile.am): Update.
22045         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
22046         Fix comment.
22047         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
22048         (Files, Makefile.am): Update.
22049         * modules/strftime: New file, an obsolete indirection.
22050         * doc/posix-functions/strftime.texi: Update reference.
22051         * config/srclist.txt: Update info.
22052         * NEWS: Mention the change.
22054 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
22056         malloca: Silence a warning from clang's memory sanitizer.
22057         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
22058         (freea): Use it.
22060 2017-07-18  Bruno Haible  <bruno@clisp.org>
22062         host-cpu-c-abi: Fix detection of MIPS ABI.
22063         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
22064         ABI, not the CPU instruction set.
22066 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22068         explicit_bzero: new module
22069         The explicit_bzero function has been added to glibc.
22070         This module is intended to supports its use in GNU programs.
22071         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
22072         * m4/explicit_bzero.m4, modules/explicit_bzero:
22073         New files.
22074         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22075         * lib/string.in.h (explicit_bzero): Declare.
22076         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
22077         * modules/string (string.h): Substitute its vars.
22079 2017-07-16  Bruno Haible  <bruno@clisp.org>
22081         threadlib: Support static linking.
22082         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
22083         set gl_cv_have_weak to 'no'.
22085 2017-07-16  Bruno Haible  <bruno@clisp.org>
22087         unicase/locale-language: Fix link dependencies.
22088         * modules/unicase/locale-language (Link): New section.
22089         * modules/unicase/locale-language-tests (Makefile.am): Link
22090         test-locale-language program with $(LIBTHREAD).
22092 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22094         sys_socket: Add support for OpenVMS.
22095         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
22096         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
22098 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22100         sys_resource: Add support for OpenVMS.
22101         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
22102         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
22104 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22105             Bruno Haible  <bruno@clisp.org>
22107         math: Add support for OpenVMS.
22108         * lib/math.in.h [__VMS]: Include <fp.h>.
22109         * doc/posix-headers/math.texi: Mention OpenVMS issues.
22111 2017-07-15  Bruno Haible  <bruno@clisp.org>
22113         getdtablesize: Add minimal support for OpenVMS.
22114         Reported by John E. Malmberg <wb8tyw@qsl.net>.
22115         * modules/getdtablesize (Description): Fix.
22116         * lib/getdtablesize.c: Fix comment.
22117         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
22118         getdtablesize() function, even though the test fails.
22119         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
22120         limitation on OpenVMS.
22122 2017-07-13  Bruno Haible  <bruno@clisp.org>
22124         Revisit cross-compilation guesses.
22125         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
22127 2017-07-13  Bruno Haible  <bruno@clisp.org>
22129         Improve cross-compilation guesses for native Windows.
22130         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
22131         Windows.
22132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
22133         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
22134         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22135         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
22136         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
22137         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
22138         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22139         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22140         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22141         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22142         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22143         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
22144         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
22145         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
22146         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
22147         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22148         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
22149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22150         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22151         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22152         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
22153         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22154         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
22155         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
22156         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
22157         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
22158         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22159         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22160         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22161         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
22162         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22163         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
22164         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22165         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
22166         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
22167         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
22168         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22169         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22170         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22171         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22172         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22173         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22174         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
22175         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
22176         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
22177         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
22178         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
22179         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
22180         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
22181         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
22182         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
22183         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
22184         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
22185         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
22186         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
22187         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
22188         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
22189         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22190         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
22191         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22193         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22194         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22195         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22196         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22197         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22198         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
22199         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22200         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
22201         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
22202         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
22203         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
22204         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22205         * m4/regex.m4 (gl_REGEX): Likewise.
22206         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22207         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
22208         gl_FUNC_REMAINDERF_WORKS): Likewise.
22209         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
22210         gl_FUNC_REMAINDERL_WORKS): Likewise.
22211         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22212         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22213         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22214         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22215         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22216         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
22217         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22218         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22219         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
22220         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22221         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
22222         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
22223         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22224         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22225         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22226         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22227         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22228         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22229         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22230         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22231         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22232         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22233         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22234         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22235         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22236         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22237         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22238         Likewise.
22239         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22240         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
22241         Windows. Enable also on Autoconf 2.70.
22242         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22243         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22244         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22245         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
22246         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22247         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
22248         for native Windows.
22249         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22250         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
22252 2017-07-13  Bruno Haible  <bruno@clisp.org>
22254         Improve cross-compilation guesses for native Windows.
22255         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
22256         Windows.
22257         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
22258         memchr.m4.
22259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22261 2017-07-13  Bruno Haible  <bruno@clisp.org>
22263         Improve cross-compilation guesses for native Windows.
22264         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
22265         native Windows.
22266         (gl_FUNC_FFLUSH): Update accordingly.
22267         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
22268         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22270 2017-07-11  Bruno Haible  <bruno@clisp.org>
22272         More systematic m4 quoting and indentation.
22273         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
22274         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22275         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22276         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22277         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22278         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
22279         gl_WINSIZE_IN_PTEM): Likewise.
22280         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
22281         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22282         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22283         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
22284         Correct indentation.
22285         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22286         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22287         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
22288         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22289         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22290         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22292 2017-07-10  Bruno Haible  <bruno@clisp.org>
22294         round, roundf: Avoid compiler warning in configure test.
22295         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
22296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22298 2017-07-10  Bruno Haible  <bruno@clisp.org>
22300         getlogin tests: Avoid #ifdefs when sharing code between modules.
22301         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
22302         * modules/getlogin-tests (Files): Likewise. Remove
22303         tests/test-getlogin_r.c.
22304         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
22305         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
22306         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
22307         getlogin().
22309 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22311         getlogin: don’t assume one name per uid
22312         Problem reported by Wolfgang F. Muthmann (Bug#27640).
22313         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
22314         (ttyname): Remove test.
22315         * modules/getlogin_r-tests (ttyname): Remove test.
22316         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
22317         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
22318         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
22319         getlogin rather than getlogin_r.  This avoids code duplication.
22320         (main): Use isatty and fstat rather than ttyname and stat.
22321         Use getpwnam instead of getpwuid, to be portable to test platforms
22322         that have multiple login names for the same uid.
22324 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
22325             Bruno Haible  <bruno@clisp.org>
22327         glob: Fix more memory leaks.
22328         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
22329         returning.
22330         Reported by Tim Rühsen.
22332 2017-07-10  Bruno Haible  <bruno@clisp.org>
22334         Make sure $host and $host_os are defined when used.
22335         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
22336         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
22337         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
22338         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22339         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22341         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22342         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22343         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22344         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22345         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
22346         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
22347         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
22348         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
22349         m4_ifdef block.
22351 2017-07-09  Bruno Haible  <bruno@clisp.org>
22353         *printf: Fix cross-compilation guess for Solaris.
22354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
22355         2010-12-21.
22357 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22358             Bruno Haible  <bruno@clisp.org>
22360         vasnprintf: port to macOS 10.13
22361         Problem reported by comex in:
22362         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22363         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22365 2017-07-06  Bruno Haible  <bruno@clisp.org>
22367         imaxdiv tests: Fix logic.
22368         * tests/test-imaxdiv.c (main): Use == instead of =.
22369         Reported by Coverity.
22371 2017-07-06  Bruno Haible  <bruno@clisp.org>
22373         uninorm/filter: Fix use-after-free bug.
22374         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22375         sortbuf == filter->sortbuf invariant.
22376         Reported by Coverity.
22378 2017-07-06  Bruno Haible  <bruno@clisp.org>
22380         glob: Fix more memory leaks.
22381         * lib/glob.c (glob): Free dirname before returning.
22382         Reported by Coverity and Tim Rühsen.
22384 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22386         parse-datetime: fix uninit var bug
22387         Reported by Bruno Haible in:
22388         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22389         * lib/parse-datetime.y (parse_datetime2): Do not use
22390         uninitialized.
22392 2017-07-05  Bruno Haible  <bruno@clisp.org>
22394         doc: Update for MSVC 14.
22395         * doc/posix-headers/*.texi: Add info about MSVC 14.
22396         * doc/posix-functions/*.texi: Likewise.
22397         * doc/pastposix-functions/*.texi: Likewise.
22398         * doc/glibc-headers/*.texi: Likewise.
22399         * doc/glibc-functions/*.texi: Likewise.
22401 2017-07-05  Bruno Haible  <bruno@clisp.org>
22403         sched: Fix build failure on native Windows (regression from 2017-06-19).
22404         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22406 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22408         stdioext: Port to OpenVMS.
22409         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22410         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22411         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22412         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22413         * lib/fpurge.c (fpurge): Likewise.
22414         * lib/freadable.c (freadable): Likewise.
22415         * lib/freadahead.c (freadahead): Likewise.
22416         * lib/freading.c (freading): Likewise.
22417         * lib/freadptr.c (freadptr): Likewise.
22418         * lib/freadseek.c (freadseek): Likewise.
22419         * lib/fseeko.c (fseeko): Likewise.
22420         * lib/fseterr.c (fseterr): Likewise.
22421         * lib/fwritable.c (fwriteable): Likewise.
22422         * lib/fwriting.c (fwriting): Likewise.
22424 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22426         glob: Declare variables at the very start of their scope.
22427         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22428         its separate scope, so the functions will compile on Haiku.
22430 2017-07-01  Bruno Haible  <bruno@clisp.org>
22432         logbl: Work around a glibc bug on PowerPC64LE.
22433         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22434         numbers.
22435         * doc/posix-functions/logbl.texi: Update.
22437 2017-06-29  Bruno Haible  <bruno@clisp.org>
22439         stat, fstat: Compile stat-w32.c only on platforms that need it.
22440         Suggested by Paul Eggert.
22441         * modules/stat (configure.ac): Request stat-w32.o only on native
22442         Windows.
22443         * modules/fstat (configure.ac): Likewise.
22445 2017-06-25  Bruno Haible  <bruno@clisp.org>
22447         stat: Improve last change.
22448         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22450 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22452         stat: port to xlc 12.01
22453         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22454         12.01 complains "Compilation unit is empty."
22456 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22458         xalloc-oversized: port to icc
22459         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22460         __builtin_mul_overflow if ICC is defined, as this results in
22461         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22462         20170213.
22464 2017-06-19  Bruno Haible  <bruno@clisp.org>
22466         classpath: Avoid including config.h twice, as it produces warnings.
22467         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22468         * lib/classpath.h: Conditionalize the include of config.h.
22470 2017-06-19  Bruno Haible  <bruno@clisp.org>
22471             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
22473         sched: Fix compilation failure on OpenVMS.
22474         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
22475         test whether <pthread.h> exists and defines struct sched_param.
22476         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
22478 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22480         diffseq: port to GCC 7 with --enable-gcc-warnings
22481         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
22482         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
22483         not complain about big_snake being defined but not used.
22485 2017-06-15  Bruno Haible  <bruno@clisp.org>
22487         gettext-h: Update theoretical condition for use of variable size arrays.
22488         Reported by Paul Eggert.
22489         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
22490         to include the theoretical condition for availability of variable size
22491         arrays, if we could trust the value of __STDC_VERSION__.
22493 2017-06-12  Bruno Haible  <bruno@clisp.org>
22495         Relicense some modules under LGPLv2+.
22496         Daiki Ueno's approval is in
22497         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
22498         * modules/uniwidth/base (License): Change to LGPLv2+.
22499         * modules/uniwidth/width (License): Likewise.
22501 2017-06-11  Bruno Haible  <bruno@clisp.org>
22503         localename: Fix test failure on DragonFly BSD.
22504         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
22505         like FreeBSD.
22507 2017-06-11  Bruno Haible  <bruno@clisp.org>
22509         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
22510         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
22511         * lib/float.in.h: Likewise.
22512         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
22514 2017-06-11  Bruno Haible  <bruno@clisp.org>
22516         gnulib-tool: Clean up after autotools.
22517         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
22518         useless directory left over by the Autotools.
22520 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22522         getopt-posix: port to glibc 2.25.90
22523         Problem reported by Daniel P. Berrange in:
22524         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
22525         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
22526         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
22527         #undef if __GETOPT_PREFIX is defined.
22529 2017-06-11  Bruno Haible  <bruno@clisp.org>
22531         strtod-obsolete: Fix license.
22532         * modules/strtod-obsolete (License): Change to LGPL.
22534 2017-06-10  Jim Meyering  <meyering@fb.com>
22536         maint: update to work with GCC7's -Werror=implicit-fallthrough=
22537         * lib/savewd.c (FALLTHROUGH): Define.
22538         (savewd_save, savewd_restore): Use this, rather than a comment,
22539         whenever one switch case falls through into the next.
22541 2017-06-08  Bruno Haible  <bruno@clisp.org>
22543         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
22544         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
22545         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
22546         case.
22548 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22550         doc: remove robots, add prereqs
22551         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
22552         builds.  Simon's robot site does not seem to be up, so remove
22553         mentions of it for now.
22555 2017-06-08  Bruno Haible  <bruno@clisp.org>
22557         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
22558         * gnulib-tool (func_symlink_target): New function, extracted from
22559         func_symlink.
22560         (func_symlink, func_symlink_if_changed): Use it.
22562 2017-06-08  Bruno Haible  <bruno@clisp.org>
22564         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
22565         * gnulib-tool (func_ln_s): Determine cp_src correctly.
22567 2017-06-07  Bruno Haible  <bruno@clisp.org>
22569         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
22570         Reported by John E. Malmberg <wb8tyw@gmail.com> in
22571         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
22572         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
22573         override, pass 2 arguments to getcwd, not 3.
22575 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22577         same-inode: port better to VMS 8.2 and later
22578         Problem reported by John E. Malmberg in:
22579         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
22580         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
22581         Use the usual POSIX definition.
22582         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
22584 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22586         error: fix POSIX violation for va_end
22587         Problem reported by Bruno Haible in:
22588         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
22589         * lib/error.c (error_tail): Do not call va_end here.
22590         (error, error_at_line): Call it here instead.
22592 2017-05-28  Bruno Haible  <bruno@clisp.org>
22594         c-strtod: Make it usable in C++ mode.
22595         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
22597 2017-05-25  Jim Meyering  <meyering@fb.com>
22599         quotearg: fix compilation failure due to FALLTHROUGH misuse
22600         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
22601         macro back to /* fall through */ comment.  The macro can apply only
22602         to a following case statement.  Reported by Assaf Gordon.
22604 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22606         intprops: port to recent icc
22607         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
22608         but does not support __builtin_add_overflow etc.
22609         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22610         Define to 0.
22612 2017-05-23  Karl Berry  <karl@freefriends.org>
22614         * config/srclist.txt (iconv.m4): sync broken, comment out
22615         until (hopefully) the next gettext release.
22617 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
22619         Remove repeated words in comments.
22621 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
22623         fallthrough: reinstate a FALLTHROUGH instance in quotearg
22624         quotearg.c: Reinstate this instance which is significant
22625         when the if branch is not taken.
22627 2017-05-21  Bruno Haible  <bruno@clisp.org>
22629         gnulib-tool: Add options to create hard links.
22630         * gnulib-tool (func_usage): Document options --hardlink,
22631         --local-hardlink, --more-hardlinks.
22632         (func_symlink): Renamed from func_ln.
22633         (func_symlink_if_changed): Renamed from func_ln_if_changed.
22634         (func_hardlink): New function.
22635         (copymode, lcopymode): New variables.
22636         (symbolic, lsymbolic): Remove variables.
22637         (Options): Implement options --hardlink, --local-hardlink,
22638         --more-hardlinks.
22639         (func_should_link): Renamed from func_should_symlink. Set copyaction.
22640         (func_add_file, func_update_file): Update invocation of
22641         func_should_link. Invoke func_hardlink when appropriate.
22642         (func_import): Update comments.
22643         (func_create_testdir): Update invocation of func_should_link. Invoke
22644         func_hardlink when appropriate.
22645         Finally, invoke 'git update-index --refresh' to mitigate the effects of
22646         the hard links on git.
22648 2017-05-20  Bruno Haible  <bruno@clisp.org>
22650         argp: Simplify bit manipulation.
22651         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
22652         on a signed integer type.
22654 2017-05-20  Bruno Haible  <bruno@clisp.org>
22656         Avoid wrong configure results with gcc -fsanitize=address.
22657         This completes the work done on 2016-02-06 on this topic.
22658         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
22659         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22661         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22662         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
22663         returning.
22664         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22665         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
22666         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22667         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22668         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22669         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22670         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
22671         free allocated memory before returning.
22672         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22673         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
22674         objects before returning.
22675         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
22676         returning.
22678 2017-05-20  Bruno Haible  <bruno@clisp.org>
22680         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22681         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22683 2017-05-20  Bruno Haible  <bruno@clisp.org>
22685         argp, tsearch tests: Fix file list.
22686         * modules/argp-tests (Files): Add tests/macros.h.
22687         * modules/tsearch-tests (Files): Likewise.
22689 2017-05-20  Bruno Haible  <bruno@clisp.org>
22691         getopt-posix tests: Remove redundant include.
22692         * tests/test-getopt.h: Don't include "macros.h". It's already included
22693         by tests/test-getopt-main.h.
22695 2017-05-19  Jim Meyering  <meyering@fb.com>
22697         dfa: two small simplifications
22698         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22700 2017-05-18  Jim Meyering  <meyering@fb.com>
22702         fallthrough: update for GCC 7/8
22703         * lib/quotearg.c (FALLTHROUGH): New macro.
22704         Use it whenever one switch case falls through into the next,
22705         replacing "/* Fall through */" comments.  This exposed one
22706         instance of an unwarranted "fall through" comment: unwarranted
22707         because it preceded a "goto" label not a case statement.
22708         * lib/freopen-safer.c (freopen_safer): Likewise.
22709         * lib/fts.c (leaf_optimization_applies): Likewise.
22710         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22711         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22712         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22713         tests/macros.h for the definition.
22714         * tests/test-argp.c (group1_parser): Likewise.
22715         * tests/test-getopt.h (getopt_loop): Likewise.
22717 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22719         argp: fix shift bug
22720         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22721         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22723         argp: fix pointer-subtraction bug
22724         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22725         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22726         See the thread containing Bruno Haible’s report in:
22727         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22729 2017-05-19  Bruno Haible  <bruno@clisp.org>
22731         printf-posix tests: Avoid test failure with "gcc --coverage".
22732         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22733         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22734         than 5000000.
22735         * tests/test-fprintf-posix2.c (main): Likewise.
22737 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22739         closeout: don’t close stderr when sanitizing
22740         * NEWS: Document this.
22741         * lib/closeout.c (__has_feature): New macro, if not already defined.
22742         (SANITIZE_ADDRESS): New constant.
22743         (close_stdout): Don’t close stderr if sanitizing addresses.
22745 2017-05-19  Bruno Haible  <bruno@clisp.org>
22747         get-rusage-data tests: Avoid failure on Linux/glibc.
22748         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22749         on glibc systems.
22751 2017-05-18  Bruno Haible  <bruno@clisp.org>
22753         localename: Include necessary header files on Cygwin.
22754         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22755         where NL_LOCALE_NAME is defined.
22757 2017-05-18  Bruno Haible  <bruno@clisp.org>
22759         gettext: Update macros from gettext git.
22760         * m4/intldir.m4: Require Autoconf >= 2.60.
22761         * m4/progtest.m4: Fix typos in copyright notice.
22763 2017-05-18  Bruno Haible  <bruno@clisp.org>
22765         copy-file tests: Fix link error (regression from 2017-05-01).
22766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22767         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22768         $(LIB_CLOCK_GETTIME).
22770 2017-05-18  Bruno Haible  <bruno@clisp.org>
22772         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22773         (regression from 2017-02-13).
22774         * lib/unicase/special-casing.in.h: Renamed from
22775         lib/unicase/special-casing.h.
22776         * modules/unicase/special-casing (Files): Add
22777         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22778         (Makefile.am): Add rule for generating unicase/special-casing.h.
22779         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22780         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22781         not "special-casing.h".
22782         * lib/unicase/u*.c: Likewise.
22784 2017-05-17  Bruno Haible  <bruno@clisp.org>
22786         README: Don't ask people to read a TeXinfo file.
22787         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22788         * README: Tell people how to read the HTML formatted manual.
22790 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22792         parse-datetime: Fix memleak
22793         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22794         localtime_rz() failure.
22796 2017-05-16  Bruno Haible  <bruno@clisp.org>
22798         javacomp: Fix handle leak.
22799         Found by Coverity.
22800         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22802 2017-05-16  Bruno Haible  <bruno@clisp.org>
22804         relocate: Make it easier to reclaim allocated memory.
22805         * lib/relocatable.h (relocate2): New declaration/macro.
22806         * lib/relocatable.c (relocate2): New function.
22807         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22808         relocate2 function.
22809         * lib/localcharset.c (relocate2): Define fallback.
22810         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22811         allocated memory.
22812         * lib/javaversion.c (relocate2): Define fallback.
22813         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22814         allocated memory.
22816 2017-05-16  Bruno Haible  <bruno@clisp.org>
22818         relocate: Simplify EMX specific code.
22819         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22820         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22822 2017-05-16  Bruno Haible  <bruno@clisp.org>
22824         sigpipe tests: Fix file list.
22825         * modules/sigpipe-tests (Files): Add tests/macros.h.
22827 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22829         manywarnings: update for GCC 7
22830         * build-aux/gcc-warning.spec:
22831         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22832         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22833         requires a non-comment fallthrough attribute.  This is a bit
22834         cleaner than the comment versions.
22835         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22836         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22837         Use it whenever one switch case falls through into the next.
22838         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22839         Use FALLTHROUGH macro.
22841 2017-05-15  Bruno Haible  <bruno@clisp.org>
22843         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22844         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22845         @ALLOCA@, not @LTALLOCA@.
22847 2017-05-15  Bruno Haible  <bruno@clisp.org>
22849         sys_select: Avoid "was expanded before it was required" warning.
22850         * modules/sys_select (configure.ac): Require, not invoke,
22851         gl_HEADER_SYS_SELECT.
22853 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22855         gnulib-tool: improve GNU Make debugging
22856         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22857         Report autoconf diagnostics when it fails, in the output makefile.
22859 2017-05-14  Bruno Haible  <bruno@clisp.org>
22861         stat-time tests: Improve comment.
22862         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22864 2017-05-14  Bruno Haible  <bruno@clisp.org>
22866         same-inode: Adapt for windows-stat-inodes.
22867         * lib/same-inode.h: Include <sys/types.h>.
22868         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22869         * modules/same-inode (Depends-on): Add sys_types.
22871 2017-05-14  Bruno Haible  <bruno@clisp.org>
22873         windows-stat-inodes: New module.
22874         * m4/windows-stat-inodes.m4: New file.
22875         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22876         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22877         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22878         (_GL_WINDOWS_STAT_INODES): New macro.
22879         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22880         (GetFileInformationByHandleExFunc): New variable.
22881         (initialize): Initialize it.
22882         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22883         st_ino appropriately.
22884         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22885         a fallback, because it does not provide st_dev and st_ino values.
22886         * modules/fstat (Depends-on): Add 'verify'.
22887         * modules/windows-stat-inodes: New file.
22888         * doc/windows-stat-inodes.texi: New file.
22889         * doc/gnulib.texi: Include it.
22890         * doc/posix-headers/sys_stat.texi: Mention the new module.
22892 2017-05-14  Bruno Haible  <bruno@clisp.org>
22894         stat-time tests: Workaround for native Windows.
22895         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22896         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22897         New variables.
22898         (initialize_filenames): New function.
22899         (main): Invoke it.
22900         (cleanup, prepare_test): Update.
22902 2017-05-14  Bruno Haible  <bruno@clisp.org>
22904         stat-time: Adapt for windows-stat-timespec.
22905         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22906         entire st_ctim field.
22908 2017-05-13  Jim Meyering  <meyering@fb.com>
22910         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22911         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22912         file that uses the assume macro, claiming that verify.h is unused.
22914 2017-05-13  Bruno Haible  <bruno@clisp.org>
22916         Use symbolic values for _WIN32_WINNT.
22917         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22918         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22920 2017-05-13  Bruno Haible  <bruno@clisp.org>
22922         year2038: New module.
22923         * m4/year2038.m4: New file.
22924         * modules/year2038: New file.
22925         * doc/year2038.texi: New file.
22926         * doc/gnulib.texi: Include it.
22928 2017-05-13  Bruno Haible  <bruno@clisp.org>
22930         largefile: Simplify.
22931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22932         of _GL_WINDOWS_64_BIT_ST_SIZE.
22934 2017-05-13  Bruno Haible  <bruno@clisp.org>
22936         largefile: Improve and document.
22937         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22938         the mingw headers already define 'stat' appropriately.
22939         * modules/largefile (Description): Clarify.
22940         * doc/largefile.texi: New file.
22941         * doc/gnulib.texi: Include it.
22942         * doc/posix-headers/sys_types.texi: Update.
22944 2017-05-13  Bruno Haible  <bruno@clisp.org>
22946         truncate: New module.
22947         * lib/unistd.in.h (truncate): New declaration.
22948         * lib/truncate.c: New file.
22949         * m4/truncate.m4: New file.
22950         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22951         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22952         REPLACE_TRUNCATE.
22953         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22954         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22955         * modules/truncate: New file.
22956         * tests/test-unistd-c++.cc (truncate): Test signature.
22957         * doc/posix-functions/truncate.texi: Mention the new module.
22959         * tests/test-truncate.c: New file.
22960         * modules/truncate-tests: New file.
22962 2017-05-13  Bruno Haible  <bruno@clisp.org>
22964         windows-stat-timespec: New module.
22965         * modules/windows-stat-timespec: New file.
22966         * m4/windows-stat-timespec.m4: New file.
22967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22968         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22969         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22970         fields st_atim, st_mtim, st_ctim.
22971         (st_atime, st_mtime, st_ctime): Define as macros.
22972         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22973         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22974         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22975         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22976         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22977         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22978         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22979         FILETIME to 'struct timespec', not 'time_t'.
22980         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22981         FILETIME to 'struct timespec', not 'time_t'.
22982         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22983         _GL_WINDOWS_STAT_TIMESPEC.
22984         * doc/windows-stat-timespec.texi: New file.
22985         * doc/gnulib.texi: Include it.
22987 2017-05-13  Bruno Haible  <bruno@clisp.org>
22989         windows-stat-override: New module.
22990         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22991         definition. Define GNULIB_defined_struct_stat.
22992         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22993         link error if this symbol is used and the corresponding module is not
22994         in use.
22995         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22996         GNULIB_OVERRIDES_STRUCT_STAT.
22997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22998         GNULIB_OVERRIDES_STRUCT_STAT.
22999         * modules/sys_stat (Makefile.am): Substitute
23000         GNULIB_OVERRIDES_STRUCT_STAT.
23001         * modules/windows-stat-override: New file.
23003 2017-05-13  Bruno Haible  <bruno@clisp.org>
23005         fstat: Fix module dependency conditions.
23006         * modules/fstat (Depends-on): Fix typo.
23008 2017-05-13  Bruno Haible  <bruno@clisp.org>
23010         stat, fstat: Complete removal of old native Windows code.
23011         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
23012         * lib/fstat.c: Likewise.
23013         * lib/stat-w32.c: Likewise.
23015 2017-05-13  Bruno Haible  <bruno@clisp.org>
23017         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
23018         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
23020 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23022         getopt-posix: port to mingw
23023         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
23024         Problem reported by Daniel P. Berrage in:
23025         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
23027 2017-05-11  Bruno Haible  <bruno@clisp.org>
23029         gettimeofday: Increase precision on mingw.
23030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
23031         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
23032         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
23033         GetSystemTimePreciseAsFileTime based implementation always.
23034         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
23035         mingw.
23037 2017-05-11  Bruno Haible  <bruno@clisp.org>
23039         poll: Fix confusion between SOCKETs and FDs on native Windows.
23040         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
23041         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
23043 2017-05-11  Bruno Haible  <bruno@clisp.org>
23045         doc: Clarify doc about socket functions on native Windows.
23046         This reworks doc that was added on 2008-09-29.
23047         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
23048         clearer wording.
23049         * doc/posix-functions/accept.texi: Use clearer wording.
23050         * doc/posix-functions/bind.texi: Likewise.
23051         * doc/posix-functions/connect.texi: Likewise.
23052         * doc/posix-functions/getpeername.texi: Likewise.
23053         * doc/posix-functions/getsockname.texi: Likewise.
23054         * doc/posix-functions/getsockopt.texi: Likewise.
23055         * doc/posix-functions/ioctl.texi: Likewise.
23056         * doc/posix-functions/listen.texi: Likewise.
23057         * doc/posix-functions/recv.texi: Likewise.
23058         * doc/posix-functions/recvfrom.texi: Likewise.
23059         * doc/posix-functions/send.texi: Likewise.
23060         * doc/posix-functions/sendto.texi: Likewise.
23061         * doc/posix-functions/setsockopt.texi: Likewise.
23062         * doc/posix-functions/shutdown.texi: Likewise.
23063         * doc/posix-functions/socket.texi: Likewise.
23065 2017-05-10  Bruno Haible  <bruno@clisp.org>
23067         poll: Fix link error on native Windows.
23068         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
23070 2017-05-10  Bruno Haible  <bruno@clisp.org>
23072         time: Fix missing initialization of HAVE_TIMEZONE_T.
23073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
23074         here...
23075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
23076         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
23077         gl_HEADER_SYS_TIME_H_DEFAULTS.
23078         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
23079         (configure.ac): Remove useless quoting.
23081 2017-05-10  Bruno Haible  <bruno@clisp.org>
23083         Implement a way to opt out from MSVC support, part 2.
23084         * modules/msvc-inval (Include): Document recommended idiom.
23085         * modules/msvc-nothrow (Include): Likewise.
23087         Implement a way to opt out from MSVC support.
23088         This is useful for Emacs.
23089         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
23090         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
23091         * lib/error.c: Likewise.
23092         * lib/fcntl.c: Likewise.
23093         * lib/flock.c: Likewise.
23094         * lib/fstat.c: Likewise.
23095         * lib/fsync.c: Likewise.
23096         * lib/ioctl.c: Likewise.
23097         * lib/isapipe.c: Likewise.
23098         * lib/lseek.c: Likewise.
23099         * lib/nonblocking.c: Likewise.
23100         * lib/poll.c: Likewise.
23101         * lib/select.c: Likewise.
23102         * lib/sockets.h: Likewise.
23103         * lib/sockets.c: Likewise.
23104         * lib/stdio-read.c: Likewise.
23105         * lib/stdio-write.c: Likewise.
23106         * lib/utimens.c: Likewise.
23107         * lib/w32sock.h: Likewise.
23108         * lib/w32spawn.h: Likewise.
23109         * tests/test-cloexec.c: Likewise.
23110         * tests/test-dup-safer.c: Likewise.
23111         * tests/test-dup2.c: Likewise.
23112         * tests/test-dup3.c: Likewise.
23113         * tests/test-fcntl.c: Likewise.
23114         * tests/test-pipe.c: Likewise.
23115         * tests/test-pipe2.c: Likewise.
23116         * lib/ftruncate.c: Likewise.
23117         (chsize_nothrow): Renamed from chsize.
23118         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
23119         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23120         * lib/close.c: Likewise.
23121         * lib/dup.c: Likewise.
23122         * lib/fclose.c: Likewise.
23123         * lib/raise.c: Likewise.
23124         * tests/test-fgetc.c: Likewise.
23125         * tests/test-fputc.c: Likewise.
23126         * tests/test-fread.c: Likewise.
23127         * tests/test-fwrite.c: Likewise.
23128         * lib/getdtablesize.c: Likewise.
23129         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
23130         * lib/isatty.c: Don't include msvc-inval.h if
23131         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23132         Include <io.h> as an alternative to msvc-nothrow.h.
23133         * lib/read.c: Likewise.
23134         * lib/write.c: Likewise.
23135         * lib/dup2.c: Likewise.
23136         (dup2_nothrow): New function.
23137         (ms_windows_dup2): Use it.
23138         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
23139         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
23140         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23141         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
23142         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
23143         * m4/read.m4 (gl_FUNC_READ): Likewise.
23144         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
23145         * doc/windows-without-msvc.texi: New file.
23146         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
23147         section.
23149 2017-05-10  Bruno Haible  <bruno@clisp.org>
23151         wait-process: Adjust native Windows support.
23152         * lib/wait-process.c: Use the usual condition for recognizing a native
23153         Windows platform.
23155 2017-05-10  Bruno Haible  <bruno@clisp.org>
23157         doc: New chapter "Native Windows Support".
23158         * doc/gnulib.texi (Native Windows Support): New chapter.
23159         * doc/windows-libtool.texi: Small wording changes.
23160         * doc/windows-sockets.texi: Small wording and formatting changes.
23162 2017-05-10  Bruno Haible  <bruno@clisp.org>
23164         doc: Move section "Library version handling".
23165         * doc/gnulib.texi: Move section "Library version handling"
23166         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
23168 2017-05-10  Bruno Haible  <bruno@clisp.org>
23170         doc: Move section "Running self-tests under valgrind".
23171         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
23172         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
23174 2017-05-10  Bruno Haible  <bruno@clisp.org>
23176         doc: New chapter "Build Infrastructure Modules".
23177         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
23179 2017-05-10  Bruno Haible  <bruno@clisp.org>
23181         Prepare for reordering sections in the manual.
23182         * doc/gnulib.texi: Move several sections to separate files. Include
23183         these files.
23184         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
23185         * doc/obsolete.texi: Likewise.
23186         * doc/extra-tests.texi: Likewise.
23187         * doc/transversal.texi: Likewise.
23188         * doc/namespace.texi: Likewise.
23189         * doc/check-version.texi: Likewise.
23190         * doc/windows-sockets.texi: Likewise.
23191         * doc/windows-libtool.texi: Likewise.
23192         * doc/licenses-texi.texi: Likewise.
23193         * doc/build-automation.texi: Likewise.
23194         * doc/c-locale.texi: Likewise.
23196 2017-05-10  Bruno Haible  <bruno@clisp.org>
23198         Fix instructions how to update manual on www.gnu.org.
23199         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
23201 2017-05-09  Bruno Haible  <bruno@clisp.org>
23203         tzset: Expand comment about TZ problem on native Windows.
23204         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
23205         Paul Eggert.
23206         * lib/ctime.c (rpl_ctime): Likewise.
23207         * lib/localtime.c (rpl_localtime): Likewise.
23208         * lib/mktime.c (mktime): Likewise.
23209         * lib/strftime-fixes.c (rpl_strftime): Likewise.
23210         * lib/wcsftime.c (rpl_wcsftime): Likewise.
23212 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23214         intprops: don’t depend on ‘verify’
23215         Problem reported by Ævar Arnfjörð Bjarmason in:
23216         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
23217         * lib/intprops.h: Do not include verify.h, and move compile-time
23218         checks from here ...
23219         * tests/test-intprops.c (main): ... to here, if they’re not here
23220         already.  Check widths of other standard integer types.
23221         * modules/intprops (Depends-on): Remove ‘verify’.
23223 2017-05-07  Bruno Haible  <bruno@clisp.org>
23225         utimens: On native Windows, support 100ns resolution also if fd < 0.
23226         * lib/utime.in.h: Include <time.h>.
23227         (_gl_utimens_windows): New declaration.
23228         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
23229         (utime): Invoke it.
23230         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
23231         instead of utime.
23232         * modules/utime (Depends-on): Add 'time'.
23234 2017-05-07  Bruno Haible  <bruno@clisp.org>
23236         utimens: Improve error code on native Windows.
23237         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
23238         error code EACCES, not EINVAL.
23240 2017-05-07  Bruno Haible  <bruno@clisp.org>
23242         utime: Handle more Windows error codes.
23243         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
23244         Based on explanations by Billy O'Neal.
23246 2017-05-05  Bruno Haible  <bruno@clisp.org>
23248         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
23249         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
23250         union.
23251         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
23252         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
23253         value of cipher->IV.
23255 2017-05-05  Bruno Haible  <bruno@clisp.org>
23257         wctype-h-c++-tests: Update.
23258         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
23260 2017-05-05  Bruno Haible  <bruno@clisp.org>
23262         wchar-c++-tests: Update.
23263         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
23265 2017-05-05  Bruno Haible  <bruno@clisp.org>
23267         utime-h-c++-tests: New module.
23268         * tests/test-utime-h-c++.cc: New file.
23269         (utime): Declare, missing since 2017-04-30.
23270         * modules/utime-h-c++-tests: New file.
23272 2017-05-05  Bruno Haible  <bruno@clisp.org>
23274         unistd-c++-tests: Update.
23275         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
23276         (read): Declare, missing since 2011-04-15.
23277         (sethostname): Declare, missing since 2011-12-03.
23279 2017-05-05  Bruno Haible  <bruno@clisp.org>
23281         time-c++-tests: Update.
23282         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
23283         (localtime, gmtime): Declare, missing since 2017-04-30.
23284         (ctime): Declare, missing since 2017-04-30.
23285         (strftime): Declare, missing since 2017-04-30.
23286         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
23287         2015-07-24.
23289 2017-05-05  Bruno Haible  <bruno@clisp.org>
23291         sys_resource-c++-tests: New module.
23292         * tests/test-sys_resource-c++.cc: New file.
23293         (getrusage): Declare, missing since 2012-04-13.
23294         * modules/sys_resource-c++-tests: New file.
23296 2017-05-05  Bruno Haible  <bruno@clisp.org>
23298         strings-c++-tests: New module.
23299         * tests/test-strings-c++.cc: New file.
23300         (ffs): Declare, missing since 2011-07-12.
23301         * modules/strings-c++-tests: New file.
23303 2017-05-05  Bruno Haible  <bruno@clisp.org>
23305         string-c++-tests: Update.
23306         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
23307         (ffsll): Declare, missing since 2011-07-15.
23309 2017-05-05  Bruno Haible  <bruno@clisp.org>
23311         stdlib-c++-tests: Update.
23312         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
23313         2011-10-18.
23314         (ptsname_r): Declare, missing since 2011-11-07.
23315         (qsort_r): Declare, missing since 2014-08-29.
23316         (random, srandom, initstate, setstate): Declare, missing since
23317         2012-01-14.
23318         (secure_getenv): Declare, missing since 2013-02-05.
23320 2017-05-05  Bruno Haible  <bruno@clisp.org>
23322         stdio-c++-tests: Update.
23323         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
23325 2017-05-05  Bruno Haible  <bruno@clisp.org>
23327         signal-h-c++-tests: Update.
23328         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
23330 2017-05-05  Bruno Haible  <bruno@clisp.org>
23332         math-c++-tests: Update.
23333         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
23334         (fma): Declare, missing since 2011-10-17.
23335         (fmal): Declare, missing since 2011-10-17.
23337 2017-05-05  Bruno Haible  <bruno@clisp.org>
23339         locale-c++-tests: Update.
23340         * tests/test-locale-c++.cc (localeconv): Declare, missing since
23341         2012-03-25.
23343 2017-05-05  Bruno Haible  <bruno@clisp.org>
23345         inttypes-c++-tests: New module.
23346         * tests/test-inttypes-c++.cc: New file.
23347         (strtoimax): Declare, missing since 2012-01-05.
23348         (strtoumax): Declare, missing since 2012-01-05.
23349         * modules/inttypes-c++-tests: New file.
23351 2017-05-05  Bruno Haible  <bruno@clisp.org>
23353         dirent-c++-tests: Update.
23354         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
23355         (rewinddir): Declare, missing since 2011-09-13.
23356         (dirfd): Declare, missing since 2010-03-08.
23358 2017-05-04  Bruno Haible  <bruno@clisp.org>
23360         argp: Fix mistake in 2017-04-23 commit.
23361         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23362         assume that strerror_r returns 'int', not 'char *'.
23364 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23366         argp: Fix typo.
23367         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23369 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23371         utimens: port to Emacs + MS-Windows
23372         Skip the new MS-Windows-specific code if Emacs.
23373         * lib/utimens.c [EMACS_CONFIGUATION]:
23374         Avoid new MS-Windows-specific code.
23375         (USE_SETFILETIME): New macro.
23376         (fdutimens): Use it.
23378 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23380         tzset: update doc for TZ problems on MS-Windows
23381         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23382         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23383         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23384         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23385         * doc/posix-functions/wcsftime.texi:
23386         Mention some issues with TZ under MS-Windows.
23388 2017-05-01  Bruno Haible  <bruno@clisp.org>
23390         copy-file: Fix build error on mingw.
23391         * modules/copy-file (Depends-on): Add 'close'.
23393 2017-05-01  Bruno Haible  <bruno@clisp.org>
23395         tzset: Work around TZ problem on native Windows.
23396         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23397         Windows, set REPLACE_TZSET to 1.
23398         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23399         invoke '_tzset' instead of 'tzset'.
23400         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23402         * modules/time_rz (Depends-on): Add tzset.
23403         * lib/time_rz.c (tzset): Remove fallback definition.
23404         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23406 2017-05-01  Bruno Haible  <bruno@clisp.org>
23408         mktime: Fix dependencies.
23409         * modules/mktime (Depends-on): Add 'time'.
23411 2017-05-01  Bruno Haible  <bruno@clisp.org>
23413         New module 'localtime-buffer', split off from module 'gettimeofday'.
23414         * lib/localtime-buffer.h: New file.
23415         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23416         * lib/time.in.h (tzset): New declaration.
23417         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23418         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23419         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23420         moved to lib/localtime-buffer.c or lib/tzset.c.
23421         * m4/localtime-buffer.m4: New file.
23422         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23423         HAVE_TZSET, REPLACE_TZSET.
23424         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23425         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23426         gl_LOCALTIME_BUFFER_NEEDED.
23427         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23428         since 2007-01-18.
23429         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23430         tzset.
23431         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23432         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23433         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23434         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23435         * modules/localtime-buffer: New file.
23436         * modules/time (Depends-on): Remove 'gettimeofday'.
23437         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23438         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23439         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23440         (Files): Add lib/tzset.c.
23441         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23442         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23443         gl_TIME_MODULE_INDICATOR.
23444         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23446 2017-05-01  Bruno Haible  <bruno@clisp.org>
23448         copy-file: Preserve sub-second time stamps.
23449         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23450         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23451         transport the time stamps from the original file to the destination
23452         file.
23453         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23454         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23455         utime-h.
23457 2017-05-01  Bruno Haible  <bruno@clisp.org>
23459         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23460         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23461         also on MSVC.
23462         Reported by Eli Zaretskii <eliz@gnu.org>.
23464 2017-05-01  Bruno Haible  <bruno@clisp.org>
23466         wchar: Fix compilation error with the original mingw.org mingw.
23467         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23468         <stddef.h> instead.
23469         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23470         gl_WCTYPE_H.
23471         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23472         gl_TYPE_WINT_T_PREREQ instead.
23473         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
23474         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
23475         Reported by Eli Zaretskii <eliz@gnu.org>.
23477 2017-04-30  Bruno Haible  <bruno@clisp.org>
23479         utimecmp: Add support for native Windows.
23480         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
23482 2017-04-30  Bruno Haible  <bruno@clisp.org>
23484         utimens: Add support for native Windows.
23485         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
23486         (fdutimens): Provide a native Windows implementation, like utime.c with
23487         added tv_nsec support.
23488         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
23489         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
23491 2017-04-30  Bruno Haible  <bruno@clisp.org>
23493         wcsftime: New module.
23494         * lib/wchar.in.h (wcsftime): New declaration.
23495         * lib/wcsftime.c: New file.
23496         * m4/wcsftime.m4: New file.
23497         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
23498         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
23499         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
23501         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23502         * modules/wcsftime: New file.
23503         * doc/posix-functions/wcsftime.texi: Mention the new module.
23505 2017-04-30  Bruno Haible  <bruno@clisp.org>
23507         strftime-fixes: New module.
23508         * lib/time.in.h (strftime): New declaration.
23509         * lib/strftime-fixes.c: New file.
23510         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
23511         (gl_FUNC_STRFTIME): Remove macro.
23512         * m4/strftime-fixes.m4: New file.
23513         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
23514         REPLACE_STRFTIME.
23515         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
23516         REPLACE_STRFTIME.
23517         * modules/strftime-fixes: New file.
23518         * doc/posix-functions/strftime.texi: Mention the new module.
23520 2017-04-30  Bruno Haible  <bruno@clisp.org>
23522         mktime: Work around TZ problem on native Windows.
23523         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
23524         from the native Windows workaround.
23525         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
23526         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
23527         'guessing no'.
23528         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
23529         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
23530         NEED_MKTIME_WINDOWS.
23531         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
23532         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
23533         NEED_MKTIME_INTERNAL.
23534         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
23535         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
23536         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
23537         not REPLACE_MKTIME.
23538         * doc/posix-functions/mktime.texi: Mention the native Windows
23539         workaround.
23541 2017-04-30  Bruno Haible  <bruno@clisp.org>
23543         localtime: New module.
23544         * lib/time.in.h (localtime): Declare also if requested by module
23545         'localtime'.
23546         * lib/localtime.c: New file.
23547         * m4/localtime.m4: New file.
23548         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
23549         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
23550         * modules/localtime: New file.
23551         * doc/posix-functions/localtime.texi: Mention the new module.
23553 2017-04-30  Bruno Haible  <bruno@clisp.org>
23555         ctime: New module.
23556         * lib/time.in.h (ctime): New declaration.
23557         * lib/ctime.c: New file.
23558         * m4/ctime.m4: New file.
23559         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
23560         REPLACE_CTIME.
23561         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
23562         * modules/ctime: New file.
23563         * doc/posix-functions/ctime.texi: Mention the new module.
23565 2017-04-30  Bruno Haible  <bruno@clisp.org>
23567         gettimeofday: Provide higher resolution on native Windows.
23568         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
23569         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
23570         (initialize): Initialize it.
23571         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
23572         'struct timeval'. Don't use _ftime().
23573         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
23574         <sys/timeb.h> and _ftime.
23576 2017-04-30  Bruno Haible  <bruno@clisp.org>
23578         Document the problem with the Cygwin environment variable TZ.
23579         * doc/posix-functions/tzset.texi: Add note about TZ.
23580         * doc/posix-functions/ctime.texi: Likewise.
23581         * doc/posix-functions/localtime.texi: Likewise.
23582         * doc/posix-functions/mktime.texi: Likewise.
23583         * doc/posix-functions/strftime.texi: Likewise.
23584         * doc/posix-functions/wcsftime.texi: Likewise.
23585         * doc/pastposix-functions/ftime.texi: Likewise.
23587 2017-04-30  Bruno Haible  <bruno@clisp.org>
23589         utime-tests: New module.
23590         * tests/test-utime.c: New file, based on tests/test-utimens.h.
23591         * tests/test-utimens-common.h: Include <sys/stat.h>.
23592         * modules/utime-tests: New file.
23594 2017-04-29  Bruno Haible  <bruno@clisp.org>
23596         utime: New module.
23597         * lib/utime.in.h: Add comment for snippets.
23598         (utime): New declaration.
23599         * lib/utime.c: New file.
23600         * m4/utime.m4: New file.
23601         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
23602         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
23603         REPLACE_UTIME.
23604         * modules/utime-h (Depends-on): Add snippets.
23605         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
23606         Insert snippets.
23607         * modules/utime: New file.
23608         * doc/posix-functions/utime.texi: Mention the new module.
23610 2017-04-29  Bruno Haible  <bruno@clisp.org>
23612         utime-h: Modernize handling of 'struct utimbuf'.
23613         * lib/utime.in.h: Include next <utime.h> if it exists.
23614         (utimbuf): Define to _utimbuf on native Windows.
23615         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23616         Set UTIME_H on native Windows.
23617         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
23618         * modules/utime-h (Depends-on): Add include_next.
23619         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
23620         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
23622         * lib/utimens.c (utimbuf): Remove fallback definition.
23623         * m4/utimens.m4 (gl_UTIMENS): Don't require
23624         gl_CHECK_TYPE_STRUCT_UTIMBUF.
23625         * m4/utimbuf.m4: Remove file.
23626         * modules/utimens (Files): Remove m4/utimbuf.m4.
23628 2017-04-29  Bruno Haible  <bruno@clisp.org>
23630         Make use of module 'utime-h'.
23631         * modules/copy-file (Depends-on): Add utime-h.
23632         * lib/copy-file.c: Assume that <utime.h> exists.
23633         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
23635         * modules/utimens (Depends-on): Add utime-h.
23636         * lib/utimens.c: Assume that <utime.h> exists.
23638 2017-04-29  Bruno Haible  <bruno@clisp.org>
23640         utime-h: New module.
23641         * m4/utime_h.m4: New file.
23642         * lib/utime.in.h: New file.
23643         * modules/utime-h: New file.
23644         * doc/posix-headers/utime.texi: Mention the new module.
23646         * tests/test-utime-h.c: New file.
23647         * modules/utime-h-tests: New file.
23649 2017-04-30  Bruno Haible  <bruno@clisp.org>
23651         Fix a few typos.
23652         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
23653         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
23654         * doc/posix-functions/fstat.texi: Fix a plural typo.
23655         * doc/posix-functions/stat.texi: Likewise.
23656         * m4/include_next.m4: Update comments.
23658 2017-04-29  Bruno Haible  <bruno@clisp.org>
23660         error: Fix mistake in 2017-04-23 commit.
23661         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
23662         assume that strerror_r returns 'int', not 'char *'.
23664 2017-04-29  Bruno Haible  <bruno@clisp.org>
23666         stat: Fix time_t values and other problems on native Windows platforms.
23667         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
23668         implementations of stat().
23669         * lib/stat.c: Include filename.h instead of dosname.h. Include
23670         malloca.h, stat-w32.h.
23671         (is_unc_root): New function.
23672         (rpl_stat): New implementation for native Windows. Remove
23673         REPLACE_FUNC_STAT_DIR code.
23674         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
23675         Don't define REPLACE_FUNC_STAT_DIR.
23676         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
23677         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23678         (Depends-on): Remove dosname. Add filename, malloca.
23679         (configure.ac): Also compile lib/stat-w32.c.
23681 2017-04-29  Bruno Haible  <bruno@clisp.org>
23683         fstat: Fix time_t values on native Windows platforms.
23684         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23685         * lib/stat-w32.h: New file.
23686         * lib/stat-w32.c: New file.
23687         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23688         stat-w32.h instead.
23689         (fstat_nothrow): Remove function.
23690         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23691         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23692         always.
23693         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23694         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23695         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23696         (configure.ac): Also compile lib/stat-w32.c.
23698 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23700         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23701         Problem reported by Assaf Gordon and Gavin Smith in:
23702         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23703         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23704         #define this, too.
23706 2017-04-29  Bruno Haible  <bruno@clisp.org>
23708         strerror_r-posix: Fixes for MSVC 14.
23709         * lib/strerror_r.c: Include <stdarg.h>.
23710         (strerror_r): Provide error messages for errno values 100...140.
23711         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23713 2017-04-28  Bruno Haible  <bruno@clisp.org>
23715         noreturn: New module.
23716         * lib/noreturn.h: New file.
23717         * modules/noreturn: New file.
23718         * tests/test-noreturn.c: New file.
23719         * modules/noreturn-tests: New file.
23720         * tests/test-noreturn-c++.cc: New file.
23721         * modules/noreturn-c++-tests: New file.
23723 2017-04-27  Bruno Haible  <bruno@clisp.org>
23725         wctype-h: Fix compilation error with the original mingw.org mingw.
23726         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23727         HAVE_CRTDEFS_H.
23728         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23729         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23730         <stddef.h> instead.
23731         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23733 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23735         nap.h: Fix compilation on non windows platforms
23736         * tests/nap.h: Move misplaced endif.
23738 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23739         and Paul Eggert  <eggert@cs.ucla.edu>
23741         time_rz: fix heap buffer overflow vulnerability
23742         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23743         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23744         whether there is enough buffer space available, thus avoiding
23745         the problematic promotion of signed to unsigned causing an invalid
23746         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23747         the start of the buffer.
23748         * tests/test-parse-datetime.c (main): Add a test case written by
23749         Paul Eggert, which overwrites enough of the heap so that
23750         standard glibc will fail with "free(): invalid pointer"
23751         without the patch applied.
23753 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23755         xalloc: add missing integer overflow check
23756         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23757         overflow when P is null.
23759 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23761         parse-datetime: make it standalone
23762         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23763         (_GL_ATTRIBUTE_FORMAT): New macro.
23764         These are needed to get './gnulib-tool --test parse-datetime' to work.
23766 2017-04-23  Bruno Haible  <bruno@clisp.org>
23768         nap.h: Port to native Windows.
23769         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23770         use nap_fd instead. On native Windows, close and reopen nap_fd.
23771         (nap_works): Don't compare the ctimes, because on native Windows, these
23772         are the creation times.
23773         (nap): Update.
23775 2017-04-23  Bruno Haible  <bruno@clisp.org>
23777         nap.h: Fix logic.
23778         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23780 2017-04-23  Bruno Haible  <bruno@clisp.org>
23782         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23783         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23784         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23785         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23786         * lib/argp-help.c (__argp_failure): Likewise.
23788 2017-04-23  Bruno Haible  <bruno@clisp.org>
23790         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23791         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23792         * lib/strerror_r.c: Likewise.
23794 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23796         Target a C99 subset, not a C89 subset
23797         For many years Gnulib has targeted C89 and has resisted using C99
23798         features, as some Gnulib-using programs still wanted to target
23799         C89.  As this no longer seems to be the case, relax the porting
23800         requirements to allow some C99 features.  This is merely a change
23801         to the documentation, to give other Gnulib developers a chance to
23802         weigh in on the topic.
23803         * doc/extern-inline.texi (extern inline):
23804         * doc/gnulib-readme.texi (Portability guidelines):
23805         * doc/gnulib-tool.texi (Initial import):
23806         * doc/gnulib.texi (Header files):
23807         Modernize to talk about C99 and C11 instead of C89 and C99.
23808         * doc/gnulib-readme.texi (Portability guidelines):
23809         Now a section, not merely a subsection, so that it
23810         can be split up.  Modernize a bit.
23811         (C language versions, C99 features assumed)
23812         (C99 features avoided):
23813         New sections.
23815 2017-04-23  Bruno Haible  <bruno@clisp.org>
23817         doc: New section "Modules that modify the way other modules work".
23818         * doc/gnulib.texi (Modules that modify the way other modules work): New
23819         section.
23821 2017-04-23  Bruno Haible  <bruno@clisp.org>
23823         stat-time: Update comments.
23824         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23825         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23826         Windows.
23828 2017-04-01  Bruno Haible  <bruno@clisp.org>
23830         glob: Fix more memory leaks.
23831         * lib/glob.c (glob): Free allocated memory before returning.
23832         Reported by Coverity via Tim Rühsen.
23834 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23836         poll: improve fast check for out-of-range NFD
23837         * lib/poll.c: Do not include intprops.h.
23838         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23839         * modules/poll (Depends-on): Remove intprops.
23841         ftoastr: cite a newer paper
23842         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23843         instead of Loitsch 2010.
23845 2017-04-22  Bruno Haible  <bruno@clisp.org>
23847         poll: Enable argument check also in the Windows implementation.
23848         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23849         Reported by Paul Eggert.
23851 2017-04-22  Bruno Haible  <bruno@clisp.org>
23853         getlogin_r: Work around bug in Mac OS X 10.12.
23854         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23855         bug.
23856         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23857         given size minus 1, call getlogin_r a second time, on a larger buffer.
23858         * modules/getlogin_r (Depends-on): Add malloca.
23859         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23861 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23863         parse-datetime: fix %z and prefer signed int
23864         %z problem reported by Pádraig Brady in:
23865         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23866         While fixing it, I decided to prefer signed ints to size_t, as
23867         they are less error-prone (e.g., ubsan catches overflow).
23868         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23869         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23870         counts, since signed integers make for better debugging.
23871         (date): Don’t assume %z works in printf formats.
23872         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23873         sizes of buffers known to be small, e.g., because we’re using snprintf.
23874         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23876 2017-04-22  Bruno Haible  <bruno@clisp.org>
23878         *printf: Work around rounding bug on Mac OS X.
23879         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23880         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23881         Mac OS X and FreeBSD.
23882         * doc/glibc-functions/*printf.texi: Likewise.
23884 2017-04-22  Bruno Haible  <bruno@clisp.org>
23886         vasnprintf tests: Avoid warnings.
23887         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23888         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23889         test.
23891 2017-04-22  Bruno Haible  <bruno@clisp.org>
23893         sys_file tests: Avoid warning.
23894         * tests/test-sys_file.c (main): Add a default clause to the switch
23895         statement.
23897 2017-04-22  Bruno Haible  <bruno@clisp.org>
23899         sethostname: Update doc.
23900         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23901         Mac OS X.
23903 2017-04-22  Bruno Haible  <bruno@clisp.org>
23905         quotearg tests: Avoid warnings.
23906         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23907         false.
23909 2017-04-22  Bruno Haible  <bruno@clisp.org>
23911         poll: Enable argument check.
23912         * lib/poll.c: Include intprops.h.
23913         (poll): Check value of nfd correctly.
23914         * modules/poll (Depends-on): Add intprops.
23916 2017-04-22  Bruno Haible  <bruno@clisp.org>
23918         get-rusage-data: Avoid warnings on Mac OS X.
23919         * lib/get-rusage-data.c: On Mac OS X, don't define
23920         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23921         (get_rusage_data) [Mac OS X]: Just return 0.
23923 2017-04-22  Bruno Haible  <bruno@clisp.org>
23925         xbinary-io: Fix build error.
23926         * modules/xbinary-io (Depends-on): Add gettext-h.
23927         * lib/xbinary-io.c: Include gettext.h and define _().
23928         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23929         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23931 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23933         parse-datetime: overflow and debug cleanups
23934         This long patch was triggered by this bug report from Ruediger Meier:
23935         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23936         I fixed the bug he noted, then found some others nearby, and then
23937         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23938         up some of the code to follow GNU standards while I was at it.
23939         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23940         use c_isdigit.
23941         (EPOCH_YEAR): Remove; unused.
23942         (TM_YEAR_BASE): Now an enum rather than a macro.
23943         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23944         time zone offset, since timezones now are in terms of seconds and
23945         not minutes.
23946         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23947         appropriate.  Verify that intmax_t is wide enough.
23948         (time_overflow, time_zone_str): New functions, used to deal
23949         more reliably with overflow.
23950         (dbg_printf): Add printf attribute, to help catch integer width errors.
23951         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23952         (%union, to_hour, yylex, parse_datetime2):
23953         Use intmax_t instead of long int and/or long_time_t.
23954         All uses changed.
23955         (DBGBUFSIZE): Move earlier.
23956         (relative_time, set_hhmmss, parser_control):
23957         Just use int for nanoseconds and for time zones; that’s wide enough.
23958         (parser_control): Use bool for members like year_seen that can
23959         be booleans instead of counters.  All uses changed.
23960         Remove debug_default_input_timezone; no longer needed.
23961         All uses removed.
23962         (apply_relative_time): Return a bool overflow flag.
23963         All uses changed to check for overflow.
23964         (apply_relative_time, zone, date, relunit, relunit_snumber)
23965         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23966         Check for integer overflow portably.
23967         (str_days): Use just int for N, as it’s wide enough.
23968         Prefer 2D char arrays to arrays of char * when it looks like
23969         2D is a win on typical platforms.
23970         Prefer snprintf to strncpy/strncat, for simplicity;
23971         all buffers are smaller than INT_MAX so this is safe.
23972         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23973         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23974         as this is not true on x32.  Output "." before any nanoseconds.
23975         (debug_print_current_time, parse_datetime2):
23976         Output local zones using a more-consistent format.
23977         (debug_print_current_time, date, parse_datetime2):
23978         (main) [TEST]:
23979         Don’t assume time_t is the same width as long.
23980         (print_rel_part): New function, replacing ...
23981         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23982         (debug_print_relative_time): Use bool for boolean.
23983         (local_zone): dsts_seen now counts only tDST instances.
23984         (date): Fix printf of size_t to use %z.  Do not assume numeric
23985         tokens have negative values merely because the context suggests
23986         a syntax with "-" separating tokens.
23987         (time_zone_hhmm): Return bool success indicator, which checks for
23988         overflow.  Store result into PC->time_zone instead.  All callers
23989         changed.
23990         (tm_year_str): New function.  Return a bool success indicator and
23991         store the result into a buffer.  All callers changed.  Output the
23992         numerically correct string even if adding 1900 to the year would
23993         overflow.
23994         (to_tm_year): New function, replacing the old to_year.  All
23995         callers changed.
23996         (tm_diff): Sync with glibc.
23997         (lookup_word): Use to_uchar instead of doing it by hand.
23998         (TZBUFSIZE): Now local to the only function that needs it.
23999         (debug_strfdatetime): Simplify now that time zones are int seconds.
24000         (debug_strfdate): Work even if tm_year + 1900 would overflow.
24001         (get_effective_timezone): Remove.  All uses removed.
24002         (parse_datetime2): Use fprintf in pieces instead of snprintfing
24003         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
24004         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
24005         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
24006         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
24007         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
24008         * modules/parse-datetime (Depends-on): Add inttypes.
24010 2017-04-21  Bruno Haible  <bruno@clisp.org>
24012         gettext-h: Avoid -Wundef warning.
24013         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
24014         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
24015         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
24017 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
24019         error: Avoid "function declaration isn't a prototype" warning.
24020         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
24022 2017-04-21  Bruno Haible  <bruno@clisp.org>
24024         vasnprintf: Fix for MSVC 14.
24025         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
24026         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
24027         of !HAVE_SNPRINTF_RETVAL_C99.
24029 2017-04-21  Bruno Haible  <bruno@clisp.org>
24031         mbrtowc tests: Fix test failures on MSVC 14.
24032         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
24033         behaviour for invalid input.
24035 2017-04-21  Bruno Haible  <bruno@clisp.org>
24037         mbsinit: Fix for MSVC 14.
24038         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
24039         implementation that is in sync with mbrtowc.c. On other platforms, use
24040         an adequate ad-hoc implementation.
24042 2017-04-21  Bruno Haible  <bruno@clisp.org>
24044         Fix test-mbrtowc5.sh failure on native Windows.
24045         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
24046         "C".
24048 2017-04-21  Bruno Haible  <bruno@clisp.org>
24050         Avoid accidental use of native Windows APIs on Cygwin.
24051         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
24052         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
24053         * lib/localename.c (WINDOWS_NATIVE): Likewise.
24055 2017-04-20  Bruno Haible  <bruno@clisp.org>
24057         Remove red warnings from the generated MODULES.html.
24058         * modules/fcntl (Description): Disambiguate function references.
24059         * modules/getcwd-lgpl (Description): Likewise.
24060         * modules/hostent (Description): Likewise.
24061         * modules/servent (Description): Likewise.
24062         * modules/tempname (Description): Likewise.
24064 2017-04-20  Bruno Haible  <bruno@clisp.org>
24066         verify tests: Fix spurious failure with parallel make.
24067         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
24068         EXTRA_PROGRAMS.
24069         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
24070         * tests/test-verify-try.c: New file.
24071         * modules/verify-tests (Files): Add it.
24072         (EXTRA_PROGRAMS): Add test-verify-try.
24073         (MOSTLYCLEANFILES): Update accordingly.
24074         Reported by Adam James Stewart <ajstewart@anl.gov>.
24076 2017-04-18  Bruno Haible  <bruno@clisp.org>
24078         vma-iter: Fix compilation error on Solaris 7.
24079         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
24080         like on IRIX, OSF/1.
24081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24083 2017-04-18  Bruno Haible  <bruno@clisp.org>
24085         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
24086         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
24087         included.
24088         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
24089         <sys/procfs.h>.
24090         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
24091         <sys/procfs.h> cannot be included.
24092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24094 2017-04-18  Bruno Haible  <bruno@clisp.org>
24096         getopt-gnu: Add comments.
24097         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
24098         * modules/getopt-gnu (configure.ac): Likewise.
24100 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
24102         regex: port better to Solaris 10
24103         Solaris 10 <locale.h> includes <libintl.h>, which #defines
24104         gettext, and this causes a double #define.
24105         Problem reported by Gavin Smith in:
24106         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
24107         * lib/regex_internal.h (gettext): #undef before #defining.
24109 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24111         intprops: improve comments
24112         * lib/intprops.h: Improve and shorten commentary.
24113         For the record, if we ever run into a pedantic compiler that
24114         behaves differently from GCC when converting an out-of-range value
24115         to a signed integer, we can work around the problem with something
24116         like the following code, where UCT is the signed counterpart of T
24117         (UCT is sometimes narrower than UT) and all callers are changed
24118         accordingly:
24119         #if __SUNPRO_C <= 0x5120
24120         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24121            ((t) ((ut) (a) op (ut) (b)))
24122         #else
24123         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24124            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
24125             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
24126                + TYPE_MINIMUM (t)) \
24127             : (t) (uct) ((ut) (a) op (ut) (b)))
24128         #endif
24130 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24132         intprops: try to avoid tickling similar bugs
24133         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
24134         needs to be the same width as T; it can be wider.
24135         Change callers so that UT is at least as wide as unsigned int,
24136         as I suspect that this is less likely to run into compiler bugs.
24138         intprops: port to Oracle Studio 12.3 x86
24139         Problem reported by Gavin Smith in:
24140         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
24141         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24142         Convert unsigned to signed via the usual rather than the standard way,
24143         to avoid a compiler bug in Oracle Studio 12.3 x86.
24145 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
24147         getopt: prefer - to _ in new file names
24148         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
24149         * lib/getopt-core.h: Rename from lib/getopt_core.h.
24150         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
24151         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
24152         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
24153         All uses changed.
24155         getopt: port recent getopt changes to macOS
24156         Problem reported by Harald Maier (Bug#26398).
24157         The macOS C compiler uses __nonnull for its own purposes and that
24158         clashes with glibc's __nonnull.
24159         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
24160         * lib/getopt_cdefs.in.h (__nonnull): Remove.
24161         * lib/getopt_core.h (getopt):
24162         * lib/getopt_ext.h (getopt_long, getopt_long_only):
24163         Use _GL_ARG_NONNULL, not __nonnull.
24164         * lib/unistd.in.h: Move snippet hooks to before where the getopt
24165         .h files are included, so that _GL_ARG_NONNULL is defined in time.
24166         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
24167         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
24169 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
24171         getopt-gnu: omit some duplicate code
24172         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
24173         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
24174         gnulib-tool already does this.
24175         * modules/getopt-gnu (configure.ac): Omit code duplicated from
24176         getopt-posix, which we depend on.
24178         getopt-posix: use angle-bracket include
24179         * lib/getopt1.c: Include <config.h>, not "config.h".
24181 2017-04-06  Zack Weinberg  <zackw@panix.com>
24183         getopt: annotate files with relationship to glibc
24185         As the final act in this patchset, adjust the message at the top of
24186         each file to indicate which files are synced with glibc.  (This has
24187         already been done for most of the headers.)
24189         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
24190         Mention in top-of-file boilerplate that these files are shared
24191         between glibc and gnulib.
24194         getopt: split up getopt.in.h and eliminate __need_getopt
24196         Over in glibc, all of the __need macros are being phased out in favor
24197         of small headers that declare only the necessary components, as this
24198         is much simpler and less prone to bugs.  As getopt is shared with
24199         glibc, gnulib needs to do the same for __need_getopt.
24201         __need_getopt is misnamed; what it really means is "we want only the
24202         getopt features specified in POSIX, not the GNU extensions".  glibc
24203         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
24204         these files can be shared verbatim with gnulib.  The portability
24205         wrapper, on the other hand, they have renounced altogether; glibc's
24206         getopt.h will no longer be shared with gnulib at all.  In exchange,
24207         certain glibc-specific quirks (having to do with __posix_getopt) no
24208         longer need appear in gnulib's headers at all.
24210         This patch merges getopt_core.h and getopt_ext.h from glibc, and
24211         splits up the current gnulib-side portability wrapper into three
24212         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
24213         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
24214         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
24215         unistd.in.h just use them.  All new files are clearly marked with
24216         whether they are shared with glibc.
24218         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
24219         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
24220         with glibc, and ...
24221         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
24222         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
24223         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
24224         instead of defining __need_getopt and including the full getopt.h.
24226         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
24227         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
24228         * modules/getopt-posix (Files): Add new headers and sort list.
24229         (Depends-on): No longer need snippet/arg-nonnull.
24230         (Makefile.am): Generate getopt_cdefs.h.
24233         getopt: better handling of ambiguous options
24235         glibc's getopt uses alloca to construct a linked list of possibilities
24236         for an "ambiguous" long option.  In gnulib, malloc should be used
24237         instead.  Providing for both cases complicates things a fair bit.
24239         This patch rewrites ambiguous-option handling to use a boolean vector
24240         instead of a linked list.  There is then only one allocation that
24241         might need freeing; in glibc it can honor __libc_use_alloca as usual,
24242         and in gnulib we define __libc_use_alloca to always be false, so we
24243         don't need ifdefs in the middle of the function.  This should also be
24244         slightly more efficient in the normal case of long options being fully
24245         spelled out -- I think most people aren't even aware they _can_
24246         sometimes abbreviate long options.
24248         One interesting consequence is that the list of possibilities is now
24249         printed in exactly the order they appear in the list of long options,
24250         instead of the first possibility being shuffled to the end.
24252         (The patch looks bigger than it really is because there's a fair bit
24253         of reindentation and code rearrangement.)
24255         * lib/getopt.c: When used standalone, define __libc_use_alloca
24256         as always false and alloca to abort if called.
24257         (process_long_option): Rewrite handling of ambiguous long options
24258         to use a single boolean vector, not a linked list; use
24259         __libc_use_alloca to decide whether to allocate this using alloca.
24262         getopt: refactor long-option handling
24264         There were two copies of the bulk of the code to handle long options.
24265         Now there is only one.
24267         This change temporarily removes the logic to avoid using alloca when
24268         standalone; the next patch in the series will restore it.
24270         * lib/getopt.c (process_long_option): New function split out
24271         from _getopt_internal_r.
24272         (_getopt_internal_r): Replace both copies of the long-option
24273         processing code with calls to process_long_option.
24276         getopt: tidy up _getopt_initialize a bit
24278         _getopt_data.__posixly_correct is completely redundant to
24279         _getopt_data.__ordering, and some work that logically belongs in
24280         _getopt_initialize was being done by _getopt_internal_r, making the
24281         code harder to understand.
24283         As a side effect, getenv will no longer be called if the first
24284         character of the options string is '+' or '-', which is probably a
24285         Good Thing.  (Perhaps we should have a flag character that
24286         specifically asks for the permutation behavior?)
24288         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
24289         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
24290         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
24293         getopt: merge from glibc: repetition reduction
24295         The definitions of the entry point functions 'getopt' and
24296         '__posix_getopt' can be made substantially less repetitive with a
24297         helper macro.
24299         While I was merging the const-correctness changes from gnulib into
24300         glibc I noticed there are still some unnecessary casts in
24301         _getopt_internal_r.
24303         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
24304         a macro.  Consistently cast 'argv' to 'char **' when calling
24305         _getopt_internal.
24306         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
24309         getopt: clean up error reporting
24311         getopt can print a whole bunch of error messages, and when used
24312         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
24313         cancellation point and getopt isn't, and also applying fprintf to a
24314         stream in wide-character mode is not allowed.  So every single error
24315         reporting case has an #ifdef _LIBC block in which it calls internal
24316         libc functions instead.  The counterpart patch series in glibc makes
24317         it possible to simplify all of that down to a set of #defines at the
24318         top of the file; core code is written as if it is safe to just call
24319         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
24320         call any *other* stdio functions.)
24322         * lib/getopt.c: When _LIBC is defined, define fprintf to
24323         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
24324         to _IO_funlockfile.  When neither _LIBC nor
24325         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
24326         funlockfile as no-ops.
24327         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
24328         standalone error-printing code can now be used for libc as well.
24329         Add an flockfile/funlockfile pair around one case where the error
24330         message is printed in several chunks.  Don't use fputc.
24333         getopt: fix fencepost error in ambiguous-W-option handling
24335         getopt_long contains an undocumented (AFAICT) feature in which, if you
24336         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
24337         treated as equivalent to '--foo'.  This is implemented with a partial
24338         second copy of the code for handling long options, and that code
24339         increments optind one too many times when recovering from an ambiguous
24340         abbreviated option, which can cause the main loop to walk past the end
24341         of argv and crash.
24343         I discovered this while writing a test case that tries to exercise all
24344         of getopt's error reporting paths; I wouldn't be surprised to learn
24345         that this feature is never used by real applications.
24347         * lib/getopt.c (_getopt_internal_r): Don't increment
24348         d->optind a second time when reporting ambiguous -W options.
24351         getopt: clean up getopt.c and getopt1.c file headers
24353         In getopt.c, there is no need to include wchar.h at all, and it is
24354         safe nowadays to assume that stdlib.h does declare getenv (several
24355         other gnulib modules make this assumption).
24357         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
24358         by using "" inclusions consistently, and there is no actual need to
24359         include stdlib.h (except in the #ifdef TEST block, where it should be
24360         unconditional), nor to provide a backup definition of NULL at all.
24362         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24363         Move inclusion of stdlib.h to #ifdef TEST block and make
24364         unconditional.  Do not define NULL.
24365         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24366         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24367         * modules/getopt-gnu, modules/getopt-posix: Don't call
24368         gl_PREREQ_GETENV.
24371         getopt: harmonize comments with glibc
24373         The comments explaining how the behavior of 'getopt' varies depending
24374         on whether it's the standalone version and whether there are special
24375         characters at the beginning of the options string were inconsistent
24376         between gnulib and glibc, and also out of sync with the code.
24378         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24381         getopt: remove USE_NONOPTION_FLAGS
24383         getopt includes code to parse an environment variable named
24384         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24385         in decimal); but all of it has been #ifdefed out since 2001, with no
24386         official way to turn it back on.
24388         According to commentary in glibc's config.h.in, bash version 2.0
24389         set this environment variable to indicate argv elements that were
24390         the result of glob expansion and therefore should not be treated
24391         as options, but the feature was "disabled later" because "it
24392         caused problems".  According to bash's CHANGES file, "later" was
24393         release 2.01; it gives no more detail about what the problems
24394         were.
24396         Version 2.0 of bash was released on the last day of 1996, and version
24397         2.01 in June of 1997.  Twenty years later, I think it is safe to
24398         assume that this environment variable isn't coming back.
24400         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24401         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24402         __libc_argc and __libc_argv externs, which were only used by
24403         #ifdef USE_NONOPTION_FLAGS blocks.
24406         getopt: tabify, in preparation for merge with glibc
24408         glibc sticks to the GNU default of indenting with a mix of
24409         8-column tabs and spaces; make the gnulib copy match.
24411         getopt.h is not included because it is *not* going to be merged in its
24412         present form.
24414         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24416 2017-04-02  Bruno Haible  <bruno@clisp.org>
24418         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24419         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24420         like it was done in modules/relocatable-lib on 2011-05-21 and in
24421         modules/relocatable-prog on 2011-08-15.
24422         Reported by Reuben Thomas <rrt@sc3d.org>.
24424 2017-03-31  Bruno Haible  <bruno@clisp.org>
24426         glob: Fix invalid free() call.
24427         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24428         static storage to home_dir.
24429         Reported by Coverity via Tim Rühsen.
24431 2017-03-31  Bruno Haible  <bruno@clisp.org>
24433         glob: Fix memory leaks.
24434         * lib/glob.c (glob): Free allocated memory before returning.
24435         Reported by Coverity via Tim Rühsen.
24437 2017-03-31  Bruno Haible  <bruno@clisp.org>
24439         md5, sha1, sha256, sha512: Add comments regarding correctness.
24440         * lib/md5.h (buflen): Add comments regarding range.
24441         * lib/sha1.h (buflen): Likewise.
24442         * lib/sha256.h (buflen): Likewise.
24443         * lib/sha512.h (buflen): Likewise.
24444         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24445         * lib/sha1.c (sha1_process_bytes): Likewise.
24446         * lib/sha256.c (sha256_process_bytes): Likewise.
24447         * lib/sha512.c (sha512_process_bytes): Likewise.
24448         Reported by Coverity via Tim Rühsen.
24450 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24452         getopt: merge from glibc
24453         This does not change anything substantial; it merely simplifies
24454         hypothetical merges back to glibc.
24455         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24456         Change copyright notice to match what is in glibc.
24457         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24458         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24459         __open_memstream rather than open_memstream and __glibc_likely
24460         instead of __builtin_expect.
24461         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24463 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24465         dfa: make [0-9] faster in non-C locales
24466         Problem reported by John P. Linderman (Bug#26193).
24467         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24468         If both ends of the range are ASCII digits, do not worry about
24469         multi-character collating sequences and the like.  Be consistent
24470         about using isalpha as a precondition for setbit_case_fold_c.
24472 2017-03-19  Bruno Haible  <bruno@clisp.org>
24474         lock: Fix compilation error with HP-UX IA64 cc.
24475         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
24476         weak on non-glibc platforms.
24478 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24480         stdalign: tweak version# and test for HP-UX IA64
24481         Problems reported by Bruno Haible in:
24482         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
24483         * lib/stdalign.in.h (_Alignas):
24484         * m4/stdalign.m4 (gl_STDALIGN_H):
24485         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
24486         used octal (as that is how they document it), but it is decimal in
24487         practice now and the ancient implementations no longer matter.
24488         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
24490 2017-03-19  Bruno Haible  <bruno@clisp.org>
24492         vma-iter: Add support for Solaris.
24493         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
24494         approach.
24495         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
24496         * lib/get-rusage-as.c: Update comment about Solaris.
24497         * lib/get-rusage-data.c: Likewise.
24499 2017-03-19  Bruno Haible  <bruno@clisp.org>
24501         vma-iter: Prefer HP-UX specific API on HP-UX.
24502         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
24503         * lib/vma-iter.h: Update.
24504         Just in case HP-UX ever implements mquery().
24506 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24508         stdalign: restore previous behavior for HP-UX IA64
24509         See Bruno Haible's email in:
24510         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24511         which cites p 150 of a manual saying that 'aligned' works on Itanium.
24512         * lib/stdalign.in.h (_Alignas):
24513         Assume the '061200' applies to Itanium, not to PA-RISC.
24514         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
24516 2017-03-17  Bruno Haible  <bruno@clisp.org>
24518         stat-time, timespec: Support use of the header files in C++ mode.
24519         * lib/stat-time.h: Add "C" linkage declaration.
24520         * lib/timespec.h: Likewise.
24522 2017-03-17  Bruno Haible  <bruno@clisp.org>
24524         stdalign: Make it work with HP-UX cc.
24525         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
24526         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
24527         for HP-UX cc.
24529 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
24531         flexmember: try to detect HP-UX 11.31 cc bug
24532         Problem reported by Bruno Haible in:
24533         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24534         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24535         Attempt to detect bug in HP-UX 11.31 cc.
24537 2017-03-16  Bruno Haible  <bruno@clisp.org>
24539         stdint: Fix test compilation failure with HP-UX 11 cc.
24540         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
24541         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
24542         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
24543         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24545 2017-03-14  Bruno Haible  <bruno@clisp.org>
24547         gnulib-tool: Don't produce a tests directory with only snippet .h files.
24548         * gnulib-tool (func_modules_transitive_closure_separately): If
24549         testsrelated_modules ends up with no "real" modules, aside from
24550         modules with applicability 'all', set it to empty.
24552 2017-03-14  Bruno Haible  <bruno@clisp.org>
24554         vma-iter: Add support for HP-UX.
24555         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
24556         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
24557         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
24558         * lib/get-rusage-as.c: Update comment about HP-UX.
24559         * lib/get-rusage-data.c: Likewise.
24560         (get_rusage_data): Use get_rusage_data_via_setrlimit.
24562 2017-03-14  Bruno Haible  <bruno@clisp.org>
24564         limits-h: Make it work with HP-UX cc.
24565         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
24566         defined.
24568 2017-03-14  Bruno Haible  <bruno@clisp.org>
24570         Fix test failures on DragonFlyBSD.
24571         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
24572         * tests/test-select.h (test_bad_fd): Likewise.
24573         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
24575 2017-03-14  Bruno Haible  <bruno@clisp.org>
24577         freadahead: Silence warning on DragonFlyBSD.
24578         * lib/freadahead.c (__sreadahead): Declare ourselves.
24580 2017-03-14  Bruno Haible  <bruno@clisp.org>
24582         vma-iter: Add comment about AIX.
24583         * lib/vma-iter.c: Add comment about why this module is not implemented
24584         on AIX.
24586 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24588         snippets: move unadjusted snippet sources to lib
24589         Problem reported by Michal Privoznik in:
24590         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
24591         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
24592         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
24593         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
24594         * lib/unused-parameter.h: Rename from
24595         build-aux/snippet/unused-parameter.h.
24596         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
24597         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
24598         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
24599         * modules/snippet/c++defs (Files:, CXXDEFS_H):
24600         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
24601         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
24602         Adjust to file renamings.
24604 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
24606         gnulib-tool: don't automatically distribute files from top/
24607         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
24608         not distribute top/README-release by default, don't distribute files
24609         from top/ unconditionally.
24610         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24611         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24613 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24615         gnulib-tool: fix typo in comment output
24616         * gnulib-tool (func_import): Fix typo with previous change.
24618         snippets: work around GNU Make 3.82 VPATH
24619         When using 'gnulib-tool --gnu-make' on Emacs, and building
24620         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
24621         an out-of-source (VPATH) build failed because the sans-copyright
24622         snippet file was not built before the file that used it.
24623         Presumably this is some sort of VPATH thing.  Work around the
24624         problem by using the original snippet, i.e., don’t bother to
24625         remove its copyright notice.
24626         * modules/snippet/_Noreturn, modules/snippet/link-warning:
24627         Don’t assume Automake in comments.  Omit long-incorrect comment.
24628         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
24629         (MOSTLYCLEANFILES):
24630         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
24631         (MOSTLYCLEANFILES):
24632         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
24633         (MOSTLYCLEANFILES):
24634         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
24635         (MOSTLYCLEANFILES):
24636         Remove.
24637         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
24638         * modules/snippet/c++defs (CXXDEFS_H):
24639         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
24640         * modules/snippet/warn-on-use (WARN_ON_USE_H):
24641         Don’t bother to remove the copyright notice; just use the
24642         original snippet as-is.
24644 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24646         gnulib-tool: minor --gnu-make fixups
24647         * gnulib-tool (func_emit_lib_Makefile_am):
24648         Remove useless code that was a blind alley during implementation.
24649         Problem reported by Thien-Thi Nguyen in:
24650         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
24651         (func_import): Note the "--gnu-make" option in the output comment.
24653 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24655         gnulib-tool: new option --gnu-make
24656         This is for applications like GNU Emacs that use GNU Make
24657         features instead of Automake.
24658         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
24659         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
24660         Do not assume Automake.
24661         * gnulib-tool (func_determine_path_separator)
24662         (func_modules_transitive_closure, func_update_file)
24663         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24664         (func_import): Add support for --gnu-make.
24666 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24668         gnulib-common.m4: avoid aclocal.m4 bloat
24669         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
24670         Hide AM_PROG_AR from aclocal, so that aclocal does not
24671         install irrelevant macro definitions into aclocal.m4.
24673 2017-03-10  Bruno Haible  <bruno@clisp.org>
24675         vma-iter: Let callers know about error.
24676         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
24677         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
24679 2017-03-05  Bruno Haible  <bruno@clisp.org>
24681         Fix value of LD for 64-bit compilers on AIX.
24682         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24683         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24685 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24687         dtotimespec: simplify
24688         * lib/dtotimespec.c (dtotimespec): Simplify.
24690 2017-03-04  Bruno Haible  <bruno@clisp.org>
24692         test-calloc-gnu: Reenable test also for GCC 7.
24693         * tests/test-calloc-gnu.c (eight): New function.
24694         (main): Don't skip test; use eight() instead.
24696 2017-03-04  Jim Meyering  <meyering@fb.com>
24698         test-calloc-gnu: port to GCC7
24699         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24700         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24701         and newer would detect that at compilation time.
24703 2017-03-04  Bruno Haible  <bruno@clisp.org>
24705         tests: Avoid compiler warning about uses of null_ptr.
24706         * tests/null-ptr.h: New file.
24707         * tests/test-canonicalize.c: Include null-ptr.h.
24708         (null_ptr): Remove function.
24709         * tests/test-canonicalize-lgpl.c: Likewise.
24710         * tests/test-memmem.c: Likewise.
24711         * tests/test-ptsname_r.c: Likewise.
24712         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24713         * modules/canonicalize-lgpl-tests: Likewise.
24714         * modules/memmem-tests: Likewise.
24715         * modules/ptsname_r-tests: Likewise.
24716         Reported by Jim Meyering.
24718 2017-03-03  Bruno Haible  <bruno@clisp.org>
24720         doc: Mention Mac OS X deficiencies regarding semaphores.
24721         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24722         * doc/posix-functions/sem_destroy.texi: Likewise.
24723         * doc/posix-functions/sem_getvalue.texi: Likewise.
24725 2017-03-03  Bruno Haible  <bruno@clisp.org>
24727         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24728         Reported by Assaf Gordon <assafgordon@gmail.com> via
24729         Pádraig Brady <P@draigBrady.com>.
24730         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24731         semaphores.
24732         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24733         (atomic_int_semaphore): New macro.
24735 2017-02-28  Bruno Haible  <bruno@clisp.org>
24737         perror tests: Tweak for z/OS.
24738         Reported by Daniel Richard G. <skunk@iskunk.org>.
24739         * tests/test-perror.sh: Don't fail z/OS style perror output.
24741 2017-02-26  Bruno Haible  <bruno@clisp.org>
24743         nproc: Refactor large function.
24744         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24745         from num_processors.
24746         (num_processors): In this function, only deal with OMP.
24748 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24750         nproc: adjust handling of OpenMP environment variables
24751         to match the return value from omp_get_num_threads(), i.e.:
24752          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24753          - Treat 0 as an invalid value and ignore
24754         Also remove the call to omp_get_num_threads() because
24755         it's ineffective without the omp pragmas in place.
24756         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24757         so that it can be ignored.
24758         (num_processors): Honor OMP_THREAD_LIMIT even without
24759         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24760         variable being checked, from the previous recent commit.
24762 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24764         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24765         * lib/nproc.c (parse_omp_threads): A new function refactored
24766         from num_processors() to support parsing both of the
24767         above environment variables.
24768         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24769         to accurately reflect the current OpenMP nesting level.
24770         Also support the OMP_THREAD_LIMIT environment variable
24771         to limit the max value determined from OMP_NUM_THREADS.
24772         * modules/nproc: Depend on minmax header.
24773         Suggested by Oliver Heimlich.
24775 2017-02-25  Bruno Haible  <bruno@clisp.org>
24777         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24778         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24780 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24782         ftoastr: port to -Wdouble-promotion
24783         Work around -Wdouble-promotion false alarm in recent GCCs.
24784         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24785         (ftoastr_snprintf, FTOASTR): Use it.
24787 2017-02-21  Bruno Haible  <bruno@clisp.org>
24789         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24790         Reported by Rene Saavedra <rennes@openmailbox.org> in
24791         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24792         * lib/glthread/lock.h: On glibc systems without
24793         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24794         implementation of rwlocks.
24795         * lib/glthread/lock.c: Likewise.
24797 2017-02-20  Bruno Haible  <bruno@clisp.org>
24799         lock tests: Fix build failure on z/OS.
24800         Reported by Daniel Richard G. <skunk@iskunk.org>.
24801         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24802         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24803         exist.
24805 2017-02-19  Bruno Haible  <bruno@clisp.org>
24807         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24808         This helps when CC=clang.
24809         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24810         of /usr/bin/gcc.
24812         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24813         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24815 2017-02-19  Bruno Haible  <bruno@clisp.org>
24817         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24818         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24819         --with-tests --single-configure is specified.
24821 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24823         users.txt: Update links, use HTTPS where possible
24824         * users.txt: Updated to HTTPS where possible,
24825         fixed some links to new locations.
24827 2017-02-16  Bruno Haible  <bruno@clisp.org>
24829         xbinary-io: Fix inlining.
24830         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24832 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24834         xbinary-io: rename from xsetmode
24835         This patch is taken from suggestions by Bruno Haible in:
24836         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24837         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24838         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24839         not ENOTTY, when it is an inappropriate device.
24840         * lib/binary-io.h (SET_BINARY): Resurrect.
24841         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24842         (xset_binary_mode_error): Rename from xsetmode_error.
24843         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24844         (xset_binary_mode): Rename from xsetmode.
24845         All uses changed.
24846         * modules/xbinary-io: Rename from modules/xsetmode.
24847         Update file names.
24848         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24849         * NEWS: Update to match revised behavior.
24851 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24853         tests: Adjust to recent SET_BINARY change
24854         * tests/test-binary-io.c (main):
24855         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24856         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24857         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24858         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24860         xsetmode: new module
24861         This is to fix a problem noted by Eric Blake.
24862         Code was using xfreopen to change files to binary mode, but this
24863         fails for stdout when in append mode.  Such code should use
24864         xsetmode instead.
24865         * NEWS: Document incompatible changes to binary-io module.
24866         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24867         New function.
24868         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24869         (set_binary_mode): New function, which also checks for tty.
24870         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24872 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24874         headers: fix begin-end typos
24875         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24876         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24878         selinux-h: port to PGI 16.10
24879         * lib/se-selinux.in.h: Don't assume that include_next skips over
24880         duplicate -I DIR options.
24882         argp: port to PGI 16.10
24883         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24885 2017-02-13  Darshit Shah  <darnir@gnu.org>
24887         unicase: Update function protoype to match definition.
24888         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24889         uses 'size_t' as the datatype for the 'len' parameter in the functions
24890         it generates. Update the prototype specified here to match the newly
24891         generated function.
24893 2017-02-12  Bruno Haible  <bruno@clisp.org>
24895         times test: Avoid gcc warnings on Linux/x32.
24896         * tests/test-times.c (main): Really cast printf arguments from clock_t
24897         to 'long int'.
24899 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24901         glob: port better to emscripten
24902         Problem reported by Bruno Haible in:
24903         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24904         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24906 2017-02-11  Bruno Haible  <bruno@clisp.org>
24908         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24909         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24910         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24911         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24912         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24913         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24914         Distinguish hppa64 from hppa.
24916 2017-02-10  Bruno Haible  <bruno@clisp.org>
24918         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24919         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24920         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24921         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24923 2017-02-09  Bruno Haible  <bruno@clisp.org>
24925         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24926         * doc/gnulib.texi (Libtool and Windows): Recommend
24927         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24928         Reported by Reuben Thomas <rrt@sc3d.org>.
24930 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24932         stddef-tests: port to SIZE_MAX <= INT_MAX
24933         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24934         Do not assume that INT_MAX < SIZE_MAX.
24936 2017-02-01  Bruno Haible  <bruno@clisp.org>
24938         lock tests: Fix link error.
24939         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24942 2017-01-31  Bruno Haible  <bruno@clisp.org>
24944         lock: Fix link error (regression from 2017-01-05).
24945         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24946         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24947         pthread_rwlockattr_destroy weak.
24948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24950 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24952         Port to PGI 16.10 x86-64
24953         This patch fixes one real bug in gl_anylinked_list2.h, along with
24954         some minor glitches that are not bugs.  It does not silence PGI’s
24955         thousands of bogus warnings when compiling test-intprops.c.
24956         Fortunately, the warnings do not cause a failure.
24957         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24958         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24959         My goodness, PGI goes back a long ways - this predates C89!
24960         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24961         For example, ASYNCSAFE (const void *) should expand to
24962         ‘const void *volatile’, not to ‘volatile const void *’.
24963         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24964         * lib/verify.h (verify) [!__GNUC__]:
24965         Use shorter albeit meaningless string to bypass silly compiler limits.
24966         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24967         * tests/nan.h (NaNf, NaNd, NaNl):
24968         Use static functions to avoid misguided compiler diagnostics.
24969         Is there some reason we don’t use static functions on all platforms?
24971 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24973         parse-datetime: handle timezones reentrantly
24974         This API change was prompted by a report by Pádraig Brady in:
24975         https://bug.debian.org/851934#10
24976         To help fix the bug, make parse_datetime2 more reentrant.
24977         * NEWS: Document this incompatible change.
24978         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24979         Add two arguments, the timezone and the timezone name.
24980         All callers changed.  If TZ="..." is specified, use it for
24981         calculating defaults.
24982         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24983         this code should be usable in a library.
24984         (mktime_ok, get_effective_timezone):
24985         Accept timezone arg too.  All callers changed.
24986         (get_tz): Remove.
24987         (get_effective_timezone): Check for failures.
24989 2017-01-20  Eric Blake  <eblake@redhat.com>
24991         localename: port to cygwin 2.6
24992         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24993         Cygwin.
24994         * modules/localename (Depends-on): Add extensions, since
24995         NL_LOCALE_NAME() is not visible without it.
24997 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24999         parse-datetime: fix dependence on AC_PROG_SED
25000         * modules/parse-datetime: Use `sed` directly like all other modules.
25001         Reported by J William Piggott
25003 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25005         intprops: update doc URLs
25006         * doc/intprops.texi (Integer Range Overflow): Update URLs.
25008 2017-01-16  Bruno Haible  <bruno@clisp.org>
25010         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
25011         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
25012         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
25013         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
25014         distinguish s390 and s390x.
25015         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
25016         * NEWS: Mention the change regarding 'armel'.
25018 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25020         localeinfo: case_folded_counterparts and WEOF
25021         * NEWS: Document this.
25022         * lib/localeinfo.c (case_folded_counterparts):
25023         First arg is now wint_t, not wchar_t.  This generalizes the
25024         function to also work on WEOF, where it returns 0.
25026         dfa: port to gcc -fsanitize=undefined
25027         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
25028         as this runs afoul of gcc -fsanitize=undefined.
25030 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
25032         strftime: %z is -00 if unknown
25033         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
25034         the caller's responsibility to set 'negative_number'.  All uses changed.
25035         (__strftime_internal): Put '-' before a zero UTC offset if the time
25036         zone abbreviation starts with "-", which is the recently-introduced
25037         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
25038         * tests/test-strftime.c: Test for this.
25040 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25042         dfa: port to older GCC
25043         Problem reported by Assaf Gordon in:
25044         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
25045         * modules/c99: New module.  This merely attempts to use the latest
25046         C version, which should be enough to solve this particular problem.
25047         The idea is to document which Gnulib modules assume C99 or later.
25048         * modules/dfa (Depends-on): Add it.
25050 2017-01-10  Bruno Haible  <bruno@clisp.org>
25052         Update DEPENDENCIES.
25053         * DEPENDENCIES: List only https URLs. Update recommended version for
25054         autoconf, automake, gperf.
25056 2017-01-10  Jim Meyering  <meyering@fb.com>
25058         maint.mk: enforce spelling of "timestamp" (i.e., no space)
25059         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
25060         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
25062 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25064         dfa: minor simplification with emptyset
25065         * lib/dfa.c (build_state): Simplify by using emptyset.
25067 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25069         dfa: shrink constraints from 4 bits to 3
25070         * lib/dfa.c (newline_constraint, letter_constraint)
25071         (other_constraint, prev_newline_dependent)
25072         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
25073         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
25074         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
25075         Constraints need only 3 bits, not 4.  Using smaller integers
25076         shrinks the code a bit and makes grep a tad faster on x86-64.
25078         dfa: omit unnecessary ptrdiff_t check
25079         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
25080         overflow, since xnmalloc does that now.
25082         dfa: omit unnecessary allocation
25083         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
25084         an all-zero follow set works just fine.
25086         dfa: omit unused local
25087         * lib/dfa.c (build_state): Fix up recent change.
25089         maint: remove stray .texi files
25090         Although these were superseded by other files like
25091         doc/posix-functions/ctime.texi, the old files were not removed.
25092         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
25094 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25096         getprogname: fix port to IRIX
25097         * lib/getprogname.c (getprogname) [__sgi]:
25098         Don't dump core if malloc returns NULL.
25100         dfa: fix reallocation bug when matching newlines
25101         Problem reported for sed by S. Gilles (Bug#25390).
25102         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
25103         (dfastate): Reallocate before moving any newline transition ...
25104         (build_state): ... instead of reallocating here, where it is too late.
25106 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25108         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
25109         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
25111 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25113         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
25114         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
25116 2017-01-07  Bruno Haible  <bruno@clisp.org>
25118         stdioext: Port to Minix 3.2 and newer.
25119         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
25120         * lib/fseeko.c (fseeko): Likewise.
25121         Reported by Nelson Beebe via Paul Eggert.
25123 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25125         getprogname: port to IRIX
25126         * lib/getprogname.c (getprogname): Port to IRIX.
25127         Based on an idea by Bastien Roucariès at:
25128         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
25129         via code from Bruno Haible at:
25130         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25132         localename-tests: port to NetBSD 7
25133         Problem reported by Nelson H. F. Beebe.
25134         * tests/test-localename.c:
25135         Test newlocale and uselocale only if both exist.
25137         glob, intprops, xalloc: work around Clang bug
25138         Work around LLVM bug 16404, which is still not fixed.
25139         https://llvm.org/bugs/show_bug.cgi?id=16404
25140         Problem reported by Nelson H. F. Beebe.
25141         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
25142         Remove.
25143         * lib/glob.c (size_add_wrapv):
25144         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
25145         * lib/xalloc-oversized.h (xalloc_oversized):
25146         Do not use overflow builtins if Clang.
25148         dfa: fix 'return' typo
25149         Problem reported by Nelson H. F. Beebe.
25150         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
25152 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25154         parse-datetime: fix generated paths for coverage files
25155         * modules/parse-datetime: Adjust the paths for parse-datetime.y
25156         within parse-datetime.c, so that gcc generates appropriate .gcno
25157         files, allowing lcov to proceed without error.  Previously it
25158         would error trying to find "lib/lib/parse-datetime.y".
25160 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25162         maint.mk: support parallel execution of coverage
25163         * top/maint.mk (coverage): Run dependencies serially,
25164         thus supporting parallel processing of each one,
25165         particularly build-coverage, which builds and runs tests.
25167 2017-01-05  Bruno Haible  <bruno@clisp.org>
25169         lock tests: Prefer semaphore over mutex.
25170         * tests/test-lock.c (USE_SEMAPHORE): New constant.
25171         (struct atomic_int, init_atomic_int, get_atomic_int_value,
25172         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
25173         Suggested by Torvald Riegel <triegel@redhat.com>.
25175 2017-01-05  Bruno Haible  <bruno@clisp.org>
25177         lock: Provide guarantee to avoid writer starvation for rwlocks.
25178         The rationale is: 1) Read-preferring read-write locks are prone to
25179         writer starvation if the number of reader threads multiplied by the
25180         percentage of time they have the lock held is too high. 2) Write-
25181         preferring read-write locks are the only reliable way to avoid this.
25182         3) There have been reports of 'test-lock' hanging on glibc systems
25183         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
25184         and glibc indeed implements read-preferring rwlocks by default, see
25185         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
25186         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
25187         * m4/pthread_rwlock_rdlock.m4: New file.
25188         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25189         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
25190         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25191         of rwlock initialization on glibc systems without
25192         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25193         of rwlocks altogether on non-glibc systems without
25194         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25195         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25196         * lib/glthread/lock.c [USE_POSIX_THREADS]
25197         (glthread_rwlock_init_for_glibc): New function.
25198         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
25199         comment.
25200         [USE_PTH_THREADS]: New implementation of rwlocks.
25201         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
25202         readers.
25203         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
25204         (Depends-on): Add 'extensions'.
25205         * tests/test-rwlock1.c: New file.
25206         * lock-tests (Files): Add it.
25207         (Depends-on): Add usleep.
25208         (Makefile.am): Add test-rwlock1 to the tests.
25210 2017-01-05  Bruno Haible  <bruno@clisp.org>
25212         thread: Fix pth port.
25213         * lib/glthread/thread.h (pth_init): Declare weak.
25214         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
25215         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
25216         function.
25218 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
25220         parse-datetime: fix debug message on lone year number
25221         Input dates such as
25222           date -d "Apr 11 22:59:00 2011"
25223         are parsed as date (Apr 11, with default year 2016), then time, then a
25224         number (2011). Based on the combination of previously seen tokens,
25225         'digits_to_date_time' determines 2011 to be a year value.
25226         This fixes the debug messages to correctly show the updated year.
25227         Before:
25228             $ date --debug -d 'Apr 11 22:59:00 2011'
25229             date: parsed date part: (Y-M-D) 2016-04-11
25230             date: parsed time part: 22:59:00
25231             date: parsed number part: today/this/now
25232         After:
25233             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
25234             date: parsed date part: (Y-M-D) 2016-04-11
25235             date: parsed time part: 22:59:00
25236             date: parsed number part: year: 2011
25237         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
25238         'debug_year_seen' member fields.
25239         (digits_to_date_time): Update 'year_seen' as needed.
25240         (debug_print_current_time): Inform about year updates.
25241         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
25243         parse-datetime: fix local timezone debug messages
25244         "Local timezones" are strings that affect only DST relative to the
25245         default timezone. The debug messages in parse-datetime.y printed
25246         wrong information when encountering local timezones.
25247         Examples:
25248         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
25249              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
25250              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
25251         When the default timezone relates to the zone strings, EET/EEST are
25252         parsed as local timezones (tLOCAL_ZONE), and only change the DST
25253         value (0/1, respectively):
25254              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
25255              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
25256         * lib/parse-datetime.y (debug_print_current_time): If local timezone
25257         was seen, inform about DST change, don't print actual timezone.
25258         (debug_strfdatetime): If local timezone was seen, use default timezone
25259         (and adjust as needed) instead of using incorrect timezone.
25260         (parse_datetime2): Use correct time-zone source string, and adjust
25261         default timezone as needed.
25263         parse-datetime: add debug warning about DST changes
25264         Incorrect date arithmetic due to daylight saving time (DST) are a
25265         common (false) bug report in coreutils.
25266         Detect two such cases and print a warning:
25267         1. year/month/day adjustments (performed on 'struct tm'),
25268            where 'mktime' returns a different isdst value.
25269         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
25270            where the result of 'localtime(3)' on the value will return a
25271            different isdst value.
25272         Note: DST changes could be harmless or unnoticeable.
25273         Examples (with 'TZ=America/New_York'):
25274         Unnoticeable: result is 2016-Dec-14
25275            $ date -d '2016-06-15 EDT + 6 months' +%b
25276            Dec
25277         Unnoticeable: result is 2016-Dec-15 11:00:00
25278            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
25279            2016-12-15
25280         This is unexpected:
25281            $ date -d '2016-06-01 EDT + 6 months' +%F
25282            2016-11-30
25283         The new debug warnings will show:
25284            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
25285            ...
25286            date: warning: daylight saving time changed after date adjustment
25287            ...
25288         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
25289         print an appropriate warning message.
25291         parse-datetime: add debug warning about date arithmetic
25292         Date arithmetic are done directly on the fields of 'struct tm',
25293         which can result in invalid dates. Normalization with 'mktime(3)'
25294         will then produce a different date - which might cause unexpected
25295         results.
25296         Examples:
25297           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
25298           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
25299         Note that date normalization is not inherently wrong and not rejected,
25300         as it has legitimate uses:
25301           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
25302         If the user asked to adjust months but 'mday' changed,
25303         or user asked to adjust years but 'month' changed - warn about it.
25304             $ ./src/date --debug -d '2016-10-31 - 1 month'
25305             ...
25306             date: warning: when adding relative months/years, \
25307                            it is recommended to specify the 15th of the month
25308             ...
25309             date: warning: month/year adjustment resulted in shifted dates:
25310             date:      adjusted Y M D: 2016 09 31
25311             date:    normalized Y M D: 2010 10 01
25312             ...
25313         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
25314         a warning message. Improve recommendation of when to use 15 of the
25315         month or noon for date arithmetic.
25317         parse-datetime: fix debug message of relative part after timezone
25318         Relative part (e.g '+8 days') after a timezone string was not
25319         reported (was only reported after a timezone number). Due to the
25320         parser's structure, timezone strings with numbers were handled
25321         separately.
25322         before:
25323              # Timezone number + relative part: OK
25324              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
25325              ...
25326              date: parsed relative part: -8 day(s)
25327              # Timezone string + relative part: missing
25328              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
25329              [ missing message ]
25330         After: messages are printed in both cases.
25331         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
25333         parse-datetime: fix incorrect debug message on lone number
25334         A lone number is an absolute value, not a relative time part.
25335         before:
25336            $ date --debug -d '20130101'
25337            date: parsed number part: today/this/now
25338         After:
25339            $ ./src/date --debug -d '20130101'
25340            date: parsed number part: (Y-M-D) 2013-01-01
25341         * lib/parse-datetime.y ('item'/'number' tokens): Call
25342         'debug_print_current_time' instead of 'debug_print_relative_time'.
25344 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25346         doc: modernize for C11 etc.
25347         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
25348         for C11, MinGW, etc.  This responds to Paul Smith's question in:
25349         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
25351         dfa: prefer functions to FETCH_WC macro
25352         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
25353         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
25354         wint_t result into DFA->lex.wctok instead of to a separate arg.
25355         All callers changed.  Move more local decls closer to where
25356         they're used.
25358         dfa: narrow more local var scopes
25359         * lib/dfa.c: Move more local decls to be more local.
25361         dfa: remove duplicate assignment
25362         Problem reported by Bruno Haible in:
25363         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25364         * lib/dfa.c (parse_bracket_exp): Simplify.
25366 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25368         dfa: simplify constraint-dependency checking
25369         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25370         (prev_other_constraint): Remove.
25371         (prev_newline_dependent, prev_letter_dependent):
25372         Simplify, to avoid an unnecessary bitwise AND operation.
25374         dfa: prefer functions and constants to macros
25375         * lib/dfa.c: Prefer constants to macros where either will do.
25376         (streq, isasciidigit, newline_constraint)
25377         (letter_constraint, other_constraint, succeeds_in_context)
25378         (prev_newline_constraint, prev_letter_constraint)
25379         (prev_other_constraint, prev_newline_dependent)
25380         (prev_letter_dependent, accepting, accepts_in_context):
25381         Now static functions instead of function-like macros.
25382         Use lower-case names accordingly.  All uses changed.
25384         dfa: narrow more local var scopes
25385         * lib/dfa.c: Move some more local decls down to nearer where
25386         they're needed.
25388 2016-12-31  Jim Meyering  <meyering@fb.com>
25390         dfa: narrow the scope of many local variables
25391         * lib/dfa.c: Now that we are no longer constrained to c89, move
25392         declarations of many variables (often indices) "down" into the
25393         scope(s) where used or to the point of definition.  This is a
25394         no-semantic-change diff.
25396 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25398         version-etc: new year
25399         * build-aux/gendocs.sh (version):
25400         * doc/gendocs_template:
25401         * doc/gendocs_template_min:
25402         * doc/gnulib.texi:
25403         * lib/version-etc.c (COPYRIGHT_YEAR):
25404         Update copyright dates by hand in templates and the like.
25405         * all files: Run 'make update-copyright'.
25407 2016-12-31  Eric Blake  <eblake@redhat.com>
25409         do-release-commit-and-tag: avoid shell syntax error
25410         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25411         contain spaces when rebasing.
25413         maint.mk: hoist gnulib_dir definition earlier
25414         * top/maint.mk (gnulib_dir): Move near top of file.
25416 2016-12-31  Jim Meyering  <meyering@fb.com>
25418         maint.mk: do not always evaluate intprops-related shell
25419         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25420         using gnulib_dir undefined (gnulib_dir is defined later in the
25421         file, which will be fixed separately), and besides, there is no
25422         need to incur the cost of this shell invocation for every single
25423         use of this .mk file.  Reported by Eric Blake in
25424         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25426 2016-12-30  Jim Meyering  <meyering@fb.com>
25428         maint.mk: improve sc_prohibit_intprops_without_use
25429         * top/maint.mk (_intprops_names): Don't hard-code the list of
25430         symbol names.  Instead, derive it on the fly.
25432 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25434         dfa: shorten sbit, success
25435         * lib/dfa.c (struct regex_syntax.sbit):
25436         (struct dfa.success): Use char, not int, for array elements, since
25437         they are all in the range 0..7.
25439         dfa: simplify multibyte_prop etc.
25440         This follows up on a change made when dfa.c was in grep, namely grep
25441         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25442         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25443         That earlier simplification allows for some more simplification
25444         and trimming down here.
25445         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25446         (struct lexer_state): New mamber brack.
25447         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25448         since they must be in the range 0..3 now.
25449         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25450         the brack member now supersedes them.
25451         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25452         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25453         (dfaparse): Remove unnecessary initializations of already-0 storage.
25454         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25455         (dfassbuild): No need to clear sup->mbcsets.
25457         dfa: minor performance tweak
25458         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25460         dfa: wrap charclass inside a struct
25461         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25462         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25463         about 5% faster, where list.txt is generated by 'aspell dump
25464         master | head -n 100000 >list.txt'.  See Bug#22239.
25465         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25466         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25467         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25468         Adjust to this, e.g., by using charclass * rather than charclass.
25469         All callers changed as needed.
25470         (copyset): Remove.  All uses changed to simple assignment.
25471         (parse_bracket_exp): Use zeroset instead of memset.
25473 2016-12-30  Jim Meyering  <meyering@fb.com>
25475         maint.mk: update list of intprops.h symbol names
25476         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
25477         This avoids a false failure of the sc_prohibit_intprops_without_use
25478         rule in grep.
25480 2016-12-29  Eric Blake  <eblake@redhat.com>
25482         getopt: fix parallel test failure
25483         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
25484         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
25485         * tests/test-getopt-main.h (main): Use different file names
25486         in case test-getopt-gnu and test-getopt-posix run in parallel.
25488 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25490         xalloc: x2nrealloc check for ptrdiff_t overflow
25491         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
25492         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
25494 2016-12-24  Bruno Haible  <bruno@clisp.org>
25496         lock test: Fix performance problem on multi-core machines.
25497         * tests/test-lock.c (USE_VOLATILE): New macro.
25498         (struct atomic_int): New type.
25499         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
25500         functions.
25501         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
25502         as 'struct atomic_int'.
25503         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
25504         reclock_checker_thread, test_recursive_lock): Use the new functions.
25505         Reported by Eric Blake in
25506         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
25507         and by Pádraig Brady in
25508         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
25510 2016-12-19  Bruno Haible  <bruno@clisp.org>
25512         vma-iter: Fix endless loop on 64-bit Windows.
25513         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
25514         'unsigned long'.
25516 2016-12-19  Bruno Haible  <bruno@clisp.org>
25518         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
25519         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
25520         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
25521         Invoke gt_TYPE_WINT_T instead.
25522         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
25523         * modules/stdint (Files): Add m4/wint_t.m4.
25524         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25525         * modules/wctype-h (Makefile.am): Likewise.
25526         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
25527         not only on MSVC.
25528         * lib/wctype.in.h (wint_t): Likewise.
25530 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25532         getopt-posix-tests: fix Makefile typo
25533         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
25534         Fix typo: the last ‘_’ was missing in the name.
25535         I suspect that the typo explains this build failure:
25536         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
25537         although I can’t reproduce the problem on Solaris 10 sparc.
25539 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25541         dfa: improve worst-case 'replace' performance
25542         See my note in Bug#22357#71.
25543         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
25544         (merge_constrained): New function, which is like
25545         the old 'merge' function, except with a new argument C2.
25546         Simplify the body by avoiding the need for different sections
25547         of code depending on whether one input is exhausted.
25548         (merge): Use the new function.
25549         (delete): Return the constraint of the deleted position,
25550         not the entire position.  Caller changed.
25551         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
25553 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25555         dfa: performance improvement for removal of epsilon closure
25556         See Bug#22357#32.
25557         * lib/dfa.c (delete): Use binary search to find deleted index.
25558         (replace): New function.  It replaces a position with the followed set.
25559         (epsclosure): Replace it with a new algorithm.  Update caller.
25561 2016-12-18  Bruno Haible  <bruno@clisp.org>
25563         Split tests for getopt-posix and getopt-gnu.
25564         * tests/test-getopt-posix.c: New file.
25565         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
25566         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
25567         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
25568         GNULIB_TEST_GETOPT_GNU.
25569         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
25570         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
25571         (Makefile.am): Test test-getopt-posix instead of test-getopt.
25572         * modules/getopt-gnu-tests: New file.
25573         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
25575 2016-12-18  Bruno Haible  <bruno@clisp.org>
25577         posix-modules: Add options for specific platforms.
25578         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
25579         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
25580         Invoke func_tmpdir. Filter out the excludes.
25582 2016-12-18  Bruno Haible  <bruno@clisp.org>
25584         getopt: Fix link error for users of getopt() in <unistd.h>.
25585         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
25586         __need_getopt is defined. Undefine all macros before defining them.
25587         * modules/getopt (Include): Clarify that including <unistd.h> is also
25588         OK.
25589         * tests/test-getopt.c: Add comment.
25591 2016-12-17  Bruno Haible  <bruno@clisp.org>
25593         getaddrinfo tests: Avoid compilation error on MSVC.
25594         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
25595         getaddrinfo on native Windows.
25597 2016-12-17  Bruno Haible  <bruno@clisp.org>
25599         getlogin, getlogin_r: Fix link errors on MSVC.
25600         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
25601         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
25602         (Link): New section.
25603         * modules/getlogin_r (Files): Add m4/getlogin.m4.
25604         (configure.ac): Require gl_LIB_GETLOGIN.
25605         (Link): New section.
25606         * NEWS: Mention the new link requirements.
25607         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
25608         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25610 2016-12-17  Bruno Haible  <bruno@clisp.org>
25612         Un-deprecate the 'progname' module.
25613         * NEWS: Describe the appropriate use-cases of 'progname' versus
25614         'getprogname'. Based on discussion summary at
25615         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
25617 2016-12-17  Bruno Haible  <bruno@clisp.org>
25619         Reorganize NEWS a bit.
25620         * NEWS: Move some not so important changes away from section
25621         "Important Notes".
25623 2016-12-17  Bruno Haible  <bruno@clisp.org>
25625         tanhf: Avoid redefinition error on MSVC.
25626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
25627         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
25628         may be defined as an inline function.
25629         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
25630         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
25632 2016-12-17  Bruno Haible  <bruno@clisp.org>
25634         tanf: Avoid redefinition error on MSVC.
25635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
25636         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
25637         may be defined as an inline function.
25638         * modules/math (Makefile.am): Substitute REPLACE_TANF.
25639         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
25641 2016-12-17  Bruno Haible  <bruno@clisp.org>
25643         sqrtf: Avoid redefinition error on MSVC.
25644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
25645         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
25646         may be defined as an inline function.
25647         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
25648         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
25650 2016-12-17  Bruno Haible  <bruno@clisp.org>
25652         sinhf: Avoid redefinition error on MSVC.
25653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
25654         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
25655         may be defined as an inline function.
25656         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
25657         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
25659 2016-12-17  Bruno Haible  <bruno@clisp.org>
25661         sinf: Avoid redefinition error on MSVC.
25662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
25663         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
25664         may be defined as an inline function.
25665         * modules/math (Makefile.am): Substitute REPLACE_SINF.
25666         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
25668 2016-12-17  Bruno Haible  <bruno@clisp.org>
25670         logf: Avoid redefinition error on MSVC.
25671         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
25672         may be defined as an inline function.
25674 2016-12-17  Bruno Haible  <bruno@clisp.org>
25676         log10l: Avoid redefinition error on MSVC.
25677         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
25678         may be defined as an inline function.
25680 2016-12-17  Bruno Haible  <bruno@clisp.org>
25682         log10f: Avoid redefinition error on MSVC.
25683         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25684         may be defined as an inline function.
25686 2016-12-17  Bruno Haible  <bruno@clisp.org>
25688         hypotl: Avoid redefinition error on MSVC.
25689         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25690         may be defined as an inline function.
25692 2016-12-17  Bruno Haible  <bruno@clisp.org>
25694         hypotf: Avoid redefinition error on MSVC.
25695         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25696         may be defined as an inline function.
25698 2016-12-17  Bruno Haible  <bruno@clisp.org>
25700         fmodl: Avoid redefinition error on MSVC.
25701         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25702         may be defined as an inline function.
25704 2016-12-17  Bruno Haible  <bruno@clisp.org>
25706         fmodf: Avoid redefinition error on MSVC.
25707         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25708         may be defined as an inline function.
25710 2016-12-17  Bruno Haible  <bruno@clisp.org>
25712         expf: Avoid redefinition error on MSVC.
25713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25714         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25715         may be defined as an inline function.
25716         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25717         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25719 2016-12-17  Bruno Haible  <bruno@clisp.org>
25721         coshf: Avoid redefinition error on MSVC.
25722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25723         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25724         may be defined as an inline function.
25725         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25726         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25728 2016-12-17  Bruno Haible  <bruno@clisp.org>
25730         cosf: Avoid redefinition error on MSVC.
25731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25732         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25733         may be defined as an inline function.
25734         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25735         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25737 2016-12-17  Bruno Haible  <bruno@clisp.org>
25739         atan2f: Avoid redefinition error on MSVC.
25740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25741         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25742         may be defined as an inline function.
25743         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25744         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25746 2016-12-17  Bruno Haible  <bruno@clisp.org>
25748         atanf: Avoid redefinition error on MSVC.
25749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25750         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25751         may be defined as an inline function.
25752         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25753         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25755 2016-12-17  Bruno Haible  <bruno@clisp.org>
25757         asinf: Avoid redefinition error on MSVC.
25758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25759         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25760         may be defined as an inline function.
25761         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25762         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25764 2016-12-17  Bruno Haible  <bruno@clisp.org>
25766         acosf: Avoid redefinition error on MSVC.
25767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25768         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25769         may be defined as an inline function.
25770         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25771         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25773 2016-12-17  Bruno Haible  <bruno@clisp.org>
25775         Avoid redefinition errors on MSVC.
25776         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25777         the function may be defined as an inline function.
25778         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25779         the function may be defined as an inline function.
25781 2016-12-17  Bruno Haible  <bruno@clisp.org>
25783         Avoid redefinition errors on MSVC.
25784         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25785         * lib/unistd.in.h: Include <stdio.h> when necessary.
25787 2016-12-17  Bruno Haible  <bruno@clisp.org>
25789         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25790         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25791         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25792         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25793         WINT_MAX.
25795 2016-12-17  Bruno Haible  <bruno@clisp.org>
25797         Avoid autoconf warning.
25798         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25799         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25801 2016-12-17  Bruno Haible  <bruno@clisp.org>
25803         fpending: Revert workaround against Emacs bug.
25804         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25805         The Emacs bug is fixed by Eli Zaretskii in
25806         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25808 2016-12-17  Bruno Haible  <bruno@clisp.org>
25810         getlogin_r tests: Port to mingw.
25811         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25812         regression introduced on 2014-05-19.
25814 2016-12-17  Bruno Haible  <bruno@clisp.org>
25816         getlogin: Port to newer mingw.
25817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25818         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25820         HAVE_GETLOGIN.
25821         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25822         HAVE_GETLOGIN.
25823         * doc/posix-functions/getlogin.texi: Mention the issue.
25824         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25825         regression introduced on 2014-05-14.
25827 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25829         builtin-expect: improve port to IBM XL C
25830         Problem reported for z/OS by Daniel Richard G. in:
25831         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25832         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25833         Test for <builtins.h> directly.
25835         builtin-expect: port to IBM XL C
25836         Problem reported for z/OS by Daniel Richard G. in:
25837         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25838         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25839         Also allow __builtin_expect defined via a standard include file.
25841         regex: fix dependency
25842         Problem reported by Bruno Haible in:
25843         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25844         * modules/regex: Depend on builtin-expect.
25846         builtin-expect: new module
25847         Fix fnmatch to use it.
25848         Problem reported for z/OS by Daniel Richard G.
25849         * lib/fnmatch.c (__builtin_expect):
25850         * lib/glob.c (__builtin_expect):
25851         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25852         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25853         * lib/scandir.c (__builtin_expect):
25854         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25855         Remove macro; config.h now does this.
25856         * lib/gl_anytreehash_list1.h (add_to_bucket):
25857         * lib/regex_internal.h (BE):
25858         Assume __builtin_expect.
25859         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25860         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25861         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25862         * modules/scandir, modules/strstr-simple:
25863         Depend on builtin-expect.
25865 2016-12-15  Bruno Haible  <bruno@clisp.org>
25867         init.sh: Add possibility to not delete temporary files.
25868         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25869         to yes, don't erase the temporary directory.
25871 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25873         regex: fix integer-overflow bug in never-used code
25874         Problem reported by Clément Pit–Claudel in:
25875         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25876         * lib/regex_internal.h: Include intprops.h.
25877         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25878         behavior on integer overflow.
25879         * modules/regex (Depends-on): Add intprops.
25881         fpending: fix port to MinGW on Emacs
25882         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25883         Problem reported by Eli Zaretskii in:
25884         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25885         Is Plan 9 still a valid porting target, anyway?
25887 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25889         safe-alloc: use xalloc-oversized
25890         * lib/safe-alloc.c: Include xalloc-oversized.h.
25891         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25892         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25894         xalloc: do not exceed PTRDIFF_MAX
25895         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25896         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25897         bytes have pointer-subtraction problems.
25899         malloca: do not exceed PTRDIFF_MAX
25900         * lib/malloca.h: Include xalloc-oversized.
25901         (nmalloca): Use xalloc_oversized instead of rolling our own.
25902         * modules/malloca (Depends-on):
25903         * modules/relocatable-prog-wrapper (Depends-on):
25904         Add xalloc-oversized.
25906         quotearg: pacify GCC better
25907         * modules/quotearg (Depends-on): Add minmax, stdint.
25908         * lib/quotearg.c: Include minmax.h, stdint.h.
25909         (nslots): Now int, as there seems little point to going to extra
25910         work merely to support the INT_MAX slot, which nobody ever uses.
25911         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25912         and to catch (mostly-theoretical) ptrdiff_t problems too.
25913         This can be done via one comparison.
25915 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25917         xalloc-oversized: check for PTRDIFF_MAX too
25918         This avoids undefined behavior when subtracting pointers to
25919         objects containing more than PTRDIFF_MAX bytes.
25920         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25921         Also return 1 if the result would exceed PTRDIFF_MAX>
25922         * modules/xalloc-oversized (Depends-on):
25923         Add stdint.
25925         dfa: fix glitches in previous commit
25926         Sorry, I don't know how I managed to commit the wrong version.
25927         * lib/dfa.c (MIN): Move up.
25928         (xpalloc): Now static.
25930         dfa: fix some unlikely integer overflows
25931         I found these while reviewing the recent Coverity-related fix.
25932         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25933         size_t for object counts.  Using ptrdiff_t is the style typically
25934         used in Emacs; although it wastes a sign bit as sizes can never be
25935         negative, it makes -fsanitize=undefined more likely to catch
25936         integer overflows in index calculation, and nowadays the upside is
25937         typically more important than the downside.  Although perhaps the
25938         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25939         of dfa.c already does, since it uses state_num which is signed),
25940         that is a bigger change and is not needed to fix the bugs I found.
25941         * lib/dfa.c: Include stdint.h and intprops.h.
25942         (TOKEN_MAX): New macro.
25943         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25944         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25945         (realloc_trans_if_necessary, free_mbdata):
25946         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25947         This is safe because xpalloc checks that the sizes do not exceed
25948         either SIZE_MAX or PTRDIFF_MAX.
25949         (xpalloc): New function, mostly taken from Emacs.
25950         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25951         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25952         (charclass_index): Check for integer overflow in computing
25953         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25954         added to it later.
25955         (alloc_position_set): Check for integer overflow.  On typical
25956         platforms this check has zero overhead, since the constant
25957         expression is false.
25958         (realloc_trans_if_necessary):
25959         Remove assertion, which I hope Coverity no longer needs.
25961         * modules/dfa (Depends-on): Add intprops, stdint.
25963 2016-12-12  Jim Meyering  <meyering@fb.com>
25965         dfa: add an assertion to avoid coverity false positive
25966         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25967         warned that "newalloc1 - 2" could overflow.
25969 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25971         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25972         * dfa.h (DFA_CASE_FOLD): Remove.
25973         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25975 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25977         link: fix test to declare use of rename()
25978         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25979         -Werror=implicit-function-declaration
25981 2016-12-12  Bruno Haible  <bruno@clisp.org>
25983         fpending: Port to native Windows with MSVC.
25984         * lib/fpending.c: Include stdio-impl.h.
25985         (__fpending): Include all known implementations. Err out if it's not
25986         ported.
25987         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25988         * modules/fpending (Files): Add lib/stdio-impl.h.
25989         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25991 2016-12-12  Bruno Haible  <bruno@clisp.org>
25993         stdioext: Port to native Windows with MSVC.
25994         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25995         (struct _gl_real_FILE): New type.
25996         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25997         Windows.
25998         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25999         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
26000         other SystemV derived implementations.
26001         * lib/fpurge.c (fpurge): Likewise.
26002         * lib/freadable.c (freadable): Likewise.
26003         * lib/freadahead.c (freadahead): Likewise.
26004         * lib/freading.c (freading): Likewise.
26005         * lib/freadptr.c (freadptr): Likewise.
26006         * lib/freadseek.c (freadptrinc): Likewise.
26007         * lib/fseeko.c (fseeko): Likewise.
26008         * lib/fseterr.c (fseterr): Likewise.
26009         * lib/fwritable.c (fwritable): Likewise.
26010         * lib/fwriting.c (fwriting): Likewise.
26011         Reported by Gisle Vanem <gvanem@yahoo.no>.
26013 2016-12-11  Jim Meyering  <meyering@fb.com>
26015         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
26016         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
26017         to work with most shells, but not with the one provided by many
26018         Solaris 10 systems, so running configure with such a /bin/sh evokes
26019         e.g., "./configure: syntax error at line 33602: `(' unexpected".
26020         Reported by Assaf Gordon in
26021         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
26023 2016-12-10  Bruno Haible  <bruno@clisp.org>
26025         threadlib: Optimize out runtime test on Solaris >= 10.
26026         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
26027         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
26028         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
26030 2016-12-10  Bruno Haible  <bruno@clisp.org>
26032         stdint: Update doc about Solaris 9.
26033         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
26035 2016-12-09  Bruno Haible  <bruno@clisp.org>
26037         c-ctype tests: Fix link error on Solaris 9.
26038         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
26039         Reported at <https://savannah.gnu.org/bugs/?46827>.
26041 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
26043         dfa: fix performance bug that recomputes trans
26044         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
26045         25 on-demand changes.  The bug caused build_state to reset all
26046         d->trans elements to -2 even when d->trans was already non-null.
26047         Use C99 style decls after statements in this function.
26049         same-inode: port to MinGW
26050         Here st_ino is always 0, so change the definition of SAME_INODE so
26051         that 1 means the two files are the same, 0 with st_ino != 0 means
26052         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
26053         reported by Bruno Haible (Bug#25146).
26054         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
26055         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
26057 2016-12-04  Bruno Haible  <bruno@clisp.org>
26059         javacomp-script: Support Java 7 and 8.
26060         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
26061         target-version 1.7, 1.8.
26063 2016-12-02  Daiki Ueno  <ueno@gnu.org>
26065         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
26066         GPLv2" rewriting.
26068 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
26070         * gnulib-tool (func_import): Adhere to the license guideline when
26071         rewriting the license text to "LGPLv3+ or GPLv2":
26072         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
26074 2016-12-02  Bruno Haible  <bruno@clisp.org>
26076         localcharset: Avoid theoretical buffer overrun.
26077         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
26078         return value from setlocale if it would lead to a buffer overrun.
26080 2016-12-01  Bruno Haible  <bruno@clisp.org>
26082         Relicense some modules under LGPLv2+.
26083         Kevin Cernekee's approval is in
26084         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
26085         * modules/fseterr (License): Change to LGPLv2+.
26086         * modules/mbchar (License): Likewise.
26087         * modules/mbiter (License): Likewise.
26088         * modules/mbsnlen (License): Likewise.
26089         * modules/wcwidth (License): Likewise.
26091 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26093         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
26094         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
26095         OS/2 kLIBC.
26097 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26099         alphasort, scandir: Port to OS/2 kLIBC
26100         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
26101         declaration.
26102         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
26104 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26106         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
26107         * lib/relocatable.c (relocate): Do not touch pathname if it is started
26108         with '/@unixroot'.
26110 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26112         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
26113         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
26114         OS/2 kLIBC unless TCPV40HDRS is defined.
26116 2016-11-29  Jim Meyering  <meyering@fb.com>
26118         dfa: avoid new infinite loop
26119         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
26120         * lib/dfa.c (dfastate): When constructing a new state table, we could
26121         initially declare that we had found a match, and later find that
26122         constraints eliminate that possibility, yet continue to use the
26123         now stale "matched" indicator.  That would lead to an infinite loop.
26124         The solution is to update "matched" when necessary.
26125         Introduced by commit v0.1-983-g403adf1.
26127 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26129         dfa: avoid match middle in multibyte character
26130         * lib/dfa.c (transit_state): If fails in matching single byte characters
26131         on a state including period expression in non-UTF8 multibyte locales,
26132         skip trailing bytes.
26133         (dfa_supported): Revert previous change.
26135 2016-11-27  Jim Meyering  <meyering@fb.com>
26137         dfa: avoid false match in non-UTF8 multibyte locales
26138         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
26139         as "not supported" so that callers will resort to using regex-based
26140         matcher.  This will surely hurt performance, but correctness trumps
26141         performance here, and the affected locales are less and less relevant,
26142         these days.  See grep's bug report https://bugs.gnu.org/24975.
26144 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
26146         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
26147         * lib/ptsname_r.c: Include the appropriate headers.
26148         [__sun]: Delete sys/sysmacros.h include.
26149         [_AIX || __osf__]: Likewise.
26150         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
26152 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26154         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
26155         * lib/md4.c (md4_process_bytes): The existing define is made internal
26156         in recent versions of glibc, so also use this new public define.
26157         * lib/md5.c (md5_process_bytes): Likewise.
26158         * lib/sha1.c (sha1_process_bytes): Likewise.
26159         * lib/sha256.c (sha256_process_bytes): Likewise.
26160         * lib/sha512.c (sha512_process_bytes): Likewise.
26162 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26164         maint: use a more standard return from mbrtowc test
26165         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
26166         from the test program as this often indicates an
26167         unhandled case in the test program.
26168         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
26169         (gl_MBRTOWC_SANITYCHECK): Likewise.
26170         (gl_MBRTOWC_NULL_ARG2): Likewise.
26171         (gl_MBRTOWC_NUL_RETVAL): Likewise.
26173 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26175         freopen: work around glibc bug with closed fd
26176         Work around glibc bug#15589, where freopen mishandles the case
26177         where stdin etc. are already closed.
26178         * doc/posix-functions/freopen.texi (freopen): Document the bug.
26179         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
26180         instead of __need_FILE, as the latter does not work with glibc.
26181         Include <fcntl.h>, for open flags.
26182         (rpl_freopen): Work around glibc bug.
26183         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
26184         * modules/freopen (Depends-on): Add fcntl-h.
26185         * tests/test-freopen.c (main): Test for bug.
26187 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26189         fnmatch: fix typo introduced on 2016-08-17
26190         This fixes the port to non-GCC compilers that lack __builtin_expect.
26191         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26193         dfa: simplify with new function fillset
26194         * lib/dfa.c (fillset): New function.
26195         Use it for clarity when applicable.
26197         dfa: fix glitches with on-demand states
26198         Also, adjust commentary to better match new code.
26199         Some of these glitches predate the recent change.
26200         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
26201         only non-initial states.
26202         (dfastate): Rename locals to better match new roles.
26203         Move them into nested scopes if this is easy.
26204         Omit unnecessary calls to zeroset.
26205         Simplify test for whether to throw in the positions of state 0.
26206         Omit C99-ism (decl after statement) since Gawk still wants C89.
26207         (build_state): Omit unnecessary test and assignment.
26208         Fix some confusion that counted transition tables inaccurately
26209         and could cause a memory leak.
26210         (dfaexec_main): Redo to make it clearer to the compiler that
26211         -1 and -2 are the only negative state numbers here.
26213 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26215         dfa: addition of new state on demand
26216         * src/dfa.c (dfastate): Add argument UC, the current input character.
26217         Fill only a group including the character in transition table.
26218         (realloc_trans_if_necessary): Add the dummy state which means that a
26219         transition table is assigned but the next state is not assigned.
26220         (build_state): Return the next state.  All callers updated.
26221         (transit_state_singlebyte): If we get the dummy state,
26222         fill the transition table.
26223         (dfaexec_main): Handle the dummy state.
26224         (free_mbdata, dfafree): Consider the dummy state.
26226 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26228         srclist: sync with released gettext
26229         * config/srclist.txt: Set "release" option to the files under
26230         $GETTEXT.
26232 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26234         srclist: add "release" option
26235         * config/srclist.txt: Change the format so that the first column
26236         of each line points to the top-level directory of the source
26237         archive.
26238         * config/srclist-update: Accept "release" option that checks files
26239         from the most recently tagged revision in the source archive.
26241 2016-11-21  Bruno Haible  <bruno@clisp.org>
26243         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
26244         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26245         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
26246         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
26247         Inline and remove member function 'rpl ()' of the wrapper struct.
26249 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26251         dfa: fix logic typo
26252         Problem reported by Stephane Chazelas (Bug#24973).
26253         * lib/dfa.c (using_simple_locale): Fix typo that caused some
26254         non-simple locales like fr_FR to be treated as simple.
26256 2016-11-20  Jim Meyering  <meyering@fb.com>
26258         fix test driver leaks: exclude, malloc, realloc
26259         * tests/test-exclude.c (main): Fix trivial leak.
26260         * tests/test-malloc-gnu.c (main): Likewise.
26261         * tests/test-realloc-gnu.c (main): Likewise.
26262         With these changes, grep's tests are now leak free.
26263         I.e., running them with ASAN elicits no failure:
26264           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
26265             AM_LDFLAGS='-fsanitize=address -static-libasan' check
26267 2016-11-11  Bruno Haible  <bruno@clisp.org>
26269         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
26270         * modules/libunistring: (License): Change from LGPL to
26271         "LGPLv3+ or GPLv2".
26272         * modules/libunistring-optional: Likewise.
26273         * modules/unicase/*: Likewise.
26274         * modules/uniconv/*: Likewise.
26275         * modules/unictype/*: Likewise.
26276         * modules/unigbrk/*: Likewise.
26277         * modules/unilbrk/*: Likewise.
26278         * modules/uniname/*: Likewise.
26279         * modules/uninorm/*: Likewise.
26280         * modules/unistdio/*: Likewise.
26281         * modules/unistr/*: Likewise.
26282         * modules/uniwbrk/*: Likewise.
26283         * modules/uniwidth/*: Likewise.
26285 2016-11-12  Bruno Haible  <bruno@clisp.org>
26287         Relicense some modules under LGPLv2+.
26288         Paul Eggert's approval is in
26289         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
26290         Eric Blake's approval is in
26291         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
26292         Ludovic Courtès's approval is in
26293         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
26294         * modules/isnand-nolibm (License): Change to LGPLv2+.
26295         * modules/isnanf-nolibm (License): Likewise.
26296         * modules/isnanl-nolibm (License): Likewise.
26298 2016-11-19  Bruno Haible  <bruno@clisp.org>
26300         Relicense some modules under LGPLv2+.
26301         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
26302         modules/vasnprintf.
26303         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
26304         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
26305         All other significant changes to the files in lib/ of these modules
26306         are from me.
26307         * modules/memcmp2 (License): Change to LGPLv2+.
26308         * modules/amemxfrm (License): Likewise.
26309         * modules/fpieee (License): Likewise.
26310         * modules/fpucw (License): Likewise.
26311         * modules/frexp-nolibm (License): Likewise.
26312         * modules/frexpl-nolibm (License): Likewise.
26313         * modules/printf-frexp (License): Likewise.
26314         * modules/printf-frexpl (License): Likewise.
26315         * modules/printf-safe (License): Likewise.
26316         * modules/signbit (License): Likewise.
26318 2016-11-17  Bruno Haible  <bruno@clisp.org>
26320         Enable Unicode decoder safety unconditionally.
26321         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
26322         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
26323         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26324         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26325         * lib/unistr/u8-prev.c (u8_prev): Likewise.
26326         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
26327         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
26328         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
26329         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
26330         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
26331         * lib/unistr/u16-prev.c (u16_prev): Likewise.
26332         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
26333         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
26334         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
26335         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
26336         * lib/unistr/u32-prev.c (u32_prev): Likewise.
26337         * lib/unistr/u32-next.c (u32_next): Likewise.
26338         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
26339         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
26340         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26341         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26342         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
26343         CONFIG_UNICODE_SAFETY tests unconditionally.
26344         * tests/unistr/test-u32-mblen.c (main): Likewise.
26345         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
26346         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
26347         * tests/unistr/test-u32-next.c (main): Likewise.
26348         * tests/unistr/test-u32-strmblen.c (main): Likewise.
26349         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
26350         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
26351         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
26352         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
26353         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26354         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
26355         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
26356         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
26357         * lib/unistr/u16-check.c (u16_check): Update comment.
26358         * NEWS: Mention the changes that callers should be aware of.
26360 2016-11-19  Bruno Haible  <bruno@clisp.org>
26362         relocatable-prog-wrapper: Fix breakage on Cygwin.
26363         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26364         (Depends-on): Remove intprops.
26365         * lib/relocwrapper.c: Update dependency tree.
26366         (strerror): Undefine.
26367         * build-aux/install-reloc (func_create_wrapper): Do not compile
26368         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26370 2016-11-19  Bruno Haible  <bruno@clisp.org>
26372         strerror: Make it compile in C++ mode.
26373         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26375 2016-11-15  Pedro Alves  <palves@redhat.com>
26377         sys_time: add gnulib::timeval for C++
26378         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26379         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26380         timeval macro.
26382 2016-11-14  Pedro Alves  <palves@redhat.com>
26384         snippet/c++defs: fix real-floating arg functions in C++ mode
26385         Also, define isfinite, isinf, isnan, signbit in the gnulib
26386         namespace instead of in the global namespace.
26387         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26388         (_GL_END_NAMESPACE): New.
26389         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26390         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26391         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26392         instead of in the global namespace.
26393         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26394         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26395         of in the global namespace.
26397 2016-11-13  Jim Meyering  <meyering@fb.com>
26399         strftime: don't use __THROW
26400         Each use of __THROW would provoke this from gcc-7-to-be:
26402           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26403             on unit local functions [-Wattributes]
26404           static int iso_week_days (int, int) __THROW;
26405           ^~~~~~
26406         * lib/strftime.c (__THROW): Don't define.
26407         Remove each use of __THROW.
26408         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26409         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26411 2016-11-14  Paul Eggert  <eggert@union>
26413         obstack: port to gcc -fcheck-pointer-bounds
26414         Problem found by 'make check' failure on bleeding-edge coreutils
26415         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26416         6.2.0-5ubuntu12), configured via "./configure
26417         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26418         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26419         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26420         New macro, copied from fts_.h.
26421         (struct _obstack_chunk.contents): Use it.
26423 2016-11-14  Eric Blake  <eblake@redhat.com>
26425         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26426         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26427         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26429 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26431         strptime: fix compile error in recent change
26432         * lib/strptime.c (__strptime_internal): Fix ported code.
26434 2016-11-11  Bruno Haible  <bruno@clisp.org>
26436         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26437         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26438         (func_import): Extend determination of license_incompatibilities.
26439         (func_create_testdir): Extend table of license compatibility. Handle
26440         also the licenses GPLv3+, GPL, LGPLv3+.
26442 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26444         strftime: tune %q
26445         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26447         Merge strftime.c changes from glibc
26448         This incorporates:
26449         2007-10-16 [BZ #5184] Add tzset_called argument
26450         2008-06-13 [BZ #6612] pass reference to tzset_called around
26451         2009-10-30 Implement Burmese language locale for Myanmar
26452         2010-01-09 Add support for XPG7 testing
26453         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26454         2015-10-20 Convert miscellaneous function definitions to prototype style
26455         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26456         it anyway and this lessens the difference between gnulib and glibc.
26457         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26458         (__THROW): Define if standard headers do not.
26459         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26460         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26461         Declare with __THROW.
26462         (__strftime_internal): Rename from strftime_case_. Add arg for
26463         whether tzset is called.  All uses changed.  Call tzset at most
26464         once.  Allow %OC, for Burmese.
26465         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26466         Don't assume values are in range.
26468 2016-11-12  Eric Blake  <eblake@redhat.com>
26470         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26471         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26472         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
26473         different value.
26475 2006-11-12  Pedro Alves  <palves@redhat.com>
26477         Fix gnulib C++ namespace support and std::frexp
26478         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
26479         _GL_CXXALIASWARN.
26481 2006-11-12  Pedro Alves  <palves@redhat.com>
26483         GNULIB_NAMESPACE::func need not pull in rpl_func
26484         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26485         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
26486         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
26487         struct instead of a function pointer.
26489 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
26491         manywarnings: fix -Wno-missing-field-initializers detection
26492         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
26493         to be independent of -Wunused-variable.  I.E. ensure the latter
26494         warning doesn't occur so that detection of the former is accurate.
26496 2016-11-05  Pádraig Brady  <pbrady@fb.com>
26498         strftime,strptime: support %q to represent the quarter
26499         * lib/strftime.c (strftime_case_): Add %q case.
26500         * lib/strptime.c (__strptime_internal): Likewise.
26501         * tests/test-strftime.c (quarter_test): A new test case.
26503 2016-11-03  Eric Blake  <eblake@redhat.com>
26505         bootstrap: Fix get_version() for AIX 5.3
26506         * build-aux/bootstrap (get_version): Factor out sed script, since
26507         indented comments choke AIX 5.3 sed.
26508         Reported-by: Michael Felt <aixtools@gmail.com>
26510 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26512         intprops: port to older XL C
26513         Problem reported by Alexander Samoilov in:
26514         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
26515         http://savannah.nongnu.org/bugs/?49448
26516         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
26517         Define to 1 only for XL C 12.1 or later, since this bug
26518         occurs in XL C for AIX 6.0 but not in 12.1.
26520 2016-11-02  Pádraig Brady  <P@draigBrady.com>
26522         backupfile: initialize default suffix within the implementation
26523         * lib/backupfile.c (find_backup_file_name): Initialize the
26524         global variable here, to simplify usage, and to only call
26525         getenv() when needed.
26527 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26529         futimens: remove FIXME for old Linux kernels
26530         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
26531         this in 2012" FIXME, like that for utimensat.
26533         utimensat: remove FIXME for old Linux kernels
26534         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
26535         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
26536         this in 2012" FIXME, by assuming the file system bug is absent
26537         unless demonstrated to be present.  We no longer need to worry
26538         about Linux kernel 2.6.32 when building with newer kernels.
26540 2016-10-16  Bruno Haible  <bruno@clisp.org>
26542         qsort_r: Fix macrology for platforms that lack the function.
26543         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
26544         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
26545         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
26546         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
26547         not exist.
26548         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
26549         the function exists.
26550         * modules/qsort_r: Add comments.
26552 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26554         sys_types: fix Texinfo typos
26555         * doc/glibc-functions/gnu_dev_major.texi:
26556         * doc/glibc-functions/gnu_dev_makedev.texi:
26557         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
26559 2016-10-26  John David Anglin  <dave.anglin@bell.net>
26561         getprogname: port to HP-UX
26562         See Bug#24805.
26563         * lib/getprogname.c (getprogname) [__hpux]: Port.
26564         * tests/test-getprogname.c (STREQ) [__hpux]:
26565         Special-case for HP-UX limitations on program name length.
26567 2016-10-20  Bruno Haible  <bruno@clisp.org>
26569         Update doc about target platforms.
26570         * doc/gnulib-intro.texi (Target Platforms): Update list.
26572 2016-10-15  Bruno Haible  <bruno@clisp.org>
26574         opendir, readdir, closedir: Relicense under LGPLv2+.
26575         * modules/opendir (License): Change to LGPLv2+.
26576         * modules/readdir (License): Likewise.
26577         * modules/closedir (License): Likewise.
26579 2016-10-16  Bruno Haible  <bruno@clisp.org>
26581         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
26582         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
26583         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
26584         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
26585         HAVE_DECL_STRERROR_R.
26587 2016-10-16  Bruno Haible  <bruno@clisp.org>
26589         Make the 'argp' module work without the 'error' module.
26590         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
26592 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26594         diffseq: restore TOO_EXPENSIVE heuristic
26595         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
26596         (Bug#24715).  The simplest solution is to restore the
26597         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
26598         using a higher threshold to avoid Bug#16848 on smaller files.
26599         * lib/diffseq.h (struct context): Restore member too_expensive.
26600         (struct partition): Restore members lo_minimal, hi_minimal.
26601         (diag, compareseq): Restore arg find_minimal.  All uses changed.
26602         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
26603         1993 to make 'diff' run faster (but not as well) on large inputs,
26604         but use a threshold of 4096 instead of the old 256.
26605         * lib/fstrcmp.c (strcmp_bounded):
26606         * lib/git-merge-changelog.c (compute_differences):
26607         Adjust to diffseq.h changes.
26609 2016-10-22  Bruno Haible  <bruno@clisp.org>
26611         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26612         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26613         declaration yet, define ICONV_CONST to empty.
26615 2016-10-15  Bruno Haible  <bruno@clisp.org>
26617         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
26618         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
26619         module.
26621 2016-10-16  Bruno Haible  <bruno@clisp.org>
26623         system-quote tests: Avoid compiler warning on AIX.
26624         * tests/test-system-quote-child.c (fopen): Redefine like the system's
26625         <stdio.h> does.
26627 2016-10-16  Bruno Haible  <bruno@clisp.org>
26629         Fix some "gcc -Wall" warnings.
26630         * tests/test-ffsl.c (main): Use variable x, not i.
26631         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
26632         freopen.
26633         * tests/test-sethostname1.c (main): Explicitly ignore the return value
26634         of sethostname.
26636 2016-10-16  Bruno Haible  <bruno@clisp.org>
26638         gnulib-tool: Make --create-testdir on all modules work again.
26639         * gnulib-tool (func_create_testdir): Don't include the
26640         non-recursive-gnulib-prefix-hack module.
26642 2016-10-21  Daiki Ueno  <ueno@gnu.org>
26644         libunistring: change the maintainer to 'all'
26645         * modules/gen-uni-tables, modules/libunistring:
26646         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
26647         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
26648         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
26649         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
26650         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
26651         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
26652         * modules/uniwidth/*: Change the maintainer to 'all'.
26654 2016-10-16  Bruno Haible  <bruno@clisp.org>
26656         Simplify "configure: checking ..." messages.
26657         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
26658         AC_MSG_NOTICE.
26659         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26661 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26663         quotearg-tests: pacify gcc -Wall
26664         Problem reported by Bruno Haible in:
26665         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
26666         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
26667         * tests/test-quotearg.h: ... from here.
26669 2016-10-20  Pádraig Brady  <P@draigBrady.com>
26671         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
26672         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
26673         Needed on Centos <= 4.
26675 2016-10-20  Jim Meyering  <meyering@fb.com>
26677         printf.m4: fix a bug in detecting printf %j support
26678         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
26679         uintmax_t is defined in neither stdint.h nor inttypes.h.
26680         Before, this macro might have mistakenly set
26681         gl_cv_func_printf_sizes_c99=yes on such a system.
26682         Spotted by Zev Weiss.
26684 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26686         sched: substitute HAVE_SYS_CDEFS_H too
26687         Problem reported by Tom G. Christensen in:
26688         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26689         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26690         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26692 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26694         quotearg: never write beyond the returned length
26695         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26696         scan of the string when we initially encounter a single quote when
26697         shell quoting, so that if we then switch to a more concise quoting method
26698         we will not have written beyond that returned length.
26699         This is significant for sh-quote, which has separate routines
26700         to determine the length and do the actual quoting.
26701         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26702         now that we never write more than the returned length.
26704 2016-10-18  Bruno Haible  <bruno@clisp.org>
26706         getprogname tests: Avoid failure in packages that use libtool.
26707         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26708         Based on a patch by Jim Meyering.
26710 2016-10-16  Bruno Haible  <bruno@clisp.org>
26712         getprogname: Fix test failure on Cygwin. Comments.
26713         * lib/getprogname.h: Add comments.
26714         * lib/getprogname.c: Add comments. Fix #elif indentation.
26715         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26716         ".exe" suffix.
26718 2016-10-16  Bruno Haible  <bruno@clisp.org>
26720         Make sure the libunistring detection rejects older versions with a
26721         known bug.
26722         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26723         * modules/unistr/u16-strtok (configure.ac): Likewise.
26724         * modules/unistr/u32-strtok (configure.ac): Likewise.
26726 2016-10-18  Bruno Haible  <bruno@clisp.org>
26728         sh-quote, system-quote: revert regression of unit test.
26729         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26730         * tests/test-system-quote-main.c (check_one): Likewise.
26732 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26734         quotearg: fix stale tests
26735         * tests/test-quotearg.c [locale_results]: Add the missing str7
26736         entries to the expected results.
26737         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26738         don't write beyond the returned length, since that's no longer the
26739         case if we switch to a more concise quoting style.
26740         * tests/test-sh-quote.c (check_one): Likewise.
26741         (main): Adjust for the new more concise quoting style.
26742         Reported by Bruno Haible.
26744 2016-10-16  Jim Meyering  <meyering@fb.com>
26746         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26747         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26748         to "$1".  This macro is always invoked with $1 == lib.
26749         Spotted by Bruno Haible
26751 2016-10-16  Bruno Haible  <bruno@clisp.org>
26753         Fix a test crash.
26754         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26755         fails.
26757 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26759         test-limits-h: suppress -Woverlength-strings
26760         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26762 2016-10-15  Bruno Haible  <bruno@clisp.org>
26764         gettime, timespec, utimens: Relicense under LGPL.
26765         * modules/gettime (License): Change to LGPL.
26766         * modules/timespec (License): Likewise.
26767         * modules/utimens (License): Likewise.
26769 2016-10-14  Bruno Haible  <bruno@clisp.org>
26770             Pádraig Brady  <P@draigBrady.com>
26772         canonicalize-lgpl: Support the case path_max > INT_MAX.
26773         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26774         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26776 2016-10-13  Jim Meyering  <meyering@fb.com>
26778         getprogname: IBM z/OS: avoid NULL-dereference
26779         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26780         upon strdup failure.
26782 2016-10-12  Jim Meyering  <meyering@fb.com>
26784         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26785         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26786         and an abbreviated diagnostic rather than verify with the full one,
26787         because the full-length strings would evoke warnings from gcc with
26788         -Woverlength-strings.
26790 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26792         stdint: port SIZE_MAX to glibc s390
26793         Problem reported by Eric Blake in:
26794         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26795         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26796         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26797         correct type, if possible.
26799 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26801         getprogname: port to IBM z/OS
26802         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26804 2016-10-11  Jim Meyering  <meyering@fb.com>
26806         maint: remove stray space after "." in AC_DEFINE comment.
26807         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26808         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26810 2016-10-05  Jim Meyering  <meyering@fb.com>
26812         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26813         * lib/long-options.c (parse_long_options): Add a break statement
26814         to avoid this new warning/failure:
26815         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26816           --create-testdir --dir=/t/x --with-tests --test long-options
26817         ../../gllib/long-options.c: In function 'parse_long_options':
26818         ../../gllib/long-options.c:66:12: error: this statement may \
26819           fall through [-Werror=implicit-fallthrough]
26820                    (*usage_func) (EXIT_SUCCESS);
26821                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26823 2016-10-05  Jim Meyering  <meyering@fb.com>
26825         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26826         Testing this module would fail when using GCC 7 like this:
26827         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26828           --dir=/tmp/x --with-tests --test utimecmp
26829         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26830         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26831           [-Werror=bool-operation]
26832                          time_t s = src_s & ~ (res == 2 * BILLION);
26833                                             ^
26834         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26835           [-Werror=bool-operation]
26836                src_s &= ~ (res == 2 * BILLION);
26837                         ^
26838         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26839         Instead, make it explicit that we intend to apply it to 0 or 1.
26841 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26843         dfa: save memory for states
26844         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26845         states if dfa has a lot of caches.
26847 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26849         wchar, wctype-h: fix for MinGW 3.22.2
26850         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26851         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26852         when included from <string.h>.
26853         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26854         convention for MinGW 3.22.2, to solve issues with their
26855         wctype.h when included from <ctype.h>.
26857 2016-10-05  Jim Meyering  <meyering@fb.com>
26859         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26860         * lib/long-options.c (parse_long_options): Add a break statement
26861         to avoid this new warning/failure:
26862         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26863           --create-testdir --dir=/t/x --with-tests --test long-options
26864         ../../gllib/long-options.c: In function ‘parse_long_options’:
26865         ../../gllib/long-options.c:66:12: error: this statement may \
26866           fall through [-Werror=implicit-fallthrough]
26867                    (*usage_func) (EXIT_SUCCESS);
26868                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26870         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26871         Testing this module would fail when using GCC 7 like this:
26872         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26873           --dir=/tmp/x --with-tests --test utimecmp
26874         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26875         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26876           [-Werror=bool-operation]
26877                          time_t s = src_s & ~ (res == 2 * BILLION);
26878                                             ^
26879         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26880           [-Werror=bool-operation]
26881                src_s &= ~ (res == 2 * BILLION);
26882                         ^
26883         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26884         Instead, make it explicit that we intend to apply it to 0 or 1.
26886 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26888         quotearg: minimize shell quoting using double quotes
26889         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26890         quote in encountered then use double quotes (c style quoting)
26891         when possible, as it simplifies the quoting.
26892         * tests/test-quotearg-simple.c: Add test cases.
26893         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26894         for the fact we now may write beyond the returned length.
26896 2016-10-02  Jim Meyering  <meyering@fb.com>
26898         vasnprintf.c: avoid spurious warning from GCC 7
26899         The presence of cpp directives renders this "FALLTHROUGH" comment
26900         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26901         from GCC 7 built from git on 2016-10-02.
26902         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26903         directives, so that it takes effect once again.  This is clearly
26904         not a proper change, and I will revert it once this bug is fixed:
26905         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26907 2016-10-01  Jim Meyering  <meyering@fb.com>
26909         getprogname: correct the test for a __progname variable
26910         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26911         and AC_LINK_IFELSE to check for a global __progname.  If found,
26912         define HAVE_VAR___PROGNAME.
26913         * lib/getprogname.c (getprogname): Reflect the new name of the
26914         feature- checked preprocessor symbol:
26915         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26917 2016-09-28  Jim Meyering  <meyering@fb.com>
26919         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26920         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26921         fall-through case with a /* fallthrough */ comment.
26923         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26924         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26925         /* fallthrough */ comment.
26927         getprogname: avoid __progname vs program_invocation_short_name pitfall
26928         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26929         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26930         not with Fedora 24's glibc-2.23.1-10.
26931         * lib/getprogname.c (__progname): Move this declaration down...
26932         (getprogname): ... into the #elif block where used, and make it
26933         explicitly "extern".
26935         getprogname: port to OpenBSD 5.1
26936         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26937         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26938         * modules/getprogname (configure.ac): Move most of this code...
26939         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26940         increment serial number, and add a test for __progname.
26941         https://bugs.gnu.org/24562
26942         Reported by Nelson H. F. Beebe.
26944 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26946         sched: port to GCC 6.2.1 on macOS Sierra
26947         Problem reported by Denis Davydov in:
26948         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26949         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26950         Include <sys/cdefs.h> before <sched.h>.
26951         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26952         so that we needn’t worry about the sched.h include bug here.
26953         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26954         and include it before <sched.h> if it exists, when
26955         checking for <sched.h>.
26957         tests/init.sh: port Alpine fix to AIX 7.1
26958         * tests/init.sh (compare_): When attempting to use diff -U3,
26959         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26960         diff -u not outputting a space after leading '+', as the users
26961         of 'compare' should not be that picky about its output format.
26962         In the AIX 7.1 case, return with diff exit status (or with 2 if
26963         trouble), instead of some random nonzero exit status.
26964         * tests/test-init.sh (test_compare): Remove space after leading
26965         '+', so that AIX 7.1 'diff' passes the test.
26967 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26969         nl_langinfo: pacify GCC
26970         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26971         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26973         stdint: also set GL_GENERATE_LIMITS_H
26974         Problem reported by Jim Meyering in:
26975         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26976         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26978         limits-h, stdint: Don't assume extensions, fix typo
26979         * m4/limits-h.m4 (gl_LIMITS_H):
26980         * m4/stdint.m4 (gl_STDINT_H):
26981         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26982         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26983         reported by Jim Meyering in:
26984         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26986 2016-09-21  Jim Meyering  <meyering@fb.com>
26988         getprogname: port to AIX
26989         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26990         and strdup to obtain a short program name string.  Using code from
26991         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26992         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26993         Assaf Gordon reported that this new file would fail to compile on
26994         AIX-7.1 32bit.
26996 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26998         extensions: fix typo in comment
26999         * m4/extensions.m4: Sync from Autoconf master.
27001         stdint: support new _WIDTH macros
27002         * doc/posix-headers/stdint.texi: Document this.
27003         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
27004         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
27005         support for INTMAX_WIDTH, etc. as well as for support for just C99.
27006         * modules/stdint (Depends-on): Add limits-h.
27007         (Makefile.am): Substitute HAVE_C99_STDINT_H.
27008         * modules/stdint-tests (Depends-on): Add extensions, so that
27009         INTMAX_MAX etc. are defined.
27010         * tests/test-stdint.c: Verify the new macros.
27012         limits-h: new module
27013         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
27014         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
27015         * doc/posix-headers/limits.texi: Document new module.
27016         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
27017         * modules/limit-h-tests, tests/test-limits-h.c: New files.
27019         stdio: don't redefine __USE_MINGW_ANSI_STDIO
27020         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
27021         if it is already defined.  Apparently GNU Emacs relies on this.  See:
27022         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
27024 2016-09-15  Eric Blake  <eblake@redhat.com>
27026         sys_types: avoid glibc 2.25 warnings about major()
27027         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
27028         older autoconf.
27029         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
27030         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
27031         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
27032         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
27034         mountlist: include sysmacros.h for glibc
27035         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
27036         AC_HEADER_MAJOR.
27037         * lib/mountlist.c (includes): Use correct headers.
27039 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27041         extensions: port to more ISO C TSes
27042         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
27043         master, to add support for more recent ISO C TRs and TSes.
27045 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27047         intprops: new macro TYPE_WIDTH
27048         * lib/intprops.h (TYPE_WIDTH): New macro.
27049         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
27050         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
27051         * lib/parse-datetime.y (parse_datetime2):
27052         Use it.
27054         extensions: port to recent ISO C TRs
27055         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27056         Sync from Autoconf master, to add support for recent ISO C TRs.
27057         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
27058         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
27059         the MinGW option is not an extension.
27061 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27063         dfa: port to Solaris 9
27064         Problems reported by Tom G. Christensen in:
27065         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
27066         * modules/dfa (Depends-on): Add isblank.
27067         * modules/dfa-tests (dfa_match_aux_LDADD):
27068         Rename from test_stat_LDADD, to fix typo.
27069         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
27071 2016-09-10  Jim Meyering  <meyering@fb.com>
27073         strverscmp: avoid link failure on OS X
27074         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
27075         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
27077 2016-08-16  Jim Meyering  <meyering@fb.com>
27079         dfa: new module, importing grep's DFA matcher
27080         Since grep's DFA matcher is now being used by two gnulib-enabled
27081         projects, grep and sed, it makes sense to version-control its
27082         sources and unit tests in one place: here.
27083         * modules/dfa: New module.
27084         * modules/dfa-tests: New file.
27085         * lib/dfa.c: New file, from grep.
27086         * lib/dfa.h: Likewise.
27087         * lib/localeinfo.c: Likewise.
27088         * lib/localeinfo.h: Likewise.
27089         * tests/dfa-match-aux.c: Likewise.
27090         * tests/dfa-invalid-char-class.sh: Likewise.
27091         * tests/dfa-match.sh: Likewise, with minor changes.
27092         * MODULES.html.sh (Misc): Add "dfa" to this list.
27094 2016-09-09  Jim Meyering  <meyering@fb.com>
27096         getprogname-tests: don't depend on assert-h
27097         * modules/getprogname-tests (Depends-on): Remove assert-h.
27098         It was not needed, and in fact would cause build failure for
27099         coreutils on some systems.  Reported by Assaf Gordon in https:
27100         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
27102 2016-09-07  Jim Meyering  <meyering@fb.com>
27104         getprogname-tests: work also when EXEEXT is nonempty
27105         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
27106         * tests/test-getprogname.c (main): Use it.
27107         Suggested by Gisle Vanem.
27109 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
27111         getprogname: fix errors in previous change
27112         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
27113         s/program_invocation_name/base/
27114         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
27116 2016-09-08  Pádraig Brady  <P@draigBrady.com>
27118         parse-datetime: restrict debug output to input string
27119         * lib/parse-datetime.y (parse_datetime2): If we parse
27120         all of the input but determine it's invalid, ensure
27121         we don't output the now invalid input pointer.
27122         This issue was seen with `date -d 'now +1'`.
27124 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27126         flexmember: new macro FLEXALIGNOF
27127         * lib/flexmember.h: Include <stddef.h>, for offsetof.
27128         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
27129         this macro.  Update comments.
27131 2016-09-07  Jim Meyering  <meyering@fb.com>
27133         getprogname: port to systems with __argv (mingw, msvc)
27134         * lib/getprogname.c (getprogname): Include "dirname.h" and use
27135         last_component: more general than open coding it with hard-coded "/".
27136         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
27137         * modules/getprogname (Depends-on): Add dirname-lgpl.
27138         (configure.ac): Check for __argv in <stdlib.h>.
27139         * modules/getprogname-tests: New file.
27140         * tests/test-getprogname.c: New file.
27141         Suggested by Gisle Vanem in
27142         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
27144 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27146         flexmember: port better to GCC + valgrind
27147         With a char[] flexible array member in a struct with nontrivial
27148         alignment, GCC-generated code can access past the end of the
27149         array, because GCC assumes there are padding bytes to get the
27150         struct aligned.  So the common idiom of malloc (offsetof (struct
27151         s, m), n) does not properly allocate an n-byte trailing member, as
27152         malloc’s argument should be the next multiple of alignof (struct s).
27153         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27154         Although C11 apparently permits this GCC optimization (i.e., there
27155         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
27156         See the thread containing:
27157         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
27158         * lib/flexmember.h: New file.
27159         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
27160         * lib/localename.c, lib/time_rz.c:
27161         Include flexmember.h.
27162         * lib/fnmatch_loop.c (struct patternlist):
27163         * lib/localename.c (struct hash_node):
27164         Use FLEXIBLE_ARRAY_MEMBER.
27165         * lib/fnmatch_loop.c (EXT):
27166         * lib/fts.c (fts_alloc):
27167         * lib/glob.c (glob_in_dir):
27168         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27169         * lib/localename.c (gl_lock_define_initialized):
27170         * lib/time_rz.c (tzalloc):
27171         Use FLEXSIZEOF instead of offsetof.
27172         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27173         Check that the size of the struct can be taken.
27174         * modules/flexmember (Files): Add lib/flexmember.h.
27175         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
27176         Add flexmember.
27178 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27180         getprogname: port to Solaris 10
27181         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
27182         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
27183         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
27185         stdalign: correct mistake in alignof doc
27186         Problem reported by Joseph Myers in:
27187         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
27188         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
27189         alignof(S) where S is a structure containing a flexible array
27190         member.  The Gnulib substitute does not support this, but C11 does.
27192 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27194         main.mk: remove sc_program_name, since there is no more need to
27195         use set_program_name in tools (getprogname is enough for most
27196         of the cases).
27197         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
27198         * top/maint.mk (sc_program_name): Remove.
27200 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27202         Port tests away from progname, since modules that need the
27203         program name already depend on getprogname.
27204         * modules/acl-tests (Depends-on): Remove progname.
27205         * modules/argmatch (Depends-on): Likewise.
27206         * modules/argmatch-tests (Depends-on): Likewise.
27207         * modules/argp-tests (Depends-on): Likewise.
27208         * modules/argp-version-etc-tests (Depends-on): Likewise.
27209         * modules/array-list-tests (Depends-on): Likewise.
27210         * modules/array-oset-tests (Depends-on): Likewise.
27211         * modules/avltree-list-tests (Depends-on): Likewise.
27212         * modules/avltree-oset-tests (Depends-on): Likewise.
27213         * modules/avltreehash-list-tests (Depends-on): Likewise.
27214         * modules/carray-list-tests (Depends-on): Likewise.
27215         * modules/copy-file-tests (Depends-on): Likewise.
27216         * modules/exclude-tests (Depends-on): Likewise.
27217         * modules/fchownat-tests (Depends-on): Likewise.
27218         * modules/fdopendir-tests (Depends-on): Likewise.
27219         * modules/filenamecat-tests (Depends-on): Likewise.
27220         * modules/fstatat-tests (Depends-on): Likewise.
27221         * modules/fstrcmp-tests (Depends-on): Likewise.
27222         * modules/linked-list-tests (Depends-on): Likewise.
27223         * modules/linkedhash-list-tests (Depends-on): Likewise.
27224         * modules/mkdirat-tests (Depends-on): Likewise.
27225         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
27226         * modules/nonblocking-socket-tests (Depends-on): Likewise.
27227         * modules/obstack-printf-tests (Depends-on): Likewise.
27228         * modules/openat-tests (Depends-on): Likewise.
27229         * modules/parse-datetime-tests (Depends-on): Likewise.
27230         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
27231         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
27232         * modules/quotearg-simple-tests (Depends-on): Likewise.
27233         * modules/quotearg-tests (Depends-on): Likewise.
27234         * modules/rbtree-list-tests (Depends-on): Likewise.
27235         * modules/rbtree-oset-tests (Depends-on): Likewise.
27236         * modules/rbtreehash-list-tests (Depends-on): Likewise.
27237         * modules/spawn-pipe-tests (Depends-on): Likewise.
27238         * modules/system-quote-tests (Depends-on): Likewise.
27239         * modules/uniname/uniname-tests (Depends-on): Likewise.
27240         * modules/uninorm/nfc-tests (Depends-on): Likewise.
27241         * modules/uninorm/nfd-tests (Depends-on): Likewise.
27242         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
27243         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
27244         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
27245         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
27246         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
27247         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
27248         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
27249         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
27250         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
27251         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
27252         * modules/unlinkat-tests (Depends-on): Likewise.
27253         * modules/version-etc-tests (Depends-on): Likewise.
27254         * modules/xalloc-die-tests (Depends-on): Likewise.
27255         * modules/xmemdup0-tests (Depends-on): Likewise.
27256         * modules/xprintf-posix-tests (Depends-on): Likewise.
27257         * modules/xvasprintf-tests (Depends-on): Likewise.
27258         * tests/test-argmatch.c: Do not include progname.h.
27259         (main) Stop calling set_program_name.
27260         * tests/test-argp-version-etc.c: Likewise.
27261         * tests/test-argp.c: Likewise.
27262         * tests/test-argv-iter.c: Likewise.
27263         * tests/test-array_list.c: Likewise.
27264         * tests/test-array_oset.c: Likewise.
27265         * tests/test-avltree_list.c: Likewise.
27266         * tests/test-avltree_oset.c: Likewise.
27267         * tests/test-avltreehash_list.c: Likewise.
27268         * tests/test-carray_list.c: Likewise.
27269         * tests/test-copy-acl.c: Likewise.
27270         * tests/test-copy-file.c: Likewise.
27271         * tests/test-exclude.c: Likewise.
27272         * tests/test-fchownat.c: Likewise.
27273         * tests/test-fdopendir.c: Likewise.
27274         * tests/test-filenamecat.c: Likewise.
27275         * tests/test-fstatat.c: Likewise.
27276         * tests/test-fstrcmp.c: Likewise.
27277         * tests/test-linked_list.c: Likewise.
27278         * tests/test-linkedhash_list.c: Likewise.
27279         * tests/test-mkdirat.c: Likewise.
27280         * tests/test-nonblocking-pipe-main.c: Likewise.
27281         * tests/test-nonblocking-socket-main.c: Likewise.
27282         * tests/test-obstack-printf.c: Likewise.
27283         * tests/test-openat.c: Likewise.
27284         * tests/test-parse-datetime.c: Likewise.
27285         * tests/test-pipe-filter-gi1.c: Likewise.
27286         * tests/test-pipe-filter-gi2-main.c: Likewise.
27287         * tests/test-pipe-filter-ii1.c: Likewise.
27288         * tests/test-pipe-filter-ii2-main.c: Likewise.
27289         * tests/test-quotearg-simple.c: Likewise.
27290         * tests/test-quotearg.c: Likewise.
27291         * tests/test-rbtree_list.c: Likewise.
27292         * tests/test-rbtree_oset.c: Likewise.
27293         * tests/test-rbtreehash_list.c: Likewise.
27294         * tests/test-sameacls.c: Likewise.
27295         * tests/test-set-mode-acl.c: Likewise.
27296         * tests/test-spawn-pipe-main.c: Likewise.
27297         * tests/test-system-quote-main.c: Likewise.
27298         * tests/test-unlinkat.c: Likewise.
27299         * tests/test-version-etc.c: Likewise.
27300         * tests/test-xalloc-die.c: Likewise.
27301         * tests/test-xfprintf-posix.c: Likewise.
27302         * tests/test-xmemdup0.c: Likewise.
27303         * tests/test-xprintf-posix.c: Likewise.
27304         * tests/test-xvasprintf.c: Likewise.
27305         * tests/uniname/test-uninames.c: Likewise.
27306         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27307         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27308         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27309         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27310         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27311         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27312         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27313         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27314         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27315         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27316         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27317         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27318         * tests/test-c-stack.c: (program_name): Do not define.
27319         (main): Do not set program_name.
27320         * tests/test-closein.c: Likewise.
27321         * tests/test-xstrtol.c: Likewise.
27322         * tests/test-yesno.c: Likewise.
27324 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27326         Port modules to use getprogname explicitly, instead of requiring
27327         progname to be used (or program_name to be provided).
27328         * lib/argmatch.c: Do not include progname.h.
27329         [TEST] (program_name): Do not define.
27330         [TEST] (main): Call getprogname instead of using program_name.
27331         * lib/c-stack.c: Do not include progname.h.
27332         (program_name): Do not define.
27333         (die): Call getprogname instead of using program_name.
27334         * lib/chdir-long.c: Do not include progname.h.
27335         [TEST_CHDIR] (main): Do not set program_name.
27336         * lib/error.c [!_LIBC]: Include progname.h.
27337         [!_LIBC] (program_name): Define using getprogname.
27338         * lib/euidaccess.c: Do not include progname.h.
27339         [TEST] (main): Do not set program_name.
27340         * lib/git-merge-changelog.c: Include getprogname.h instead of
27341         progname.h.
27342         (usage): Call getprogname instead of using program_name.
27343         (main): Likewise.  Stop calling set_program_name.
27344         * lib/group-member.c: Do not include progname.h.
27345         [TEST] (main): Do not set program_name.
27346         * modules/argmatch (Depends-on): Add getprogname.
27347         * modules/c-stack (Depends-on): Likewise.
27348         * modules/error (Depends-on): Likewise.
27349         * modules/git-merge-changelog (Depends-on): Likewise.
27350         Also remove progname.
27352 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
27354         * NEWS: Document the deprecation of the 'progname' module.
27356 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27358         getprogname: new module
27359         This provides a LGPL module for getting the name of the current
27360         program, using the same API found on *BSD systems.
27361         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27362         * modules/getprogname: New files.
27363         * MODULES.html.sh (Misc): Add getprogname.
27365 2016-09-02  Jim Meyering  <meyering@fb.com>
27367         manywarnings: add -fno-common
27368         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27369         to the list.  Quoting the manual, "Compiling with -fno-common is
27370         useful on targets for which it provides better performance, or if
27371         you wish to verify that the program will work on other systems that
27372         always treat uninitialized variable declarations this way [putting
27373         it in the data section]."  If diffutils had been using this sooner,
27374         it would have prevented this duplicate declaration issue:
27375         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27377 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27379         parse-datetime: Fix typo.
27380         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27382 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27384         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27385         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27386         GCC 5 and 6 that have __builtin_sub_overflow but not
27387         __builtin_sub_overflow_p.  With the recent changes, these
27388         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27389         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27390         since the former needs just one runtime comparison whereas the
27391         latter needs two.
27393         strverscmp: sync with glibc
27394         Although this doesn't exactly synchronize with glibc
27395         byte-for-byte, it makes the code behave the same as glibc.
27396         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27397         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27398         difference shouldn't matter in practical use.  All uses changed
27399         back to isdigit.
27400         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27401         (next_state): Now unsigned char array; redo elements.
27402         (result_type): Now signed char array; redo elements.
27403         (__strverscmp): Fix glibc bug 9913 by using new states.
27404         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27406 2016-08-29  Jim Meyering  <meyering@fb.com>
27408         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27409         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27410         similarly to how it was done to intprops.h.
27412 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27414         intprops.h: port recent changes to GCC 6.2.0
27415         * lib/intprops.h (__has_builtin): Move earlier.
27416         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27417         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27418         the last argument can be null.  All uses changed.
27419         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27420         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27421         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27422         and it's not clear which GCC versions it works for.
27423         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27424         its definiens.
27426         intprops.h: use __typeof__ with GCC 7
27427         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27428         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27429         This avoids computing the expression's value (which might overflow!).
27431 2016-08-29  Jim Meyering  <meyering@fb.com>
27433         intprops.h, xalloc-oversized.h: work with gcc 7
27434         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27435         __builtin_mul_overflow each accept a NULL pointer as the third
27436         argument.  However in gcc 7, that is no longer accepted.
27437         Instead, one must use the "_p"-suffixed names, with which, the
27438         third parameter is no longer a pointer.
27439         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27440         the definition: not true for gcc 7 and subsequent.
27441         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27442         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27443         Provide new definitions for gcc 7 and subsequent.
27444         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27445         that works with gcc-7.
27447         intprops.h: fix missing-backslash problems
27448         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27449         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27451 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27453         intprops: fix paren typo on old platforms
27454         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27455         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27456         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27457         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27458         && !defined LLONG_MAX]:
27459         Remove stray paren.
27461         intprops: port to OpenVMS
27462         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27463         * doc/posix-headers/limits.texi: Document the problem.
27464         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27465         Define if not already defined.
27467 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27469         parse-datetime: improve debug implementation
27470         Follow-up to commit 12ad79069 ("add optional debug printing").
27471         Improve parse-datetime's debug implementation: remove macros,
27472         replace global debug flag variable with a function parameter,
27473         use nstrftime for formatting.
27474         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
27475         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
27476         (parse_datetime2): New function, accepts 'flags' parameter, supporting
27477         debug flag. Existing interface 'parse_datetime' left unmodified.
27478         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
27479         (struct parser_control): add 'parse_datetime_debug' member variable.
27480         (parse_datetime): Call new function 'parse_datetime2' without debug.
27481         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
27482         pc.parse_datetime_debug variable as needed.
27483         (to_year): Accept new flags parameter, instead of using global variable.
27484         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
27485         use struct 'debug' variable instead of global variable.
27486         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
27487         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
27488         correspnding functions directly instead of using macros.
27489         * modules/parse-datetime: Add gnulib's strftime module.
27491 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
27493         c-strcase-tests: port to EBCDIC
27494         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
27495         which assume ASCII encoding semantics to run only in ASCII
27496         mode, as they fail in EBCDIC.
27498         sigpipe-tests: fix typo
27499         * tests/test-sigpipe.sh: C, not B.
27501 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27503         canonicalize-lgpl: fix errno after malloca fails
27504         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
27505         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
27506         * lib/canonicalize-lgpl.c (__realpath):
27507         Don't assume malloca sets errno on failure.
27509 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27511         strtod: port errno handling to z/OS
27512         * lib/strtod.c (strtod): Save and restore errno more reliably.
27514 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27516         strtod: port to z/OS
27517         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27518         implementation.
27520 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27522         strtod: port to z/OS
27523         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27524         implementation.
27526         regex, string: rename to avoid '__string'
27527         * lib/regex.h, lib/string.in.h: Do not use the identifier
27528         '__string', as it is effectively reserved by string.h on z/OS.
27530         c-strcase-tests, wcwidth-tests: depend on c-ctype
27531         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
27532         Add c-ctype.
27534 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27536         thread: port to z/OS
27537         * lib/glthread/thread.c, lib/glthread/thread.h:
27538         Rudimentary gl_thread support for z/OS.
27540         maint: port tests to z/OS errno behavior
27541         * tests/test-nonblocking-reader.h:
27542         * tests/test-nonblocking-writer.h:
27543         Accommodate z/OS errno code preferences. (I believe this should
27544         still be within spec; IBM is good at following the letter if not
27545         the spirit of such things.)
27547         maint: preprocessor changes to support z/OS
27548         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
27549         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
27550         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
27551         * tests/test-nonblocking-pipe.h:
27553         fclose, strstr-simple, wchar: port to z/OS
27554         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
27555         Changes to the Autoconf M4 code to support z/OS.  Note that
27556         fclose() is broken in a different way on z/OS than it is on other
27557         systems, thus the special-case in fclose.m4.
27559         iconv_open-utf-tests, iconv-tests: port to EBCDIC
27560         * tests/test-iconv-utf.c, tests/test-iconv.c:
27561         Added appropriately conditional #pragmas so that the test strings
27562         in test-iconv-utf.c are correctly interpreted in ASCII instead of
27563         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
27564         addressed in a more portable way by simply rewriting all the ASCII
27565         literal characters as octal escapes, but then you would lose the
27566         partial readability that the strings have now. Also, iconv_open()
27567         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
27569         c-strcase-tests, wcwidth-tests: port to EBCDIC
27570         * tests/test-c-strcasecmp.c: Include c-ctype.h.
27571         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
27572         * tests/test-wcwidth.c: Likewise.
27574 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27576         stdbool: don't require _Bool for C++
27577         Problem reported by David Seifert in:
27578         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
27579         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
27580         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
27581         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
27582         stricter about checking that bool and _Bool are compatible in C.
27584 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27586         getdelim: remove dependency on realloc-posix
27587         * lib/canonicalize-lgpl.c (alloc_failed)
27588         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
27589         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
27590         Use __set_errno where needed, for consistency.
27591         * lib/getdelim.c (alloc_failed): New function.
27592         (getdelim): Use it.
27594 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
27596         parse-datetime: add optional debug printing
27597         Print parsing information, warnings, and errors to stderr.
27598         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
27599         * lib/parse-datetime.y:
27600         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
27601         (PROGRESS*): Same as DEBUG, for progress reporting.
27602         (dbg_printf): Print message to stderr, with 'date' prefix.
27603         (struct parser_control): Add 'debug_*_seen' variables.
27604         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
27605         (debug_print_current_time, debug_print_relateive_time): Prints the
27606         current/relative date/time value of parser_control.
27607         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
27608         (to_year): Warn about 2-digit year parsing.
27609         (yylex):   Warn about unrecognized words.
27610         (get_effective_timezone): Returns current timezone in minutes.
27611         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27612         clearly and unambigiously as possible.
27613         (debug_mktime_not_ok): Print detailed information about failed
27614         date/time values.
27615         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27616         PROGRESS messages for status messages.
27617         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
27619 2016-08-06  Jim Meyering  <meyering@fb.com>
27621         tests/init.sh: exclude dash with bad "local" semantics
27622         * tests/init.sh (gl_shell_test_script_): Add a function to
27623         eliminate a shell like "dash" (unlike bash, zsh) that has
27624         surprising/risky "local var='...'" semantics.  Inspired by
27625         the problem and discussion in https://bugs.gnu.org/24116#11.
27627 2016-08-02  Ján Tomko  <jtomko@redhat.com>
27629         maint.mk: expand the prohibit_doubled_word regex
27630         This check has a static list of words that are checked for
27631         repetitions.  Expand it before running the perl script to
27632         avoid using expensive captures.  This decreases the cost
27633         for libvirt from 1.66s to 0.66s.
27634         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
27635         (sc_prohibit_doubled_word): Use it.
27637 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27639         useless-if-before-free: skip non-matching lines early
27640         * build-aux/useless-if-before-free: First match each line with the
27641         simple/quick /\bif\b/ and reject if there is no match. This often
27642         saves the cost of the much more involved regular expression.
27643         For libvirt, this decreases the cost from 1.44s to 1.02s.
27645 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27647         maint.mk: speed up sc_po_check
27648         sc_po_check would skip files based on their names, or on the
27649         existence of files with derived names. Rewrite it to use perl
27650         instead of shell to make the check faster.
27651         * top/maint.mk (perl_translatable_files_list_): Define.
27652         (sc_po_check): Use it.
27654 2016-07-30  Ján Tomko  <jtomko@redhat.com>
27656         maint.mk: speed up require_config_h_first
27657         Instead of spawning three processes per file,
27658         rewrite the check in perl and run it once for all the files.
27659         * top/maint.mk (perl_config_h_first_): Define.
27660         (sc_require_config_h_first): Use it in place of shell code.
27662 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27664         maint.mk: speed up sc_po_check
27665         sc_po_check would skip files based on their names, or on the
27666         existence of files with derived names. Rewrite it to use perl
27667         instead of shell to make the check faster.
27668         * top/maint.mk (perl_translatable_files_list_): Define.
27669         (sc_po_check): Use it.
27671 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27673         obstack: pacify GCC 6 with -Wnull-dereference
27674         Problem reported by Assaf Gordon in:
27675         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
27676         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
27677         Declare with __attribute_noreturn__.
27678         * lib/obstack.h (__attribute_noreturn__): New macro.
27680 2016-07-13  Eric Blake  <eblake@redhat.com>
27682         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27683         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27684         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27686 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27688         doc: mention glibc SSIZE_MAX buglet
27689         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27691 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27693         printf-posix: Fix mingw build
27694         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27695         expression for detecting C symbol prefixes but forgot to qoute square
27696         brackets in the command line arguments for grep.  That way when
27697         building with mingw the condition was false although it ought to be
27698         true instead.  In particular scenarios this led to the following
27699         compile error:
27701             Cannot export rpl_printf: symbol not found
27702             Cannot export rpl_scanf: symbol not found
27703             collect2: error: ld returned 1 exit status
27705         Fix this by properly quoting square brackets.
27707 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27709         mktime: call tzset as per POSIX
27710         Problem reported by Ludovic Courtès in:
27711         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27712         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27713         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27715 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27717         fts: handle readdir() errors
27718         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27719         but also upon error when it will also set errno.  Therefore
27720         flag the error case from readdir().  We treat the case where
27721         no items are read the same as if the dir can't be accessed,
27722         i.e. by setting fts_errno to FTS_DNR.
27724 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27726         intprops: port better to GCC 7
27727         GCC 7 __builtin_add_overflow supports a new usage form, where the
27728         last argument is a null pointer, and which merely returns 1 if an
27729         overflow would occur.  This is a constant expression if all
27730         arguments are constants, and should generate faster code when code
27731         needs to be generated.
27732         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27733         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27734         Use builtin operations if available.
27735         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27736         operations are available, as it's almost surely faster.
27738 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27740         intprops-test: port to GCC 6
27741         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27742         since the bug is not fixed in GCC 6.1.
27744 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27746         xalloc-oversized: port to GCC 7; fewer warnings
27747         GCC 7 will have a better way to deal with integer overflow.
27748         Plus, fix a warnings problem reported by Tim Ruehsen in:
27749         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27750         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27751         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27752         For GCC 5, use __xalloc_oversized if both args are constants,
27753         or if pedantic.
27755 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27757         regex: port to Sun C
27758         Reported by Daiki Ueno.
27759         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27760         __restrict, in prototype.  This fixes a problem I introduced in
27761         the 2016-02-19 merge from glibc.
27763 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27765         stdbool: Restore __bool_true_false_are_defined check
27766         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27767         __bool_true_false_are_defined is still defined, even with C++11.
27769 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27771         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27772         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27774 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27776         Use GCC_LINT, not lint
27777         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27778         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27779         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27780         Document problem with lint and _Noreturn.
27781         * lib/diffseq.h (IF_LINT, IF_LINT2):
27782         * lib/fts.c (sccsid):
27783         * lib/getndelim2.c (IF_LINT):
27784         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27785         (gl_linked_iterator_from_to):
27786         * lib/gl_anytree_list2.h (gl_tree_iterator)
27787         (gl_tree_iterator_from_to):
27788         * lib/gl_anytree_oset.h (gl_tree_iterator):
27789         * lib/gl_array_list.c (gl_array_iterator)
27790         (gl_array_iterator_from_to):
27791         * lib/gl_array_oset.c (gl_array_iterator):
27792         * lib/gl_carray_list.c (gl_carray_iterator)
27793         (gl_carray_iterator_from_to):
27794         * lib/idcache.c:
27795         * lib/inet_ntop.c (IF_LINT):
27796         * lib/regcomp.c (build_charclass_op, create_tree):
27797         * lib/regex_internal.c (re_acquire_state)
27798         (re_acquire_state_context):
27799         * lib/trigl.c (rcsid):
27800         * lib/trim.c (IF_LINT):
27801         * lib/vasnprintf.c (IF_LINT):
27802         * lib/verify.h (assume):
27803         Treat GCC_LINT like lint.
27805 2016-05-29  Bruno Haible  <bruno@clisp.org>
27807         secure_getenv: Port to many more platforms.
27808         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27809         functions.
27810         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27811         for non-BSD Unix platforms and for native Windows.
27812         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27813         Prompted by a request from Nikos Mavrogiannopoulos.
27815 2016-05-27  Eric Blake  <eblake@redhat.com>
27817         canonicalize: Fix broken probe for realpath.
27818         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27819         in logic introduced in 54615b95.
27821 2016-05-26  Eric Blake  <eblake@redhat.com>
27823         unsetenv: relax to LGPLv2+
27824         * modules/unsetenv (License): Match setenv license.
27826 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27828         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27829         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27830         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27831         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27832         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27833         (generate_html, generate_info, generate_tex, outdir)
27834         (source_extra, split, srcfile, texarg): Move above 'version'.
27835         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27837 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27839         manywarnings: update for GCC 6.1
27840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27841         Add GCC 6.1 options that apply to C.
27842         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27843         do not apply to C, are obsolescent, etc.
27845 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27847         glob: size_t overflow checks
27848         * lib/glob.c (__has_builtin): New macro.
27849         (size_add_wrapv, glob_use_alloca): New static functions.
27850         (glob, glob_in_dir): Check for size_t overflow in several places,
27851         and fix some size_t checks that were not quite right.
27853         glob: don't assume INT_MAX < SIZE_MAX
27854         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27855         latter is not portable to (probably theoretical) hosts where
27856         SIZE_MAX <= INT_MAX.
27858 2016-05-09  Bruno Haible  <bruno@clisp.org>
27860         Fix undefined behaviour in gettext.h.
27861         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27862         pointer's value after the storage it points to has been freed.
27863         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27864         Spotted by Coverity.
27866 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27868         git-version-gen: avoid undefined shift
27869         Problem reported by Mosè Giordano in:
27870         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27871         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27872         with --prefix or --fallback but without a later argument.  While
27873         we're at it, omit unnecessary quotes.
27875 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27877         glob: merge glibc changes into lib/glob.c
27878         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27879         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27880         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27881           struct dirent [BZ #19779]
27882         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27883           callback gl_readdir
27884         2015-10-20 Convert miscellaneous function definitions to prototype style
27885         2015-10-20 Convert 113 more function definitions to prototype style
27886           (files with assertions)
27887         2015-06-12 Fix getlogin_r namespace (bug 18527).
27888         2014-02-10 Use glibc_likely instead __builtin_expect.
27889         2013-10-20 When glob pattern contains a trailing slash match only
27890           directories. Fixes bug 10278.
27891         2013-09-04 glob: silence -Wattribute warnings
27892         2013-06-07 Avoid use of "register" as optimization hint.
27893         2012-09-25 Use size_t instead of int for internal variables in glob
27894           (bug 14621)
27895         2011-07-20 Check for overflows in expressions
27896         2011-05-28 Remove unused variable
27897         2011-05-22 Add a few more alloca size checks
27898         2010-03-27 Whitespace fixes
27899         2010-03-27 Fix one more issue with the glob patch
27900         2010-03-24 Fix glob with empty pattern
27901         2008-05-27 Remove useless more "if" tests before "free"
27902         * modules/glob (Depends-on): Add stdint.
27904 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27906         mktime: port to stricter signed overflow checking
27907         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27908         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27909         instead of merely for INT_MAX * 2.  In practice platforms that
27910         do the latter also do the former.
27911         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27912         (shr): New static function, replacing SHR.  All uses changed.
27913         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27914         and TIME_T_MAX.  All uses changed.
27915         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27916         Use long_int, not time_t.
27917         (long_int_avg): New static function, replacing time_t_avg.
27918         All uses changed.  Round toward positive infinity, as that
27919         generates slightly better code.
27920         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27921         by INT_ADD_WRAPV.
27922         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27923         (convert_time): New static function.
27924         (ranged_convert): Use it
27925         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27926         Use simpler test for loop exit.
27927         (__mktime_internal): Store negative of guessed offset, to simplify
27928         overflow checking.  Remove no-longer-needed test for small time_t
27929         overflows.
27931         mktime: speed up DEBUG_MKTIME benchmarks
27932         Call tzset just once, at the start, rather than for every test
27933         case.  This lets us measure the CPU cost of mktime as opposed to
27934         that of tzset.  This is relevant when TZ is not set and glibc is
27935         being used.  This speeds up tests by a factor of 40 on my Fedora
27936         23 x86-64 platform.
27937         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27938         to call tzset and as a sanity check.  Later on, use localtime_r
27939         instead of localtime.
27941         mktime: resurrect DEBUG_MKTIME testing
27942         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27943         Include <string.h>, for strcmp.
27945         mktime: simplify DEBUG_MKTIME
27946         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27947         Simplify later usage accordingly.
27949         Port mktime_internal offset to unsigned time_t
27950         This avoids some assumptions about wraparound arithmetic on
27951         signed integer overflow.
27952         * lib/mktime-internal.h (mktime_offset_t): New type.
27953         (mktime_internal): Use it in decl.
27954         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27956         * lib/mktime.c (__mktime_internal, localtime_offset):
27957         * lib/timegm.c (timegm): Use it.
27958         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27959         (gl_FUNC_MKTIME): Require it.
27961 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27963         xstrtol: prohibit monstrosities like "1bB"
27964         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27965         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27966         "B" only if the first suffix needs a base.
27967         * tests/test-xstrtol.sh: Test this.
27969 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27971         xstrtod: reinstate setting of *result upon ERANGE
27972         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27973         the returned limits upon ERANGE, so allow and document that.
27975 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27977         xstrtod: modify *result only if no errors
27978         * lib/xstrtod.c (XSTRTOD).
27980 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27982         btowc: document problems in C locale
27983         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27984         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27986 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27988         mktime: improve integer overflow checking
27989         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27990         (WRAPV): Remove; no longer needed.
27991         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27992         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27993         Remove.  Use intprops.h defns instead.
27994         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27995         Use bool for Boolean, for clarity.
27996         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27997         detect integer overflow.
27998         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
28000         intprops: check two's complement assumption
28001         Suggested by Eric Blake in:
28002         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
28003         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
28004         short, int, long, and (if available) long long are two's complement.
28005         * modules/intprops (Depends-on): Add 'verify'.
28007         intprops, mktime, strtol: assume two's complement
28008         These macros were not portable to every conforming C11 ones'
28009         complement platform.  It's not worth the hassle of porting to some
28010         platforms that use ones' complement or signed magnitude, as such
28011         platforms are almost purely theoretical nowadays and porting even
28012         to some of them makes the code harder to review for little
28013         practical benefit.  Problem reported by Florian Weimer in:
28014         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
28015         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28016         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
28017         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
28018         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28019         (TYPE_SIGNED_MAGNITUDE):
28020         Remove.  All uses rewritten to assume two's complement, which is
28021         all we can reasonably test nowadays anyway.
28022         * top/maint.mk (_intprops_names): Remove the removed macros.
28024 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
28026         stdint: port to strict C11 left shift
28027         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
28028         Pacify clang -Wshift-negative-value, which should be an issue only
28029         on clang setups where stdint.h does not conform to C11 or to C++11.
28030         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
28032 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28034         mbrtowc: work around glibc bug#19932
28035         Fix mbrtowc so that it never returns -1 in the C locale,
28036         as this conflicts with a future version of POSIX
28037         http://austingroupbugs.net/view.php?id=663#c2738
28038         and causes problems with GNU grep: http://bugs.gnu.org/23234
28039         See glibc bug 19932:
28040         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
28041         * doc/posix-functions/mbrlen.texi (mbrlen):
28042         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28043         Document the glibc bug.
28044         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
28045         Include hard-locale.h, locale.h.
28046         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
28047         if the bug is possible.
28048         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
28049         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
28050         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
28051         * modules/mbrtowc (Depends-on): Add hard-locale.
28052         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
28053         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
28054         * tests/test-mbrtowc5.sh: New file.
28056 2016-04-03  Pedro Alves  <palves@redhat.com>
28058         stdint: detect good enough pre-C++11 stdint.h in C++ mode
28059         When gnulib is configured in C++ mode for a system with a working C99
28060         implementation of stdint.h that predates C++11, gnulib ends up
28061         substituting stdint.h anyway.  This works on most targets, but on e.g.,
28062         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
28063         MinGW is LLP64.  Instead of trying to detect the right types, detect
28064         good-enough-pre-C++11 stdint.h and in such case define
28065         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
28066         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
28067         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
28068         conforms to C99.  If it does, check whether it hides symbols
28069         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
28070         does, define those macros in config.h.
28072 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28074         argp: merge changes from glibc
28075         Among other things, this should fix problems found by a Coverity
28076         scan and reported by Andrei Borzenkov:
28077         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
28078         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
28079         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
28080         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
28081         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
28082         * lib/argp.h:
28083         Merge changes from glibc.
28084         * tests/test-argp-2.sh: Adjust to match new behavior.
28086 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
28088         stddef: support configuring with g++
28089         Problem reported by Ángel González in:
28090         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
28091         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
28092         Do not define if _GCC_MAX_ALIGN_T is defined.
28094 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28096         test-framework-sh: minor cleanups
28097         * tests/init.sh (testdir_prefix_): Output a trailing newline,
28098         since strictly speaking POSIX requires this.
28099         (setup_): Do not use the variable 'fail', as that makes the
28100         trace output harder to read ('fail' is typically used by
28101         tests to mean the test failed).  Treat // portably.
28102         Check that new directory is not merely a sibling of the tmp dir.
28103         Avoid unnecessary invocation of tr.
28105         test-framework-sh: revert port to NetBSD 7.0
28106         It was a false alarm; I misinterpreted Assaf Gordon's report.
28107         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28108         Restore.
28109         (test_dir_): Adjust to mktempd_ change.
28110         (mktempd_): Restore 2nd arg.  Use -t again.
28111         (base_template_, template_, nx_): Resurrect old code.
28113         Port better to Alpine Linux
28114         Its diff implementation does not support -c, but does support -U3.
28115         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28116         * tests/init.sh (diff_opt_): New var.
28117         (compare_): Prefer diff -U3 to diff -c to plain diff.
28119 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
28121         test-framework-sh: port to NetBSD 7.0
28122         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28123         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28124         Remove.  All uses removed.
28125         (test_dir_): Adjust to mktempd_ change.
28126         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
28127         (base_template_, template_, nx_): Simplify by hardcoding.
28129 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28131         gitlog-to-changelog: suppress ignored chatter
28132         * build-aux/gitlog-to-changelog: Do not warn about skipping
28133         an SHA if it would have been ignored anyway.
28135 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
28137         setlocale: add "sv" to Windows language table
28138         * lib/setlocale.c (language_table) [W32]: Add "sv".
28139         Reported in <https://savannah.gnu.org/bugs/?44588>.
28141 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28143         sys_select: port to new Cygwin
28144         Problem reported by Ken Brown in:
28145         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
28146         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
28147         diagnostics.
28149 2016-03-17  Jim Meyering  <meyering@fb.com>
28151         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
28152         * tests/test-userspec.c (main): Remove unnecessary braces and fix
28153         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
28154           test-userspec.c:176:9: error: statement is indented as if it were \
28155             guarded by... [-Werror=misleading-indentation]
28156                    {
28157                    ^
28158           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
28159                  if (!diag && !T[i].result)
28160                  ^~
28162 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28164         time_rz: port to clang -Wunused-const-variable
28165         * lib/time_rz.c (TZ): Remove.  All uses removed.
28167         std-gnu11: improve clang support
28168         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
28169         2016-03-15 Also try clang
28170         2016-03-15 Port C11 and C++11 testing to clang
28172         select: port more to Intel 2016.1.150 compiler
28173         Problem reported by Balázs Hajgató in:
28174         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
28175         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
28177 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28179         select: try to port to 2016.1.150 compiler
28180         Problem reported by Balázs Hajgató in:
28181         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
28182         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
28183         POSIX specifies 'restrict'.
28185 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
28187         localename-tests: memory allocation fixes
28188         * tests/test-localename.c (test_locale_name)
28189         (test_locale_name_thread): Don't call freelocale on a locale
28190         that was the base of a successful newlocale, as that
28191         results in a double free.  Problem reported by Assaf Gordon.
28192         (test_locale_name_thread): Free saved names after use, to pacify
28193         gcc -fsanitize=address.
28195 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
28197         intprops: make .h file license match module
28198         * lib/intprops.h: Change the license wording to match glibc format.
28199         This is what is in modules/intprops anyway.  See:
28200         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
28202 2016-03-08  Eric Blake  <eblake@redhat.com>
28204         acl: fix missing return on Cygwin
28205         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
28206         fall off end of function. Fixes http://bugs.gnu.org/22949
28208 2016-03-05  Bruno Haible  <bruno@clisp.org>
28210         extern-inline: port to PGI CC
28211         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
28212         keyword 'inline'.
28213         Reported by Adam James Stewart in:
28214         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
28216 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28218         signbit: port back to pre-C++11 GCC
28219         * lib/math.in.h (signbit): Do previous change only if
28220         __cplusplus < 201103.  See Jonathan Wakely in:
28221         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
28223 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
28225         mountlist: recognize autofs-mounted remote file systems, too
28226         Originally reported at: https://bugzilla.redhat.com/1309247
28227         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
28228         "-hosts" because it is used by autofs to mount remote file systems.
28230 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
28232         signbit: port to C++ with GCC 6
28233         * lib/math.in.h (signbit) [__cplusplus]:
28234         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
28235         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
28237         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
28239         regex: make it closer to libc
28240         Make Idx a signed type, rather than possibly unsigned.
28241         The unsignedness was not really buying us anything, since the code
28242         overflows for other reasons before getting to PTRDIFF_MAX.  Making
28243         it signed allows us to use -1 and -2 with abandon, like libc does,
28244         thus lessening the number of differences between gnulib and libc.
28245         Also, it should help avoid gratuitous warnings like the one
28246         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
28247         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
28250         regex: merge patches from libc
28252         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
28253         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
28254         Convert miscellaneous function definitions to prototype style.
28255         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
28256         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
28257         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
28258         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
28259         (re_search_internal):
28260         Convert to prototype-style function definition.
28261         Use internal_function for internal functions.
28263 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
28265         stdalign: port to older HP and IBM cc
28266         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
28267         C compilers, by checking their version numbers.  These version
28268         numbers appear in MariaDB and in Qt code that dates way back and
28269         that conditiionally uses the 'aligned' attribute.
28271 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28273         stdalign: port to clang 3.7.0
28274         Problem reported by Herbert J. Skuhra in:
28275         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
28276         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
28277         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
28278         https://llvm.org/bugs/show_bug.cgi?id=26547
28280 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
28282         readdir_r: now obsolescent
28283         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
28284         * lib/mountlist.c (read_file_system_list): Add a FIXME.
28286 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
28288         misc: port better to gcc -fsanitize=address
28289         Without these patches, ./configure CFLAGS='-fsanitize=address'
28290         would compute incorrect values.  This patch fixes some (but not all)
28291         test failures with recent glibc, with this configuration.
28292         * m4/acl.m4 (gl_ACL_GET_FILE):
28293         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
28294         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
28295         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
28296         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
28297         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28298         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28299         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
28300         * m4/getline.m4 (gl_FUNC_GETLINE):
28301         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
28302         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
28303         * m4/regex.m4 (gl_REGEX):
28304         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28305         * tests/test-calloc-gnu.c (main):
28306         * tests/test-duplocale.c (main):
28307         * tests/test-getgroups.c (main):
28308         * tests/test-getline.c (main):
28309         * tests/test-inttostr.c (main):
28310         * tests/test-localename.c (test_locale_name)
28311         (test_locale_name_thread, test_locale_name_environ)
28312         (test_locale_name_default):
28313         * tests/test-regex.c (main):
28314         * tests/test-setlocale1.c (main):
28315         * tests/test-stat.h (test_stat_func):
28316         Free heap-allocated storage before exiting.
28317         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
28318         Don't match *_foo symbols inserted by AddressSanitizer.
28319         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
28321 2016-02-02  Jim Meyering  <meyering@fb.com>
28323         verify-tests: also remove stray test-verify.Tpo
28324         * modules/verify-tests (Makefile.am): Arrange for "make clean"
28325         to remove the test-verify.Tpo file that is left behind by
28326         the automake-generated rule upon compilation failure.
28327         Otherwise, that .Tpo file would cause a failed "make distcheck"
28328         at least for grep.
28330 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28332         std-gnu11: new module
28333         This makes it easier for applications to prefer C11 and C++11
28334         to older variants, when compiling C and C++ code.
28335         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
28336         a nontrivial chunk of GPLed Autoconf source code.
28337         * COPYING: Mention the m4/*.m4 copyright situation.
28338         * MODULES.html.sh (std-gnu11): New module.
28339         * m4/std-gnu11.m4, modules/std-gnu11: New files.
28341 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28343         get-permissions, strftime: fix grammar in comments
28344         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
28345         some grammar fixes Alan Mackenzie made to GNU Emacs.
28347 2016-01-25  Daiki Ueno  <ueno@gnu.org>
28349         gettext: mark as obsolete
28350         Suggested by Paul Eggert in:
28351         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
28352         * modules/gettext (Status): Mark as obsolete.
28353         (Notice): Suggest to use 'gettext-h' instead.
28354         * modules/gettext-h (Description): Suggest GNU gettext, instead of
28355         the 'gettext' module.
28357 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28359         gnulib-tool: don't give up on ln -s so easily
28360         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
28361         because an earlier one failed.  The targets could be on different
28362         file systems.  Problem reported by KO Myung-Hun in:
28363         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28365         closedir: fix OS/2-related typos
28366         Problem reported by KO Myung-Hun in:
28367         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28368         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28369         in the last couple of changes.
28371 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28373         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28374         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28375         copying a directory.
28377 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28379         regex: treat [x] as x if x is a unibyte encoding error
28380         Problem reported by Aharon Robbins in:
28381         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28382         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28383         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28385         closedir, dirfd, opendir: port to OpenSolaris 5.10
28386         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28387         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28388         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28389         Don't use ${word##pat} substitution, as it doesn't work in
28390         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28391         http://bugs.gnu.org/22443#11
28393 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28395         bootstrap: use American spelling
28396         * build-aux/bootstrap: Honor American spelling.
28398 2016-01-22  Karl Berry  <karl@freefriends.org>
28400         * doc/posix-functions/localtime.texi,
28401         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28403 2016-01-21  Bruno Haible  <bruno@clisp.org>
28405         hash-pjw-bare: fix comment
28406         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28408         wcwidth: Replace also on OpenBSD 5.8
28409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28410         * doc/posix-functions/wcwidth.texi: Update.
28412 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28414         gnu-web-doc-update: fix addition of new files
28415         If there were already added (emnpty) dirs,
28416         then cvs aborts the add with the message:
28417           cvs [add aborted]: there is a version in <./dirname> already
28418         * build-aux/gnu-web-doc-update: Add directories separately
28419         to the addition of files, to avoid the above issue
28420         impacting the addition of files.
28422 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28424         utimens-tests: avoid pulling gettext .m4 files
28425         Although this is not the right fix to the original problem:
28426         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28427         it makes it possible again for consumer projects to use arbitrary
28428         version of gettext, through the steps described at:
28429         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28430         See here for details:
28431         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28432         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28433         'gettext'.
28434         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28435         'gettext'.
28437 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28439         regex: pacify static checkers
28440         Problem and draft fix reported by Aharon Robbins in:
28441         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28442         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28443         Clear memory to pacify static checkers.
28445         regex: fix [ diagnostic
28446         Problem and fix reported by Aharon Robbins in:
28447         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28448         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28450         regex: fix memory leaks
28451         Problem and draft fix reported by Aharon Robbins in:
28452         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28453         * lib/regcomp.c (build_range_exp, build_charclass_op)
28454         * lib/regex_internal.c (re_dfa_add_node):
28455         Fix memory leak on failure.
28457 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28459         fts: don't unconditionally use leaf optimization for NFS
28460         NFS st_nlink are not accurate on all implementations,
28461         leading to aborts() if that assumption is made.
28462         See <https://bugzilla.redhat.com/1299169>
28463         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28464         the white list, and document the issue.
28466 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28467             KO Myung-Hun  <komh@chollian.net>
28469         gnulib-tool: don't assume ln -s works
28470         * gnulib-tool (func_ln_s): New function.
28471         (func_ln): Use it.
28473 2016-01-15  KO Myung-Hun  <komh@chollian.net>
28475         utimes: detect utimes() correctly on OS/2 kLIBC
28476         utimes() of OS/2 kLIBC has some limitations.
28477         1. OS/2 itself supports a file date since 1980 year in local time.
28478         2. OS/2 itself supports only even seconds for a file time.
28479         3. utimes() of OS/2 kLIBC does not work on an opened file.
28480         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
28481         * doc/posix-functions/utimes.texi: Document the above limitations of
28482         utimes() on OS/2 kLIBC.
28484 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28485             KO Myung-Hun  <komh@chollian.net>
28487         openat_proc_name: port to OS/2 kLIBC
28488         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
28489         instead of /proc/self/fd.
28490         * lib/openat-proc.c (openat_proc_name):
28491         Don't assume file name length is less than INT_MAX.
28492         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
28494 2016-01-14  KO Myung-Hun  <komh@chollian.net>
28496         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
28497         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
28498         definitions of intptr_t and uintptr_t (which use int and unsigned)
28499         to avoid clashes with declarations of system functions like sbrk.
28500         * lib/stdint.in.h (intptr_t, uintptr_t): Check
28501         _INTPTR_T_DECLARED before defining them.
28503         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
28504         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
28505         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
28506         Declare on kLIBC.
28507         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
28508         fd associated with dirp.
28509         (_gl_register_dirp_fd): New. Register fd associated with dirp to
28510         dirp_fd_list.
28511         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
28512         (dirfd): Implemented for kLIBC.
28513         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
28514         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
28515         succeeds.
28516         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
28517         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28518         (REPLACE_DIRFD): Define to 1 if replaced.
28519         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
28520         * modules/closedir (Depends-on): Add dirfd.
28521         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
28522         condition.
28523         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
28524         * modules/opendir (Depends-on): Add dirfd.
28526         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
28527         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
28528         * lib/dup.c (dup_nothrow): New.
28529         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
28530         (klibc_dup2): New.
28531         * lib/fcntl.c (klibc_fcntl): New.
28532         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
28533         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
28534         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
28535         fd.
28537         pipe_filter_ii_execute: port to OS/2 kLIBC
28538         Pipes on kLIBC do not support O_NONBLOCK like Win32.
28539         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
28540         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
28541         Reuse Win32 code on OS/2 kLIBC.
28542         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
28543         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
28545         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
28546         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
28547         static inline function.  The implementation of wcwidth in wcwidth.c
28548         causes a "conflicting types" error.
28549         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
28551         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
28552         spawn() on OS/2 kLIBC is not silly like one on Windows
28553         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
28554         empty string on OS/2 kLIBC.
28556         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
28557         On OS/2 kLIBC, select() works only on sockets.
28558         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
28560         binary-io: don't put fd in binary mode if it is a console on EMX
28561         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
28562         a console on EMX.
28564 2016-01-15  Pádraig Brady  <P@draigBrady.com>
28566         doc: mention unfixed issues with unsupported localtime() values
28567         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
28568         returns nonsense for localtime(2^56).
28569         * doc/posix-functions/localtime_r.texi: Likewise.
28571 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28573         doc: mention setlocale() issues on OpenBSD
28574         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
28575         never fails, and the need to check categories individually.
28577 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28579         sig2str: list all signals on FreeBSD >= 7
28580         FreeBSD >= 7 is contravening POSIX by not defining NSIG
28581         to the maximal statically defined signal value.
28582         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
28583         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
28584         where available, even when NSIG is defined.
28586 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
28588         acl-permissions: port to USE_ACL==0 platforms
28589         I ran into this problem when building bleeding-edge GNU Emacs
28590         with gcc -fsanitize=address on Fedora 23.  On this platform
28591         the ACL library does not pass the 'configure' test and Emacs
28592         then does not build due in part to what appear to be typos in the
28593         ACL part of Gnulib.
28594         * lib/acl-internal.c (free_permission_context):
28595         * lib/acl-internal.h (struct permission_context):
28596         Test whether USE_ACL is nonzero, not whether it is defined.
28598 2016-01-12  Martin Sebor  <msebor@redhat.com>
28600         mktime: rename macro to avoid glibc clash
28601         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
28602         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
28604 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28606         Port "$@" to OpenIndiana ksh93
28607         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
28608         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28609         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28610         bug long-dead shells, so remove the workaround.
28611         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28612         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28613         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28614         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28615         Use "$@" instead of ${1+"$@"}.
28617         Port Universal Time settings to strict POSIX
28618         * build-aux/announce-gen, build-aux/bootstrap:
28619         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
28620         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28621         * build-aux/gnupload, build-aux/mkinstalldirs:
28622         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
28623         * build-aux/update-copyright, build-aux/useless-if-before-free:
28624         * build-aux/vc-list-files, tests/test-strftime.c:
28625         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
28626         but POSIX says the behavior of TZ="UTC" is undefined.
28628 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
28630         msvc-inval: fix problem with unset shell var
28631         Problem reported by Karl Berry in:
28632         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
28633         * modules/msvc-inval (Depends-on):
28634         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
28635         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
28637 2016-01-01  Pádraig Brady  <P@draigBrady.com>
28639         tests: for compare_(), use cmp -s where available
28640         * tests/init.sh (compare_): Only fall back to cmp without
28641         the POSIX defined -s option, where this is not available.
28643 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28645         version-etc: new year
28646         * build-aux/gendocs.sh (version):
28647         * doc/gendocs_template:
28648         * doc/gendocs_template_min:
28649         * doc/gnulib.texi:
28650         * lib/version-etc.c (COPYRIGHT_YEAR):
28651         Update copyright dates by hand in templates and the like.
28652         * all files: Run 'make update-copyright'.
28654 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28656         human: fix output buffer overrun by 1
28657         * lib/human.c (human_readable): Fix off-by-one typo in buffer
28658         calculation that could lead to a one-byte buffer overrun.
28660 2015-12-28  Daiki Ueno  <ueno@gnu.org>
28662         maint: fix operator precedence in mbrtowc test
28663         This is a fix for test breakage introduced by commit 45228d96; the
28664         equality expression must be parenthesized when negated with '!',
28665         otherwise we always get:
28667           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
28669         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
28670         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28672 2015-12-23  James Youngman  <jay@gnu.org>
28674         regexprops-generic: update from regex.h
28675         * doc/regexprops-generic.texi: update by running the regexprops binary
28676         from findutils (the command line is 'regexprops "Regular Expressions"
28677         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
28678         gnulib with GNU grep had made this document out-of-date.
28680 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28682         strftime-tests: avoid false failure on OS X
28683         * tests/test-strftime.c (struct localtime_rz_test): Add an
28684         ahistorical member which is used to warn rather than fail
28685         when tm_isdst isn't set for such entries.  This is the case for
28686         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28688 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28690         fts: ensure leaf optimization is used for NFS
28691         NFS provides usable dirent.d_type but not necessarily for all entries
28692         of large directories.  See <https://bugzilla.redhat.com/1252549>
28693         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28695 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28697         fts: enable leaf optimization for XFS
28698         XFS provides usable dirent.d_type only for DT_DIR,
28699         but the noleaf optimization still applies.
28700         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28702 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28704         intprops: comment fix
28705         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28706         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28708         intprops-test: work around GCC bug 68971
28709         Problem reported by Pádraig Brady in:
28710         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28711         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28712         (main): Add a case that better tests 64-bit long in this area.
28714 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28716         gnulib-tool: allow multiple --local-dir usage
28717         * gnulib-tool: Use --local-dir to construct compound
28718         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28719         PATH_SEPARATOR early.
28720         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28721         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28722         func_determine_path_separator because that needs to be detected
28723         earlier now.
28724         (func_determine_path_separator): New function.
28725         (func_path_foreach, func_path_foreach_inner): New functions.
28726         (func_path_prepend, func_path_append): Likewise.
28727         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28728         (func_lookup_file, func_all_modules): Use new functions to work
28729         with local_gnulib_path.
28730         (func_modules_in_dir, func_exists_module): New callbacks for
28731         func_path_foreach.
28732         (func_exists_module, func_get_tests_module): Likewise.
28733         (func_is_local_file, func_should_symlink): New helper methods.
28734         (func_add_file, func_update_file): Use new func_should_symlink
28735         instead, DRY.
28736         (func_reconstruct_cached_local_gnulib_path): New helper.
28737         (func_reconstruct_cached_dir): New callback.
28738         (func_import): The cached_local_gnulib_dir renamed to
28739         cached_local_gnulib_path similarly to local_gnulib_dir.
28740         Use new func_reconstruct_cached_local_gnulib_path.
28741         (func_count_relative_local_gnulib_path): New sub-method.
28742         (func_create_testdir): Use func_should_symlink, DRY.
28743         (func_create_megatestdir): Use new functions to work with
28744         local_gnulib_path correctly.
28745         (func_append_local_dir): New helper.
28747 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28749         fix freadptr to work with ungetc on all uClibc configs
28750         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28751         where GNU coreutils cut(1) generates invalid output on uClibc
28752         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28753         * lib/freadptr.c (freadptr): Return NULL if there are
28754         ungotten chars.  In this case freadseek() will iterate
28755         again to process the ungotten character.
28757 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28759         xalloc-oversized: improve performance with GCC 5
28760         * lib/xalloc-oversized.h (xalloc_oversized):
28761         Improve performance with GCC 5 by using __builtin_mul_overflow.
28763 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28765         intprops: new public macro EXPR_SIGNED
28766         Emacs can use this macro, so make it public.
28767         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28768         'Integer Type Determination', since some of these macros apply
28769         to non-integer types.  Clarify what kinds of constant expressions
28770         these macros return.  Say when the arguments can be non-integers.
28771         Mention newly published macro EXPR_SIGNED.
28772         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28773         make it public.  All uses changed.
28775         intprops: fix typo in clang port
28776         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28777         '__builtin_add_overflow' that is not caught by compiler.
28779 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28781         test-timespec: fix typo in previous change
28782         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28784         timespec-sub: fix overflow bug; add tests
28785         * lib/timespec-add.c (timespec_add):
28786         * lib/timespec-sub.c (timespec_sub):
28787         Work even if time_t is narrower than int (a theoretical
28788         possibility).  Redo code for a bit more clarity.
28789         * lib/timespec-sub.c (timespec_sub):
28790         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28791         * modules/timespec-tests, tests/test-timespec.c: New files.
28793         intprops-test: suppress -Woverlength-strings
28794         Problem reported by Pádraig Brady in:
28795         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28796         It is not worth the hassle to port this test to compilers that
28797         cannot handle long strings in diagnostics.
28798         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28800 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28802         quotearg: add quotearg_n_style_colon()
28803         This quotes with default options of the specified style,
28804         but with quoting enabled for instances of ':'.
28805         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28806         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28808 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28810         intprops: revise _WRAPV macros, revert _OVERFLOW
28811         The incompatible changes to the _OVERFLOW macros were too much of
28812         a hassle in practice, so revert them.  Instead, change the new
28813         _WRAPV macros to make them closer in behavior to GCC 5's new
28814         builtin_add_overflow etc. functions.  No other software was using
28815         these newly-added macros yet, so this should be OK.
28816         * NEWS: Revert previous change, since the incompatible change
28817         has been reverted, and nobody used the incompatible version.
28818         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28819         Document revised behavior.
28820         (Integer Range Overflow): Adjust example to match above revisions.
28821         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28822         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28823         these can be used in integer constant expressions again.
28824         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28825         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28826         needed.
28827         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28828         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28829         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28830         Remove, as they did not seem that useful.
28831         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28832         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28833         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28834         Support new semantics.
28835         (__has_builtin): New macro, if not alreay defined.
28836         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28837         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28838         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28839         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28840         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28841         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28842         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28843         New macros.
28844         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28846 2015-11-03  Jim Meyering  <meyering@fb.com>
28848         intprops: add parentheses for when OP has precedence lower than "-"
28849         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28850         "a OP b" must be parenthesized for when OP is like "<<", which has
28851         lower precedence than the following "-". Reported by Pádraig Brady.
28853 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28855         quotearg: constify get_quoting_style parameters
28856         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28857         * lib/quotearg.c (get_quoting_style): Likewise.
28859 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28861         quotearg: add support for $'' shell escaping
28862         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28863         items and descriptions.
28864         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28865         above types by quoting like "shell", but using $'...' syntax
28866         for non printable characters, which should provide unambiguous
28867         printable output for any input.
28868         * tests/test-quotearg-simple.c: Update accordingly.
28870 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28872         maint: use a more standard return from mbrtowc test
28873         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28874         from the test program as this is non standard and often
28875         indicates an unhandled case in the test program.
28876         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28878 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28880         intprops: add WRAPV and const flavors for GCC 5
28881         If available, use GCC 5's builtin functions for efficient integer
28882         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28883         and safely compute the low-order bits of the correct answer.
28884         A downside of these efficient functions is that they cannot be
28885         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28886         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28887         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28888         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28889         Document the changes.
28890         (Wraparound Arithmetic): New section.
28891         (Integer Range Overflow):
28892         Put this subsection last, since it's least useful.
28893         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28894         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28895         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28896         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28897         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28898         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28899         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28900         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28901         New macros.
28902         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28903         Generate calls to GCC builtins if available, for speed.
28904         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28905         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28906         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28907         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28908         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28909         (CHECK_QUOTIENT, CHECK_REMAINDER):
28910         Test WRAPV and CONST flavors (when available) too.
28912 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28914         doc: use extended timezone format in iso-8601 example
28915         * doc/parse-datetime.texi: The standard states that extended format
28916         is to be used consistently throughout.
28917         Note that lib/parse-datetime.y can handle either tz format.
28919 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28921         stdalign: port to Sun C 5.9
28922         * doc/posix-headers/stdalign.texi: Document this.
28923         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28924         __attribute__ ((__aligned__ (...))).
28926 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28928         time_rz: fix comment about tzalloc
28929         * lib/time_rz.c (tzalloc): Fix comment.
28931 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28933         stdalign: work around pre-4.9 GCC x86 bug
28934         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28935         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28936         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28938 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28940         maint.mk: sc_tight_scope: remove extraneous expressions
28941         * top/maint.mk (tight_scope): This is not really required since
28942         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28943         that matches all nm entries.  But it does remove extraneous entries
28944         that may be confusing or cause issue in future maintenance.
28946 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28948         time_rz: return NULL if localtime_r fails
28949         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28950         while still attempting to pacify bleeding-edge GCC.
28952         fts: port to C11 alignof
28953         * doc/posix-headers/stdalign.texi (stdalign.h):
28954         Document the C11 restriction.
28955         * lib/fts.c: Include stddef.h, for max_align_t.
28956         (fts_alloc): Align using max_align_t, not FTSENT.
28957         * modules/fts (Depends-on): Add stddef.
28959 2015-10-18  Jim Meyering  <meyering@fb.com>
28961         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28962         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28963         would see this:
28965         lib/time_rz.c: In function 'localtime_rz':
28966         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28967           [-Werror=nonnull]
28968                    if (tm && !save_abbr (tz, tm))
28969                        ^
28971         That was complaining about "tm" because it is a parameter that was
28972         declared with the __nonnull__ attribute.
28973         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28974         result of localtime_r.
28976 2015-10-17  Jim Meyering  <meyering@fb.com>
28978         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28979         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28980         name-extraction regexp mistakenly used \S+, and would mistakenly
28981         extract "*F" from "extern int *F()" rather than the desired "F".
28982         Use \w+ instead.
28984 2015-10-17  Jim Meyering  <meyering@fb.com>
28986         maint.mk: sc_tight_scope: factor and support OS X
28987         * top/maint.mk (_gl_tight_scope): Address three issues:
28988         - factor out four instances of code that wraps a string in "^...$"
28989         - allow nm-reported symbol names to have an optional leading "_"
28990         - add "main" to the list of ignored variable names, because on os x,
28991         "main" has nm-reported type "S" in the variable-checking section.
28993 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28995         safe-alloc-tests: fix typo in license header
28996         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28998 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
29000         copy-file: fix mem leak in error case
29001         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
29002         upon error opening or performing I/O to the src and dest files.
29004 2015-10-15  Mike Frysinger  <vapier@chromium.org>
29006         localename: control langinfo.h inclusion
29007         This header is only used to work around buggy behavior in old
29008         versions of glibc, so do not include it all the time.  Otherwise
29009         we get build failures on systems that do not provide langinfo.h.
29010         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
29011         in the source later on.
29012         The patch was originally submitted to gettext as:
29013         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
29015 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29017         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
29018         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
29019         * lib/u64.c, lib/unistd.c:
29020         Append 'typedef int dummy;', to pacify compilers that are picky
29021         about empty translation units.
29023 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
29025         accept4-tests: fix to avoid non portable flags
29026         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
29027         as they are the only documented ones, and passing others may trigger
29028         EINVAL (seen on FreeBSD 10.1-RELEASE).
29029         * doc/glibc-functions/accept4.texi: Mention that we don't provide
29030         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
29032 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
29034         gnulib-tool: fix tests of 'extensions' module
29035         This complements f8fe25fab60e3c687a124 commit.
29036         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
29037         emitting of initial gl_EARLY macros.
29038         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
29039         replaced with func_emit_pre_early_macros call.
29041 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29043         unicase/locale-language: fix typo in utf-8 cookie
29044         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
29045         Problem reported by Zbigniew Jędrzejewski-Szmek.
29047 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29049         xalloc: do not worry about GCC 5 warning on 32 bit
29050         * lib/xalloc.h: Revert previous change.
29051         I found a better way to fix this in coreutils.
29053 2015-10-02  Pádraig Brady  <P@draigBrady.com>
29055         xalloc: avoid GCC 5.1 warning on 32 bit
29056         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
29057         xalloc_oversized(), which was seen to give this warning
29058         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
29059         when simplifying conditional".
29061 2015-10-02  Daiki Ueno  <ueno@gnu.org>
29063         uniname/uniname-tests: avoid compiler warnings
29064         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
29065         unused local variables.
29066         (test_alias_lookup): Fix alias name display in failure cases.
29068 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29070         c-ctype: do not worry about EBCDIC + char signed
29071         Drop support for EBCDIC with char being signed, as this breaks too
29072         many programs.  Problem reported by Ben Pfaff in:
29073         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
29074         * lib/c-ctype.h: Verify that we are not using EBCDIC with
29075         char being signed.
29076         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
29077         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
29078         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
29079         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
29080         * tests/test-c-ctype.c (test_all):
29081         Simplify by assuming standard char values cannot be negative.
29082         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
29084 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29086         c-ctype: port better to z/OS EBCDIC
29087         Problems reported by Daniel Richard G. in:
29088         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
29089         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
29090         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
29091         (_C_CTYPE_OTHER_CNTRL): New macro.
29092         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
29093         from SCHAR_MIN, as the functions are defined only from values
29094         promoted from char or from unsigned char, not necessarily from
29095         signed char.
29097 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
29099         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
29101         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
29102         and ARFLAGS variables.  Doing this unconditionally could break
29103         later Automake's AM_PROG_AR invocation (at least it's
29104         AC_CHECK_TOOLS call to detect correct 'ar' binary).
29106         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
29107         Amsterdam Compiler Kit, so make the previous code to have effects
29108         only on ACK, and rather automatically call the Automake's
29109         AM_PROG_AR as soon as possible to decide other cases.
29111         References:
29112         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
29114         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
29115         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
29116         is possible, keep setting AR/ARFLAGS to reasonable defaults.
29117         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
29118         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
29119         'extensions' module is used.
29120         * modules/extensions (configure.ac-early): Remove as this snippet
29121         is added to gnulib-comp.m4 earlier anyway.
29123 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29125         sockets: MS Windows initalization fixes
29126         Problem reported by Test User in:
29127         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
29128         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
29129         Correct the endianness.
29130         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
29131         number mismatch, not just on <.  Cleanup before any such failure.
29133 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29135         gc: fix detection of installed libgcrypt version
29136         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
29137         at least as recent as 1.4.4.  The previously used macro is not
29138         available now, since modules were removed in version 1.6.0.
29140 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29142         c-ctype: rewrite to use inline functions
29143         This simplifies maintenance, since it makes for just one
29144         implementation of each function, letting the compiler have the fun
29145         of optimization.  In practice this works well nowadays with GCC.
29146         E.g., c_isascii might need only three instructions even though the
29147         source code lists every ASCII character individually in a large
29148         switch statement.
29149         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
29150         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
29151         * NEWS: Document the API change.
29152         * lib/c-ctype.c: Drastically simplify, since this now just expands
29153         inline functions.
29154         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29155         (C_CTYPE_INLINE): New macro.
29156         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
29157         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
29158         Verify that either ASCII or EBCDIC is being used.
29159         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
29160         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
29161         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
29162         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
29163         New private macros.
29164         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
29165         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
29166         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
29167         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
29168         (c_tolower, c_toupper): When converting, return the unsigned char,
29169         as that is what z/OS does.
29170         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
29171         of some c-ctype.h macros.
29172         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
29173         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
29174         c_tolower promotion to be compatible with z/OS.
29176 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
29178         gitlog-to-changelog: trim only trailing whitespaces
29179         This is fix for --format regression introduced by commit
29180         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
29181         doubled %n string) had no effect anymore.  This format
29182         specification has been used e.g. by GNU paxuitils (commit
29183         edfd8bcc3).
29185         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
29186         newlines in commmit messages.
29188 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29190         Test that c_iscntrl agrees with iscntrl, etc.
29191         Suggested by Daniel Richard G. in:
29192         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29193         * modules/c-ctype-tests (Depends-on): Add ctype.
29194         * tests/test-c-ctype.c: Include <ctype.h>.
29195         (NCHARS): New constant.
29196         (test_agree_with_C_locale): New function.
29197         (main): Use it.
29198         (test_all): Use named constants.
29200         c-ctype: improve c_isascii testing
29201         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
29202         Add a test to count the number of ASCII characters.
29204 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29206         savewd: remove SAVEWD_CHDIR_READABLE
29207         It was problematic in the light of file systems that ignore umask.
29208         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
29209         * NEWS: Document this.
29210         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
29211         successful, -1 (setting errno) on failure, rather than something
29212         more complicated than that.
29213         * lib/mkdir-p.c (make_dir_parents):
29214         Do not use SAVEWD_CHDIR_READABLE.
29215         * lib/savewd.c (savewd_chdir):
29216         Remove support for SAVEWD_CHDIR_READABLE.
29217         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
29219         c-ctype: port better to EBCDIC
29220         Problems reported by Daniel Richard G. in
29221         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
29222         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
29223         Include "verify.h".
29224         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
29225         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
29226         Define as enum constants with value false, if not defined, so that
29227         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
29228         code more portable, as both branches of the 'if' are compiled on
29229         all platforms.
29230         (C_CTYPE_EBCDIC): New constant.
29231         Verify that the character set is either ASCII or EBCDIC.
29232         (to_char): New static function.
29233         (c_isascii, c_iscntrl):
29234         Assume standard control-character assignments for EBCDIC.
29235         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
29236         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
29237         Rewrite to use 'if' instead of 'ifdef'.
29238         Use to_char if non-ASCII.  Prefer <= to >=.
29239         Prefer true and false to 1 and 0, for booleans.
29240         (c_iscntrl): Use 'if', not 'ifdef'.
29241         * modules/c-ctype (Depends-on): Add verify.
29242         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
29243         (to_char): New function.
29244         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
29246 2015-09-21  Pádraig Brady  <P@draigBrady.com>
29248         nanosleep: fix return code for interrupted replacement
29249         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
29250         that we return -1 in the case the call is interrupted by a signal,
29251         rather than the current value of 1.
29252         Diagnosed and tested by Daniel Richard G.
29254 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
29256         Diagnose ERE '()|\1'
29257         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
29258         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
29259         track of the set of previously-completed subexpressions available
29260         before the first alternative, and restore this set just before
29261         parsing each subsequent alternative.  This lets us diagnose the
29262         invalid back-reference in the ERE '()|\1'.
29264         regex: merge patches from libc
29266         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29267         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
29268         * lib/regex_internal.h:
29269         Include <libc-lock.h> instead of <bits/libc-lock.h>.
29271         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29272         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
29273         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
29274         wcscoll.
29275         * lib/regexec.c (check_node_accept_bytes): Likewise.
29277         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29278         Fix regex wcrtomb namespace (bug 18496).
29279         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29280         instead of wcrtomb.
29282         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29283         Fix regex wctype namespace (bug 18495).
29284         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
29285         instead of towlower.
29286         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29287         instead of iswlower.  Call __towupper instead of towupper.
29288         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29289         instead of iswalnum.
29291         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
29292         * lib/regcomp.c (parse_bracket_exp): Initialize type to
29293         COLL_SYM in a couple of places to avoid uninitialized variable
29294         wanings on tilegx gcc 4.8.2.
29296         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29297         * lib/regex_internal.h: Remove NOT_IN_libc.
29299         2014-11-17  Andreas Schwab  <schwab@suse.de>
29300         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
29302         2014-09-11  Roland McGrath  <roland@hack.frob.com>
29303         Move findidx nested functions to top-level.
29304         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
29305         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
29306         Pass new arguments to findidx.
29307         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
29308         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
29309         Don't #include it inside the function.  Pass new arguments to findidx.
29310         * lib/regex_internal.h:
29311         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
29312         (re_string_elem_size_at): Don't #include it inside the function.
29313         Pass new arguments to findidx.
29315         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29316         Check if DEBUG is defined in regex_internal.c
29317         * lib/regex_internal.c: Check if DEBUG is defined and is set.
29319 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
29321         ceill: detect buggy OpenBSD implementation
29322         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
29323         which returns zero for small values.  Discussed here:
29324         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
29326 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
29328         mountlist: add me_mntroot field on Linux machines
29329         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
29330         mount_entry so Linux machines based on /proc/self/mountinfo can
29331         distinguish between bind mounts and original mounts.  In reality bind
29332         mounts aren't treated differently than mountroot=/ mounts by the
29333         kernel, but the user often wants these bind mounts distinguished.
29334         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
29335         More details at https://pad.lv/1432871
29337 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
29339         doc: Describe to use multiple instances of gnulib
29340         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
29341         instances of gnulib with different modules can be used, for example one
29342         for a lib and another one for associated tools.
29344 2015-09-01  Pádraig Brady  <P@draigBrady.com>
29346         base32: mark function as __attribute__ const
29347         * lib/base32.h (isbase32): Mark __attribute__ const as
29348         suggested by GCC, and consistent with the base64 module.
29350 2015-08-20  Daiki Ueno  <ueno@gnu.org>
29352         gnulib-tool: don't transform binary files with sed
29353         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
29354         .mo and .class files.
29355         Reported by Denis Denisov.
29357 2015-08-10  Daiki Ueno  <ueno@gnu.org>
29359         gperf: respect silent rules
29360         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
29361         V_GPERF_0 for silent rules.
29362         * modules/iconv_open (Makefile.am): Use V_GPERF.
29363         * modules/unicase/locale-language (Makefile.am): Likewise.
29364         * modules/unicase/special-casing (Makefile.am): Likewise.
29365         * modules/unictype/category-byname (Makefile.am): Likewise.
29366         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29367         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29368         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29369         * modules/unictype/property-byname (Makefile.am): Likewise.
29370         * modules/unictype/scripts (Makefile.am): Likewise.
29371         * modules/uninorm/composition (Makefile.am): Likewise.
29373 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29375         Improve port of stdalign to C++11
29376         Problem reported by Sundaram in:
29377         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29378         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29379         (__alignas_is_defined): Define if C++11 or newer.
29381 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29383         pmccabe2html: fix gawk regex escaping
29384         * build-aux/pmccabe2html: Add one more backslash to properly
29385         escape the gsub replacement value.  Fixes this error:
29386         gawk: ./build-aux/pmccabe2html:425: \
29387         warning: escape sequence `\&' treated as plain `&'
29389 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29391         time_rz: port to pedantic memcpy
29392         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29393         that reject memcpy (..., NULL, 0).
29395 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29397         time_rz: port better to MinGW
29398         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29399         Instead, store the tzname copy in the struct tm_zone object.
29400         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29401         * lib/strftime.c [!_LIBC]:
29402         * lib/time_rz.c: Include time-internal.h.
29403         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29404         name from *TZ rather than from TZNAME, doable because *TZ now has
29405         a tzname_copy member.
29406         * lib/time-internal.h: New file, with contents taken from
29407         lib/time_rz.c.  It's separate because strftime.c now accesses
29408         struct tm_zone members.
29409         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29410         New member tzname_copy.
29411         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29412         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29413         Initialize tzname_copy member.
29414         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29415         in tzname_copy member.
29416         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29417         (restore_tzname): Remove; no longer needed.  All calls removed.
29418         * modules/time_rz (Files): Add lib/time-internal.h.
29420         time: port __need_time_t to MinGW
29421         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29422         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29424 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29426         strftime: fix newly-introduced bug on Solaris
29427         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29428         consistently at the start, rather than doing some of the setup at
29429         the start and some in the %Z format spec.  This is cleaner, and
29430         works better with time_rz on platforms like Solaris where struct
29431         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29432         mktime_z and localtime_rz can mess up the tzname cache.
29434         test-strftime: test for Solaris bug
29435         * modules/strftime-tests (Depends-on): Add strerror.
29436         * tests/test-strftime.c: Include <errno.h>.
29437         (posixtm_test): New function, containing the old 'main'.
29438         (struct tzalloc_test, struct localtime_rz_test): New types.
29439         (TZ, LT): New static vars.
29440         (tzalloc_test): New function.
29441         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29443         time_rz: port to Solaris etc.
29444         Works around a tzname problem on platforms like Solaris that have
29445         tzname but not tm_zone, by setting tzname at the appropriate time
29446         and restoring it later.
29447         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29448         New static vars.
29449         (save_abbr) [HAVE_TZNAME]: Set them.
29450         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29451         (restore_tzname): New function.
29452         (localtime_rz, mktime_z): Use it.
29454         time_rz: now LGPL
29455         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29457         time_rz: make a constant 'const'
29458         * lib/time_rz.c (local_tz): Now const.
29460         time_rz: fix off-by-one typo
29461         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29463 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29465         fprintftime, strftime: use timezone_t args
29466         * NEWS: Document the change.
29467         * lib/fprintftime.h (fprintftime):
29468         * lib/strftime.c (extra_args) [my_strftime]:
29469         * lib/strftime.h (nstrftime):
29470         Time zone arg is now of type timezone_t, not int.
29471         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29472         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
29473         (my_strftime) [emacs && !my_strftime]:
29474         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
29475         Remove; Emacs doesn't need this any more.
29476         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
29477         fprintftime and nstrftime to call tzset.
29478         (ut) [!my_strftime]: Remove, replacing with ...
29479         (tz) [!my_stftime]: ... this new macro.  All uses changed.
29480         (strftime_case_): Use localtime_rz and mktime_z instead
29481         of localtime_r and mktime.
29482         * modules/fprintftime (Depends-on): Add time_rz.
29483         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
29484         * tests/test-strftime.c (main): Adjust to new nstrftime API.
29486         time_rz: new module
29487         * MODULES.html.sh: Add time_rz.
29488         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
29489         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
29490         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
29491         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
29492         New var HAVE_TIMEZONE_T (default 0).
29493         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29494         New var GNULIB_TIME_RZ (default 0).
29495         * modules/time (time.h): Substitute the new vars.
29497         flexmember: license is now unlimited
29498         * modules/flexmember (License): Change to unlimited,
29499         since its only source file gives an unlimited license.
29501 2015-07-15  Eric Blake  <eblake@redhat.com>
29503         maint: update copyright paper procedures
29504         * config/srclist.txt: Drop outdated files.
29505         * doc/Copyright/conditions.txt: Update to latest.
29506         * doc/Copyright/assign.changes.manual: Delete.
29507         * doc/Copyright/assign.future.manual: Likewise.
29508         * doc/Copyright/assign.manual: Likewise.
29509         * doc/Copyright/assign.translation.manual: Likewise.
29510         * doc/Copyright/disclaim.changes.manual: Likewise.
29511         * doc/Copyright/disclaim.manual: Likewise.
29512         * doc/Copyright/disclaim.program: Likewise.
29514 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29516         localename: fix link error on Illumos
29517         Illumos defines __sun, but does not have getlocalename_l nor the
29518         equivalent.  This partially reverts commit 387c214.
29519         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
29520         available, as well as uselocale.
29521         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
29522         use getlocalename_l if it is not available.
29524 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29526         unistr/uN-strtok-tests: avoid a trivial leak
29527         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
29528         input and delim after the multibyte delimiter tests.
29530 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29532         file-has-acl, acl-permissions: fix HP-UX typos
29533         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
29534         * lib/file-has-acl.c (file_has_acl):
29535         * lib/set-permissions.c (context_acl_from_mode)
29536         (context_aclv_from_mode, set_acls):
29537         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
29538         They were introduced by the recent ACL changes.
29540         regex: match current GNU grep behavior
29541         These symbols have not matched GNU grep behavior for quite some time.
29542         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
29543         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
29544         Change to match current GNU behavior.
29545         Simplify by expressing it as differences from POSIX BREs and EREs.
29546         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
29548 2015-07-03  Jim Meyering  <meyering@fb.com>
29550         set-permissions.c: adjust acl_from_mode's cpp guard
29551         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
29552         directives identical to those guarding the sole use.
29553         Otherwise, on some systems, we'd get a warning about
29554         the function being defined but not used.
29555         Also, filter through cppi to correct misleading indentation
29556         of cpp directives.
29558 2015-07-03  Pádraig Brady  <P@draigBrady.com>
29560         tests: restrict shells to those that support 'local'
29561         The local keyword is very widely supported and used
29562         in tests in coreutils and grep at least.  Therefore
29563         restrict to testing with shells that support it.
29564         This mainly excludes /bin/sh on Solaris.
29565         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
29567 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
29568         and Daiki Ueno  <ueno@gnu.org>
29570         unistr/uN-strtok: handle multibyte delimiters
29571         Previously, uN_strtok moved PTR to the next unit to the token end.
29572         When DELIM contained a multibyte character, the new position could
29573         be a middle of a multibyte character.
29574         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
29575         after the token.
29576         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
29577         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
29578         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
29579         * modules/unistr/u8-strtok (Depends-on): Depend on
29580         unistr/u8-strmblen.
29581         * modules/unistr/u16-strtok (Depends-on): Depend on
29582         unistr/u16-strmblen.
29583         * modules/unistr/u32-strtok (Depends-on): Depend on
29584         unistr/u32-strmblen.
29585         * tests/unistr/test-u-strtok.h: New file.
29586         * tests/unistr/test-u8-strtok.c: New file.
29587         * tests/unistr/test-u16-strtok.c: New file.
29588         * tests/unistr/test-u32-strtok.c: New file.
29589         * modules/unistr/u8-strtok-tests: New file.
29590         * modules/unistr/u32-strtok-tests: New file.
29591         * modules/unistr/u16-strtok-tests: New file.
29593 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
29595         update-copyright: fix test failure with perl >= 5.22 (trivial)
29596         * build-aux/update-copyright: Escape a literal left curly bracket,
29597         required with perl >= 5.22
29599 2015-07-02  Daiki Ueno  <ueno@gnu.org>
29601         u{16,32}-strstr-tests: relax timeout condition
29602         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
29603         tests can take longer than 5 seconds to complete.
29604         Reported by Dagobert Michelsen in:
29605         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
29606         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
29607         seconds to 10 seconds.
29608         * tests/unistr/test-u32-strstr.c (main): Likewise.
29610 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29612         gnulib-common.m4: change the ARFLAGS default to 'cr'
29613         In some GNU/Linux distributions people started to compile 'ar'
29614         binary with --enable-deterministic-archives (binutils project).
29615         That, however, in combination with previous autotools long time
29616         working default AR{_,}FLAGS=cru causes warnings on such
29617         installations:
29618         ar: `u' modifier ignored since `D' is the default (see `U')
29619         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
29620         set already.
29622 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29624         selinux-h: avoid double free after *getfilecon()
29625         Originally reported by Ben Shelton on bug-tar:
29626         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
29627         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
29628         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
29629         param should be freed by freecon(3) (regardless the return value).
29631 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
29633         fix pty related tests issues on Windows (trivial)
29634         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
29635         however it's still present in tests/ subdirectory of the final project.
29636         Therefore avoid it to pass `make check`.
29637         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
29638         will just return -ENOSYS, so avoid this non applicable test allowing
29639         the build to proceed.
29641 2015-07-01  Pádraig Brady  <P@draigBrady.com>
29643         acl: fix definition of acl_from_mode on FreeBSD
29644         This was causing basic coreutils copy operations to fail
29645         with ENOTSUP or ENOENT error messages.
29646         * lib/acl-internal.h (acl_from_mode): Only define when
29647         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
29648         of acl_from_mode() defined in lib/set-permissions.c to
29649         be used on FreeBSD at least.
29650         * lib/set-permissions.c: Fix up comment spelling,
29651         and a redundant variable assignment; noticed in passing.
29653 2015-06-30  Pádraig Brady  <P@draigBrady.com>
29655         readutmp: port to FreeBSD >= 9
29656         * lib/readutmp.h: Map utmpxname() to setutxdb().
29657         With that coreutils who(1) and pinky(1) tests pass.
29659 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29661         mgetgroups: port to strict OS X
29662         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
29663         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
29664         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
29665         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
29667 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
29669         mgetgroups: port to strict OS X
29670         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
29671         Document the getgrouplist problem.
29672         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
29673         New macro.
29674         (mgetgroups): Use it.
29675         * m4/mgetgroups.m4 (gl_MGETGROUPS):
29676         Check for OS X signature for getgrouplist.
29678 2015-06-29  Jim Meyering  <meyering@fb.com>
29680         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29681         It started like this when building coreutils' latest on OS X,
29682         invoking ./configure with a nonempty --cache=.cache:
29684           lib/linkat.c:46:42: error: operator '||' has no right operand
29685           lib/linkat.c: In function 'rpl_linkat':
29686           lib/linkat.c:330:27: error: #if with no expression
29688         Here's linkat.c's line 46:
29690           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29692         Here's some context:
29694           $ grep linkat_nofoll .cache
29695           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29696           $ grep LINKAT_SYM lib/config.h
29697           #define LINKAT_SYMLINK_NOTSUP
29699         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29700         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29701         but that violates a tenet of AC_CACHE_CHECK: it must
29702         have no side effect other than setting its cache variable.
29704         What happens is that when the cache is set, we'd skip the
29705         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29706         defined to whatever value it happened to have in configure's
29707         environment.  In my case, it was not defined, so this later code:
29709           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29710             [Define to 1 if linkat can create hardlinks to symlinks])
29712         would emit code with an empty RHS.
29714         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29715         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29717 2015-06-28  Jim Meyering  <meyering@fb.com>
29719         mountlist: avoid an unused-label warning on OS X
29720         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29721         Building on OS X, I saw a warning about the "free_then_fail" label
29722         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29724         error.c: correct printf-style format: %d -> %u
29725         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29726         rather than %d, to match the type of "line_number", unsigned int.
29728 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29730         fts: avoid reading beyond the heap allocation
29731         GCC 5.1.1 with -O2 and -fsanitize=address reports
29732         a read of size 4 from a heap object of size 3 is indeed invalid,
29733         though this may be due to incorrect padding assumptions by GCC, see:
29734         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29735         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29736         * modules/fts: Depend on stdalign.
29738 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29740         savedir: avoid undefined behavior in qsort call
29741         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29742         "runtime error: null pointer passed as argument 1,
29743          which is declared to never be null"
29744         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29746 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29748         userspec: avoid undefined behavior in gettext call
29749         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29750         "runtime error: null pointer passed as argument 2,
29751          which is declared to never be null"
29752         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29754 2015-06-20  Glenn Morris  <rgm@gnu.org>
29756         gitlog-to-changelog: improve gitmerge.el commits
29757         Let the Emacs ChangeLog generation process exclude "skipped"
29758         messages from merge commits (Bug#20717).
29759         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29761 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29763         wchar: fix MinGW compilation warnings
29764         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29765         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29766         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29768 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29770         uniname/uniname-tests: use pristine data files
29771         For copyright and maintenance reasons, use the data files from UCD
29772         without modification.
29773         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29774         (getfield): Remove.
29775         (aliases_count): New global variable.
29776         (fill_names): Skip comments and empty lines in the input.  Don't
29777         use getfield.
29778         (fill_aliases): Likewise.
29779         (main): Change the expected command line arguments to:
29780         NAMES... ["--" ALIASES...].
29781         * tests/uniname/test-uninames.sh: Adjust to the change in
29782         test-uninames.c.
29783         * tests/uniname/UnicodeDataNames.txt: Remove.
29784         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29785         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29786         file from Unicode 8.0.0.
29788 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29790         linked-list, linkedhash-list: avoid compiler warnings
29791         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29792         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29794 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29796         libunistring: bump minimum version to 0.9.6
29797         * all modules depending on updated Unicode data: Regenerate.
29798         The modules are listed by a script that does:
29799         - for each file listed by: git show --oneline --name-only 705f4efc
29800           - deduce the containing modules, based on "Files:"
29801         - deduce the modules which depend on the containing modules, based
29802           on "Depends-on:"
29804 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29806         uniname/uniname: update to Unicode 8.0.0
29807         * lib/uniname/uninames.h: Regenerate.
29808         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29809         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29811 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29813         libunistring: update to Unicode 8.0.0
29814         * lib/gen-uni-tables.c (SIZEOF): New macro.
29815         (output_numeric): Increase the maximum number of fractions from
29816         128 to 160.  Increase the level3 value width from 7 bits to 8
29817         bits.  Use SIZEOF instead of a hard-coded integer.
29818         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29819         0x28000.
29820         (fill_blocks): Increase the maximum number of blocks from 256 to
29821         384.  Use SIZEOF instead of a hard-coded integer.
29822         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29823         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29824         value width.
29825         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29826         a new case added to LBP22.
29827         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29828         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29829         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29830         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29831         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29832         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29833         lib/uniwidth/width.c.
29834         * all generated files under lib/uni* and tests/uni*: Regenerate.
29836 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29838         gnu-web-doc-update: add --mirror to remove stale files
29839         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29840         out of date files from the CVS server.  Since this is usually
29841         appropriate, a prompt is given when the option is not specified,
29842         along with the `cvs remove` command that would be run.
29844 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29846         acl-permissions: pacify -Wsuggest-attribute=const
29847         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29848         * lib/acl-internal.h (free_permission_context):
29849         Declare with attribute const if ! (defined USE_ACL &&
29850         (HAVE_ACL_GET_FILE || defined GETACL)).
29852         fsync: document AIX misbehavior
29853         * doc/posix-functions/fsync.texi (fsync):
29854         Document failure on AIX with read-only file descriptor.
29856 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29858         stdio: Don't redefine gets when using C++
29859         * lib/stdio.in.h (gets): Disable warning on C++.
29861 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29863         acl-permissions: port to AIX, C89 HP-UX
29864         Problems reported by Michael Felt.
29865         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29866         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29867         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29868         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29869         Add cast for AIX, whose system calls are declared to accept
29870         char * even though the arguments are really char const *.
29871         * lib/get-permissions.c (get_permissions):
29872         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29873         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29874         that broke a build.
29875         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29876         Rework types to pacify xlc.
29878 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29880         vasprintf-posix: avoid compiling vasnprintf where possible
29881         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29882         module where not required.  For example on a GNU/Linux system
29883         when gnulib-tool is run with the --conditional-dependencies option.
29885 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29887         file-has-acl: fix build on Mac OS X 10
29888         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29889         which has an incompatible 6 parameter getxattr() call.
29890         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29891         call on Mac OS X >= 10.4.
29892         * doc/glibc-functions/fgetxattr.texi: Likewise.
29893         * lib/file-has-acl.c: Revert to more complete combined check.
29894         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29895         Reported by Jack Howarth.
29897 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29899         prefix-gnulib-mk: remove no longer needed special case
29900         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29901         continued lib_SOURCES lines are no longer present,
29902         so special case handling of such entries is not required.
29904 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29906         acl: don't depend on the deprecated qacl module
29907         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29909 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29911         gnulib-tool: concatenate lib_SOURCES to a single line
29912         * gnulib-tool: Refactor the line merging sed logic,
29913         and use that to output a single lib_SOURCES line for each module.
29914         gnulib using projects often postprocess this output to prepend
29915         subdir paths to each item, and having a single line simplifies this
29916         processing allowing better decoupling from the gnulib-tool output.
29918 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29920         pthread_sigmask: discount system version if a simple macro (trivial)
29921         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29922         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29923         function to ensure it's available.
29925 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29927         readlinkat: avoid OS X 10.10 trailing slash bug
29928         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29929         has this bug.
29930         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29931         that OS X 10.10 has this function.
29932         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29933         as done for readlink().
29934         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29935         trailing slash bug, and assume readlinkat() has the same issue.
29936         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29937         rather than the correct $gl_cv_decl_readlinkat_works.
29939 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29941         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29942         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29943         module rewrite.
29945         acl-permissions: Fix build on Solaris and Cygwin
29946         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29947         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29948         ace_entries variables have moved into struct permission_context but
29949         they were still accessed as local variables here.
29951 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29953         linkat: avoid OS X 10.10 trailing slash with symlink bug
29954         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29955         causes the symlink to be dereferenced, and if it points
29956         to a non existent file, that file will be created as
29957         a hard link to "path1".
29958         This fixes a test failure in test-linkat.c.
29959         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29960         this case.  The existing workaround in linkat.c for
29961         trailing slash issues, suffices for this case.
29962         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29963         the list of platforms with trailing slash issues.
29965 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29967         unlinkat: handle ignoring of ".." on Darwin 14
29968         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29969         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29970         so handle in the same manner.
29971         * m4/unlinkat.m4: Comment on this Darwin issue.
29972         * doc/posix-functions/unlink.texi: Update the latest version
29973         where the issue was seen.
29974         * doc/posix-functions/unlinkat.texi: Mention this issue.
29975         Fixes a test failure in test-unlinkat.c.
29977 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29979         qacl: split into qcopy-acl and qset-acl
29980         Emacs needs the former, but not the latter.
29981         * modules/acl-permissions: New file, containing most of the old qacl.
29982         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29983         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29984         * modules/qcopy-acl, modules/qset-acl: New files.
29985         * MODULES.html.sh (File system functions):
29986         Mention the new modules, and mention qacl while we're at it.
29988 2015-05-27  Glenn Morris  <rgm@gnu.org>
29990         gitlog-to-changelog: new option --ignore-line
29991         (This patch is imported from the GNU Emacs master.)
29992         This option ignores individual commit lines matching a pattern.
29993         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29995 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29997         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29998         Implement get_permissions and set_permissions primitives for getting all
29999         the permissions of a file, storing them, and later setting them. (In the
30000         minimal case, the permissions consist only of a file mode.) Reimplement
30001         qset_acl and qcopy_acl based on these new primitives: this avoids code
30002         duplication and makes error handling more consistent.
30003         The Solaris and Cygwin code still uses duplicate code paths for setting
30004         a file mode while making sure that no acls exist and setting an explicit
30005         acl; this is no worse than before, but could be cleaned up.  The AIX
30006         code still doesn't read ACLs, it only makes sure that acls don't get in
30007         the way when setting a file mode.
30008         * lib/acl-internal.h (struct permission_context): New data structure.
30009         (get_permissions, set_permissions, free_permission_context): Declare.
30010         * lib/acl-internal.c (free_permission_context): New helper function.
30011         * lib/get-permissions.c (get_permissions): New helper function split off
30012         from qcopy_acl.
30013         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
30014         AIX, set a file's permissions based only on a file mode.
30015         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
30016         other platforms construct a temporary acl from the file mode and set
30017         that acl in the same way as setting an acl read from the source file.
30018         This should help avoid code duplication and inconsistent / buggy
30019         behavior.
30020         (set_acls): New helper function Split off from qcopy_acl.
30021         (chmod_or_fchmod): Moved here from qset-acl.c.
30022         (set_permissions): New helper function.
30023         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
30024         set_permissions.
30025         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
30026         * modules/qacl: Add get-permissions.c and set-permissions.c.
30028         file-has-acl: Split feature tests again (Bug#20667)
30029         * lib/file-has-acl.c: Instead of testing for
30030         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
30031         define them when needed.
30032         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
30033         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
30035 2015-05-27  Pádraig Brady  <P@draigBrady.com>
30037         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
30038         This avoids a conflict with "FORTIFY_SOURCE" variants
30039         of the string functions when they're replaced on NetBSD-6.0.1
30040         and Darwin-14.3.0 at least.
30041         * lib/string.in.h: Avoid including our "lib/string.h" while
30042         including the system <string.h>.
30044 2015-05-26  Eric Blake  <eblake@redhat.com>
30046         stdio: limit __gnu_printf__ witness to gcc 4.4+
30047         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
30048         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
30050         error: use correct printf attributes on mingw
30051         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
30053         inttypes: force correct mingw PRIdMAX even without <stdio.h>
30054         * modules/inttypes (Depends-on): Require extensions, so that mingw
30055         always uses GNU style inttypes.
30056         * lib/inttypes.in.h: On mingw, include <stdio.h>.
30058         stdio: fix probe on mingw under gcc 5.1
30059         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
30060         around new gcc preprocessor rules.
30062 2015-05-07  Glenn Morris  <rgm@gnu.org>
30064         gitlog-to-changelog: parse "Tiny-change"
30065         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
30066         "Copyright-paperwork-exempt".  (Bug#20324)
30068 2015-05-06  Pádraig Brady  <P@draigBrady.com>
30070         doc: document glibc posix_fallocate() issues
30071         * doc/posix-functions/posix_fallocate.texi: Mention the
30072         glibc efficiency problems and issues with NFS.
30074 2015-05-05  Karl Berry  <karl@freefriends.org>
30076         * build-aux/gendocs.sh (usage): document new css default
30077         for HTML (--htmlarg).
30079 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30081         extern-inline: no need for workaround in GCC 5.1
30082         * doc/extern-inline.texi (extern inline):
30083         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30084         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
30085         around these bugs in GCC 5.1 and later.  Maybe in a decade or
30086         two we can remove these workarounds.
30088 2015-04-28  Pádraig Brady  <P@draigBrady.com>
30090         eealloc, pagealign_alloc, xalloc: avoid clang warnings
30091         Avoid [-Wunknown-attributes] warnings like:
30092         warning: unknown attribute '__alloc_size__' ignored
30093         * lib/xalloc.h: Don't use the __alloc_size__  attribute
30094         with clang, as support has been fully removed as of clang 3.5:
30095         https://github.com/llvm-mirror/clang/commit/c047507a
30096         * lib/eealloc.h: Likewise.
30097         * lib/pagealign_alloc.h: Likewise.
30099 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30101         tests: pacify GCC 5.1's stricter printf checking
30102         * tests/test-dirname.c (main):
30103         * tests/test-getaddrinfo.c (simple):
30104         * tests/test-getlogin.c (main):
30105         * tests/test-getndelim2.c (main):
30106         * tests/test-inttostr.c (CK):
30107         * tests/test-md5.c (main):
30108         * tests/test-read-file.c (main):
30109         * tests/test-sha1.c (main):
30110         Fix mismatches between printf format and value signedness.
30111         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
30112         Remove, as CAST_VAL always returned a value of type uintmax_t.
30114         fts: port to GCC 5.1 with --enable-gcc-warnings
30115         Without this fix, GCC 5.1 (correctly) warns about a subscript
30116         error on the fts_name component of FTSENT.  It's actually a
30117         flexible member, so define it that way on C99 or later hosts.
30118         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
30119         structure that now has a flexible array member.
30120         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
30121         (FTSENT): fts_name is now flexible on C99-or-later platforms.
30122         * modules/fts (Depends-on): Add flexmember.
30124 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
30126         file-has-acl: port to CentOS 6
30127         Problem reported by Tom G. Christensen in:
30128         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
30129         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
30130         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
30131         HAVE_GETXATTR.
30132         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
30133         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
30134         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
30135         file-has-acl.c actually needs.
30137 2015-04-26  Pádraig Brady  <P@draigBrady.com>
30139         file-has-acl: always return false when ACLs aren't supported
30140         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
30141         change the GNU/Linux getxattr path, to transform "not supported"
30142         errors to a false return rather than an error.  This is handled
30143         within file_has_acl() due to the platform specific tests to
30144         determine if ACLs are not supported.
30146 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
30148         gettext: propagate po/Makefile.in.in too
30149         * build-aux/po/Makefile.in.in: Copy from latest gettext.
30150         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
30151         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
30152         between Makefile.in.in and the gettext-runtime m4 files.
30154 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
30156         file-has-acl: new module, split from acl
30157         And add a new module file-has-acl-tests to match.
30158         I ran into a problem with the recent changes to the acl module,
30159         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
30160         When using the fixed version with Emacs, I discovered that
30161         file-has-acl wasn't separated out well enough for Emacs (e.g., it
30162         had multiple libraries, but needed only one), so I fixed that too.
30163         * NEWS: Document this incompatible change.
30164         * modules/file-has-acl, modules/file-has-acl-tests: New files.
30165         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
30166         Initialize gl_need_lib_has_acl.
30167         (gl_FUNC_ACL): Require it.
30168         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
30169         Move the file-has-acl.c-relevant stuff to ...
30170         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
30171         use_xattrs = 0' typo, and omit some needless work.  Set
30172         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
30173         when gl_FUNC_ACL is called.
30174         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
30175         (Link): Remove $(LIB_HAS_ACL).
30176         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
30177         (check_PROGRAMS): Move stuff relevant to file-has-acl to
30178         modules/file-has-acl-tests.
30179         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
30181         manywarnings: add GCC 5.1 warnings
30182         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
30183         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
30184         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
30185         -Wsuggest-override, -Wuse-without-only.  Change
30186         -Wnormalized=... operands to match 5.1.
30187         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
30188         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
30189         -Wdiscarded-qualifiers, -Wformat-signedness,
30190         -Wincompatible-pointer-types, -Wint-conversion,
30191         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30192         -Wshift-count-negative, -Wshift-count-overflow,
30193         -Wsizeof-array-argument, -Wsuggest-final-methods,
30194         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30195         and add -Warray-bounds=2 as a special case.
30197 2015-04-21  Simon Josefsson  <simon@josefsson.org>
30199         doc: update FDL template to match FDL examples.
30200         * doc/alloca-opt.texi:
30201         * doc/alloca.texi:
30202         * doc/c-ctype.texi:
30203         * doc/c-strcase.texi:
30204         * doc/c-strcaseeq.texi:
30205         * doc/c-strcasestr.texi:
30206         * doc/c-strstr.texi:
30207         * doc/c-strtod.texi:
30208         * doc/c-strtold.texi:
30209         * doc/ctime.texi:
30210         * doc/error.texi:
30211         * doc/gcd.texi:
30212         * doc/gnulib-tool.texi:
30213         * doc/inet_ntoa.texi:
30214         * doc/intprops.texi:
30215         * doc/lib-symbol-visibility.texi:
30216         * doc/maintain.texi:
30217         * doc/parse-datetime.texi:
30218         * doc/quote.texi:
30219         * doc/regexprops-generic.texi:
30220         * doc/standards.texi: Remove spurious 'with' in FDL license
30221         template.
30223 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
30225         lstat: fix cross-compilation 'ln -s' problem
30226         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
30227         Have the test program call 'symlink' rather than a separate
30228         script run 'ln -s'; this is more likely to work in
30229         cross-compilation environments.  Reported by Pavel Fedin in:
30230         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
30232 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
30234         gendocs.sh: default to a common CSS style sheet for HTML output
30235         * build-aux/gendocs.sh (htmlarg): Change default value.
30237 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
30239         gnulib-tool: output bold attribute more portably
30240         * gnulib-tool (func_show_module_list): Change hexadecimal
30241         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
30242         encoded numbers as arguments to `printf' is not portable,
30243         and is not claimed by POSIX.  This is the case with FreeBSD.
30245 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30247         qacl: Simplify HP-UX acl_nontrivial check
30248         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
30249         acl_nontrivial. Check if the acl has at most three entries instead (it must
30250         have exactly three entries according to the HP-UX documentation). Ignore
30251         uids and gids as long as an entry is either for a user (i.e., the owner),
30252         a group (i.e., the owning group), or others.
30253         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
30254         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
30256 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
30258         acl: On Linux, check for acls without libacl
30259         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
30260         library function to check for the presence of acls, avoiding a library.
30261         * lib/file-has-acl.c: Include xattr headers if we have them.
30262         (file_has_acl): On Linux, use getxattr().
30263         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
30264         file_has_acl(). Check for xattr headers and getxattr().
30266 2015-04-14  Ángel González  <keisial@gmail.com>
30268         tempname: avoid unused parameter warnings (trivial)
30269         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
30270         (try_nocreate): Likewise.
30272 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
30274         fseeko: fix build failure on NetBSD >= 6 (trivial)
30275         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
30276         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
30278 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30280         gitlog-to-changelog: port to MS-Windows
30281         * build-aux/gitlog-to-changelog (git_dir_option):
30282         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
30283         MS-Windows Perl.  Reported by Eli Zaretskii in:
30284         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
30286 2015-04-07  Karl Berry  <karl@gnu.org>
30288         gendocs: new option --tex for passing args to texi2dvi.
30289         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
30290         (TEXI2DVI): cut to just command name.
30291         (usage): mention new option, and update copyright.
30292         <generate_tex>: use it.
30294 2015-04-07  Karl Berry  <karl@gnu.org>
30296         * config/srclistvars.sh (GETTEXT): new definition.
30297         * config/srclist.txt: use it for gettext .m4 files.
30298         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
30299         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
30300         and continuing into April.
30302 2015-04-07  Daiki Ueno  <ueno@gnu.org>
30304         uniname/uniname-tests: fix failure due to alias
30305         Reported by Jack Howarth in:
30306         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
30307         * tests/uniname/test-uninames.c (name_has_alias): New function.
30308         (test_inverse_lookup): Exclude character name with valid alias,
30309         from randomly generated character names.
30310         (main): Fill unicode_aliases before calling test functions.
30312 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
30314         hash: remove deprecated hash_insert0 function
30315         * lib/hash.h (hash_insert0): Remove deprecated function.
30316         * lib/hash.c (hash_insert0): Likewise.
30318 2015-04-02  Pádraig Brady  <P@draigBrady.com>
30320         mountlist: remove dependency on libmount
30321         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
30322         directly, rather than depending on libmount, which has many
30323         dependencies due to its dependence on libselinux, as detailed at:
30324         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
30325         Note we restrict this to __linux__ as that's probably where this
30326         interface will remain.  If ever porting, it would be best
30327         to first pull the makedev() wrapper from coreutils to a gnulib module.
30328         Note also we don't add a getline dependency to the mountlist module,
30329         as all Linux versions are sufficient.
30331 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
30333         stddef: port to pre-C11 GCC on x86
30334         On this platform, max_align_t should have an alignment of 8 even
30335         though the storage alignments of double, long, etc. max out at 4.
30336         Inspired by a comment of Andreas Schwab's here:
30337         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
30338         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
30339         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
30340         * tests/test-stddef.c: Test __alignof__ too, if available.
30342 2015-03-24  Pádraig Brady  <P@draigBrady.com>
30344         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
30345         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
30347 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
30349         yesno: make EOL optional in ENABLE_NLS case also (trival)
30350         * lib/yesno.c (yesno): Check for EOL before replacing.
30351         * tests/test-yesno.sh: Add a test case (test along with gettext).
30353 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
30355         fdopendir-tests: test it does not close its arg
30356         * tests/test-fdopendir.c (main): Test that fdopendir does not
30357         close its argument.  From a suggestion by David Grayson in:
30358         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
30360 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30362         gitlog-to-changelog: trim trailing white space
30363         * build-aux/gitlog-to-changelog (main):
30364         Trim trailing white space from commit message lines.
30365         This is helpful for processing the GNU Emacs repository,
30366         which dates back to 1985 and contains a lot of such lines.
30368         gitlog-to-changelog: new option --ignore-matching
30369         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30370         Support new option --ignore-matching=PAT, which ignores all
30371         commit messages whose first line matches PAT.
30373 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30375         fdopendir: port better to MinGW
30376         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30377         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30378         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30379         * modules/fdopendir (Depends-on): Add dirfd.
30381 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30383         fdopendir: fix typo in comment
30384         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30386 2015-03-09  Eric Blake  <eblake@redhat.com>
30388         error: document all entry points provided
30389         * doc/glibc-functions/error_print_progname.texi
30390         (error_print_progname): Mention the error module.
30391         * doc/glibc-functions/error_at_line.texi (error_at_line):
30392         Likewise.
30393         * doc/glibc-functions/error_message_count.texi
30394         (error_message_count): Likewise.
30395         * doc/glibc-functions/error_one_per_line.texi
30396         (error_one_per_line): Likewise.
30398 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30400         vasnprintf: pacify clang 3.5.0
30401         Problem reported by Werner Lemberg in:
30402         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30403         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30404         The casts aren't needed, since the characters in question are ASCII.
30406 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30408         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30409         * lib/dirent--.h (GNULIB_defined_opendir):
30410         * lib/dirent.in.h (GNULIB_defined_opendir)
30411         (GNULIB_defined_closedir):
30412         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30413         #undef only if Gnulib defined it.
30415         poll: port to MSVC v18 on MS-Windows 8.1
30416         Problem reported by Gisle Vanem in:
30417         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30418         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30419         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30420         Add sys_socket.
30422 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30424         tests: support stderr verification with returns_()
30425         * tests/init.sh (returns_): Disable tracing for this wrapper
30426         function, so that stderr of the wrapped command is unchanged,
30427         allowing for verification of the contents.
30429 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30431         passfd: avoid valgrind uninitalised data warning
30432         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30433         to include just the fd we've initialized, rather than including
30434         the extra space used for alignment.
30436 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30438         uniwbrk/u32-wordbreaks-tests: fix copyright
30439         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30441         dup2: doc and test for Android bug
30442         Reported by Kevin Cernekee in:
30443         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30444         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30445         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30447 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30449         Replace dup2() on Android
30450         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30451         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30452         fails.  Using rpl_dup2() fixes this because it has an explicit test
30453         for this condition.
30455 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30457         Android doesn't define RLIM_SAVED_*
30458         Portability problem reported by Kevin Cernekee in:
30459         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30460         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30461         Mention the portability problem.
30462         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30463         Define if not defined.
30464         * m4/dup2.m4 (gl_FUNC_DUP2):
30465         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30466         Likewise.
30468 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30470         vasnprintf-posix-tests: use consistent test
30471         * tests/test-vasnprintf-posix.c (test_function):
30472         Use "<" in assert instead of "<=", for consistency with other tests.
30474 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30476         printf, isinf, etc.: noncanonical != NaN
30477         Do not require that isinf, printf, etc. treat noncanonical
30478         values as NaNs.  Instead, require only that they do not crash.
30479         Problem reported by Joseph Myers in:
30480         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
30481         * doc/posix-functions/dprintf.texi (dprintf):
30482         * doc/posix-functions/fprintf.texi (fprintf):
30483         * doc/posix-functions/isfinite.texi (isfinite):
30484         * doc/posix-functions/isinf.texi (isinf):
30485         * doc/posix-functions/isnan.texi (isnan):
30486         * doc/posix-functions/printf.texi (printf):
30487         * doc/posix-functions/snprintf.texi (snprintf):
30488         * doc/posix-functions/sprintf.texi (sprintf):
30489         * doc/posix-functions/vdprintf.texi (vdprintf):
30490         * doc/posix-functions/vfprintf.texi (vfprintf):
30491         * doc/posix-functions/vprintf.texi (vprintf):
30492         * doc/posix-functions/vsnprintf.texi (vsnprintf):
30493         * doc/posix-functions/vsprintf.texi (vsprintf):
30494         Document this.
30495         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
30496         * m4/isinf.m4 (gl_ISINFL_WORKS):
30497         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
30498         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
30499         * tests/test-isfinite.c (test_isfinitel):
30500         * tests/test-isinf.c (test_isinfl):
30501         * tests/test-isnan.c (test_long_double):
30502         * tests/test-isnanl.h (main):
30503         * tests/test-snprintf-posix.h (test_function):
30504         * tests/test-sprintf-posix.h (test_function):
30505         * tests/test-vasnprintf-posix.c (test_function):
30506         * tests/test-vasprintf-posix.c (test_function):
30507         Test only that noncanonical values do not cause crashes, not that
30508         they are treated as NaNs.  In some cases this means a larger
30509         output buffer is needed.
30511 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
30513         fts: remove redundant close() (trivial)
30514         * lib/fts.c (fts_read): Remove redundant call to close().
30515         Spotted by coverity.
30517 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30519         getdtablesize: port better for Android
30520         Problem reported by Kevin Cernekee in:
30521         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
30522         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
30523         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
30524         Instead, just use getrlimit, taking care to avoid Cygwin bug.
30526         poll: fixes for large fds
30527         * lib/poll.c (poll): Don't check directly for NFD too large.
30528         Don't rely on undefined behavior in FD_SET when an arg exceeds
30529         FD_SETSIZE.  Always set revents afterwards, even if to zero.
30530         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
30531         as that makes the test a bit stricter.
30533 2015-02-19  Kevin Cernekee  <cernekee@google.com>
30535         fcntl: Fix cross compiling
30536         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
30537         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
30539 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
30541         dup2, fcntl: cross-compile better for Android
30542         Problem reported by Kevin Cernekee in:
30543         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
30544         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
30545         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
30546         there's little need to cross-compile for older kernels nowadays.
30547         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
30548         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
30550 2015-02-18  Pádraig Brady  <P@draigBrady.com>
30552         getopt: don't crash on memory exhaustion
30553         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
30554         memory exhaustion.  In the _LIBC case we use alloca() as is
30555         already done in glibc, so we don't need to consider the separate
30556         error path in that awkward case.  Also fix a memory leak when
30557         ambiguous options are present.
30558         Reported by Tobias Stoeckmann
30560 2015-02-17  Mike Miller  <mtmiller@ieee.org>
30562         tempname: allow compilation with C++ (trivial)
30563         * lib/tempname.h [C++]: Specify extern "C" linkage.
30564         * lib/tempname.h (try_tempname):
30565         * lib/tempname.c (__try_tempname, __gen_tempname):
30566         Rename 'try' to 'tryfunc'.
30568 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
30570         dup2, fcntl: port to AIX
30571         * m4/dup2.m4 (gl_FUNC_DUP2):
30572         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30573         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
30574         The former works on AIX 7.1 but the latter does not.
30575         Also, this may work better with Android; see:
30576         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
30578 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
30580         getdtablesize, dup2, fcntl: port to Android
30581         Problem reported by Kevin Cernekee in:
30582         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
30583         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
30584         Mention that getdtablesize doesn't work on Android.
30585         * lib/getdtablesize.c: Use getrlimit substitute only if
30586         getdtablesize is declared.  This should suffice for Cygwin
30587         while not breaking Android.
30588         * m4/dup2.m4 (gl_FUNC_DUP2):
30589         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30590         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
30591         standardized but the latter is not, and sysconf works on Android.
30592         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
30593         Also check that getdtablesize is declared.
30594         This removes the need for a special case for Android.
30596 2015-02-16  Kevin Cernekee  <cernekee@google.com>
30598         localename: Implement gl_locale_name_thread_unsafe for Android
30599         * lib/localename.c: Android API level >= 21 supports two hardcoded
30600         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
30601         the internal __locale_t struct.
30603 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
30605         fts: avoid crash when a cycle is added while traversing
30606         This could be triggered by auto-mounting a recursive bind mount.
30607         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
30608         * lib/fts.c (fts_read): Avoid removing the original hash table item
30609         when leaving a directory that caused a cycle, and preserve the FTS_DC
30610         flag.
30612 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30614         uniname/uniname: support character alias
30615         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30616         Generate one-way mapping from aliases to codepoints in the
30617         generated tables.  Special case variation selectors to reduce
30618         table size.
30619         * lib/uniname/uniname.c (unicode_character_name): Special case
30620         variation selectors.
30621         (unicode_name_character): Special case variation selectors and
30622         their aliases.
30623         * lib/uniname/uninames.h: Regenerate.
30624         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
30625         * modules/uniname/uniname-tests (Files): Add
30626         tests/uniname/NameAliases.txt.
30627         * tests/uniname/test-uninames.c: Mark as static.
30628         (ALIASLEN): Define.
30629         (struct unicode_alias): New struct.
30630         (unicode_aliases): New variable.
30631         (fill_aliases): New function.
30632         (test_alias_lookup): New test function.
30633         (main): Run the 'test_alias_lookup' test if the second argument is
30634         given.
30635         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
30636         second argument.
30638 2015-02-11  Kevin Cernekee  <cernekee@google.com>
30640         Fix FILE struct compatibility with Android API level >= 21
30641         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
30642         __sferror.  Recent versions of Bionic's stdio.h no longer define
30643         __sferror.
30644         * lib/fbufmode.c: Likewise.
30645         * lib/fflush.c: Likewise.
30646         * lib/fpurge.c: Likewise.
30647         * lib/freadable.c: Likewise.
30648         * lib/freadahead.c: Likewise.
30649         * lib/freading.c: Likewise.
30650         * lib/freadptr.c: Likewise.
30651         * lib/freadseek.c: Likewise.
30652         * lib/fseeko.c: Likewise.
30653         * lib/fseterr.c: Likewise.
30654         * lib/fwritable.c: Likewise.
30656         Assume unbroken ungetc() on Android
30657         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
30658         test case passed when running on an Android host, and the code
30659         hasn't really changed since 2009.
30661         getdtablesize: Fix Android build
30662         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
30663         versions have this symbol in the .so library (at least 32-bit
30664         platforms) but are missing the declaration in the header file,
30665         causing the m4 logic to guess incorrectly.
30667         localename: Fix Android build
30668         * modules/localename (Depends-on): Add langinfo.
30670         getugroups: Fix Android build
30671         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
30672         functions.
30674         euidaccess: Fix Android build
30675         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
30676         AT_EACCESS gets declared.
30678         linkat_nofollow: Add fallback case for cross compiling
30679         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30681         net_if: Handle content-free <net/if.h> system headers
30682         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30683         struct if_nameindex.  If not, enable the replacement header.
30685         signal_h: Fix Android build
30686         * lib/signal.in.h: Add Android to the list of platforms that declare
30687         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30689         duplocale: Fix Android build of duplocale-tests
30690         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30691         is included by test-duplocale.c (but not by duplocale.c).
30692         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30693         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30694         * doc/posix-headers/monetary.texi: Add Android to the list of
30695         platforms missing monetary.h.
30697 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30699         tests: avoid recent -Werror=unused-variable regression in test-locale
30700         * tests/test-locale.c (main): Reference the variable to avoid the
30701         "unused variable" warning.
30703 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30705         maint: various whitespace cleanups in tempname
30706         * lib/tempname.c: Normalize spacing and line length.
30707         * lib/tempname.h: Likewise.
30708         * modules/tempname: Likewise.
30710 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30712         tests: provide returns_() to simplify exit status checking
30713         * tests/init.sh (returns_): A new function for use in tests,
30714         to allow for easier checking of return values, where you expect
30715         a command to exit with failure status.  By checking for a particular
30716         exit code, you don't hide any crashes for example.
30718 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30720         mountlist: only use libmount when specified
30721         There are currently many shared libs dependencies introduced by
30722         libmount with associated runtime and virt mem overhead.
30723         Therefore don't enable by default.
30724         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30726 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30728         uniname/unimame-tests: don't link with -lunistring
30729         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30730         $(LIBUNISTRING).  Document the rationale why we need to
30731         conditionalize the test.
30733 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30735         fstrcmp: don't assume strlen < INT_MAX
30736         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30737         (uintptr_t): Remove, as we're now assuming stdint.
30738         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30739         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30740         if the input string is long.
30741         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30742         uintptr_t to size_t when the underlying value is a pointer casted
30743         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30744         * modules/fstrcmp (Depends-on): Add stdint.
30746         diffseq: prefer ptrdiff_t to ssize_t
30747         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30748         ptrdiff_t is the natural type for signed indexes.
30749         On a few older platforms, ssize_t is narrower than size_t.
30751         xalloc: fix typo that suppressed warnings
30752         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30753         This typo, introduced a couple of years ago, mistakenly suppressed
30754         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30755         -Wmissing-declarations warnings.
30757         full-read: fix license notice typo
30758         * lib/full-read.h: Remove a stray line in the license notice.
30759         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30761         crypto/gc: fix a -Wswitch warning
30762         Reported by Bruce Korb in:
30763         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30764         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30766 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30768         gnulib-tool: fix handling of patch(1) diagnostics
30769         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30770         as otherwise gnulib-tool will reparse that output and attempt
30771         to lookup modules.
30773 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30775         bootstrap: exit immediately upon gnulib-tool failure
30776         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30777         This was noticed when gnulib-tool exited early due to failure
30778         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30779         but various confusing errors were then given as the build proceeded.
30781 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30783         symlinkat: include all required header files
30784         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30785         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30786         Reported at https://savannah.gnu.org/bugs/index.php?44151
30787         and by Jack Howarth.
30789 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30791         localename: support Solaris 12 and illumos
30792         * lib/localename.c (gl_locale_name_thread_unsafe): call
30793         getlocalename_l() on newer __sun platforms.
30794         Reported by Alexander Pyhalov.
30795         Fix suggested by Rich Burridge.
30797 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30799         locale: fix tests on illumos (trivial)
30800         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30801         so move from global scope to main().
30803 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30805         unictype: avoid undefined left-shift behavior
30806         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30807         gcc's -fsanitize=shift and running its tests triggered:
30808           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30809             places cannot be represented in type 'int'
30810         Cast LHS to 'unsigned int' after integer promotion.
30811         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30812         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30814 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30816         libunistring: bump version of unitypes dependants
30817         Due to the header file search order, all the headers which depend
30818         on unitypes.h need to be generated, when the preinstalled
30819         libunistring is older.
30820         * modules/unicase/base (configure.ac): Bump minimum version to
30821         0.9.4.
30822         * modules/uniconv/base (configure.ac): Likewise.
30823         * modules/unilbrk/base (configure.ac): Likewise.
30824         * modules/uninorm/base (configure.ac): Likewise.
30825         * modules/unistdio/base (configure.ac): Likewise.
30826         * modules/unistr/base (configure.ac): Likewise.
30827         * modules/uniwbrk/base (configure.ac): Likewise.
30828         * modules/uniwidth/base (configure.ac): Likewise.
30830 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30832         unictype/category-none: fix link with libunistring
30833         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30834         prefixed with "libstring_" when compiled as part of libunistring.
30835         To avoid undefined symbol at link time, increase the minimum
30836         version when the dependant modules are updated.
30837         * modules/unictype/category-none (configure.ac): Bump minimum
30838         version to 0.9.5.
30840 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30842         unitypes: fix build with installed libunistring
30843         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30844         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30845         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30847 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30849         time: port to MinGW32 3.21
30850         Problem reported by Eli Zaretskii in:
30851         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30852         * lib/time.in.h:
30853         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30854         * modules/time (Depends-on):
30855         Fall back on unistd.h if the other include files don't define
30856         struct timespec.
30858         update-copyright: apply to self
30859         * build-aux/update-copyright: Fix copyright date.  How ironic!
30861 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30863         libunistring: update to Unicode 7.0.0
30864         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30865         Manichaean names.
30866         * lib/unictype/joininggroup_name.h: Likewise.
30867         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30868         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30869         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30870         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30871         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30872         enum values.
30873         (is_property_alphabetic): Accept newly added characters to
30874         cuneiform numeric signs.
30875         (is_property_default_ignorable_code_point): Reject U+0605.
30876         (FIELDLEN): Increase from 120 to 160.
30877         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30878         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30879         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30880         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30881         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30882         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30883         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30884         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30885         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30886         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30887         U+1E8D0..U+1E8D6.
30888         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30889         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30890         lib/uniwidth/width.c.
30891         * all generated files under lib/uni* and tests/uni*: Regenerate.
30893 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30895         libunistring: update to Unicode 6.3.0
30896         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30897         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30898         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30899         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30900         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30901         Update WB5, WB9, WB10, WB13a, and WB13b.
30902         * tests/uniwbrk/test-uc-wordbreaks.c
30903         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30904         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30905         (UC_BIDI_PDI): New enumeration values.
30906         (bidi_category_byname): Support those enum values.
30907         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30908         dedicated property assigned.
30909         (is_property_case_ignorable): Check 0x0027.
30910         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30911         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30912         (output_wbp): Support those enum values.
30913         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30914         (UC_BIDI_PDI): New enumeration values.
30915         * lib/unictype/bidi_byname.gperf: Add those property names.
30916         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30917         U+180E, U+1A1B, and U+2066..U+2069.
30918         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30919         lib/uniwidth/width.c.
30920         * all generated files under lib/uni* and tests/uni*: Regenerate.
30922 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30924         libunistring: update to Unicode 6.2.0
30925         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30926         (unilbrk_table): Adjust table size.
30927         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30928         for LBP_RI.
30929         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30930         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30931         Normalize table index skipping ignored properties.
30932         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30933         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30934         the table.
30935         * lib/uniwbrk/wbrktable.h: Adjust table size.
30936         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30937         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30938         Support rule GB8a.
30939         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30940         * tests/unigbrk/test-uc-is-grapheme-break.c
30941         (graphemebreakproperty_to_string): Support GBP_RI.
30942         * tests/uniwbrk/test-uc-wordbreaks.c
30943         (wordbreakproperty_to_string): Support WBP_RI.
30944         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30945         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30946         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30947         LBP_AL to LBP_ID.
30948         (output_lbp): Support LBP_RI.
30949         (WBP_RI): New enumeration value.
30950         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30951         (output_wbp): Support WBP_RI.
30952         (GBP_RI): New enumeration value.
30953         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30954         * all generated files under lib/uni* and tests/uni*: Regenerate.
30956 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30958         libunistring: update to Unicode 6.1.0
30959         * lib/gen-uni-tables.c (output_joining_group): Switch to
30960         3-level table to accommodate joining groups defined with higher
30961         codepoint value.  Since there are only 88 groups defined in
30962         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30963         (get_lbp): Update for Unicode 6.1.0.
30964         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30965         3-level table.
30966         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30967         joining group name.
30968         * lib/unictype/joininggroup_name.h: Likewise.
30969         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30970         (unilbrk_table): Adjust table size.
30971         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30972         for LBP_HL.
30973         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30974         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30975         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30976         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30977         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30978         U+302E..U+302F.
30979         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30980         lib/uniwidth/width.c.
30981         * all generated files under lib/uni* and tests/uni*: Regenerate.
30982         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30984 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30986         uniwbrk/u32-wordbreaks-tests: add conformance test
30987         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30988         tests/uniwbrk/test-uc-wordbreaks.c,
30989         tests/uniwbrk/test-uc-wordbreaks.sh, and
30990         tests/uniwbrk/WordBreakTest.txt.
30991         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30992         test-uc-wordbreaks to $(check_PROGRAMS), and define
30993         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30994         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30995         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30997 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30999         uniwbrk: ignore Extended/Format characters at BOL not BOS
31000         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
31001         characters if the previous character property is one of
31002         WBP_NEWLINE, WBP_CR, and WBP_LF.
31004 2015-01-11  Jim Meyering  <meyering@fb.com>
31006         test-strstr.c: avoid a trivial leak
31007         * tests/test-strstr.c (main): Free haystack.
31009         update-copyright: recognize groff's \(co marker
31010         * build-aux/update-copyright (circle_c_re): Also accept
31011         uses of \(co, as found in gzip.1.
31013 2015-01-08  Pádraig Brady  <P@draigBrady.com>
31015         maint.mk: fix compatibility with OS X nm
31016         * top/maint.mk (_gl_tight_scope): Use the -g option to
31017         show exported items rather than the -e option which is
31018         ignored on all platforms except OS X where it gives an error.
31019         Reported by Assaf Gordon.
31021 2015-01-07  KO Myung-Hun  <komh@chollian.net>
31023         localcharset: improve charset detection on OS/2
31024         Use system codepage when appropriate.  Map OS/2 codepages to
31025         GNU canonical charset names if possible.
31026         * lib/config.charset: Don't output aliases if "$os" is os2*.
31027         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
31028         result for OS/2.
31029         (locale_charset) [OS2]: Use system codepage if codeset is omitted
31030         from the locale name which is neither "C" nor "POSIX".
31032 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31034         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
31035         This reverts the last patch but one, as it shouldn't be needed now
31036         that the typo is fixed.
31037         * lib/count-leading-zeros.h (count_leading_zeros_ll):
31038         * lib/count-trailing-zeros.h:
31039         * lib/count-one-bits.h:
31040         Go back to using 64-bit intrinsics.
31042         count-leading-zeros: fix pragma typos
31043         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
31044         Fix typos in declaration of intrinsics when _MSC_VER.
31046 2015-01-06  Pádraig Brady  <P@draigBrady.com>
31048         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
31049         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
31050         intrinsics in this case.
31051         * lib/count-trailing-zeros.h: Likewise.
31052         * lib/count-one-bits.h: Likewise.
31054 2015-01-06  Daiki Ueno  <ueno@gnu.org>
31056         uniname/uniname: update to Unicode 7.0.0
31057         To accommodate new characters added since Unicode 5.1.0, this
31058         changes the internal representation of codepoint ranges.
31059         Previously, we grouped codepoint ranges by manually assigned 4-bit
31060         tag, which only allowed 16 groups.  This removes the limitation by
31061         switching to binary search on a table.  For the detail rationale
31062         and the benchmark results, see:
31063         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
31064         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
31065         to INDEX, as it no longer represents a codepoint.
31066         (range): New struct.
31067         (main): Switch to intervals list from a bit-pattern based
31068         classification.
31069         * lib/uniname/uninames.h: Regenerate.
31070         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
31071         * modules/uniname/base (configure.ac): Bump minimum version to
31072         0.9.5.
31073         * modules/uniname/uniname (configure.ac): Bump minimum version to
31074         0.9.5.
31076 2015-01-05  Eric Blake  <eblake@redhat.com>
31078         doc: update INSTALL from autoconf
31079         * doc/install.texi: Resync from autoconf.
31080         * doc/INSTALL: Reflect recent autoconf update.
31081         * doc/INSTALL.ISO: Likewise.
31082         * doc/INSTALL.UTF-8: Likewise.
31084         stdio: fix use of PRIdMAX on modern mingw
31085         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
31086         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
31087         to work with modern mingw.
31089 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
31091         pthread: detect git mingw builds with only partial pollution
31092         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
31093         pollution, as seen temporarily in Fedora 21.
31095 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31097         lib-symbol-versions: cache script check
31098         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
31099         Cache the check for linker version scripts.
31100         From a suggestion by Christophe Curis in:
31101         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
31103 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
31105         maint: fix grammar nits in propername (trivial change)
31106         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
31107         and use an adequate verb and tense.
31109 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
31111         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31112         * module/gendocs: Add 'doc/gendocs_template_min'.
31114         * build-aux/gendocs.sh: Change email addresses and upstream URLs
31115         from to Gnulib's.
31116         (scripturl, templateurl): Adjust accordingly.
31118 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31120         gendocs: copyright date and version fix
31121         Reported by Karl Berry in:
31122         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
31123         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
31124         Fix copyright date.
31125         * build-aux/gendocs.sh (scriptversion): Update.
31127 2015-01-01  Karl Berry  <karl@gnu.org>
31129         * doc/install.texi,
31130         * build-aux/mdate-sh,
31131         * build-aux/depcomp,
31132         * build-aux/config.guess,
31133         * build-aux/config.sub,
31134         * build-aux/ar-lib,
31135         * build-aux/compile: revert copyright updates (some from last
31136         year) in slaved files.
31138 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31140         version-etc: new year
31141         * doc/gnulib.texi:
31142         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
31143         * all files: Run 'make update-copyright'.
31145 2014-12-30  Pádraig Brady  <P@draigBrady.com>
31147         xstrtol: ensure errno is reset
31148         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
31149         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
31151         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
31153 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31155         utimens: fix dependency typo
31156         * modules/utimens (Depends-on): Remove 'assure'.
31157         This bug was introduced in the recent 'assure' patch.
31159 2014-12-22  Eric Blake  <eblake@redhat.com>
31161         docs: mention why libgen.h is bad
31162         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
31164 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31166         assure: new module
31167         This works better than 'assert' when compiling with -DNDEBUG,
31168         as it avoids some compiler diagnostics in that case.
31169         Reported by Norihiro Tanaka in:
31170         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
31171         * MODULES.html.sh (func_all_modules): Add 'assure'.
31172         * lib/assure.h, modules/assure: New files.
31173         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
31174         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
31175         Prefer 'assure' to 'assert'.
31176         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
31177         * modules/chdir-long, modules/cycle-check, modules/fchdir:
31178         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
31179         Depend on 'assure'.
31181 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
31183         stdalign: port better to HP compilers
31184         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
31185         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
31187         stdalign: work around Apple GCC 4.0 bug
31188         Reported by David Fang in:
31189         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
31190         * lib/stdalign.in.h (_Alignas):
31191         * m4/stdalign.m4 (gl_STDALIGN_H):
31192         Do not use aligned attribute with GCC 4.0 on Apple.
31194 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31196         getcwd: fix test failure on OS X 10.9
31197         * m4/getcwd-path-max.m4: Avoid the replacement if it
31198         won't be effective due to the PATH_MAX limitation of lstat().
31199         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
31200         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
31201         for this case for use in tests, and also exclude this
31202         case when setting REPLACE_GETCWD.
31203         * tests/test-getcwd.c (test_long_name): Restrict the
31204         tested path length so that lstat() will not be passed
31205         a path greater than PATH_MAX.
31206         Also key a test condition on HAVE_OPENAT_SUPPORT rather
31207         than AT_FDCWD, since the latter is set unconditionally
31208         since Sep 2009 in commit 52c658e9.
31210 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
31212         parse-datetime: avoid a compiler warning with byacc (trivial)
31213         * lib/parse-datetime.y (yylex): Use the same prototype in the
31214         function definition as the declaration, to avoid a -Wstrict-prototypes
31215         warning seen when using byacc.
31217 2014-12-12  Daiki Ueno  <ueno@gnu.org>
31219         unicase/locale-language-tests: fix LOCALE_FR test
31220         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
31221         a French locale with traditional encoding.
31222         Reported by umerqayam in:
31223         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
31225 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31227         stddef: support C11's max_align_t
31228         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
31229         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
31230         Do not undef, as that might cause max_align_t to be defined twice.
31231         Instead, change use to check for _GL_STDDEF_WINT_T too.
31232         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
31233         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
31234         Check for max_align_t.
31235         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
31236         * modules/stddef-tests (Depends-on): Add stdalign.
31237         * tests/test-stddef.c: Test max_align_t.
31239 2014-12-11  Daiki Ueno  <ueno@gnu.org>
31241         unistd: fix iOS check conditional
31242         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
31243         as 0 or 1 in <TargetConditionals.h>, and the previous check always
31244         yielded true on non-iOS environment.
31245         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
31246         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
31247         they are defined.
31249 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
31251         posixtm: avoid compiler warning in a better way
31252         * lib/posixtm.c (IF_LINT): Remove.
31253         (year, posix_time_parse):
31254         Return true (not 0) if successful.  All callers changed.
31255         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
31257 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31259         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
31260         started with '/' on EMX.
31262 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31264         freopen: workaround freopen() on OS/2 kLIBC
31265         * lib/freopen.c (rpl_freopen): Workaround.
31266         * m4/freopen.m4: Add os2* case.
31268         get_shared_library_fullname: port to EMX
31269         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
31270         on EMX, respectively.
31271         (_DLL_InitTerm): New on EMX.
31272         (get_shared_library_fullname): Implement on EMX.
31274         find_executable: port to EMX
31275         * lib/progreloc.c (find_executable): Implement on EMX.
31277         sched: check struct sched_param in spawn.h as well
31278         * lib/sched.in.h: Include spawn.h on kLIBC.
31279         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
31281 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
31283         bootstrap: Allow perl modules in $buildreq
31284         * build-aux/bootstrap: Add case for perl modules.
31286 2014-12-08  Pádraig Brady  <P@draigBrady.com>
31288         apply _GL_ATTRIBUTE_PURE to some inline functions
31289         clang 3.4.2 flagged these inline functions as pure
31290         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
31291         * lib/sig-handler.h (get_handler): Likewise.
31292         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
31293         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
31295 2014-12-06  Pádraig Brady  <P@draigBrady.com>
31297         vasnprintf: fix potential use after free
31298         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
31299         flagged by clang-analyzer 3.4.2.
31301 2014-12-05  Pádraig Brady  <P@draigBrady.com>
31303         filevercmp, posixtm: avoid compiler warnings with -O3
31304         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
31305         * lib/posixtm.c: (IF_LINT): Define.
31306         (posix_time_parse): Use it to void a "may be used uninitialized"
31307         warning, seen only with -O3.
31309 2014-12-05  Bruno Haible  <bruno@clisp.org>
31311         Fix LDBL80_WORDS macro on big endian platforms.
31312         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
31313         LDBL80_WORDS macro.
31314         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31315         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31316         * tests/test-isfinite.c (test_isfinitel): Likewise.
31317         * tests/test-isinf.c (test_isinfl): Likewise.
31318         * tests/test-isnan.c (test_long_double): Likewise.
31319         * tests/test-isnanl.h (main): Likewise.
31320         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
31321         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
31322         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
31323         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
31324         Reported by Pádraig Brady.
31326 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
31328         git-version-gen: do not print new line characters
31329         * build-aux/git-version-gen: Use printf instead of echo and tr.
31331         gnulib-tool: recognize x:* as an absolute path
31332         * gnulib-tool (func_gnulib_dir): Add ?:* case.
31333         (func_relconcat): Likewise.
31335 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
31337         argp: avoid extraneous translation and mem leak with empty pre doc
31338         * lib/argp-help.c (argp_doc): Never translate the empty string,
31339         when "\v" is the first or last character of the string, as that
31340         has a reserved meaning to return the header info from a po file.
31341         This also fixes a small memory leak in the !post case.
31342         The issue can be seen with this command for example:
31343         LC_MESSAGES=en_US grub2-mknetdir --help
31345 2014-11-27  Daiki Ueno  <ueno@gnu.org>
31347         uniname/uniname-tests: skip if system's libunistring is used
31348         * modules/uniname/uniname-tests (Makefile.am): Skip test if
31349         uniname/uniname module is not compiled.
31351 2014-11-27  Pádraig Brady  <P@draigBrady.com>
31353         printf: fix configure check on big endian systems
31354         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
31356 2014-11-22  Daiki Ueno  <ueno@gnu.org>
31358         pipe-filter-gi, pipe-filter-ii: port to AIX
31359         On AIX 7.1, 'select' is defined as static and cannot be referred
31360         to from inline function.
31361         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31362         the definition...
31363         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31364         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31366 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31368         gitlog-to-changelog: add --until
31369         * build-aux/gitlog-to-changelog: Support new --until option.
31370         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31372 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31374         extern-inline: update commentary about GCC bugs
31375         * m4/extern-inline.m4: Add another GCC bug number to comments.
31377 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31379         gen-uni-tables: untabify
31380         * lib/gen-uni-tables.c: Untabify.
31382 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31384         gen-uni-tables: check out-of-range values added to 3-level tables
31385         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31386         (output_joining_type, output_ident_category): Check out-of-range
31387         values added to 3-level tables.
31389 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31391         gen-uni-tables: utilize 'assert'
31392         * lib/gen-uni-tables.c: Include <assert.h>.
31393         (output_category, output_combclass, output_decimal_digit_test)
31394         (output_decimal_digit, output_digit_test, output_digit)
31395         (output_numeric, get_mirror_value, fill_properties)
31396         (fill_property30, is_property_alphabetic)
31397         (is_property_default_ignorable_code_point)
31398         (is_property_uppercase, is_property_lowercase)
31399         (is_property_cased, is_property_case_ignorable)
31400         (is_property_changes_when_lowercased, is_property_iso_control)
31401         (is_property_math, fill_arabicshaping, output_joining_group)
31402         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31403         (output_wbp, fill_org_gbp, get_decomposition)
31404         (output_decomposition, fill_composition_exclusions)
31405         (debug_output_composition_tables, output_composition_tables)
31406         (redistribute_casefolding_rules, output_casing_rules): Use
31407         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31408         reporting.
31410 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31412         gen-uni-tables: cosmetic improvements
31413         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31414         variables specification.
31415         (is_outdigit): Remove unused function.
31417 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31419         fcntl-h-tests: port to PA-RISC GNU/Linux
31420         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31422 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31424         fts: port to C89
31425         Problem reported for MSVC 16 by Gisle Vanem in:
31426         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31427         * lib/fts.c (fts_build): Avoid declaration before statement.
31429 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31431         unistd: port to iOS
31432         Problem reported by André Klitzing in:
31433         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31434         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31436 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31438         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31439         Problem reported by Alan Modra in:
31440         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31441         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31442         Always cast the function arg, reverting this part of the previous
31443         change.
31445 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31447         obstack: avoid potentially-nonportable function casts
31448         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31449         Remove, replacing with ...
31450         (call_chunkfun, call_freefun): New static functions.
31451         All uses changed.  Avoid potentially-nonportable casts.
31452         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31453         (_obstack_begin_worker): Omit last two args, since they
31454         rely on potentially-nonportable casts.  All callers changed.
31455         * lib/obstack.h (_OBSTACK_CAST): New macro.
31456         Use it everywhere the old API used a potentially-nonportable cast.
31457         The new API doesn't cast.
31458         (struct obstack): Use unions rather than requiring
31459         potentially-nonportable casts.
31460         (obstack_chunkfun, obstack_freefun): Return void.
31462 2014-11-03  Alan Modra  <amodra@gmail.com>
31464         obstack: fix macro return values
31465         * lib/obstack.h (obstack_next_free): Return void *.
31466         (obstack_1grow_fast, obstack_blank_fast): Return void.
31467         For __GNUC__ macros:
31468         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31469         For !__GNUC__ macros:
31470         (obstack_make_room, obstack_grow, obstack_grow0)
31471         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
31473 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31475         obstack: do not assume system-supplied obstack is size_t safe
31476         * m4/obstack.m4: New file.
31477         * modules/obstack (Files): Add it.
31479         obstack: port to platforms that #define __alignof__
31480         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
31481         not if !_LIBC.  We don't know of any platforms that #define
31482         __alignof__, but it might be useful in tests.  Conversely,
31483         glibc assumes GCC.
31485 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31487         linkat: don't unconditionally replace on GNU/Linux
31488         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
31489         was redundant for a few reasons.  It was present to support compiling
31490         on new systems but running on the old narrow window of Linux 2.6.1[67].
31491         It setup and cleaned up test files which weren't actually used.
31492         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
31493         implicit in the following check.
31495 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31497         linkat: wrap to handle symlinks on OS X 10.10
31498         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
31499         but not usable because it doesn't support creating hardlinks
31500         to symlinks.  Therefore add a generic test for this capability
31501         and fallback to our emulation if linkat() fails with ENOTSUP.
31503 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31505         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
31506         * doc/posix-functions/open.texi (open):
31507         * doc/posix-functions/openat.texi (openat):
31508         Document that these functions do not set errno to ELOOP when
31509         a symlink is opened with O_NOFOLLOW.
31511 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31513         obstack: add NEWS entry for recent incompatible changes
31514         * NEWS: Describe recent changes.
31516 2014-10-30  Pádraig Brady  <P@draigBrady.com>
31518         mountlist: don't use libmount to decide on dummy/remote
31519         * lib/mountlist.c (read_file_system_list): Don't use the libmount
31520         routines to determine whether a file system is dummy or remote,
31521         as they're not currently compatible.  For example the remoteness
31522         is determined on file system type (for which the list seems incomplete),
31523         rather than simply checking for a ':' in the device name.
31524         Also libmount currently determines that 'tmpfs' is a dummy file system
31525         even though it has associated storage.
31527 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31529         obstack: prefer __alignof__ to alignof
31530         This is for portability to pre-4.7 GCC when compiling glibc.
31531         See Joseph S. Myers in:
31532         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
31533         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
31534         New macro, defined by including and using <alignof.h>.
31535         (MAX): New macro.
31536         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
31537         Do not use enums as they are not portable to some broken compilers.
31538         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
31540         obstack: prefer alignof to calculating alignments by hand
31541         * lib/obstack.c: Include <stdalign.h>.
31542         (struct fooalign): Remove.
31543         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
31544         * modules/obstack (Depends-on): Add stdalign.
31546 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31548         obstack: use size_t alignments and check for overflow
31549         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
31550         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
31551         * lib/obstack.h (struct obstack.alignment_mask):
31552         Use _OBSTACK_SIZE_T, not int, for alignments.
31553         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
31554         overflows, e.g., when adding the alignment.
31556 2014-10-29  Alan Modra  <amodra@gmail.com>
31558         obstack: 64-bit obstack support, part 3
31559         This finally enables full 64-bit obstack support.  The glibc
31560         shared library specific code is removed from obstack.c too, and
31561         the error handling code conditionally compiled under control of
31562         another macro, _OBSTACK_NO_ERROR_HANDLER.
31563         * lib/obstack.h: Include string.h earlier.
31564         (_OBSTACK_INTERFACE_VERSION): Define.
31565         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
31566         * lib/obstack.c: Don't include shlib-compat.h.
31567         (OBSTACK_INTERFACE_VERSION): Delete.
31568         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
31569         glibc code is compatible with version 2.  Don't include stdio.h for
31570         __GNU_LIBRARY.
31571         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
31572         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
31573         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
31574         glibc shared library specific source.
31576         obstack: 64-bit obstack support, part 2
31577         This gets us 4G obstack support, without changing ABI
31578         compatibility, apart from possibly introducing some
31579         signed/unsigned comparison warnings in code that uses obstack.h.
31580         a) Replace "int" size parameters, return values, and macro local vars
31581            with _OBSTACK_SIZE_T, an "unsigned int" for now.
31582         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
31583         c) Make all obstack macros checking available room use obstack_room.
31584            "next_free + desired > chunk_limit" may wrap the lhs for chunks
31585            allocated near the top of memory.
31586         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
31587         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
31588         in place of "int" size parameters, return values and local vars.
31589         (_CHUNK_SIZE_T): Define.
31590         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
31591         union use an _OBSTACK_SIZE_T integer type.
31592         For __GNUC__ versions of the following macros...
31593         (obstack_room): Rename local var.
31594         (obstack_make_room): Use obstack_room.
31595         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31596         obstack_int_grow, obstack_blank): Likewise.
31597         (obstack_finish): Use unsigned comparison when comparing aligned
31598         next_free against chunk_limit.
31599         (obstack_free): Cast OBJ to remove possible const qualifier.
31600         For !__GNUC__ versions of the following macros...
31601         (obstack_make_room): Use obstack_room.
31602         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31603         obstack_int_grow, obstack_blank): Likewise.
31604         (obstack_finish): Use unsigned comparision when comparing aligned
31605         next_free against chunk_limit.
31606         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
31607         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
31608         _OBSTACK_SIZE_T.
31609         (_obstack_begin, _obstack_begin_1): Likewise.
31610         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31611         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31613         obstack: 64-bit obstack support, part 1
31614         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31615            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31616            and "size_t" 64 bits.
31617         b) Consolidate _obstack_begin and _obstack_begin1 code.
31618         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
31619         use "size_t" rather than "long".
31620         (_obstack_begin, _obstack_begin1): Likewise.
31621         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
31622         obstack_chunkfun): Update alloc function casts.
31623         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
31624         (chunkfun_type, freefun_type): New typdefs.
31625         (_obstack_begin_worker): Split out from ..
31626         (_obstack_begin, _obstack_begin_1): ..here.
31628         obstack: tidy part 2
31629         a) Don't be concerned about "not polluting the namespace with stddef.h
31630            symbols" in obstack.h, since gnulib string.h includes stddef.h
31631            anyway, and it seems unlikely that anyone would care.
31632         b) Don't roll our own slow memcpy in _obstack_newchunk.
31633         c) Rename obstack_free to _obstack_free.  This makes the naming
31634            consistent with other obstack functions and obviates the need for
31635            __obstack_free.  Ancient obstack.c defined both obstack_free and
31636            _obstack_free.  We continue to do that for _LIBC via an alias.
31637         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
31638            is clever, but nowadays gcc warns on undefined macros.  You'll get
31639            an undefined macro warning if simulating an old gcc with -U__GNUC__
31640            -U__GNUC_MINOR__ -D__GNUC__=1.
31641         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
31642         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
31643         (__obstack_free): Delete, update refs.
31644         (_obstack_free): Rename from obstack_free.
31645         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
31646         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
31647         * lib/obstack.c: Don't include stddef.h.
31648         (COPYING_UNIT): Delete.
31649         (_obstack_begin): Formatting fix.
31650         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
31651         (_obstack_free): Rename from __obstack_free, update alias.  Move
31652         undef of obstack_free to where it is needed.
31654         obstack: tidy part 1
31655         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
31656            to me, and result in overlong lines after later patches.
31657         b) Move error handling code, to avoid a forward declaration and to
31658            simplify later patches in this series.
31659         * lib/obstack.h (struct obstack <temp>): Rename fields of union
31660         and update all uses.
31661         * lib/obstack.c: Include stdlib.h earlier.
31662         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
31663         in file.
31664         (print_and_abort): Remove now redundant forward declaration.
31666 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31668         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
31669         Without this change, in bleeding-edge fileutils Autoconf complains
31670         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
31671         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
31672         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
31673         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
31675 2014-10-24  Daiki Ueno  <ueno@gnu.org>
31677         iconv: avoid false detection of non-working iconv
31678         The INBUF arguments of iconv can be either 'const char **'
31679         or 'char **'.  If CC is g++, the difference causes a compile error
31680         and thus leads to a false detection of non-working iconv.
31681         Reported by Eli Zaretskii and Werner LEMBERG in:
31682         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31683         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31684         iconv.  Bump serial number.
31686 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31688         bootstrap: print more diagnostics for missing programs
31689         * build-aux/bootstrap: only suppress stderr when checking for
31690         alternative program names.  This supports programs issuing non
31691         standard error messages.
31693 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31695         bootstrap: only update the gnulib submodule
31696         * build-aux/bootstrap: Restrict the "submodule update" command
31697         to the gnulib path.
31699 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31701         symlinkat: port to AIX 7.1
31702         * doc/posix-functions/symlinkat.texi (symlinkat):
31703         Mention AIX porting problem.
31704         * lib/symlinkat.c: Always include errno.h.
31705         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31706         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31707         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31709         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31710         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31711         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31713         readlinkat: port to AIX 7.1
31714         * doc/posix-functions/readlink.texi (readlink):
31715         * doc/posix-functions/readlinkat.texi (readlinkat):
31716         Mention AIX porting problem.
31717         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31718         New function.
31719         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31720         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31722         * modules/readlinkat (configure.ac): Also compile replacement
31723         if REPLACE_READLINKAT.
31724         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31726 2014-10-12  Karl Berry  <karl@gnu.org>
31728         * doc/posix-functions/dirname.texi: remove spurious {.
31730 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31732         basename, dirname: Improve documentation.
31733         * doc/posix-functions/basename.texi: Mention dirname module and
31734         base_name() function.
31735         * doc/posix-functions/dirname.texi: Mention dir_name() and
31736         mdir_name() functions.
31737         Suggested by Werner LEMBERG <wl@gnu.org>.
31739 2014-09-24  Jim Meyering  <meyering@fb.com>
31741         exclude: declare exclude_patopts static
31742         * lib/exclude.c (exclude_patopts): Declare static,
31743         to avoid triggering a -Wmissing-prototypes warning.
31744         The alternative (declaring it in the .h file) would
31745         require publicizing the private "struct patopts".
31747 2014-09-21  Werner Lemberg  <wl@gnu.org>
31749         dirname: support compilation with C++
31750         * lib/dirname.h: Add necessary C linkage declarations.
31752 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31754         qsort_r: include <config.h>
31755         Problem reported by Tom G. Christensen in:
31756         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31757         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31759 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31761         avltree-list: avoid compiler warnings (trivial)
31762         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31763         -Werror=suggest-attribute=pure.
31764         * lib/gl_array_list.c: Likewise.
31765         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31766         declaration to avoid -Werror=missing-prototypes.  This is not added
31767         to a header as only exported for tests.  Add (void) to the
31768         check_invariants() call to indicate we're discarding the result
31769         in this context which avoids -Werror=unused-value.  Note we don't
31770         use ignore_value here to avoid a dependency as we know we'll not
31771         be adding __attribute__((warn_unused_result)) to check_invariants().
31772         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31774 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31776         qsort_r: new module, for GNU-style qsort_r
31777         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31779 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31781         strerror_r-posix: support compilation with C++
31782         * lib/strerror_r.c: Add necessary C linkage declarations.
31784 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31786         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31787         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31789 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31791         mountlist: use /proc/self/mountinfo when available
31792         Use libmount to propagate device IDs provided by Linux in
31793         /proc/self/mountinfo.  This will give more accurate output when
31794         using df in chroot'ed environments as the device IDs are not
31795         determined by stat() which may be inaccurate within the chroot.
31796         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31797         from util-linux to parse "/proc/self/mountinfo" or fall back to
31798         standard getmntent() processing.
31799         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31800         getmntent() is used, as is the case on GNU/Linux.
31802 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31804         users.txt: add cmogstored
31805         cmogstored has used gnulib since the beginning in 2012 to support
31806         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31808 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31810         Trivial change.
31811         * gnulib-tool: Use same options as build-aux/bootstrap to download
31812         PO files.
31814 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31816         Trivial change.
31817         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31819 2014-09-04  Eric Blake  <eblake@redhat.com>
31821         maintainer-makefile: add syntax check for useless ';;'
31822         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31824 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31826         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31827         Problem reported by Assaf Gordon in:
31828         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31829         Apparently Ubuntu is doing some fancy link-time optimization
31830         that doesn't work with -lpthread but does work with -pthread.
31831         Work around the bug by preferring -pthread to -lpthread.
31832         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31833         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31834         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31835         Treat -pthread like -lpthread.
31837 2014-09-04  Eric Blake  <eblake@redhat.com>
31839         error: drop spurious semicolon
31840         * lib/error.c (__error_at_line): Fix ';;'.
31842 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31844         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31845         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31846         Override AC_C_RESTRICT unconditionally.
31847         Update from autoconf, incorporating:
31848         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31849         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31851 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31853         manywarnings: add GCC 4.9 warnings
31854         Also, make it easier to maintain this in the future.
31855         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31856         -Wconditionally-supported, -Wdelete-incomplete,
31857         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31858         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31859         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31860         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31861         only for older GCC versions that need them.  Handle
31862         -Wnormalized=nfc specially, so that the 'comm' command used
31863         for maintenance doesn't get confused.
31865 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31867         vasnprintf: fix bugs in width computation
31868         * lib/vasnprintf.c (VASNPRINTF):
31869         Rework previous change, which introduced a bug,
31870         to avoid the warning in a different way.
31871         Avoid undefined behavior if the width arg is less than -INT_MAX.
31872         Avoid unnecessary use of HAS_WIDTH local.
31874 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31876         vasnprintf: Avoid signed/unsigned comparison warning.
31877         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31878         compare end addr of generated string w/ maximum end addr.
31880 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31882         parse-datetime: Avoid pointer difference.
31883         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31884         instead of calculating difference of pointers.  This removes an
31885         annoying warning, devoid of any use.
31887 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31889         qsort_r: new module, for GNU-style qsort_r
31890         This works even on FreeBSD, which has an incompatible qsort_r API.
31891         * MODULES.html.sh: Add it.
31892         * doc/glibc-functions/qsort_r.texi: It's now supported.
31893         * lib/qsort.c: New file, taken from glibc with minor changes
31894         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31895         removed.
31896         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31897         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31899         * modules/qsort_r, modules/qsort_r-tests: New files.
31900         * modules/stdlib (Makefile): Set up its defaults.
31901         * tests/test-qsort_r.c: New file.
31903 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31905         vla: new module
31906         GNU RCS can use this, mostly for documentation I expect.  See:
31907         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31908         * MODULES.html.sh: Add vla.
31909         * lib/vla.h, modules/vla: New files.
31911 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31913         localename: make gl_locale_name_thread really thread-safe on Windows
31914         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31915         "glthread/lock.h".
31916         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31917         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31919 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31921         getpass: don't assume struct termios
31922         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31923         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31924         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31926         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31927         Problem reported by Jonas 'Sortie' Termansen in:
31928         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31929         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31930         Implement via sysconf for platforms that lack getdtablesize.
31932         vararrays: modernize AC_C_VARARRAYS for C11
31933         This backports a change I recently made to Autoconf.
31934         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31935         VLAs are not supported, as this is what C11 does.  The old macro
31936         HAVE_C_VARARRAYS is still defined if they are supported, but is
31937         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31939 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31941         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31942         * build-aux/install-reloc (func_create_wrapper): Also wrap
31943         strerror-override, stat, stat.
31945 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31947         sys_select: fix FD_ZERO problem on Solaris 10
31948         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31949         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31950         to expand to an expression that invoked memset without necessarily
31951         including <string.h>.  The problem was that the first include
31952         defined _SYS_TIME_H, causing the second include to short-circuit.
31953         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31954         Also, fix what appears to be a cut-and-paste typo, by replacing
31955         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31956         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31958         accept: document Solaris 10 type glitch
31959         * doc/posix-functions/accept.texi (accept): Mention that
31960         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31962 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31964         extern-inline: port to FreeBSD, DragonFly
31965         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31966         is present if either __DragonFly__ or __FreeBSD__ is defined.
31967         FreeBSD problem reported by Andrey Borzenkov in:
31968         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31969         Also, worry about __APPLE__ only if __MACH__ is also defined,
31970         as this is more consistent with the rest of gnulib.
31971         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31972         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31974 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31976         regex: Make #if/#ifdef usage consistent for DEBUG
31977         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31978         of the inconsistent usage of #if and #ifdef as that works with
31979         both Glibc and Gnulib's style.
31981 2014-07-31  Eric Blake  <eblake@redhat.com>
31983         openat-die: use _Noreturn markup
31984         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31985         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31986         _Noreturn.
31988 2014-07-30  Eric Blake  <eblake@redhat.com>
31990         test-open: port to cygwin, which lacks Fortify
31991         * tests/test-open.h (ALWAYS_INLINE): New macro.
31992         (__always_inline): Don't abuse internal symbol on non-glibc.
31994 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31996         localename: Enforce declarations before statements.
31997         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31998         first statement.
32000 2014-07-18  Jim Meyering  <meyering@fb.com>
32002         test-userspec: don't look up numeric user names
32003         * tests/test-userspec.c: I found a system for which getpwnam("0")
32004         returned a pointer to a non-root user's entry, and that made the
32005         test fail.
32006         (T): Prefix each numeric input with "+", to inhibit lookup.
32008 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
32010         localcharset, localename: MS-Windows support for non-default locales
32011         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
32012         falling back on the default system codepage, try extracting
32013         the codepage from what 'setlocale' returns.  This allows to
32014         take into account changes of the codeset due to non-default
32015         locale set by a previous call to 'setlocale'.
32016         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
32017         Define if not already defined.
32018         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
32019         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
32020         current locale by calling 'setlocale', then converting the
32021         locale name into LCID by calling 'get_lcid'.  This allows to
32022         take into account changes in the current locale from the
32023         default one, in contrast to GetThreadLocale.
32025 2014-07-14  Daiki Ueno  <ueno@gnu.org>
32027         announce-gen: avoid failure when Digest::SHA is installed
32028         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
32029         Digest::SHA1->new in print_checksums fails.
32030         * build-aux/announce-gen (digest_classes): New associative array
32031         for available message digest implementations.
32032         (print_locations): Use it.
32034 2014-07-13  Pádraig Brady  <P@draigBrady.com>
32036         gettext: revert "update macros to version 0.19"
32037         This reverts commit 9b9370ca, as it currently requires that
32038         developers of any project that explicitly uses the gettext module
32039         or implicitly uses it through the utimens-tests or
32040         futimens-tests modules, use gettext >= 0.19.
32041         However there are some stability and availablity issues with
32042         that version at present.  We can reinstate this soon, when stability
32043         is addressed and packages are more readily available.
32045 2014-07-12  Jim Meyering  <meyering@fb.com>
32047         regex: don't deref NULL upon heap allocation failure
32048         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
32049         failure in one more place.
32050         To trigger the segfault, configure grep -with-included-regex,
32051         build it, and run these commands:
32052         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
32053         I discovered this while replying to a private report from
32054         Jens Schleusener about excessive memory consumption by grep
32055         when using a regular expression like the one above.
32057 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32059         regex: fix memory leak in compiler
32060         Fix by Andreas Schwab in:
32061         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
32062         * lib/regcomp.c (parse_reg_exp): Deallocate partially
32063         constructed tree before returning error.
32065 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32067         announce-gen: avoid perl warnings
32068         * build-aux/announce-gen: add two minor checks to avoid
32069         "use of uninitialized value" warnings when command-line parameters are
32070         missing.
32072 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32074         localename: avoid -Wsuggest-attribute={const,pure} warnings
32075         * lib/localename.c (string_has): Tag internal function as pure.
32076         * lib/localename.h (gl_locale_name_default): Tag extern declaration
32077         as const when appropriate.
32079 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
32081         nl_langinfo: Fix last change.
32082         * lib/nl_langinfo.c (includes): Drop redundant include.
32084 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32086         error: Fix -Wundef warnings in glibc
32087         * lib/error.c [_LIBC]: Define default macros for
32088         glibc.
32089         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
32090         Check _LIBC before STRERROR_R_CHAR_P.
32092         error: Sync from glibc master
32093         * lib/error.c [_LIBC]: Remove INTUSE usage.
32094         (error_tail): Remove unused macro ALLOCA_LIMIT.
32095         Fix potential buffer overflow.  Fix potential NULL dereference
32096         in strcmp.
32098 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
32100         nl_langinfo: fix build under mingw
32101         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
32103 2014-07-09  Andrew D Warshall  <warshall@99main.com>
32105         mountlist: do not classify a bind-mounted dir entry as "dummy"
32106         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
32107         1-argument getmntent() (instead of assuming absence).
32109 2014-07-08  Eric Blake  <eblake@redhat.com>
32111         maint.mk: less syntax-check noise when SIGPIPE is ignored
32112         * top/maint.mk (_sc_header_without_use)
32113         (sc_require_config_h_first): Parse full list.
32115 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
32116             Paul Eggert  <eggert@cs.ucla.edu>
32118         nl_langinfo: CODESET on MS-Windows and more items from localeconv
32119         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
32120         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
32121         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
32122         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
32123         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
32124         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
32125         Include <stdio.h> if Microsoft Windows.
32126         Include <time.h> if !REPLACE_NL_LANGINFO.
32127         (ctype_codeset): New function, taken from rpl_nl_langinfo,
32128         and with improvements for Microsoft Windows.
32129         (rpl_nl_langinfo): Use it.
32130         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
32131         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
32132         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
32133         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
32134         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
32135         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
32136         corresponding values returned by 'localeconv'.  Compute the values
32137         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
32138         'strftime' with a suitable struct tm value.
32140 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32142         Bruno Haible has stepped down as maintainer.
32143         See Karl Berry in:
32144         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
32145         Daiki Ueno has volunteered to maintain libunistring; see:
32146         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
32147         * modules/gen-uni-tables, modules/libunistring:
32148         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
32149         * modules/unicase/base, modules/unicase/cased:
32150         * modules/unicase/empty-prefix-context:
32151         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
32152         * modules/unicase/locale-language, modules/unicase/special-casing:
32153         * modules/unicase/tocasefold, modules/unicase/tolower:
32154         * modules/unicase/totitle, modules/unicase/toupper:
32155         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
32156         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
32157         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
32158         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
32159         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
32160         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
32161         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
32162         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
32163         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
32164         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
32165         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
32166         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
32167         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
32168         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
32169         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
32170         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
32171         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
32172         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
32173         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
32174         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
32175         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
32176         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
32177         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
32178         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
32179         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
32180         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
32181         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
32182         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
32183         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
32184         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
32185         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
32186         * modules/unicase/ulc-casexfrm, modules/unicodeio:
32187         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
32188         * modules/uniconv/u16-conv-to-enc:
32189         * modules/uniconv/u16-strconv-from-enc:
32190         * modules/uniconv/u16-strconv-from-locale:
32191         * modules/uniconv/u16-strconv-to-enc:
32192         * modules/uniconv/u16-strconv-to-locale:
32193         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32194         * modules/uniconv/u32-strconv-from-enc:
32195         * modules/uniconv/u32-strconv-from-locale:
32196         * modules/uniconv/u32-strconv-to-enc:
32197         * modules/uniconv/u32-strconv-to-locale:
32198         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
32199         * modules/uniconv/u8-strconv-from-enc:
32200         * modules/uniconv/u8-strconv-from-locale:
32201         * modules/uniconv/u8-strconv-to-enc:
32202         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
32203         * modules/unictype/bidicategory-all:
32204         * modules/unictype/bidicategory-byname:
32205         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
32206         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
32207         * modules/unictype/bidiclass-byname:
32208         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
32209         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
32210         * modules/unictype/block-all, modules/unictype/block-list:
32211         * modules/unictype/block-of, modules/unictype/block-test:
32212         * modules/unictype/category-C, modules/unictype/category-Cc:
32213         * modules/unictype/category-Cf, modules/unictype/category-Cn:
32214         * modules/unictype/category-Co, modules/unictype/category-Cs:
32215         * modules/unictype/category-L, modules/unictype/category-LC:
32216         * modules/unictype/category-Ll, modules/unictype/category-Lm:
32217         * modules/unictype/category-Lo, modules/unictype/category-Lt:
32218         * modules/unictype/category-Lu, modules/unictype/category-M:
32219         * modules/unictype/category-Mc, modules/unictype/category-Me:
32220         * modules/unictype/category-Mn, modules/unictype/category-N:
32221         * modules/unictype/category-Nd, modules/unictype/category-Nl:
32222         * modules/unictype/category-No, modules/unictype/category-P:
32223         * modules/unictype/category-Pc, modules/unictype/category-Pd:
32224         * modules/unictype/category-Pe, modules/unictype/category-Pf:
32225         * modules/unictype/category-Pi, modules/unictype/category-Po:
32226         * modules/unictype/category-Ps, modules/unictype/category-S:
32227         * modules/unictype/category-Sc, modules/unictype/category-Sk:
32228         * modules/unictype/category-Sm, modules/unictype/category-So:
32229         * modules/unictype/category-Z, modules/unictype/category-Zl:
32230         * modules/unictype/category-Zp, modules/unictype/category-Zs:
32231         * modules/unictype/category-all, modules/unictype/category-and:
32232         * modules/unictype/category-and-not, modules/unictype/category-byname:
32233         * modules/unictype/category-longname, modules/unictype/category-name:
32234         * modules/unictype/category-none, modules/unictype/category-of:
32235         * modules/unictype/category-or, modules/unictype/category-test:
32236         * modules/unictype/category-test-withtable:
32237         * modules/unictype/combining-class:
32238         * modules/unictype/combining-class-all:
32239         * modules/unictype/combining-class-byname:
32240         * modules/unictype/combining-class-longname:
32241         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
32242         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
32243         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
32244         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
32245         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
32246         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
32247         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
32248         * modules/unictype/digit, modules/unictype/joininggroup-all:
32249         * modules/unictype/joininggroup-byname:
32250         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
32251         * modules/unictype/joiningtype-all:
32252         * modules/unictype/joiningtype-byname:
32253         * modules/unictype/joiningtype-longname:
32254         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
32255         * modules/unictype/mirror, modules/unictype/numeric:
32256         * modules/unictype/property-all, modules/unictype/property-alphabetic:
32257         * modules/unictype/property-ascii-hex-digit:
32258         * modules/unictype/property-bidi-arabic-digit:
32259         * modules/unictype/property-bidi-arabic-right-to-left:
32260         * modules/unictype/property-bidi-block-separator:
32261         * modules/unictype/property-bidi-boundary-neutral:
32262         * modules/unictype/property-bidi-common-separator:
32263         * modules/unictype/property-bidi-control:
32264         * modules/unictype/property-bidi-embedding-or-override:
32265         * modules/unictype/property-bidi-eur-num-separator:
32266         * modules/unictype/property-bidi-eur-num-terminator:
32267         * modules/unictype/property-bidi-european-digit:
32268         * modules/unictype/property-bidi-hebrew-right-to-left:
32269         * modules/unictype/property-bidi-left-to-right:
32270         * modules/unictype/property-bidi-non-spacing-mark:
32271         * modules/unictype/property-bidi-other-neutral:
32272         * modules/unictype/property-bidi-pdf:
32273         * modules/unictype/property-bidi-segment-separator:
32274         * modules/unictype/property-bidi-whitespace:
32275         * modules/unictype/property-byname:
32276         * modules/unictype/property-case-ignorable:
32277         * modules/unictype/property-cased:
32278         * modules/unictype/property-changes-when-casefolded:
32279         * modules/unictype/property-changes-when-casemapped:
32280         * modules/unictype/property-changes-when-lowercased:
32281         * modules/unictype/property-changes-when-titlecased:
32282         * modules/unictype/property-changes-when-uppercased:
32283         * modules/unictype/property-combining:
32284         * modules/unictype/property-composite:
32285         * modules/unictype/property-currency-symbol:
32286         * modules/unictype/property-dash:
32287         * modules/unictype/property-decimal-digit:
32288         * modules/unictype/property-default-ignorable-code-point:
32289         * modules/unictype/property-deprecated:
32290         * modules/unictype/property-diacritic:
32291         * modules/unictype/property-extender:
32292         * modules/unictype/property-format-control:
32293         * modules/unictype/property-grapheme-base:
32294         * modules/unictype/property-grapheme-extend:
32295         * modules/unictype/property-grapheme-link:
32296         * modules/unictype/property-hex-digit:
32297         * modules/unictype/property-hyphen:
32298         * modules/unictype/property-id-continue:
32299         * modules/unictype/property-id-start:
32300         * modules/unictype/property-ideographic:
32301         * modules/unictype/property-ids-binary-operator:
32302         * modules/unictype/property-ids-trinary-operator:
32303         * modules/unictype/property-ignorable-control:
32304         * modules/unictype/property-iso-control:
32305         * modules/unictype/property-join-control:
32306         * modules/unictype/property-left-of-pair:
32307         * modules/unictype/property-line-separator:
32308         * modules/unictype/property-logical-order-exception:
32309         * modules/unictype/property-lowercase, modules/unictype/property-math:
32310         * modules/unictype/property-non-break:
32311         * modules/unictype/property-not-a-character:
32312         * modules/unictype/property-numeric:
32313         * modules/unictype/property-other-alphabetic:
32314         * modules/unictype/property-other-default-ignorable-code-point:
32315         * modules/unictype/property-other-grapheme-extend:
32316         * modules/unictype/property-other-id-continue:
32317         * modules/unictype/property-other-id-start:
32318         * modules/unictype/property-other-lowercase:
32319         * modules/unictype/property-other-math:
32320         * modules/unictype/property-other-uppercase:
32321         * modules/unictype/property-paired-punctuation:
32322         * modules/unictype/property-paragraph-separator:
32323         * modules/unictype/property-pattern-syntax:
32324         * modules/unictype/property-pattern-white-space:
32325         * modules/unictype/property-private-use:
32326         * modules/unictype/property-punctuation:
32327         * modules/unictype/property-quotation-mark:
32328         * modules/unictype/property-radical:
32329         * modules/unictype/property-sentence-terminal:
32330         * modules/unictype/property-soft-dotted:
32331         * modules/unictype/property-space:
32332         * modules/unictype/property-terminal-punctuation:
32333         * modules/unictype/property-test, modules/unictype/property-titlecase:
32334         * modules/unictype/property-unassigned-code-value:
32335         * modules/unictype/property-unified-ideograph:
32336         * modules/unictype/property-uppercase:
32337         * modules/unictype/property-variation-selector:
32338         * modules/unictype/property-white-space:
32339         * modules/unictype/property-xid-continue:
32340         * modules/unictype/property-xid-start:
32341         * modules/unictype/property-zero-width, modules/unictype/scripts:
32342         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
32343         * modules/unictype/syntax-c-whitespace:
32344         * modules/unictype/syntax-java-ident:
32345         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
32346         * modules/unigbrk/u16-grapheme-breaks:
32347         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
32348         * modules/unigbrk/u32-grapheme-breaks:
32349         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
32350         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
32351         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
32352         * modules/unigbrk/uc-is-grapheme-break:
32353         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
32354         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
32355         * modules/unilbrk/u16-width-linebreaks:
32356         * modules/unilbrk/u32-possible-linebreaks:
32357         * modules/unilbrk/u32-width-linebreaks:
32358         * modules/unilbrk/u8-possible-linebreaks:
32359         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
32360         * modules/unilbrk/ulc-possible-linebreaks:
32361         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32362         * modules/uniname/uniname, modules/uninorm/base:
32363         * modules/uninorm/canonical-decomposition:
32364         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32365         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32366         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32367         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32368         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32369         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32370         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32371         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32372         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32373         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32374         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32375         * modules/unistdio/base, modules/unistdio/u-printf-args:
32376         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32377         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32378         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32379         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32380         * modules/unistdio/u16-u16-sprintf:
32381         * modules/unistdio/u16-u16-vasnprintf:
32382         * modules/unistdio/u16-u16-vasprintf:
32383         * modules/unistdio/u16-u16-vsnprintf:
32384         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32385         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32386         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32387         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32388         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32389         * modules/unistdio/u32-u32-asnprintf:
32390         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32391         * modules/unistdio/u32-u32-sprintf:
32392         * modules/unistdio/u32-u32-vasnprintf:
32393         * modules/unistdio/u32-u32-vasprintf:
32394         * modules/unistdio/u32-u32-vsnprintf:
32395         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32396         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32397         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32398         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32399         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32400         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32401         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32402         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32403         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32404         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32405         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32406         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32407         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32408         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32409         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32410         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32411         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32412         * modules/unistr/u16-check, modules/unistr/u16-chr:
32413         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32414         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32415         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32416         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32417         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32418         * modules/unistr/u16-move, modules/unistr/u16-next:
32419         * modules/unistr/u16-prev, modules/unistr/u16-set:
32420         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32421         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32422         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32423         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32424         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32425         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32426         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32427         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32428         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32429         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32430         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32431         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32432         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32433         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32434         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32435         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32436         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32437         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32438         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32439         * modules/unistr/u32-next, modules/unistr/u32-prev:
32440         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32441         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32442         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32443         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32444         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32445         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32446         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32447         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32448         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32449         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32450         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32451         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32452         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32453         * modules/unistr/u8-check, modules/unistr/u8-chr:
32454         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32455         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32456         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32457         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32458         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32459         * modules/unistr/u8-next, modules/unistr/u8-prev:
32460         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32461         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32462         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32463         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32464         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32465         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32466         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32467         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32468         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32469         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32470         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32471         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32472         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
32473         * modules/uniwbrk/base, modules/uniwbrk/table:
32474         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
32475         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
32476         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
32477         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
32478         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
32479         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
32480         * modules/uniwidth/width, modules/utf16-ucs4:
32481         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
32482         * modules/utf8-ucs4-unsafe:
32483         Change maintainer from Bruno Haible to Daiki Ueno.
32484         This is my guess at the libunistring modules; please feel free
32485         to fix if I guessed incorrectly.
32486         * modules/accept4, modules/acl, modules/acos, modules/acosf:
32487         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
32488         * modules/areadlink, modules/array-list, modules/array-mergesort:
32489         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
32490         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
32491         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
32492         * modules/binary-io, modules/bison-i18n, modules/btowc:
32493         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
32494         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
32495         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
32496         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
32497         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
32498         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
32499         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
32500         * modules/closedir, modules/concat-filename, modules/copy-file:
32501         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
32502         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
32503         * modules/csharpcomp-script, modules/csharpexec:
32504         * modules/csharpexec-script, modules/ctype, modules/diffseq:
32505         * modules/dprintf, modules/dprintf-posix, modules/dup:
32506         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
32507         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
32508         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
32509         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
32510         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
32511         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
32512         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
32513         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
32514         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
32515         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
32516         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
32517         * modules/findprog, modules/findprog-lgpl, modules/floor:
32518         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
32519         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
32520         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
32521         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
32522         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
32523         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
32524         * modules/freadable, modules/freadahead, modules/freadptr:
32525         * modules/freadseek, modules/freopen, modules/frexp:
32526         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
32527         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
32528         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
32529         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
32530         * modules/ftello, modules/full-read, modules/full-write:
32531         * modules/fwritable, modules/fwriteerror, modules/gcd:
32532         * modules/get-rusage-as, modules/get-rusage-data:
32533         * modules/getdtablesize, modules/getrusage, modules/gettext:
32534         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
32535         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
32536         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
32537         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
32538         * modules/iconv, modules/iconv-h, modules/iconv_open:
32539         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
32540         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
32541         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
32542         * modules/integer_length_ll, modules/ioctl, modules/isatty:
32543         * modules/isblank, modules/isnand, modules/isnand-nolibm:
32544         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
32545         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
32546         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
32547         * modules/javaexec, modules/javaexec-script, modules/javaversion:
32548         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
32549         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
32550         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
32551         * modules/lib-symbol-visibility, modules/libsigsegv:
32552         * modules/linked-list, modules/linkedhash-list, modules/list:
32553         * modules/localcharset, modules/locale, modules/localeconv:
32554         * modules/localename, modules/lock, modules/log, modules/log-ieee:
32555         * modules/log10, modules/log10-ieee, modules/log10f:
32556         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
32557         * modules/log1p, modules/log1p-ieee, modules/log1pf:
32558         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
32559         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
32560         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
32561         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
32562         * modules/logf, modules/logf-ieee, modules/login_tty:
32563         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
32564         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
32565         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
32566         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
32567         * modules/mbscspn, modules/mbsinit, modules/mbslen:
32568         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
32569         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
32570         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
32571         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
32572         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
32573         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
32574         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
32575         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
32576         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
32577         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
32578         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
32579         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
32580         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
32581         * modules/posix_spawn, modules/posix_spawn-internal:
32582         * modules/posix_spawn_file_actions_addclose:
32583         * modules/posix_spawn_file_actions_adddup2:
32584         * modules/posix_spawn_file_actions_addopen:
32585         * modules/posix_spawn_file_actions_destroy:
32586         * modules/posix_spawn_file_actions_init:
32587         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
32588         * modules/posix_spawnattr_getpgroup:
32589         * modules/posix_spawnattr_getschedparam:
32590         * modules/posix_spawnattr_getschedpolicy:
32591         * modules/posix_spawnattr_getsigdefault:
32592         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
32593         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
32594         * modules/posix_spawnattr_setschedparam:
32595         * modules/posix_spawnattr_setschedpolicy:
32596         * modules/posix_spawnattr_setsigdefault:
32597         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
32598         * modules/pow, modules/powf, modules/printf-frexp:
32599         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
32600         * modules/progname, modules/propername, modules/pselect:
32601         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
32602         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
32603         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
32604         * modules/read, modules/readdir, modules/readlink:
32605         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
32606         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
32607         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
32608         * modules/relocatable-script, modules/remainder:
32609         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32610         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32611         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32612         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32613         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32614         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32615         * modules/setlocale, modules/sh-quote, modules/shutdown:
32616         * modules/signal, modules/signbit, modules/sigpipe:
32617         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
32618         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
32619         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
32620         * modules/snippet/link-warning, modules/snippet/unused-parameter:
32621         * modules/snprintf, modules/snprintf-posix, modules/spawn:
32622         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
32623         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
32624         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
32625         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
32626         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
32627         * modules/streq, modules/strerror_r-posix, modules/striconv:
32628         * modules/striconveh, modules/striconveha, modules/strncat:
32629         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
32630         * modules/sublist, modules/sys_resource, modules/sys_utsname:
32631         * modules/sys_wait, modules/system-posix, modules/system-quote:
32632         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
32633         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
32634         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
32635         * modules/truncf, modules/truncf-ieee, modules/truncl:
32636         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
32637         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
32638         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
32639         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
32640         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
32641         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
32642         * modules/wait-process, modules/waitpid, modules/wcpcpy:
32643         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
32644         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
32645         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
32646         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
32647         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
32648         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
32649         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
32650         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
32651         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
32652         * modules/write, modules/xconcat-filename, modules/xlist:
32653         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
32654         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
32655         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
32656         * modules/y0, modules/y1, modules/yn:
32657         Remove Bruno Haible as maintainer; if he's the sole maintainer,
32658         change the maintainer to 'all'.  Let's hope someone volunteers.
32660 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
32662         mktime: merge #if/#ifdef usage from glibc
32663         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32664         as that works with both Glibc's and Gnulib's style.
32665         See thread starting at Siddhesh Poyarekar's bug report at:
32666         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
32668 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
32670         git-version-gen: improve option descriptions
32671         * build-aux/git-version-gen: Mention that --prefix and --fallback
32672         have a mandatory argument.
32674 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32676         regex: fix memory leak in compiler
32677         Fix by Andreas Schwab in:
32678         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
32679         * lib/regcomp.c (parse_expression): Deallocate partially
32680         constructed tree before returning error.
32682         regex: merge patch from libc
32683         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32684         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32685         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32687 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32689         acl: port to gcc -Wredundant-decls
32690         From a request by Dmitry Antipov in:
32691         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32692         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32693         "#ifndef _GL_ACL_H".
32695 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32696         Jim Meyering  <meyering@fb.com>
32698         parse-duration: eliminate 68-year duration limit
32699         * lib/parse-duration.c: Include "intprops.h".
32700         (TIME_MAX): Rename to MAX_DURATION and define to
32701         TYPE_MAXIMUM(time_t).
32702         * modules/parse-duration (Depends-on): Add intprops.
32703         Reported by Jonas 'Sortie' Termansen.
32705 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32707         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32708         * modules/pthread (Depends-on): Add 'extensions', as it defines
32709         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32710         (configure.ac-early): New section.
32711         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32712         it is no longer needed.
32714 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32716         pthread: define thread-safe macros on some platforms
32717         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32718         for thread-safe operation on some platforms.
32720 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32722         regex: don't be multithreaded if USE_UNLOCKED_IO.
32723         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32724         * lib/regex_internal.h: Do not use multithreaded version if
32725         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32726         around a porting bug with coreutils 8.22 on AIX 7.1.
32728 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32730         gettext: update macros to version 0.19
32731         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32732         depend on gl_EXTERN_INLINE and drop support for older Bison
32733         versions.
32735 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32737         select,poll: fix console handle check on windows 8
32738         lib/poll.c (IsConsoleHandle): Change from testing the lower
32739         2 bits of the handle to the more expensive but accurate syscall.
32740         lib/select.c: Likewise.
32742 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32744         select: fix waiting on anonymous pipes on MS-Windows
32745         * lib/select.c (rpl_select): Fall back to polling when select()
32746         indicates there is nothing to check, while due to the timeout not
32747         expiring, activity is indicated on one of the handles.
32748         Also clear the TIMEOUT argument if the timer does expire.
32750 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32752         times: fix to return non constant value on MS-Windows
32753         * lib/times.c (times): Don't use the process creation time,
32754         rather clock() which on windows returns the number of
32755         clock ticks since the process started.
32757 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32759         isatty: fix to work on windows 8
32760         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32761         2 bits of the handle to the more expensive but accurate syscall.
32763 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32765         maint: fix typo in fdl.texi
32766         * doc/fdl.texi: Fix typo (missing '@').
32767         Somehow this was in fdl.texi but not fdl-1.3.texi.
32769 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32771         mountlist: avoid hasmntopt const type warning on solaris
32772         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32773         with char * instead of const char *.  Passing the constant string
32774         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32775         to avoid the warning.
32777 2014-06-04  Eric Blake  <eblake@redhat.com>
32779         maintainer-makefile: delete obsolete code
32780         * top/maint.mk (build_aux): Drop old code, as threatened.
32782         maintainer-makefile: avoid spurious error messages
32783         * top/maint.mk (syntax-check): Guard definition and use of
32784         $(shell) by whether Makefile is present.
32786 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32788         rename: avoid unused-but-set-variable compiler warning
32789         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32790         it is possible that dst_exists may be set but not used.  Mark it with
32791         the unused attribute to avoid compiler warnings.
32793 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32795         rename: mark a label as potentially unused
32796         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32797         by marking the out label as potentially unused.
32798         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32800 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32802         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32803         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32805 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32807         acl: apply pure attribute to two functions
32808         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32809         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32811 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32813         gnulib-common.m4: add _GL_UNUSED_LABEL
32814         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32815         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32817 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32819         dup2, fcntl, fcntl-h: port to AIX 7.1
32820         This fixes some porting problems discovered when testing the latest
32821         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32822         in grep but it could be important for other applications.
32823         * doc/posix-functions/dup2.texi:
32824         * doc/posix-functions/fcntl.texi:
32825         * doc/posix-headers/fcntl.texi:
32826         Document AIX bugs.
32827         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32828         Define to 0 if outside 'int' range.
32829         * m4/dup2.m4 (gl_FUNC_DUP2):
32830         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32831         Check for getdtablesize.  If it's available, test a value just
32832         outside its range instead of testing 1000000.  When cross-compiling,
32833         guess that AIX will fail this improved test.
32835 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32837         printf, config.rpath: Port to FreeBSD 10.
32838         Problem reported by Tijl Coosemans in:
32839         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32840         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32841         (hardcode_direct): Simplify FreeBSD configuration.
32842         (library_names_spec): Don't mishandle FreeBSD 10+.
32843         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32844         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32845         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32846         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32847         Don't mishandle FreeBSD 10+ when cross-compiling.
32849         ftoastr: work around compiler bug in IBM xlc 12.1
32850         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32851         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32852         around a compiler bug in IBM xlc 12.1.0.0: it complains
32853         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32854         _GL_FLT_PREC_BOUND.'
32856 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32858         valgrind-tests: fixed misleading help message
32859         * m4/valgrind-tests.m4: The help message generated by configure
32860         implied that valgrind was disabled by default, which it wasn't.
32861         Adjusted the help message using s/enable/disable/ to clarify.
32863 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32865         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32866         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32867         first double of a PowerPC "double double" pair.
32868         * tests/test-isinf.c (test_isinfl): Likewise.
32869         * tests/test-isnan.c (test_long_double): Likewise.
32870         * tests/test-isnanl.h (main): Likewise.
32871         * tests/test-signbit.c (test_signbitl): Likewise.
32873 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32875         exclude-tests: port to AIX 7.1
32876         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32877         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32878         the regex code uses locks.
32880 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32882         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32883         Without this fix, Emacs would sometimes call sigprocmask instead
32884         of pthread_sigmask, which is a no-no in multithreaded applications.
32885         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32887         Suppress check for pthread_sigmask working without -lpthread if
32888         the application always links with -lpthread.  Do not link with
32889         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32890         * m4/timer_time.m4 (gl_TIMER_TIME):
32891         Require gl_THREADLIB only if it is defined.  Do not append
32892         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32894 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32896         gnulib-tool: wget translations using --no-verbose rather than --quiet
32897         This allows the user to see error messages if any (--quiet hides them)
32898         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32900 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32902         gnulib-tool: adjust translation wget to avoid a https redirection
32903         Context: http://translationproject.org/latest/gnulib redirects to
32904            https://translationproject.org/latest/gnulib/
32905         Rationale: if the user falls back to wget, she doesn't have rsync and
32906         is probably in a minimal build environment, where packages such as
32907         'ca-certificates' are missing as well, resulting in a failed (and
32908         difficult to detect since ignored) translation initial fetch.
32909         Consequently let's avoid https if possible, and add the missing
32910         trailing slash.  This also avoids an unnecessary 302 redirection.
32911         * gnulib-tool: Add trailing slash to gnulib URL.
32913 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32915         getlogin_r-tests: check return value rather than errno
32916         * tests/test-getlogin_r.c (main): As per POSIX we should be
32917         verifying the return value from getlogin_r() rather than errno.
32919 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32921         getlogin_r-tests: fix various issues in recent change
32922         * tests/test-getlogin_r.c: Include required headers that were
32923         missed in recent commit eec20b4e.
32924         Also consistently check the errno rather than the return value from
32925         getlogin_r as POSIX only specifies that non zero is returned on error.
32926         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32928 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32930         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32931         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32932         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32933         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32934         * lib/spawn-pipe.c:
32935         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32936         and then 'int open64(const char *, int, ...);', which means the
32937         declaration for 'open' gets lost if we later '#undef open'.
32938         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32939         where the compilation reported the non-fatal error "In function
32940         'openat_proc_name' ... warning: implicit declaration of function
32941         'open'".  In this case the error is relatively harmless, but in
32942         other cases it might not be so minor.
32944 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32946         xalloc: don't potentially generate invalid code for xmemdup calls
32947         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32948         this function can initialize the newly-allocated storage with new
32949         pointers, which means this function is not malloc-like.  See:
32950         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32952 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32954         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32955         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32956         changes from commit 97249cf29 to not depend on environment variables.
32958 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32960         getlogin-tests: avoid false failure under cron
32961         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32962         since that's not what's under test.  Centos 6 was seen to return
32963         EINVAL for ttyname() when run from cron.
32965 2014-05-16  Jim Meyering  <meyering@fb.com>
32967         mbrtowc.m4: fix a comment typo
32968         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32969         emitted documentation string.
32971 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32973         mbrlen, mbrtowc: fix bug with empty input
32974         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32975         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32976         so this is mainly for documentation.
32977         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32978         (gl_FUNC_MBRTOWC): Use it.
32979         * tests/test-mbrtowc.c (main): Test for the bug.
32981 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32983         doc: document mbrtowc and mbrlen problem with empty input
32984         * doc/posix-functions/mbrlen.texi (mbrlen):
32985         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32986         Document portability problem when the input string is empty.  See:
32987         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32989         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32990         Problem reported by Eli Zaretskii in:
32991         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32992         * doc/posix-functions/execl.texi (execl):
32993         * doc/posix-functions/execle.texi (execle):
32994         * doc/posix-functions/execlp.texi (execlp):
32995         * doc/posix-functions/execv.texi (execv):
32996         * doc/posix-functions/execve.texi (execve):
32997         * doc/posix-functions/execvp.texi (execvp):
32998         Mention spawn+exit problem on non-Cygwin Windows platforms.
33000 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
33002         getlogin-tests: avoid false failure under sudo/ssh etc.
33003         * modules/getlogin-tests (configure.ac): Check for ttyname().
33004         * tests/test-getlogin.c (main): Don't depend on environment variables
33005         to correlate with getlogin(), since sudo and ssh etc. can tamper
33006         with the LOGNAME and USER env vars.  Instead lookup the name from
33007         the uid associated with the stdin tty.
33009 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33011         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
33012         These were found when building the latest grep snapshot on IRIX 6.5.
33013         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
33014         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
33015         never used later.
33016         * lib/quotearg.c (quoting_options_from_style):
33017         * lib/xstrtol.c (__xstrtol):
33018         Use enum instead of 0, to pacify IRIX 6.5 cc.
33020 2014-04-18  Pádraig Brady  <P@draigBrady.com>
33022         gitlog-to-changelog: revert inclusion of git-log-fix file
33023         * build-aux/git-log-fix: Delete dummy file.
33024         * modules/gitlog-to-changelog: Don't reference (overwrite)
33025         the project specific git-log-fix file.
33027 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
33029         maint.mk: Relax the copyright check to cater for non FSF projects
33030         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
33031         to not require the "Free" suffix after the copyright years.
33033 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
33035         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
33036         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
33037         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
33038         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
33039         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
33041 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
33043         exclude: port to strict C99
33044         Strict C does not allow converting a function pointer to void *
33045         and vice versa.  Pass a pointer to a function pointer instead.
33046         * lib/exclude.c (add_exclude_file):
33047         Pass the address of the function pointer.
33048         (call_addfn): And deference the address here, to match.
33050 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33052         regex: do not depend on malloc-gnu
33053         * modules/regex (Depends-on): Remove malloc-gnu.
33054         It's no longer needed, because of the 2012-12-29 patch
33055         "regex: port to hosts where malloc (0) == NULL".
33056         Reported by Nathan Kennedy in:
33057         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
33059 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
33061         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
33062         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
33063         * doc/posix-functions/expl.texi: Mention the workaround.
33065 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33067         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
33068         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
33069         size to be zero even when the pointer is nonnull.  This
33070         accommodates the use case where P is malloc (0) and *PN is 0 on a
33071         host where malloc (0) yields nonnull.
33073 2014-04-09  Eric Blake  <eblake@redhat.com>
33075         fts: avoid unnecessary strlen calls
33076         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
33078 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33080         fts: avoid unnecessary strlen calls
33081         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
33082         when that can be faster than strlen.
33084 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33086         fts: avoid unnecessary strlen calls
33087         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
33088         (fts_build): Store the length of the dp->d_name entry in a local variable
33089         instead of calling strlen() several times via the above, removed macro.
33090         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
33091         run by ~4%, yet this reduces the execution time by about a third if run
33092         via "ltrace -c rm -rf some-dir".
33094 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33096         obstack: Remove ancient NeXTSTEP gcc support conditional
33097         This change will ease merging with glibc.  The "#if ... __NEXT__"
33098         causes a warning with -Wundef which glibc now enables by default.
33099         Problem reported by Will Newton in
33100         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
33101         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
33102         so go with that.
33103         * lib/obstack.h (__extension__):
33105 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33107         obstack: merge with glibc changes
33108         * lib/obstack.c, lib/obstack.h: Merge from glibc.
33109         This is mostly indenting and commentary changes.
33110         Instances of 'register' have been removed.
33112 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33114         strftime: wrap macros in "do {...} while(0)"
33115         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
33116         this macro in "do {...} while(0)" to prevent false use as a
33117         single statement, e.g., in an un-braced "{}" else-block.
33118         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
33119         (strftime_case_): Remove 'else' after 'goto' - which was the
33120         only non-fatal, un-braced use of one of the above macros.
33121         Spotted by coverity (NESTING_INDENT_MISMATCH).
33123 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33125         modechange: avoid memory leaks for invalid octal modes
33126         * lib/modechange.c (mode_compile): During the parsing of
33127         notations like +40, free the 'mc' buffer for invalid mode
33128         strings like +17777 (greater than the maximum octal mode),
33129         =18 (bad octal mode characters) or u=1 ('affected' with
33130         octal modes).
33131         Reproducer, e.g.:
33132             $ valgrind --leak-check=full chmod +17777 file
33133         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
33134         add notations +40, 00440, etc.".
33135         Spotted by coverity (RESOURCE_LEAK).
33137 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33139         gitlog-to-changelog: include a dummy git-log-fix file
33140         Problem reported by Nathan Stratton Treadway in:
33141         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
33142         * build-aux/git-log-fix: New file.
33144 2014-03-13  Jim Meyering  <meyering@fb.com>
33146         gitlog-to-changelog: also include the file, git-log-fix
33147         * modules/gitlog-to-changelog (Files): Add git-log-fix.
33148         Reported by Assaf Gordon.
33150 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33152         regex: port to OS X 10.8.5 en_US.UTF-8 locale
33153         This fixes a bug when ignoring case and when comparing the
33154         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
33155         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
33156         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
33157         titlecase letter is neither lowercase nor uppercase, but
33158         uppercasing the titlecase letter (via towupper) yields the
33159         uppercase letter, so the two letters should match when ignoring case.
33160         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
33161         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
33162         Don't test whether a character is lowercase before uppercasing it.
33164 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
33166         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
33167         This is basically one of the options Bruno Haible proposed in:
33168         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
33169         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
33170         * lib/stdint.in.h: Use it.
33171         * modules/stdint (Depends-on): Add sys_types.
33173 2014-02-26  Pádraig Brady  <P@draigBrady.com>
33175         parse-datetime: fix crash or infloop in TZ="" parsing
33176         * lib/parse-datetime.y (parse_datetime): Break out of the
33177         TZ="" parsing loop once the second significant " is found.
33178         Also skip over any subsequent whitespace to be consistent
33179         with the non TZ= case.
33180         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
33182 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33184         savedir: new symbol for fast-read version
33185         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
33186         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
33187         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
33188         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
33190 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33192         unistd: port readlink to Mac OS X 10.3.9
33193         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33194         around self-include problem in Mac OS X 10.3.9 when combined with
33195         readlink module.  Problem reported by Klaus Zietler in
33196         <http://bugs.gnu.org/16825>.
33198 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
33200         diffseq: remove TOO_EXPENSIVE heuristic
33201         Problem with diffutils reported by Vincent Lefevre in
33202         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
33203         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
33204         Although appropriate for circa-1993 hardware, these days the heuristic
33205         seems to be more trouble than it's worth.
33206         * lib/diffseq.h: Modernize citations.
33207         (struct context): Remove member too_expensive.
33208         All uses changed.
33209         (struct partition): Remove members lo_minimal, hi_minimal.
33210         All uses changed.
33211         (diag, compareseq): Remove arg find_minimal.  All uses changed.
33212         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
33213         1993 to make 'diff' run faster (but not as well) on large inputs.
33214         These days, computers are fast enough that it's typically better
33215         to run slower but more accurately.
33216         * lib/fstrcmp.c: Remove duplicate comment.
33217         * lib/fstrcmp.c (strcmp_bounded):
33218         * lib/git-merge-changelog.c (compute_differences):
33219         Adjust to diffseq.h changes.
33220         * NEWS: Document the change.
33222         savedir: simplify by using stpcpy
33223         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
33224         (streamsavedir): Use stpcpy instead.
33225         * modules/savedir (Depends-on): Add stpcpy.
33227 2014-02-21  Pádraig Brady  <P@draigBrady.com>
33229         spawn: fix link error on uclibc
33230         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
33231         to incorporate -lrt if needed (on uclibc for example).
33232         * modules/posix_spawn: Reference the substituted LIB.
33234 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
33235         timer: fix uClibc detection of threading
33236         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
33237         enabled in uClibc.
33239 2014-02-21  Eric Blake  <eblake@redhat.com>
33241         maintainer-makefiles: provide AC_PROG_SED for older autoconf
33242         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
33244 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33246         exclude: add support for posix regexps
33248         This commit adds support for POSIX extended regular expressions
33249         and fixes a long-standing memory leak (pattern buffer was never
33250         freed).  It also implements a new interface function to read
33251         exclude patterns from a FILE, which passes an additional parameter
33252         to its callback function, thereby allowing to preserve its state
33253         between invocations.
33255         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
33256         (pattern_buffer): New struct.
33257         (exclude): New member patbuf.
33258         (exclude_add_pattern_buffer): New function.
33259         (free_exclude_segment): Free regexps.
33260         (free_exclude): Free allocated pattern buffers.
33261         (exclude_patopts): New function.
33262         (file_pattern_matches): Use exclude_patopts.
33263         (add_exclude): support regexps.
33264         (add_exclude_fp): New function.
33265         (add_exclude_file): Rewrite using add_exclude_fp.
33266         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33267         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33268         (add_exclude_fp)
33269         (add_exclude_file): Rewrite using add_exclude_fp.
33270         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33271         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33272         (add_exclude_fp)
33273         (exclude_add_pattern_buffer): New prototypes.
33274         * modules/exclude: Depends on regex and filename.
33276 2014-02-20  Eric Blake  <eblake@redhat.com>
33278         maintainer-makefiles: use $(SED) for syntax check
33279         * modules/maintainer-makefile (configure.ac): Check for sane sed.
33280         * top/maint.mk: Change sed to $(SED).
33282 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
33283             Paul Eggert  <eggert@cs.ucla.edu>
33285         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
33286         Patch based on an idea by Dick Streefland in
33287         <https://savannah.gnu.org/patch/?7892>.
33288         * NEWS: Document this.
33289         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
33290         (direntry_t, comparison_function): New types.
33291         (direntry_cmp_name): New function.
33292         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
33293         (streamsavedir, savedir): New arg OPTION.
33294         (streamsavedir): Simplify memory allocation.
33295         (fdsavedir): Remove.
33296         * lib/savedir.h (enum savedir_option): New type.
33297         (streamsavedir, savedir): New arg OPTION.
33298         (fdsavedir): Remove.
33300 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33302         file-type: add support for doors and other less-common file types
33303         Problem with S_ISDOOR reported by Rich Burridge.
33304         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
33305         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
33306         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
33308 2014-01-23  Eric Blake  <eblake@redhat.com>
33310         pthread: work around winpthread header pollution on mingw
33311         * lib/time.in.h: Move pthread workarounds...
33312         * lib/pthread.in.h: ...here.
33313         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
33314         detect macro pollution on mingw.
33315         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
33317 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33319         qacl: check for fchmod
33320         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
33321         and qset-acl.c both use HAVE_FCHMOD.
33323 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33325         fdopen-tests: port to Tru64
33326         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
33327         descriptor that is not open, as POSIX doesn't specify the
33328         resulting behavior and the test does not work on Tru64.
33329         Problem reported by Steven M. Schweda in:
33330         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
33332         stdalign: port to HP-UX compilers
33333         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
33334         if __HP_cc or __HP_aCC are nonzero.
33336 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33338         strtoimax: port to platforms lacking 'long long'
33339         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33340         check whether strtoll is declared, which causes the C file to
33341         wrongly report an error.  Problem reported by Steven M. Schweda in:
33342         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
33343         * lib/strtoimax.c (strtoull):
33344         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
33345         (strtoll): Declare only if HAVE_LONG_LONG_INT.
33347 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
33349         relocatable-perl: fix texi syntax
33350         * doc/relocatable-maint.texi: Escape braces.
33352 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
33354         relocatable-perl: like relocatable-script, but for Perl scripts
33355         * build-aux/relocatable.pl.in: Add.
33356         * doc/relocatable-maint.texi: Add documentation.
33357         * modules/relocatable-perl: Add.
33359 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
33361         tests: fix export bug in previous patch
33362         Problem reported by Jim Meyering.
33363         * tests/init.sh (re_shell): New var, which is exported instead of
33364         re_shell_.
33366         tests: simplify porting to Solaris 10 /bin/sh
33367         Some test cases in 'grep' need a shell that groks '$(';
33368         export re_shell_ for their benefit.  Problem reported for 'grep'
33369         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33370         * tests/init.sh (re_shell_): Export if it's used.
33372 2014-01-06  Eric Blake  <eblake@redhat.com>
33374         md5, sha1, sha256, sha512: support older autoconf
33375         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33376         for autoconf < 2.63b.
33378         include_next: port to autoconf 2.63
33379         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33381 2014-01-04  Jim Meyering  <meyering@fb.com>
33383         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33384         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33385         so that "make sc_maint" will ding anyone who puts non-ascii
33386         in any of gnulib's .texi files.
33388 2014-01-03  Jim Meyering  <meyering@fb.com>
33390         freadable, fwritable, fwriting: declare with the "pure" attribute
33391         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33392         * lib/fwritable.h (fwritable): Likewise.
33393         * lib/fwriting.h (fwriting): Likewise.
33394         Suggested by Bruno Haible.
33396         maint.mk: adapt openat.h-include-without-use test
33397         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33398         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33399         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33400         With this change, running "make sc_maint" in gnulib's top-level
33401         directory now passes for me.
33403 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33405         doc: use ASCII in .texi files where UTF-8 isn't needed
33406         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33407         * doc/posix-functions/setkey.texi, doc/regex.texi:
33408         Use ASCII input, not UTF-8.
33410 2014-01-02  Jim Meyering  <meyering@fb.com>
33412         freading: declare with the "pure" attribute
33413         * lib/freading.h (freading): Declare with the "pure" attribute.
33415         manywarnings: remove -Wmudflap
33416         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33417         it is no longer supported in gcc-4.9-to-be.
33419 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33421         relocatable-script: remove unused code
33422         Problem reported by Reuben Thomas in:
33423         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33424         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33426 2014-01-01  Jim Meyering  <meyering@fb.com>
33428         maint: fix public-submodule-commit to work with newer git
33429         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33430         We were over-quoting the test arguments, and somewhere prior to
33431         version 1.8.5.2.229, git stopped removing those excess quotes,
33432         which made the test fail, since the unexpanded strings would
33433         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33434         command wasn't even being run.
33436 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33438         doc: update main copyright year
33439         * doc/gnulib.texi: Update copyright date.
33441 2014-01-01  Eric Blake  <eblake@redhat.com>
33443         version-etc: new year
33444         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33445         * all files: run 'make update-copyright'
33447 2013-12-24  Eric Blake  <eblake@redhat.com>
33449         passfd: give nicer error for recvfd at eof
33450         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33451         * tests/test-passfd.c (main): Enhance test to cover this.
33453 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33455         gettimeofday: port recent C++ fix to Emacs
33456         Without this further patch, Emacs won't build due to
33457         the portcheck failing.  Also, this simplifies the patch a bit.
33458         * lib/time.in.h (localtime, gmtime): Don't replace unless
33459         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33460         * lib/time.in.h (localtime, gmtime):
33461         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33462         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33463         * modules/time (time.h):
33464         Don't worry about the possibility of localtime and gmtime
33465         being absent; they're present in all C libraries we know about.
33466         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33467         Don't assume sys_time is present and has been initialized.
33468         Instead, use a hack that should work even if it hasn't been.
33469         Don't use a portcheck for gmtime or localtime; this supports
33470         the hack.
33471         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
33473 2013-12-17  John W. Eaton  <jwe@gnu.org>
33475         gettimeofday: fix C++ crosscompilation
33477         Never replace gmtime and localtime by macros when compiling with
33478         C++, this prevents <ctime> from being included.
33480         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
33481         define gmtime and localtime as preprocessor macros.  Instead
33482         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
33483         REPLACE_LOCALTIME substitutions.
33484         * lib/time.in.h: Declare gmtime and localtime when needed.
33485         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
33486         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
33487         * modules/time: Depend on gettimeofday, and substitute the above
33488         variables in time.h.
33490 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33492         qacl: port to Windows better
33493         See Eli Zaretskii in
33494         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
33495         * lib/file-has-acl.c (acl_access_nontrivial):
33496         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
33497         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
33499 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
33501         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
33502         * lib/gl_openssl.h: Cast void pointers to a specific type.
33504 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33506         open-tests: fix build failure with -Werror=old-style-declaration
33507         * tests/test-open.h: Reorder the inline to avoid the issue.
33509 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33511         md5, sha1, sha256, sha512: fix link error with partial libcrypto
33512         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
33513         init time, so that if early checks find crypto routines,
33514         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
33515         avoiding link failures.
33517 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33519         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
33520         This provides a new way to specify the default for
33521         gl_CRYPTO_CHECK, one that is reflected in the --help message.
33522         Emacs uses this, as well as the old way.
33523         This attempts to implement a suggestion by Pádraig Brady in
33524         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
33525         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
33526         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
33528         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
33529         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
33530         Add support for a new option, --with-openssl=auto, which causes
33531         the library to be used if available and silently ignored if not.
33532         Add support to allow configure.ac to specify its own
33533         default, by setting with_openssl_default before invoking gl_INIT.
33535 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33537         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
33538         Problem reported by Daiki Ueno in:
33539         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
33540         * tests/test-open.h (__always_inline):
33541         New macro, if not already defined.
33542         (test_open): Use it.
33544 2013-12-04  Eric Blake  <eblake@redhat.com>
33546         include_next: minimize code duplication
33547         * modules/include_next (Depends-on): Add absolute-header.
33548         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
33549         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
33551 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33553         getcwd: fix compile error in configure check
33554         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
33556 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33558         regex: suppress core dumps from detection code
33559         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
33560         to suppress core dumps that may well occur on glibc systems.
33561         These core dumps might not be cleaned up automatically, or could
33562         trigger some system core dump handling logic.
33564 2013-12-03  Pádraig Brady  <P@draigBrady.com>
33566         md5, sha1, sha256, sha512: support mandating use of openssl
33567         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
33568         description, to list the now 3 separate options.  also don't
33569         mention the default=no, since this is implicit given the option
33570         is described as --with-openssl rather than --without-openssl.
33571         If projects change the default they're free to document that.
33572         with --with-openssl[=yes] we now error out when the specified
33573         hash algorithm is not available in libcrypto.
33575 2013-12-03  Ivailo  <xakepa10@gmail.com>
33577         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
33578         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
33579         -Wformat-nonliteral checks, as these edge cases are part of the test.
33581 2013-12-03  Eric Blake  <eblake@redhat.com>
33583         regex: avoid glibc deadlock during configure
33584         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
33585         glibc bug 15078 in turn triggers bug 16159.
33586         Reported by Michal Privoznik.
33588 2013-12-02  Pádraig Brady  <P@draigBrady.com>
33590         md5, sha1, sha256, sha512: use openssl routines if available.
33591         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
33592         routines will be used if available, requiring apps to link @LIB_CRYPTO@
33593         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
33594         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
33595         in the standard system location.
33596         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
33597         * m4/sha256.m4: Likewise with SHA256.
33598         * m4/sha512.m4: Likewise with SHA512.
33599         * m4/md5.m4: Likewise with MD5.
33600         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
33601         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
33602         * lib/sha256.h: Likewise with SHA256.
33603         * lib/sha512.h: Likewise with SHA512.
33604         * lib/md5.h: Likewise with MD5.
33605         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
33606         * lib/sha256.c: Likewise with SHA256.
33607         * lib/sha512.c: Likewise with SHA512.
33608         * lib/md5.c: Likewise with MD5.
33609         * modules/crypto/sha1 (Link:): Add the new optional lib.
33610         (Depends-on:): Add dependency on extern-inline.
33611         * modules/crypto/sha256: Likewise.
33612         * modules/crypto/sha512: Likewise.
33613         * modules/crypto/md5: Likewise.
33614         * modules/crypto/sha1-tests: Reference the lib here too.
33615         * modules/crypto/md5-tests: Likewise.
33616         * modules/crypto/gc-des-tests: Likewise.
33617         * modules/crypto/gc-hmac-md5-tests: Likewise.
33618         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33619         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33620         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33621         * modules/crypto/gc-md5-tests: Likewise.
33622         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33623         * modules/crypto/gc-sha1-tests: Likewise.
33624         * modules/crypto/gc-tests: Likewise.
33625         * modules/crypto/hmac-md5-tests: Likewise.
33626         * modules/crypto/hmac-sha1-tests: Likewise.
33627         * modules/crypto/hmac-sha256-tests: Likewise.
33628         * modules/crypto/hmac-sha512-tests: Likewise.
33630 2013-11-29  RV1971  <rv1971@web.de>
33632         base64: (trivial) fix compilation regression on some compilers
33633         * lib/base64.c: Don't return the void function,
33634         instead split to a separate return statement.
33636 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33638         ignore-value: revert previous code change
33639         * lib/ignore-value.h (ignore_value): Use __extension__ and
33640         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
33641         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
33642         Change the comment to try to explain this better.
33644 2013-11-27  Pádraig Brady  <P@draigBrady.com>
33646         selinux-h: improve stub types and add more stub functions
33648         * lib/se-selinux.in.h: Change security_context_t to a typedef
33649         rather than a define, as it's a pointer type and so is better
33650         as a typedef to avoid issues declaring multiple variables
33651         with the comma operator.  Also add stub for string_to_security_class().
33652         * lib/se-context.in.h: Add stub functions for
33653         context_{type,range,role,user}_get().
33655 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33657         ignore-value: prefer GCC version back through 2.0
33658         The code didn't match the comments, so I did a bit of software
33659         archaeology.  GCC 2.0 seems to support __extension__ and
33660         __typeof__, so fix both code and comments to use 2.0.
33661         * lib/ignore-value.h (ignore_value): Use __extension__ and
33662         __typeof__ for GCC 2.0 through 3.3, too.
33664 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
33666         pty: Activate the signature wrapper of forkpty.
33667         The intended preprocessor macro HAVE_FORKPTY is
33668         never defined, yet `lib/forkpty.c' depends on it.
33670         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
33671         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
33672         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
33674 2013-11-18  Jim Meyering  <meyering@fb.com>
33675         and Paul Eggert  <eggert@cs.ucla.edu>
33677         quotearg: don't attempt to store 1 << 31 into an "int"
33678         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
33679         gcc's new -fsanitize=undefined and running its tests triggered some
33680         new test failures due to undefined behavior, all with this diagnostic:
33681           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33682             cannot be represented in type int
33683         Rather than shifting "1" left to form a mask, shift the bits right and
33684         simply use "1" as the mask.
33686 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33688         error: depend on stdio
33689         Problem reported by Nikos Mavrogiannopoulos in
33690         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33691         * modules/error (Depends-on): Add stdio.
33693 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33695         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33696         wording.
33697         Reported by Reuben Thomas <rrt@sc3d.org>.
33699 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33701         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33702         New function and macro, to work around _DARWIN_C_SOURCE problem.
33703         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33705 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33707         base64: provide a fast path for encoding well sized buffers
33708         Avoid conditionals in the base64 encoding loop,
33709         which was seen to give 60% better throughput.
33710         * lib/base64.c (base64_encode_fast): A new function to be called
33711         when we don't want to NUL terminate, and we have enough space
33712         in the output to encode the given input.
33713         (base64_encode): Call the _fast() version when appropriate.
33714         Also remove a redundant mask with 0x3F on the first encoded byte.
33716 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33718         extern-inline: port better to OS X 10.9
33719         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33720         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33721         OS X 10.9, except for g++ where the bug is still present.
33722         See <http://trac.macports.org/ticket/41033>.
33724 2013-11-08  Eric Blake  <eblake@redhat.com>
33726         fpending: fix regression on DragonFly BSD
33727         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33728         * lib/fpending.h (__fpending): Don't declare twice.
33729         Reported by GW in
33730         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33732 2013-11-05  Jim Meyering  <meyering@fb.com>
33734         hash: relax license to LGPLv2+, for libguestfs
33735         * modules/hash (License): Change from GPL to LGPLv2+.
33737 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33739         intprops: port to Oracle Studio c99
33740         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33741         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33743 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33745         obstack: pacify HP C
33746         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33747         warning "conversion from pointer to smaller integer" from HP
33748         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33749         C89 or later nowadays, so cast to void instead of int.  Privately
33750         reported by H.Merijn Brand.  Also, change header to match glibc's,
33751         to make checking against glibc easier.
33753 2013-10-29  Jim Meyering  <meyering@fb.com>
33755         maint.mk: prefer gpgv2 over gpgv
33756         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33757         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33758         Reported by Gary Vaughan.
33760 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33762         isnan: port to VAX
33763         Reported by John Klos for NetBSD-5/VAX in
33764         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33765         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33766         (FUNC): Use it.
33768 2013-10-28  Jim Meyering  <meyering@fb.com>
33770         gnulib-tool: protect against CDPATH
33771         * gnulib-tool: Many "cd" built-in functions print a directory name
33772         to stdout when CDPATH is set, e.g.,
33773           $ bash -c 'CDPATH=/; cd tmp'
33774           /tmp
33775         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33777         maint.mk: restore functionality removed by recent change...
33778         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33779         the context of a shallow-cloned gnulib repository: "git describe"
33780         would fail in such a directory.  However, that change made it so
33781         the reported gnulib revision no longer includes the version number
33782         or a commit count, even when run from a full clone.
33783         * top/maint.mk (gnulib-version): Use the full "git describe"
33784         output when possible, e.g., the form above, rather than the
33785         abbreviated, no-tag, no-commit-count string, and fall back to
33786         using a 10-byte hash, rather than the default minimal-length
33787         hash prefix, since while the minimal-length one may be fine today,
33788         it is likely not to be unique for very long.
33790 2013-10-26  Jim Meyering  <meyering@fb.com>
33792         maint.mk: fix "release" target to build _version
33793         This fixes a bug in README-release whereby following the outlined
33794         steps, one would publish a tarball whose programs would report
33795         --version output not consistent with the package version number.
33796         This bug caused grep-2.15 to produce a grep program whose
33797         --version option made it print 2.14.56-1e3d rather than 2.15.
33798         * top/maint.mk (release): Making this target build "_version"
33799         ensures that the new version number is reflected in configure.
33801 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33803         install-reloc: Support multi-binary installation.
33804         * build-aux/install-reloc: Support installing multiple programs in
33805         one invocation, as done by Automake starting with commit
33806         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33807         Haible <bruno@clisp.org>, archived at
33808         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33809         Reported by Sylvain <beuc@gnu.org>.
33811 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33813         selinux-h: Really build without selinux when library is missing.
33814         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33815         continue without selinux, as already told in the warning message.
33817 2013-10-21  Jim Meyering  <meyering@fb.com>
33819         regex: also remove dependency on HAVE_WCSCOLL
33820         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33822 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33824         xfreopen: Fix typo. s/frepoen/freopen/
33825         * lib/xfreopen.c: Fix description.
33826         * modules/xfreopen: Likewise.
33828 2013-10-21  Jim Meyering  <meyering@fb.com>
33830         regex: don't depend on wcscoll
33831         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33832         It is no longer used.
33834 2013-10-20  Jim Meyering  <meyering@fb.com>
33836         error: add the printf attribute to a static function
33837         * lib/error.c (error_tail): Add the printf attribute, to placate
33838         gcc's -Werror=suggest-attribute=format option.
33840 2013-09-30  Jim Meyering  <meyering@fb.com>
33842         fpending, obstack, strerror-override: use pure+const function attrs
33843         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33844         * lib/obstack.c (_obstack_allocated_p): Likewise.
33845         * lib/obstack.h (_obstack_memory_used): Likewise.
33846         (_obstack_memory_used): Likewise.
33847         * lib/strerror-override.h (strerror_override): Declare with
33848         the "const" attribute.
33850 2013-10-18  Eric Blake  <eblake@redhat.com>
33852         extern-inline: make safe for -Wundef usage
33853         Reported by Vladimir 'phcoder' Serbinenko in
33854         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33855         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33857 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33859         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33860         Problem reported by Daniel Richard G. in
33861         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33862         * doc/posix-functions/mkfifo.texi (mkfifo):
33863         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33864         * doc/posix-functions/mknod.texi (mknod):
33865         * doc/posix-functions/mknodat.texi (mknodat):
33866         Document the HP-UX 11.11 bug.
33867         * tests/test-mkfifo.h (test_mkfifo):
33868         Allow the HP-UX 11.11 bug.
33870 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33872         acl: allow cross-compilation to Gentoo
33873         Problem reported by Gabriel Marcano in
33874         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33875         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33876         test only whether it links.
33878 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33880         mgetgroups: remove dependency on realloc-gnu
33881         The dependency violates the comment in realloc-gnu, which
33882         says that tests can't depend on realloc-gnu; some tests depend
33883         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33884         Problem reported by Daniel Richard G. in
33885         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33886         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33887         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33888         not realloc-gnu.
33890 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33892         regex-tests: port to HP-UX 11.11
33893         Problem reported by Daniel Richard G. in
33894         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33895         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33897 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33899         verify: document some 'assume' pitfalls
33900         * doc/verify.texi (Compile-time Assertions):
33901         Mention that 'assume (E)' can sometimes slow things down.
33902         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33904 2013-10-10  Eric Blake  <eblake@redhat.com>
33906         strtoumax: fix typo in previous commit.
33907         * modules/strtoumax (Depends-on): Fix typo.
33908         * modules/strtoimax (Depends-on): Likewise.
33910 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33912         strtoumax: port to Solaris 8
33913         This problem was introduced in the recent HP-UX patch.
33914         Reported by Tom G. Christensen in
33915         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33916         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33917         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33919 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33921         strtoimax, strtoumax: port to HP-UX 11.11
33922         Problem reported by Daniel Richard G. in
33923         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33924         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33925         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33926         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33927         REPLACE_STRTOUMAX.
33928         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33929         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33930         Replace the function if defined as a macro but not as a function.
33931         * modules/inttypes-incomplete (inttypes.h): Substitute
33932         REPLACE_STRTOUMAX.
33933         * modules/strtoumax (configure.ac): Replace strtoumax if
33934         REPLACE_STRTOUMAX.
33936 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33938         strtoimax: port to HP-UX 11.11
33939         Problem reported by Daniel Richard G.
33940         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33941         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33942         they might clash with inttypes.h.
33944 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33946         New module 'count-trailing-zeros'.
33947         * MODULES.html.sh: Mention it.
33948         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33949         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33950         * modules/count-trailing-zeros-tests:
33951         * tests/test-count-trailing-zeros.c:
33952         New files.
33954         count-leading-zeros: port to MSC; support types wider than 64 bits
33955         The ideas behind the MSC port are stolen from Emacs.
33956         * lib/count-leading-zeros.h:
33957         Don't include verify.h: it's no longer needed, as types wider than
33958         64 bits are now supported.
33959         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33960         performance with MSC.  All uses changed.  Do not assume that TYPE
33961         has at most 64 bits.
33962         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33963         All uses changed.  Fold the subtraction from 31 into the table.
33965         count-one-bits: port to MSC; support types wider than 64 bits
33966         The ideas behind the MSC port are stolen from Emacs.
33967         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33968         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33969         Don't include verify.h: it's no longer needed, as types wider than
33970         64 bits are now supported.
33971         (COUNT_ONE_BITS_GENERIC): New macro.
33972         (popcount_supported) [_MSC_VER]: New inline function.
33973         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33974         performance with MSC.  All uses changed.  Do not assume that TYPE
33975         has at most 64 bits.
33976         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33978 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33980         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33981         * lib/mountlist.c (read_file_system_list): fix leak of directory
33982         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33984 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33986         tests: improve diagnostic when an assertion fails
33987         * tests/macros.h (ASSERT): Report the assertion that failed.
33989 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33991         verify: new macro 'assume'
33992         This is taken from Emacs, and should be generally useful.
33993         * doc/verify.texi (assume): Document it.
33994         * lib/verify.h (assume): New macro.
33995         (__has_builtin): Expand to 0 if not defined.
33997 2013-09-26  Eric Blake  <eblake@redhat.com>
33999         dup2, dup3: work around another cygwin crasher
34000         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
34001         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
34002         * tests/test-dup2.c (main): Likewise.
34003         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
34004         * lib/dup3.c (dup3): Likewise.
34005         * doc/posix-functions/dup2.texi (dup2): Document it.
34006         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34008         getdtablesize: work around cygwin issue
34009         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
34010         * modules/getdtablesize (configure.ac): Build replacement.
34011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
34012         * modules/unistd (Makefile.am): Expose the witness.
34013         * lib/unistd.in.h (getdtablesize): Declare replacement.
34014         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
34015         * tests/test-getdtablesize.c (main): Test it.
34016         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
34018 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
34020         pmccabe2html: escaping of special characters
34021         Escape all '<', '>', and '&' in HTML output.
34022         * build-aux/pmccabe2html (html_fnc): Call gsub()
34023         instead of sub() to capture all '<', '>', and '&'.
34024         Neither of '<' and '>' is special in a regexp,
34025         so first arguments to gsub() are corrected. Also,
34026         in replacement strings, ampersand must be escaped.
34027         Finally, '&' must be handled first, then '<' and '>'.
34029 2013-09-24  Eric Blake  <eblake@redhat.com>
34031         manywarnings: enable nicer gcc warning messages
34032         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
34033         some -f options for optimal warnings.
34035 2013-09-21  Jim Meyering  <meyering@fb.com>
34037         timespec: use the new TIMESPEC_RESOLUTION in a few more places
34038         * lib/timespec-add.c (timespec_add): Also replace 999999999
34039         with TIMESPEC_RESOLUTION - 1.
34040         * lib/timespec-sub.c (timespec_sub): Likewise.
34042 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34044         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
34045         Problem reported by Dagobert Michelsen via Eric Blake in
34046         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
34047         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
34048         not AC_COMPILE_IFELSE.
34050 2013-09-23  Eric Blake  <eblake@redhat.com>
34052         configmake: support new --runstatedir option
34053         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
34054         even if autoconf was too old to provide the command line option.
34055         * modules/configmake (Makefile.am): Propagate it to .h file.
34057 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34059         ctype, string: depend on extern-inline
34060         This is needed to complete the recent OS X fixes.
34061         Also, fix related documentation as suggested by Eric Blake.
34062         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34063         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
34064         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
34065         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
34066         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
34067         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
34068         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
34069         * doc/posix-functions/toupper.texi:
34070         List the 'ctype' gnulib module.
34071         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
34072         * doc/posix-functions/strncpy.texi:
34073         List the 'string' gnulib module.
34074         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
34075         Add string.
34076         * modules/ctype, modules/string (Depends-on): Add extern-inline.
34078 2013-09-19  Pádraig Brady  <P@draigBrady.com>
34080         userspec: support optional parameters to parse_user_spec()
34081         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
34082         then avoid group processing and treat the full spec as a user.
34083         (parse_with_separator): Allow the USERNAME and GROUPNAME to
34084         be optional params (NULL), in which case they're ignored.
34086 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
34088         timespec: new function make_timespec, and new constants
34089         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
34090         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
34091         (make_timespec): New function.
34092         * lib/dtotimespec.c (dtotimespec):
34093         * lib/timespec-add.c (timespec_add):
34094         * lib/timespec-sub.c (timespec_sub):
34095         * lib/utimens.c (validate_timespec):
34096         * lib/utimensat.c (rpl_utimensat):
34097         Use these new constants and functions.
34099         stdio: OS X port of putc_unlocked + extern inline
34100         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
34101         * doc/posix-functions/putc_unlocked.texi:
34102         * doc/posix-functions/putchar_unlocked.texi:
34103         Document this portability problem.
34105         signal: OS X port of sigaddset etc. + extern inline
34106         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
34107         (sigismember): #undef on problematic Apple platforms.
34108         * doc/posix-functions/sigaddset.texi:
34109         * doc/posix-functions/sigdelset.texi:
34110         * doc/posix-functions/sigemptyset.texi:
34111         * doc/posix-functions/sigfillset.texi:
34112         * doc/posix-functions/sigismember.texi:
34113         Document this portability problem.
34115         extern-inline: do not always suppress extern inline on OS X
34116         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
34117         extern inline on Apple only if the particular compile-time
34118         configuration is known to have the problem.
34119         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
34120         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
34121         other Gnulib modules.
34123         extern-inline: document fixes for ctype and wctype macros
34124         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34125         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
34126         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
34127         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
34128         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
34129         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
34130         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
34131         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
34132         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
34133         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
34134         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
34135         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
34136         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
34137         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
34138         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
34139         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
34140         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
34141         * doc/posix-functions/strncpy.texi:
34142         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
34143         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
34144         Document that Gnulib fixes portability problems with these
34145         functions on OS X 10.8 and earlier when called from plain inline
34146         or extern inline functions.
34148 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
34150         fflush, freadahead, fseeko: Fix for Android
34151         Suggested by Bruno Haible in:
34152         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
34153         * lib/stdio-impl.h: Use local __sfileext definition.
34155 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
34157         pmccabe2html: Portability to other awk versions.
34158         The functions systime() and strftime() are available
34159         in Gawk only.  Properly close two HTML-tags 'style'
34160         and 'span'.
34161         * build-aux/pmccabe2html (BEGIN): Store timing
34162         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
34163         systime() in HTML_COMMENT.
34164         (html_header): Correctly close tag 'style'.
34165         (END): Replace strftime() by CHRONOS_TIME.  Close
34166         tag 'span' correctly, not as 'div'.
34168 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34170         getgroups: statement without effect
34171         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
34172         Change equality conditional to expected assignment.
34174 2013-09-09  Eric Blake  <eblake@redhat.com>
34176         glob: fix compilation
34177         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
34179 2013-09-07  Eric Blake  <eblake@redhat.com>
34181         glob: fix build for platforms without __THROW
34182         * lib/glob.in.h (__THROW): Add definition again.
34184 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
34186         regex-quote: fix buffer access out of bounds
34187         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
34188         * lib/regex-quote.c (regex_quote_spec_pcre):
34189         Fix typo that resulted in an out-of-bounds read.
34191 2013-09-04  Eric Blake  <eblake@redhat.com>
34193         glob: avoid -Wattribute warnings on glibc
34194         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34195         __THROWNL, not __THROW, on static functions.
34196         * lib/glob.in.h (__THROW): Adjust...
34197         (__THROWNL): ...accordingly.
34199 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34201         headers: check that _GL_INLINE_HEADER_BEGIN is defined
34202         Suggested by Bruce Korb in:
34203         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
34204         * doc/extern-inline.texi (extern inline):
34205         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
34206         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
34207         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
34208         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
34209         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
34210         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
34211         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34212         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
34213         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
34214         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
34215         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
34216         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
34217         * lib/xtime.h:
34218         Check that _GL_INLINE_HEADER_BEGIN is defined.
34220 2013-08-29  Pádraig Brady  <P@draigBrady.com>
34222         bootstrap: remove the --version requirement from ancillary tools
34223         * build-aux/bootstrap (check_exists): A new refactored function to
34224         determine if a command exists.
34225         (find_tool): Use the new function which does not require the
34226         --version option to be supported.
34227         (check_versions): Use the new function.
34229 2013-08-26  Simon Josefsson  <simon@josefsson.org>
34231         gc: support HMAC-SHA256 and HMAC-SHA512.
34232         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
34233         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
34234         functions.
34235         (gc_hmac_md5): Use symbolic constant.
34236         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
34237         (gc_hmac_sha256, gc_hmac_sha512): New functions.
34238         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
34239         * m4/sha256.m4: Protect against empty expansion.
34240         * m4/sha512.m4: Likewise.
34241         * lib/hmac-sha256.c: New file.
34242         * lib/hmac-sha512.c: Likewise.
34243         * m4/gc-hmac-sha256.m4: Likewise.
34244         * m4/gc-hmac-sha512.m4: Likewise.
34245         * m4/gc-sha256.m4: Likewise.
34246         * m4/gc-sha512.m4: Likewise.
34247         * modules/crypto/gc-hmac-sha256: Likewise.
34248         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34249         * modules/crypto/gc-hmac-sha512: Likewise.
34250         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34251         * modules/crypto/hmac-sha256: Likewise.
34252         * modules/crypto/hmac-sha256-tests: Likewise.
34253         * modules/crypto/hmac-sha512: Likewise.
34254         * modules/crypto/hmac-sha512-tests: Likewise.
34255         * tests/test-gc-hmac-sha256.c: Likewise.
34256         * tests/test-gc-hmac-sha512.c: Likewise
34257         * tests/test-hmac-sha256.c: Likewise.
34258         * tests/test-hmac-sha512.c: Likewise
34260 2013-08-24  Daiki Ueno  <ueno@gnu.org>
34262         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
34263         of AC_CHECK_DECLS.
34265 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34267         selinux-at: omit unnecessary include
34268         * lib/selinux-at.c: Don't include dosname.h; not needed, since
34269         this source file doesn't use its macros, and subsidiary files that
34270         use the macros already include it.
34272 2013-08-21  Eric Blake  <eblake@redhat.com>
34274         d-ino: avoid false negative on symlink
34275         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
34276         Reported by Stephane Chazelas.
34278 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
34280         bootstrap: port to OpenBSD sed
34281         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
34282         does not interpret `-' as a file argument to mean stdin.
34284 2013-08-15  Eric Blake  <eblake@redhat.com>
34286         warnings: minor optimization
34287         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
34289         warnings: check -Wfoo rather than -Wno-foo
34290         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
34291         -Wno-, test if the compiler recognizes the positive form instead.
34293 2013-08-15  Karl Berry  <karl@gnu.org>
34295         * config/srclist-update: add option "doclicense" to placate
34296         pulling *.texi files from Emacs.  Write terse usage
34297         documentation at the top.
34299 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
34301         xvasprintf-tests: port to GCC with hardening flags
34302         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
34303         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
34304         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
34306 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34308         fpending: port to recent Cygwin change to stdio_ext.h
34309         Reported by LRN in
34310         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
34311         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
34312         just declare __fpending unless it's a macro.
34313         A duplicate decl shouldn't hurt.
34314         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
34315         call compiles and links, instead of separately checking for
34316         decl and lib function.
34317         * modules/fpending (configure-ac):
34318         Adjust to fpending.m4's renaming of shell variable.
34320 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34322         sys_time: port to OpenBSD
34323         * lib/sys_time.in.h: Simply delegate to the system's header
34324         in the BSDish cases as well.  Problem reported by Mike Miller in
34325         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
34326         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
34327         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
34328         wider than time_t.
34330 2013-08-09  Pádraig Brady  <P@draigBrady.com>
34332         bootstrap: support checksum utils having -c but not --status
34333         * build-aux/bootstrap: Only look for sha1sum if updating po files.
34334         Add sha1 to the list of supported checksum utils since it's now
34335         supported through adjustments below.
34336         (update_po_files): Remove the use of --status
34337         in a way that will suppress all error messages, but since this is
34338         only used to minimize updates, it shouldn't cause an issue.
34339         Exit early if there is a problem updating the po file checksums.
34340         (find_tool): Remove the check for --version support as this
34341         is optional as per commit 86186b17.  Don't even check for the
34342         presence of the command as if that is needed, it's supported
34343         through configuring prerequisites in bootstrap.conf.
34344         Prompt that when a tool isn't found, one can define an environment
34345         variable to add to the hardcoded search list.
34347 2013-08-05  Jim Meyering  <meyering@fb.com>
34349         regex: port to non-glibc/lock-using systems
34350         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
34351         system with GNULIB_LOCK would fail due to absence of the
34352         included "glthread/lock.h".  This would affect any package
34353         for which the "lock" module is used only by the regex module,
34354         and not explicitly used.
34355         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
34356         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
34357         Add a dependency on the "lock" module.
34359 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34361         localecharset: make locale_charset thread-safe on Mac OS X
34362         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34363         instead of MB_CUR_MAX.
34365 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34367         gettext: update to version 0.18.3
34368         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34369         require AC_PROG_SED to allow user to specify custom sed command when
34370         generating en@quot PO file.
34372 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34374         bootstrap: use correct source when copying build-aux files
34375         * build-aux/bootstrap (gnulib_extra_files): This variable is
34376         relative to upstream gnulib layout, not downstream.
34378 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34380         tmpdir: fix bug in VMS port
34381         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34382         See Steven M. Schweda in
34383         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34385 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34387         tmpdir: port to VMS, to // != /, and to long dirs
34388         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34389         __secure_getenv, so that we're more like the glibc version.
34390         All uses changed.
34391         (path_search): Don't put slash after directory if __VMS.
34392         Problem reported by Steven M. Schweda in
34393         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34394         Simplify code to add slash; no need for a loop.
34395         Do not remove trailing slash from "//".
34396         Do not assume dlen <= INT_MAX.
34398 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34400         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34401         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34402         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34403         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34405         accept4, dup3, pipe2: port to Cygwin
34406         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34407         * lib/accept4.c (accept4) [O_BINARY]:
34408         * lib/dup3.c (dup3) [O_BINARY]:
34409         * lib/pipe2.c (pipe2) [O_BINARY]:
34410         Use set_binary_mode, not setmode.
34411         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34412         * modules/binary-io (Depends-on): Remove module indicator.
34413         These last two bits undo the previous change to pipe2 and binary-io.
34415 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34417         mountlist: add support for deallocating returned list entries
34418         * lib/mountlist.c (free_mount_entry): A new exported function
34419         to deallocate a mount list entry.
34420         (read_file_system_list): Refactor to use the new deallocation function.
34421         Suggested by Anton Ovchinnikov.
34423 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34425         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34426         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34427         * lib/stdalign.in.h (_Alignas, _Alignof):
34428         Port to FreeBSD 9.1, and to C11 and C++11.
34429         (_Alignas): Also support ICC.
34430         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34431         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34433 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34435         fnmatch: don't goto over declaration
34436         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34437         undefined behavior for goto over a declaration.
34438         Problem reported by Charlie Brown in
34439         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34441         pipe2: decouple from binary-io a bit
34442         This is for Emacs, which needs pipe2 but not binary-io.
34443         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34444         * modules/binary-io (Depends-on): Add module indicator.
34446 2013-07-03  Eric Blake  <eblake@redhat.com>
34448         mgetgroups: relax license to LGPLv2+
34449         * modules/getugroups (License): Change from GPLv3+.
34450         * modules/mgetgroups (License): Likewise.
34451         * modules/getgroups (License): Change from LGPLv3+.
34453         xalloc-oversized: relax license to LGPLv2+
34454         * modules/xalloc-oversized (License): Change from GPLv3+.
34456         nproc: relax license to LGPLv2+
34457         * modules/nproc (License): Change from LGPLv3+.
34459         bootstrap: honor --no-git
34460         * build-aux/bootstrap: Don't even try to use git when user is
34461         pointing to a static checkout.
34463 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34465         ignore-value: port to gcc -pedantic
34466         * lib/ignore-value.h (ignore_value):
34467         Port to gcc -pedantic, by using __extension__.
34468         Reindent as per usual gnulib style nowadays.
34469         Simplify GCC version check.
34471 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34473         extern-inline: port to gcc -std=c89
34474         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34475         Do not use __gnu_inline__ if pedantic and pre-C99.
34477 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34479         doc: document extern-inline
34480         * doc/extern-inline.texi: New file.
34481         * doc/gnulib.texi (alloca-opt): Include it.
34482         * m4/extern-inline.m4: Move some comments to documentation,
34483         and others closer to what they describe.
34485         doc: chatter less
34486         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
34487         (updated-stamp): Use it.  This causes 'make' to output just
34488         one file name rather than zillions.
34490         fflush, fseeko: port to musl cross-compiles
34491         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
34492         on some implementation that (1) is not known to be buggy,
34493         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
34494         cross-compiled to so we can't easily check for lack of
34495         conformance.  This is for cross-compiling to musl.
34496         Reported by Rich Felker in
34497         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
34498         * m4/fclose.m4 (gl_FUNC_FCLOSE):
34499         * m4/fflush.m4 (gl_FUNC_FFLUSH):
34500         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
34501         Adjust to above change.
34502         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
34503         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
34504         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
34505         known not to work, or unknown.
34507 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34509         msvc-inval: port to mingw-w64
34510         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
34511         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
34512         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
34514 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34516         getcwd-lgpl: port to Tru64
34517         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
34518         Problem reported by Steven M. Schweda in
34519         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
34521         tests: port large-fd POSIX spawn tests to OS X
34522         Problem reported by Daiki Ueno in
34523         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
34524         * tests/test-posix_spawn_file_actions_addclose.c:
34525         * tests/test-posix_spawn_file_actions_adddup2.c:
34526         * tests/test-posix_spawn_file_actions_addopen.c:
34527         Include <limits.h>, for OPEN_MAX, if available.
34528         (big_fd): New static function.
34529         (main): Use it.
34531 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
34533         tests/nap.h: use an adaptive delay to avoid ctime update issues
34534         The recent change in nap.h (5191133e) decreased the probability of lost
34535         races to about a third, however such problems could still be observed
34536         in virtual machines and openSUSE's OBS.
34537         Before, nap() detected the needed time once empirically and then used
34538         that delay (together with a small correction multiplier) in further
34539         calls.  This problem has been reported and discussed several times,
34540         including guesses about possible kernel issues:
34541         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
34542         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
34543         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
34544         http://bugs.gnu.org/12820
34545         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
34546         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
34547         Now, nap() avoids the race alltogether by verifying on a reference
34548         file whether a timestamp difference has happened.
34549         * tests/nap.h (nap_fd): Define file descriptor variable for the
34550         witness file.
34551         (nap_works): Change return value to bool.  Change passing
34552         the old file's status by value instead of by reference as this function
34553         does no longer update that timestamp; rename the function argument from
34554         st to old_st.  Remove the local variables cdiff and mdiff because that
34555         function now returns true/false instead of the precise delay.
34556         (guess_delay): Remove function.
34557         (clear_tmp_file): Add new function to close and unlink the witness file.
34558         (nap): Instead of re-using the delay which has been calculated during
34559         the first call, avoid the race by actually verifying that a timestamp
34560         difference can be observed on the current file system.  Use an adaptive
34561         approach for the delay to minimize execution time.  Assert that the
34562         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
34563         = 2^31 - 1 = 2.1s.
34564         Use atexit to call clear_tmp_file when the process terminates.
34566 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34568         sig2str: port to C++
34569         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
34570         Reported by Daniel J Sebald in
34571         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
34573 2013-05-30  Eric Blake  <eblake@redhat.com>
34575         docs: mention cygwin shortcoming in <sys/un.h>
34576         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
34578         vasnprintf: silence mingw compiler warning
34579         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
34581 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34583         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
34584         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
34585         This fixes a porting bug I recently reintroduced in regex, and
34586         some other instances that I discovered while testing the fix.
34587         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
34588         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
34589         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
34590         with an empty argument if this is a pedantic pre-C99 GCC.
34591         * lib/verify.h: Do not use _Static_assert if this is a pedantic
34592         pre-C11 GCC.
34594         regex: adapt to locking regime instead of depending on pthread
34595         Instead of depending on pthread, adapt to whatever thread
34596         modules are in use.  Problem reported by Ludovic Courtès in
34597         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
34598         and by Mats Erik Andersson in
34599         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
34600         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34601         Support either the 'lock' module, or the 'pthread' module, or
34602         no module.
34603         (lock_lock, lock_unlock): New macros.
34604         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
34605         * modules/lock, modules/pthread (configure.ac): Add module indicator.
34606         * modules/regex (Depends-on): Remove pthread.
34608 2013-05-22  Eric Blake  <eblake@redhat.com>
34610         getgroups: document portability issues
34611         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34612         multithread safety.
34613         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34614         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34615         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34616         getugroups.
34617         * doc/posix-functions/getgroups.texi (getgroups): Mention
34618         multithread safety and mgetgroups.
34620 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
34622         test-lchown, test-chown: also skip test if chown fails with EPERM
34623         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
34624         skip this test, to handle FAT file systems.
34625         * tests/test-chown.h (test_chown): Likewise.
34627 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34629         regex: fix dfa race in multithreaded uses
34630         Problem reported by Ludovic Courtès in
34631         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
34632         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34633         New macros.  All uses of __libc_lock_define, __libc_lock_init
34634         changed to use the first two of these.
34635         (__libc_lock_lock, __libc_lock_unlock): New macros, for
34636         non-glibc platforms.
34637         (struct re_dfa_t): Define the lock unconditionally.
34638         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
34639         '#ifdef _LIBC"s.
34640         * modules/regex (Depends-on): Add pthread, if we use the
34641         included regex.
34643         * lib/regcomp.c: Do actions that are not needed for glibc,
34644         but may be needed elsewhere.
34645         (regfree, re_compile_internal): Destroy the lock.
34646         (re_compile_internal): Check for lock-initialization failure.
34648         malloca: port to compilers that reject size-zero arrays
34649         This fixes a bug introduced in my previous patch.
34650         * lib/malloca.c (struct preliminary_header): Use an int
34651         rather than a character array of size int; that's simpler.
34652         (struct header): Remove, replacing with ...
34653         (union header): New type.  This avoids the need for declaring a
34654         character array of size zero, which is not allowed on some platforms.
34655         All uses changed.
34657 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34659         parse-datetime, tests: don't use "string" + int
34660         Recent versions of 'clang' complain about C source code that
34661         uses expressions of the form '"string literal" + integer',
34662         I guess on the theory that it's confusing for readers who are
34663         used to C++.  On those grounds I suppose it's OK to make this
34664         minor style change.
34665         * lib/parse-datetime.y (parse_datetime):
34666         * tests/test-fchdir.c (main):
34667         * tests/test-snprintf-posix.h (test_function):
34668         * tests/test-snprintf.c (main):
34669         * tests/test-vasnprintf-posix.c (test_function):
34670         * tests/test-vasnprintf.c (test_function):
34671         * tests/test-vsnprintf.c (main):
34672         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
34673         Rewrite '"str" + E' to '&"str"[E]'.
34675 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34677         argmatch: port to C++
34678         * lib/argmatch.h [__cplusplus]: Add extern "C".
34680         argp: typo fix
34681         * lib/argp-help.c: Typo in comment.
34683 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34685         manywarnings: update for GCC 4.8.0
34686         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34687         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34688         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34689         -Wmissing-noreturn, as they are duplicates of other warnings.
34690         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34691         was documented to be flaky in earlier versions of GCC.
34693         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34694         * tests/test-spawn.c (main):
34695         * tests/test-sys_socket.c (main):
34696         * tests/test-sys_wait.c (main):
34697         Don't have a switch value that isn't covered by a case.
34699         getaddrinfo-tests: port --enable-gcc-warnings to clang
34700         * tests/test-getaddrinfo.c (simple):
34701         Avoid casts from looser to stricter-aligned pointers.
34703         thread: port --enable-gcc-warnings to clang
34704         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34705         Include <signal.h>, to pacify a warning about pthread_sigmask.
34707         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34708         * lib/stdio.in.h (fwrite):
34709         When working around bug 11959, use __REDIRECT rather than '#define
34710         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34711         fix the -Wunused-value issue with clang, and it works with GCC too.
34712         Problem with targeting reported by Eric Blake in
34713         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34714         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34715         debugging the fwrite issue.
34717         stdio: port --enable-gcc-warnings to clang
34718         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34719         since the GCC workaround for fwrite does not pacify clang.
34721         sig2str: port --enable-gcc-warnings to clang
34722         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34724         obstack: port --enable-gcc-warnings to clang
34725         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34726         Avoid casts from looser to stricter-aligned pointers.
34728         memchr2: port --enable-gcc-warnings to clang
34729         * lib/memchr2.c (memchr2):
34730         Avoid casts from looser to stricter-aligned pointers.
34732         mbsstr: port --enable-gcc-warnings to clang
34733         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34734         Avoid casts from looser to stricter-aligned pointers.
34736         malloca: port --enable-gcc-warnings to clang
34737         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34738         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34740         inttostr: port --enable-gcc-warnings to clang
34741         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34743         warnings: port to clang
34744         Problem reported by Daniel P. Berrange via Eric Blake in
34745         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34746         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34747         (gl_WARN_ADD): Use it.
34749 2013-05-11  Jim Meyering  <meyering@fb.com>
34751         quotearg: do not read beyond end of buffer
34752         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34753         end of an ARG for which no length was specified.  With an N-byte
34754         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34755         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34756         via coreutils' misc/sort-debug-keys.sh test and detected by running
34757         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34758         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34759         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34760         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34761         characters correctly."
34763 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34765         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34766         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34767         compilation target is Mac OS X 10.6.
34768         Problem reported by parafin and Andoni Morales in
34769         <http://savannah.gnu.org/bugs/?37844> and
34770         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34772 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34774         mkdir-p: remove assumptions about umask and mode
34775         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34776         umask is 0, or that MODE is a subset of MODE_BITS.
34778 2013-05-10  Eric Blake  <eblake@redhat.com>
34780         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34781         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34783 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34785         deps: require Automake >= 1.9.6 in generated Makefile fragments
34787         That is the same minimal version required in the DEPENDENCIES file.
34788         Moreover, the old code generated a requirement of Automake >= 1.5,
34789         and that is an insanely outdated version.
34791         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34792         * tests/havelib/rpathlx/Makefile.am: Likewise.
34793         * tests/havelib/rpathly/Makefile.am: Likewise.
34794         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34795         * tests/havelib/rpathlz/Makefile.am: Likewise.
34796         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34797         * tests/havelib/rpathx/Makefile.am: Likewise.
34798         * tests/havelib/rpathy/Makefile.am: Likewise.
34799         * tests/havelib/rpathz/Makefile.am: Likewise.
34801 2013-05-08  Eric Blake  <eblake@redhat.com>
34803         bootstrap: AC_INIT may have more than four parameters
34804         * build-aux/bootstrap (extract_package_name): Correctly extract
34805         non-empty tarname field.  Avoid range in regex.
34806         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34808 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34810         qacl: port to MS-Windows port of GNU Emacs
34811         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34812         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34813         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34814         <http://bugs.gnu.org/14295#14>.
34816 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34818         acl: include quote.h
34819         * lib/copy-acl.c: Include quote.h.
34820         * lib/set-acl.c: Likewise.
34822 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34824         fchownat, renameat, unlinkat: update statat dependencies
34825         These modules use statat and lstatat, not fstatat; so depend on
34826         the statat module, which was split out recently from fstatat.
34827         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34828         * modules/renameat: Likewise.  Also delete fstat.
34829         URL: http://bugs.gentoo.org/468790
34831 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34833         Assume gnulib is checked out from Git, not CVS
34835         In fact, access to the gnulib repository through CVS has been
34836         disabled, or more precisely, got broken and was never restored; see:
34837         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34839         Note that support for CVS is not removed completely and unthinkingly
34840         by this change: only support for CVS checkouts of gnulib itself is
34841         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34842         files and CVS directories, for the benefit of those poor gnulib clients
34843         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34845         * gnulib-tool: Simplify accordingly.
34846         * posix-modules: Likewise.
34847         * MODULES.html.sh: Likewise.
34848         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34849         repository.
34850         * doc/gnulib-intro.texi: Likewise.
34851         * doc/gnulib-readme.texi: Likewise.
34852         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34853         sample '.gitignore' file rather than a sample '.cvsignore'.
34854         * NEWS: Update.
34855         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34856         to "CVS Autoconf" rather than "git Autoconf".
34858 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34860         utimensat-tests, etc.: try to fix some races
34861         Problem reported by Bernhard Voelker in
34862         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34863         I don't know whether this patch fixes that race condition, but it
34864         fixes *some* race conditions, so it should be a win.
34865         * modules/chown-tests (Depends-on):
34866         * modules/fchownat-tests (Depends-on):
34867         * modules/fdutimensat-tests (Depends-on):
34868         * modules/futimens-tests (Depends-on):
34869         * modules/lchown-tests (Depends-on):
34870         * modules/stat-time-tests (Depends-on):
34871         * modules/utimens-tests (Depends-on):
34872         * modules/utimensat-tests (Depends-on):
34873         Depend on nanosleep, not usleep.
34874         * modules/chown-tests (test_chown_LDADD):
34875         * modules/lchown-tests (test_lchown_LDADD):
34876         * modules/stat-time-tests (test_stat_time_LDADD):
34877         New macro.
34878         * modules/fchownat-tests (test_fchownat_LDADD):
34879         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34880         * modules/futimens-tests (test_futimens_LDADD):
34881         * modules/utimens-tests (test_utimens_LDADD):
34882         * modules/utimensat-tests (test_utimensat_LDADD):
34883         Add $(LIB_NANOSLEEP).
34884         * modules/stat-time-tests (Files): Add tests/nap.h.
34885         * tests/nap.h: Include <limits.h>, for INT_MAX.
34886         (lt_mtime): Remove.
34887         (diff_timespec): New function.
34888         (get_stat): Rename from get_mtime.  All callers changed.
34889         (nap_works): Determine the needed delay by inspecting the
34890         file system's timestamp jumps; this should be more reliable.
34891         Look at both mtime and ctime, and take the maximum of the two jumps.
34892         (nap_works, guess_delay):
34893         Return a nanosecond count, not a microsecond count.
34894         All callers changed.
34895         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34896         failure.
34897         (nap): Multiply the guess by 1.125, to accommodate the case where
34898         the file system's clock is a bit slower than nanosleep's clock.
34899         * tests/test-stat-time.c (BASE): New macro.
34900         Include nap.h.
34901         (nap): Remove; nap.h now defines this.  This removes a duplicate
34902         implementation of 'nap'.
34904         utimens, utimensat: work around Solaris UTIME_OMIT bug
34905         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34906         Linux kernel 2.6.32 does.  Work around it in the same way.
34907         * doc/posix-functions/futimens.texi (futimens):
34908         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34909         * lib/utimens.c (fdutimens, lutimens):
34910         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34912         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34913         Formerly, it was your responsibility to do this for all Makefile.ams
34914         other than Gnulib's.  Now it's your responsibility to do it for
34915         Gnulib's Makefile.am, too.
34916         * NEWS: Document this.
34917         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34919         acl: include errno.h to get errno
34920         Reported by Daiki Ueno in
34921         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34922         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34924 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34926         tests: don't assume getdtablesize () <= 10000000
34927         * modules/cloexec-tests:
34928         * modules/dup2-tests:
34929         * modules/dup3-tests:
34930         * modules/nonblocking-tests:
34931         * modules/posix_spawn_file_actions_addclose-tests:
34932         * modules/posix_spawn_file_actions_adddup2-tests:
34933         * modules/posix_spawn_file_actions_addopen-tests:
34934         * modules/unistd-safer-tests:
34935         Depend on the getdtablesize module.
34936         * tests/test-cloexec.c:
34937         * tests/test-dup-safer.c:
34938         * tests/test-dup2.c:
34939         * tests/test-dup3.c:
34940         * tests/test-fcntl.c:
34941         * tests/test-nonblocking.c:
34942         * tests/test-posix_spawn_file_actions_addclose.c:
34943         * tests/test-posix_spawn_file_actions_adddup2.c:
34944         * tests/test-posix_spawn_file_actions_addopen.c:
34945         Don't assume getdtablesize () <= 10000000.
34947 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34949         extern-inline: work around bug in Sun c99
34950         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34951         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34953 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34955         qacl: new module, broken out from the acl module
34956         This is for GNU Emacs, which wants the acl functions but does
34957         not want 'error' invoked when they fail.
34958         * lib/acl-internal.h: Do not include error.h, quote.h.
34959         (ENOSYS, ENOTSUP): Remove; no longer needed.
34960         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34961         * lib/acl.h: Include <stdbool.h>.
34962         (acl_errno_valid): New function.
34963         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34964         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34965         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34966         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34967         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34968         * lib/file-has-acl.c (file_has_acl):
34969         * lib/qcopy-acl.c (qcopy_acl):
34970         * lib/qset-acl.c (qset_acl):
34971         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34972         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34973         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34974         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34975         Add lib/set-acl.c.
34976         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34977         Add qacl.
34978         (configure.ac): Move gl_FUNC_ACL to qacl module.
34979         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34980         Rename set-mode-acl.c to set-acl.c.
34981         * lib/acl-errno-valid.c: New file.
34982         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34983         copy_acl function remains in copy-acl.c.
34984         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34985         (_): Remove; not needed.
34986         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34987         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34988         * modules/qacl: New file, moved from the old modules/acl.
34989         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34990         Remove set-mode-acl.c, copy-acl.c.
34991         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34993         alignof, intprops, malloca: port better to IBM's C compiler
34994         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34995         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34996         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34998 2013-04-25  Daiki Ueno  <ueno@gnu.org>
35000         wctype-h: fix gettext link error on mingw
35001         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
35002         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
35003         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
35004         rpl_towupper and rpl_towupper.
35006 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
35008         regex-tests, regex: allow glibc re_search behavior
35009         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
35010         re_search input data to make the multi-character collating element
35011         in it clearly visible, and treat re_search return code 0 as valid.
35012         * m4/regex.m4 (gl_REGEX): Likewise.
35014 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35016         stdalign: doc fix
35017         * doc/posix-headers/stdalign.texi (stdalign.h):
35018         Gnulib doesn't support '_Alignof expr'.
35020 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35022         stdalign: port to stricter ISO C11
35023         ISO C11 says that _Alignof's operand must be a parenthesized type.
35024         Problem reported by Eli Zaretskii in
35025         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
35026         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35027         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
35029 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35031         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
35032         Problem reported by Marco Atzeri in
35033         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
35034         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
35035         Simply delegate to the system <sys/select.h> in this case too.
35036         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
35037         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
35038         be needed on Solaris either.
35039         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
35040         Simply delegate to the system <sys/time.h> in this case.
35042 2013-03-19  Karl Berry  <karl@gnu.org>
35044         * build-aux/gnupload: check for erroneous (with gnupload) use of
35045         ftp-upload.gnu.org, tweak help.
35047 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35049         copy-file, rpmatch: fix problems found by cppcheck
35050         Reported by Arno Onken in
35051         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
35052         * lib/rpmatch.c (try): Fix memory leak.
35053         * lib/copy-file.c: Include "ignore-value.h".
35054         (qcopy_file_preserving): Ignore chown value.
35055         * modules/copy-file (Depends-on): Add ignore-value.
35057 2013-01-27  Jim Meyering  <jim@meyering.net>
35059         prefix-gnulib-mk: give better diagnostics
35060         * build-aux/prefix-gnulib-mk: Don't just "die".
35061         Give better diagnostics upon failure.
35063 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
35065         putenv: port to Solaris 10
35066         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
35067         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
35068         is not what is wanted here.
35069         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
35070         declaration, not for its existence.
35072 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
35074         mktime: fix configure typo
35075         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
35077 2013-03-12  Eric Blake  <eblake@redhat.com>
35079         regex-tests: skip UTF-8 test on mingw
35080         * modules/regex-tests (Depends-on): Add localcharset.
35081         * tests/test-regex.c (main): Use it to skip test on mingw.
35083 2013-03-11  Eric Blake  <eblake@redhat.com>
35085         tests: make it easier to bypass alarm time in debugger
35086         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
35087         * tests/test-memmem.c (main): Likewise.
35088         * tests/test-passfd.c (main): Likewise.
35089         * tests/test-ptsname.c (main): Likewise.
35090         * tests/test-ptsname_r.c (main): Likewise.
35091         * tests/test-strcasestr.c (main): Likewise.
35092         * tests/test-strstr.c (main): Likewise.
35094         regex: port to mingw's recent addition of undeclared alarm
35095         * doc/posix-functions/alarm.texi (alarm): Document that alarm
35096         exists but still doesn't work in newer mingw.
35097         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
35098         not existence.  Ensure SIGALRM is not trapped.
35099         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
35100         * m4/regex.m4 (gl_REGEX): Likewise.
35101         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
35102         * tests/test-regex.c (main): Use correct probe for alarm.
35104         putenv: avoid compilation warning on mingw
35105         * lib/putenv.c (_unsetenv): Protect variable declaration.
35106         (putenv): Fix indentation.
35108 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
35110         unistd: don't prevent Tru64 Unix from using gnulib strtod.
35111         * lib/unistd.in.h: be careful not to include un-needed system
35112         stdlib.h from here, because that prevents gnulib stdlib.h from
35113         defining rpl_strtod correctly.
35115 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
35117         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
35118         changesets, but for the 'precision 0' test.
35119         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35120         round-to-even, since POSIX says rounding is implementation-defined
35121         and OS X 10.8.2 rounds 1.51 to 1 here.
35123         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
35124         changeset.
35125         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35126         round-to-even, since POSIX says rounding is implementation-defined
35127         and OS X 10.8.2 rounds 1.5 to 1 here.
35129 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35131         vasnprintf-posix-tests: allow rounding 1.5 to 1
35132         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
35133         round-to-even, since POSIX says rounding is implementation-defined
35134         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
35135         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
35137         bootstrap: port to FreeBSD
35138         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
35139         that treat '--' differently.  Reported by Mats Erik Andersson in
35140         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
35142 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
35144         regex: rename remaining __attribute calls to __attribute__.
35145         2012-02-25 changed definition of __attribute, but left some uses
35146         unchanged, preventing compilation of regex module on most non-gcc
35147         environments.
35148         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
35149         (lookup_collation_sequence_value, build_range_exp)
35150         (build_collating_symbol): Set attributes with newly renamed
35151         __attribute__ decorator.
35152         * lib/regex_internal.c (re_string_peek_byte_case)
35153         (re_node_set_compare, re_node_set_contains): Likewise.
35154         * lib/regexec.c (acquire_init_state_context): Likewise.
35156 2013-03-06  Bruno Haible  <bruno@clisp.org>
35158         execute: Revert last change, but use a different condition.
35159         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
35160         on Windows.
35162 2013-03-05  Eric Blake  <eblake@redhat.com>
35164         execute: drop dead code
35165         * lib/execute.c (nonintr_close, nonintr_open): Delete.
35167 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
35169         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
35170         * m4/non-recursive-gnulib-prefix-hack.m4
35171         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
35172         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
35173         <http://bugs.gnu.org/10305#237>.
35175 2013-03-04  Eric Blake  <eblake@redhat.com>
35177         test-getsockopt: avoid compiler warning
35178         * tests/test-getsockopt.c (includes): Ensure close is declared.
35180 2013-03-02  Bruno Haible  <bruno@clisp.org>
35182         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
35183         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
35185 2013-03-02  Bruno Haible  <bruno@clisp.org>
35187         gettext: Update to version 0.18.2.
35188         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
35189         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35190                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35192 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35194         regex: merge patches from libc
35196         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35197         * lib/regex_internal.h (__attribute__): Rename from __attribute.
35198         All uses changed.
35199         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
35200         (re_string_wchar_at, re_string_elem_size_at):
35201         Mark function as possibly unused.
35203         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
35204         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
35205         elements compare against the byte sequence of it, not its name.
35207 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35209         putenv: port better to native Windows
35210         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35211         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
35212         (_unsetenv): Use _putenv if available.
35213         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
35214         a bit less likely to cause damage.
35215         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35216         Fix the wrong value with SetEnvironmentVariable.
35217         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
35218         code better.
35220 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35222         regex: ignore old-style-definition warnings
35223         * lib/regex.c: Add pragma to ignore these warnings.
35224         Problem reported for GNU tar by Pavel Raiskup.
35226 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35228         getcwd: support coreutils better
35229         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
35230         but this might not be correct in coreutils, which disables
35231         the raw decl checks.  Problem reported by Nagendra in
35232         <http://bugs.gnu.org/10305#192>.
35233         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
35234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35235         Test the getcwd function, not any macro, since getcwd.c wants the
35236         function.
35237         * m4/getcwd.m4 (gl_FUNC_GETCWD):
35238         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
35239         compile, as might happen if there's a macro but no function.
35241         strtod: support coreutils better
35242         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
35243         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
35244         disables the raw decl checks.  This assumes there is an underlying
35245         strtod, but that's a safe assumption these days.
35246         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
35248         mountlist: port to HP NonStop
35249         Reported by Joachim Schmitz in
35250         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
35251         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
35252         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
35254 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35256         extern-inline: avoid compilation error with HP-UX cc
35257         Reported by Richard Lloyd in
35258         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
35259         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35260         Suppress extern inline with HP-UX cc.  This should be safe,
35261         though it may hurt performance.  Perhaps someone with some HP-UX
35262         experience can come up with a higher-performance fix.
35264 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35266         putenv: fix heap corruption with mixed putenv/_putenv
35267         Problem reported by Michael Goffioul in
35268         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
35269         * lib/putenv.c (putenv) [HAVE__PUTENV]:
35270         Rely on _putenv to allocate the new environment.
35271         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35272         * modules/putenv (configure.ac): Use it.
35274 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
35276         unsetenv etc.: port to Solaris 11 + GNU Emacs
35277         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
35278         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
35279         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
35280         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
35281         idea but is too painful to fix right now), and without this gnulib
35282         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
35283         compiling unsetenv.c on Solaris 11.  Fix the problem for
35284         unsetenv.c, and fix other similar occurrences.
35286 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35288         secure_getenv: fix C++ declaration typo
35289         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
35290         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
35291         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
35293 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35295         careadlinkat: stop exporting careadlinkatcwd
35296         Only Emacs used it directly, and Emacs no longer needs it.
35297         * NEWS: Document this simplification.
35298         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
35299         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
35300         for readlink.
35301         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
35302         Don't include stdlib.h; no longer needed.
35303         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
35304         * lib/relocwrapper.c: Adjust comment to match new dependencies.
35305         * modules/areadlink (Depends-on): Add readlink.
35306         (Maintainer): Add self.
35307         * modules/careadlinkat (Depends-on): Remove readlink.
35309         extensions: port better to HP-UX
35310         This is merged from git Autoconf.
35311         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35312         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
35313         so that it's compatible with the value used when compiling.
35315         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
35316         Problem reported by Mats Erik Andersson in
35317         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
35318         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35319         openpty function exists, not merely when we intend to replace it.
35320         This corrects the 2013-01-31 patch, which mistakenly defined
35321         HAVE_OPENPTY even on hosts that lacked it.
35323 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35325         secure_getenv: fix include typo
35326         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
35328         secure_getenv: port better to FreeBSD and Solaris
35329         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
35330         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
35331         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
35332         This works better on BSDish platforms.
35333         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
35334         Test for issetugid if __secure_getenv is missing.
35336 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35338         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
35339         Some of these changes are merged in from git Autoconf.
35340         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35341         When deciding whether to define _XOPEN_SOURCE, inspect the
35342         preprocessor macro __hpux instead of the more-heavyweight
35343         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
35344         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
35345         as the key for __EXTENSIONS__.
35347         unistd: avoid namespace pollution on non-glibc systems
35348         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
35349         This avoids namespace pollution on non-glibc systems, by causing
35350         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
35351         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
35352         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
35354 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35356         tmpdir: use secure_getenv
35357         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
35358         Define to secure_getenv, not getenv.
35359         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
35360         as that's now secure_getenv's job.
35361         * modules/tmpdir (Depends-on): Add secure_getenv.
35363         tempname: use secure_getenv
35364         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35365         Define to secure_getenv, not getenv.
35366         * modules/tempname (Depends-on):
35367         Add secure_getenv.
35369         secure_getenv: new module
35370         * MODULES.html.sh (Extra functions based on ANSI C 89):
35371         Add secure_getenv.
35372         * doc/glibc-functions/secure_getenv.texi: New file.
35373         * doc/gnulib.texi: Include it.
35374         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35375         New files.
35376         * lib/stdlib.in.h (secure_getenv): New decl.
35377         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35378         * modules/stdlib (stdlib.h):
35379         Add secure_getenv checks.
35381 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35383         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35384         Reported for OS X 10.8.2 by Assaf Gordon in
35385         <http://bugs.gnu.org/13516>.
35386         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35387         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35388         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35389         so that they can be kept in sync more easily.  Avoid PATH_MAX
35390         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35391         mkdir or chdir failure.
35392         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35393         lib/getcwd.c.
35394         (test_abort_bug): Do not test for the deep directory bug unless we
35395         have openat support.  Avoid PATH_MAX test on the Hurd.
35397         regex-tests, regex: fix bug: memset undeclared
35398         * tests/test-regex.c: Don't include regex.h twice.  Include
35399         string.h, to declare memset.  Christensen's report also mentioned
35400         this issue.
35401         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35402         test-regex.c, to avoid future problems like this.  Remove
35403         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35404         twice.
35406         regex-tests: fix link errors on older Solaris
35407         These need to link with @LIBINTL@ to get libintl_gettext.
35408         Problem reported by Tom G. Christensen in
35409         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35410         * modules/regex-tests (test_regex_LDADD): New macro.
35412 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35414         regex-tests: new module
35415         * modules/regex-tests, tests/test-regex.c: New files.
35417         regex: fix off-by-one error in configure test
35418         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35420 2013-01-31  Eric Blake  <eblake@redhat.com>
35422         regex: avoid infinite configure test
35423         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35425 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35427         openpty: fix bug where HAVE_OPENPTY wasn't defined
35428         See the thread starting at:
35429         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35430         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35431         openpty function exists, not merely when we intend to replace it.
35433 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35435         sys_time: port to Solaris 2.6
35436         There is a circularity problem on Solaris 2.6, where <time.h> includes
35437         <sys/time.h> for struct timespec.  The include nesting is gnulib
35438         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35439         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35440         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35441         <sys/siginfo.h>; the last, innermost file needs struct
35442         timestruc_t, which is defined in <sys/time.h>, which has not been
35443         fully parsed.  Problem reported by Tom G. Christensen in
35444         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35445         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35446         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35447         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35448         uses split double-inclusion guards.
35450 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35452         regex: test for buffer overrun
35453         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35454         for the just-fixed regex bug.
35456 2013-01-29  Andreas Schwab  <schwab@suse.de>
35458         regex: fix buffer overrun in regexp matcher [BZ #15078]
35459         * lib/regexec.c (extend_buffers): Add parameter min_len.
35460         (check_matching): Pass minimum needed length.
35461         (clean_state_log_if_needed): Likewise.
35462         (get_subexp): Likewise.
35464 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35466         mountlist: don't consider "devtmpfs" as dummy
35467         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35468         as there is storage associcated with it.
35470 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35472         futimens-tests, utimens-tests: Depend on gettext.
35473         This works around a problem introduced in my 2013-01-12 patch,
35474         which added @LIBINTL@ to these modules.
35475         * modules/futimens-tests (Depends-on):
35476         * modules/utimens-tests (Depends-on): Add gettext.
35478 2013-01-26  Eric Blake  <eblake@redhat.com>
35480         test-getpeername: fix typo
35481         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
35483 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
35485         bootstrap: remove the need for a sorted .gitignore file
35486         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
35487         rename to insert_if_absent(), so that we don't need or generate
35488         a sorted .gitignore file.  We do require a .gitignore with no
35489         existing duplicate entries and enforce that.
35490         (sort_patterns): Remove this function as we now use the simpler
35491         technigue of inserting blacklist entries at the top of the file,
35492         assuming gnulib won't be inserting !whitelist entries.
35494 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35496         readlinkat: don't depend on gl_FUNC_OPENAT
35497         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
35498         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
35499         renameat.m4, symlinkat.m4; but one thing at a time.
35501         statat: new module, split out from fstatat
35502         GNU Emacs needs the POSIX-specified fstatat, but not the
35503         gnulib-specified statat and lstat.  Split the latter two into a
35504         new module 'statat'.
35505         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
35506         * lib/openat.h, lib/statat.c (STATAT_INLINE):
35507         Rename from FSTATAT_INLINE. All uses changed.
35508         * modules/fstatat (Files): Remove lib/statat.c.
35509         (gl_MODULE_INDICATOR([fstatat])): Remove.
35510         (lib_SOURCES): Remove.
35511         (Maintainer): Add self.
35512         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
35513         * tests/test-fstatat.c (BASE): Don't define if already defined.
35514         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
35516 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35518         tests: don't assume fd 99 is closed
35519         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
35520         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
35521         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
35522         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
35523         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
35524         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
35525         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
35526         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
35527         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35528         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
35529         * tests/test-fwrite.c, tests/test-getpeername.c:
35530         * tests/test-getsockname.c, tests/test-getsockopt.c:
35531         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
35532         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
35533         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
35534         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
35535         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
35536         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
35537         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
35538         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
35539         * tests/test-unlinkat.c, tests/test-unlockpt.c:
35540         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
35541         Close file descriptor 99, instead of assuming it's already closed.
35543 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35545         stpncpy: port to OS X 10.8
35546         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
35547         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
35549 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35551         unistd: port to recent mingw
35552         * lib/unistd.in.h: Remove special invocation convention for mingw,
35553         which breaks for the latest mingw version.  See John W. Eaton in
35554         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
35556         largefile: port better to Mac OS X 10.5
35557         This patch is backported from Autoconf git.
35558         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
35559         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
35560         with ino_t size being different for configuration time versus
35561         build/run time.  Problem reported by PHO in
35562         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
35564 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35566         doc: clarify -Werror
35567         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
35568         clarify that it's intended for developers, not for ordinary builds,
35569         and mention --enable-gcc-warnings as one possible use.
35571 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
35573         stdint: fix build with Android's Bionic fox x86
35574         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
35575         was already included as _SSIZE_T_DEFINED_ might also be defined
35576         in include/machine/_types.h, which is included by stdio.h
35578 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
35580         net_if-tests: port to Solaris 7 + GCC 3.4.6
35581         Problem reported by Tom G. Christensen in
35582         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
35583         * tests/test-net_if.c (ni): Move to next the code that uses it,
35584         so that it's declared only if needed.
35586 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35588         net_if-tests: port to older Solaris
35589         Problem reported by Tom G. Christensen in
35590         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35591         * modules/net_if-tests (NET_IF_LIB): New substitution.
35592         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
35593         (HAVE_IF_NAMEINDEX): New C macro.
35594         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
35596         system-quote-tests: port to older Solaris
35597         Problem reported by Tom G. Christensen in
35598         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35599         * tests/test-system-quote-child.c (fopen, fread): Undef.
35601         c-xvasprintf etc.: fix link errors on older Solaris
35602         These need to link with @LIBINTL@ to get libintl_gettext.
35603         Problem reported by Tom G. Christensen in
35604         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35605         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
35606         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
35607         * modules/futimens-tests (test_futimens_LDADD):
35608         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35610 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35612         locale: port to Solaris 2.6 and 7 + GNU gettext
35613         * lib/locale.in.h: Just include_next <locale.h> when
35614         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35615         when combining the localename module with GNU gettext 0.18.2.
35616         Problem reported by Tom G. Christensen in
35617         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
35619 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35621         stdlib: port to Solaris 2.6
35622         Also, the code worked on Solaris 7 through 9 only by accident.
35623         Problem reported by Tom G. Christensen in
35624         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
35625         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
35626         simply include the system stdlib.h.
35627         * lib/getopt.in.h (__need_system_stdlib_h):
35628         * lib/pthread.in.h (__need_system_stdlib_h):
35629         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
35630         Define when including <stdlib.h>, to avoid problems at least for
35631         the pthread case on Solaris 2.6 and 7.  These .h files can get by
35632         with the system stdlib.h.
35634 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35636         doc: update main copyright year
35637         * doc/gnulib.texi: Update copyright date.
35639         doc: improve ISO 8601 discussion
35640         * doc/parse-datetime.texi (Combined date and time of day items):
35641         Specify more carefully what formats are supported and what is
35642         done with excess precision.
35644 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35646         doc: avoid small caps
35647         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
35648         they're more trouble than they're worth.  Suggested by Karl Berry
35649         in <http://bugs.gnu.org/13360>.
35651         regex: conform to strict C
35652         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35653         From Aharon Robbins.
35655         gnulib-tool: fix incompatibility with autopoint 0.18.2
35656         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
35657         Problem reported by Tom G. Christensen in
35658         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
35660 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35662         fprintftime: bring back and reword fwrite comment
35663         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
35665         stdio: remove now-unnecessary stdio.c
35666         Since stdio.in.h no longer uses inline functions, we no longer
35667         need to compile the extern versions.
35668         * lib/stdio.c: Remove.
35669         * modules/stdio (Files): Remove lib/stdio.c.
35670         (lib_SOURCES): Remove.
35672         unicodeio: depend on stdio, not ignore-value
35673         * lib/unicodeio.c: Do not include ignore-value.h.
35674         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
35675         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
35677         fprintftime: depend on stdio, not ignore-value
35678         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
35679         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
35680         since the stdio module arranges to silence that warning now.
35681         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35683 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35685         stdint-tests: Fix expanded-before-required-warning.
35686         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35688 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35690         fwrite: silence __wur only for older glibc versions
35691         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35692         This will help us remove this workaround some time in the far future.
35694 2013-01-03  Eric Blake  <eblake@redhat.com>
35696         fwrite: silence __wur without using inline
35697         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35698         just gcc, and in a way that avoids inline issues.
35699         * modules/stdio (Depends-on): Drop extern-inline.
35701 2013-01-03  Jim Meyering  <jim@meyering.net>
35703         update-copyright: avoid copyright notice date corruption
35704         Given a sequence of copyright year numbers in which the final
35705         one was a two-digit number that happened to be a substring of
35706         a preceding four-digit year number, we would mistakenly update
35707         the substring (from two- to four-digit) rather than the two-digit
35708         number at the end, which, combined with the addition of the current
35709         4-digit year number would yield two 5-digit year numbers, e.g.,
35710         here, it would convert the first "99" to "1999, 2013" rather than
35711         the final one:
35712           1991, 99
35713           11999, 20131, 1999
35714         * build-aux/update-copyright: Tighten a regexp.
35715         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35716         Reported by Joseph Myers in
35717         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35719 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35721         regex: omit needless signed-pointer casts
35722         * lib/regcomp.c (build_charclass, build_charclass_op):
35723         Use char *, not unsigned char *, for class name and extra.
35724         The char values are always nonnegative so there's no need to
35725         insist on unsigned char * here, and using char * removes the need
35726         for casts.  Reported by Aharon Robbins in
35727         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35729         regex: support Gawk, which never uses alloca
35730         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35731         Do not include in this case.  Gawk doesn't supply a substitute
35732         alloca.h and doesn't need one.
35734         regex: port __libc_lock_define usage to C89
35735         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35736         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35737         does not conform to C89, as it has an empty macro argument.
35738         Reported by Aharon Robbins in
35739         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35741 2013-01-01  Eric Blake  <eblake@redhat.com>
35743         maint: update all copyright year number ranges
35744         Run "make update-copyright".
35746         version-etc: bump copyright year reported in --version
35747         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35749 2012-12-31  Eric Blake  <eblake@redhat.com>
35751         sigprocmask-tests: skip test if pid is unexpectedly large
35752         * tests/test-sigprocmask.c (main): Add range check.
35754         git-version-gen: avoid test -z portability glitch
35755         * build-aux/git-version-gen: Prefer portable test spelling, since
35756         git-version-gen is run on more than just developer machines.
35758 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35760         git-version-gen: add --fallback option to use if git is not present
35761         * build-aux/git-version-gen: Add support for the new option --fallback,
35762         which comes into play when there is no $tarball_version_file and
35763         git is not working.
35764         (scriptversion): Update.
35766         maint.mk: handle missing git with more grace
35767         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35768         Quietly proceed if git is not present.
35770 2012-12-31  Eric Blake  <eblake@redhat.com>
35772         dup2: work around cygwin bug
35773         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35774         * lib/dup2.c (rpl_dup2): Work around it.
35775         * doc/posix-functions/dup2.texi (dup2): Document it.
35777 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35779         regex: remove unnecessary dependency on localcharset.h
35780         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35781         hasn't been needed for years.
35782         * modules/regex (Depends-on): Remove localcharset.
35784         regex: revert single-byte change
35785         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35786         to this function.  This was alredy fixed in a different way, at
35787         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35788         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35789         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35791         regex: simplify based on Gawk version
35792         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35793         Reported by Aharon Robbins in
35794         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35796 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35798         regex: check that pattern char is single-byte
35799         Reported by Aharon Robbins in
35800         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35801         * lib/regexec.c (check_node_accept_bytes):
35802         Return 0 if the pattern string has a multibyte character here.
35804         regex: implement rational ranges
35805         Reported by Aharon Robbins in
35806         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35807         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35808         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35809         Implement rational ranges.
35811         regex: avoid redefining __wctype
35812         Reported by Aharon Robbins in
35813         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35814         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35815         #undef before defining.
35817         regex: port to hosts where malloc (0) == NULL
35818         Reported by Aharon Robbins in
35819         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35820         * lib/regex_internal.c (re_node_set_alloc):
35821         Don't assume that malloc (0) yields nonnull.
35822         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35823         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35824         * modules/regex (Files): Add m4/eealloc.m4.
35826         regex: port to C89
35827         Reported by Aharon Robbins in
35828         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35829         * lib/regcomp.c (init_word_char): Declaration before statement.
35831         regex: merge glibc changes
35832         Also, copy the license wording from glibc.  This simplifies
35833         merging changes.  gnulib-tool will change the wording to GPL as
35834         appropriate, when importing it to other packages.  The only
35835         glibc change made since the last merge, which needs merging, is:
35836         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35837         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35839         * users.txt: Add Emacs.
35841         doc: omit mention of version when not needed
35842         * doc/gnulib-intro.texi (Portability and Application Code):
35843         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35844         Don't mention particular dates or versions when not necessary, so
35845         that the documentation won't go out of date so quickly.
35847         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35849 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35851         bootstrap: pass --force to autoreconf.
35852         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35853         Add "--force" so that Automake's ylwrap and other such tools
35854         be updated at each bootstrap invocation.
35855         Use it.
35857 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35859         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35860         The earlier patch forgot to update one of the #if conditions, causing
35861         a problem on Debian testing i386 reported by Mats Erik Andersson
35862         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35863         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35864         (__argp_fmtstream_puts, argp_fmtstream_puts)
35865         (__argp_fmtstream_write, argp_fmtstream_write)
35866         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35868         * doc/gnulib-readme.texi: Minor fixups.
35869         (Portability guidelines): Modernize URLs.  Remove some repetition.
35870         (Indent with spaces not TABs): Reword to avoid too-long lines.
35871         Remove some '@ifset standalone' stuff that isn't used.
35873         * doc/gnulib-readme.texi (Portability guidelines):
35874         ctype.h, not ctime.h.
35876         Correct name of POSIX.1-2001.
35877         * doc/posix-functions/fgetc.texi (fgetc):
35878         * doc/posix-functions/fgets.texi (fgets):
35879         * doc/posix-functions/fread.texi (fread):
35880         * doc/posix-functions/fscanf.texi (fscanf):
35881         * doc/posix-functions/getc.texi (getc):
35882         * doc/posix-functions/getchar.texi (getchar):
35883         * doc/posix-functions/scanf.texi (scanf):
35884         POSIX.1-2001, not POSIX-2001.
35886         doc: move README into manual
35887         * README: Move contents to new file doc/gnulib-readme.texi.
35888         Replace with a one-line summary.
35889         * doc/gnulib.texi (Brief Overview): New section,
35890         with old intro preface.  Include gnulib-readme.texi for contents.
35891         (Philosophy): Rename from "Introduction", since this
35892         section no longer introduces the rest.  Write a new preface.
35893         * doc/gnulib-readme.texi: New file, with the old contents of
35894         README texinfo-ized.  This way, the README info appears
35895         in the online and printed manual.
35897 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35899         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35900         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35901         c_vasprintf() prototype.
35903 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35905         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35906         * lib/c-vasprintf.h: Remove stray semicolon.
35908 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35910         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35911         It is obsolete and is planned to be removed from Automake 1.14; see
35912         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35913         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35914         (installdirs-data, installdirs-data-yes):
35915         Use $(MKDIR_P), not $(mkdir_p).
35916         * m4/intl.m4 (AM_INTL_SUBDIR):
35917         * m4/po.m4 (AM_PO_SUBDIRS):
35918         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35920 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35922         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35923         On this platform, we are not optimizing but we are using
35924         the substitute for extern inlines, so compile as if
35925         C99-style extern inline, or a substitute, is available.
35926         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35927         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35928         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35929         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35930         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35931         Declare as ARGP_FS_EI, not as extern.
35932         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35933         (__option_is_short, _option_is_end, __option_is_end)
35934         [!_LIBC && __USE_EXTERN_INLINES]:
35935         Declare as ARGP_EI, not as extern.
35937 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35939         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35940         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35941         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35942         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35943         ...), as the latter is fatal with older Autoconfs.
35944         Problem reported and fix suggested by Eric Blake in thread starting at
35945         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35947 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35949         AC_PROG_MKDIR_P: don't workaround if not buggy
35950         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35951         Define only for Autoconf versions before 2.62.
35952         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35953         undocumented m4_PACKAGE_VERSION, for consistency with the
35954         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35955         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35956         was introduced in 2.62.
35958 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35960         New 'c-*printf' modules for formatted output in C locale.
35962         New module 'c-vasnprintf'.
35963         * modules/c-vasnprintf: New file.
35964         * lib/c-vasnprintf.c: New file.
35965         * lib/c-vasnprintf.h: New file.
35967         New module 'c-snprintf'.
35968         * modules/c-snprintf: New file.
35969         * modules/c-snprintf-tests: New file.
35970         * lib/c-snprintf.c: New file.
35971         * lib/c-snprintf.h: New file.
35972         * tests/test-c-snprintf.c: New file.
35973         * tests/test-c-snprintf.sh: New file.
35975         New module 'c-vsnprintf'.
35976         * modules/c-vsnprintf: New file.
35977         * modules/c-vsnprintf-tests: New file.
35978         * lib/c-vsnprintf.c: New file.
35979         * lib/c-vsnprintf.h: New file.
35980         * tests/test-c-vsnprintf.c: New file.
35981         * tests/test-c-vsnprintf.sh: New file.
35983         New module 'c-vasprintf'.
35984         * modules/c-vasprintf: New file.
35985         * modules/c-vasprintf-tests: New file.
35986         * lib/c-asprintf.c: New file.
35987         * lib/c-vasprintf.c: New file.
35988         * lib/c-vasprintf.h: New file.
35989         * tests/test-c-vasprintf.c  +: New file.
35990         * tests/test-c-vasprintf.sh: New file.
35992         New module 'c-xvasprintf'.
35993         * modules/c-xvasprintf: New file.
35994         * modules/c-xvasprintf-tests: New file.
35995         * lib/c-xasprintf.c: New file.
35996         * lib/c-xvasprintf.c: New file.
35997         * lib/c-xvasprintf.h: New file.
35998         * tests/test-c-xvasprintf.c: New file.
35999         * tests/test-c-xvasprintf.sh: New file.
36001 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36003         argp: better 'inline'
36004         Use extern-inline module to declare extern inline functions.
36005         This avoids some bogus warning diagnostics.  Problem discovered
36006         when modifying GNU tar to use the manywarnings module.
36007         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
36008         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
36009         Define based on extern-inline.
36010         * modules/argp (Depends-on): Add extern-inline.
36012 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
36014         filemode, sys_stat: Handle MPX files a la AIX.
36015         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
36016         * lib/sys_stat.in.h (S_ISMPX): New macro.
36017         * tests/test-sys_stat.c: Add tests for MPX files.
36019 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36021         x-to-1: honor $PERL
36022         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
36023         a chance to use his preferred version of Perl.  This is typically
36024         required by Darwin users whose default /usr/bin/perl does not have all
36025         the libraries required by help2man, and who need to use their MacPorts
36026         installation of Perl instead.
36028 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36030         gnu-web-doc-update: add all the new files, even in new directories
36031         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
36032         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
36033         Use it.
36034         (main): Don't use cvsutils to get the list of unknown files,
36035         just add all the existing files and directories.
36037 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36039         gnu-web-doc-update: improve --help
36040         * build-aux/gnu-web-doc-update: Move comments into --help.
36042 2012-12-07  Eric Wong  <normalperson@yhbt.net>
36044         mountlist: recognize more "dummy" file systems
36045         * lib/mountlist.c (ME_DUMMY_0):
36046         Add these dummy FS names to the list:
36047         - "debugfs" virtual filesystem for kernel debugging
36048         - "devpts" PTY slave filesystem
36049         - "devtmpfs" device filesystem on top of tmpfs/ramfs
36050         - "fusectl" control filesystem for FUSE
36051         - "mqueue" enumerates POSIX message queues
36052         - "rpc_pipefs" kernel <-> userspace bridge for NFS
36053         - "sysfs" is for exporting kernel objects
36054         - "devfs" device filesystem for Linux 2.4 and FreeBSD
36056 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36058         extern-inline: avoid incompatibility with Darwin Libc
36059         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
36060         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
36061         Problem reported by Akim Demaille in
36062         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
36064 2012-12-11  Simon Josefsson  <simon@josefsson.org>
36066         gnupload: Work with GnuPG using gpg-agent (for smartcards).
36067         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
36068         let it handle password prompting.
36070 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
36072         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
36073         * lib/canonicalize.c (canonicalize_filename_mode):
36074         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
36075         fetching the current directory.  Don't overrun the beginning of
36076         rpath if there's no slashes after the MS-Windows drive letter.
36078 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
36080         maint.mk: avoid extra forks
36081         * top/maint.mk (_cfg_mk): The GNU make manual documents that
36082         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
36083         So use that instead of "$(shell test -f FILE && echo FILE)".
36085 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36087         vasnprintf: fix ASCII_ONLY typo
36088         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36089         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36090         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36091         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
36092         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
36094 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36096         list, oset, xlist, xoset: fix extern inline issue with C99
36097         This was introduced by my recent changes for 'inline'.
36098         Problem reported for gettext by Daiki Ueno in
36099         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
36100         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
36101         (gl_list_nx_create, gl_list_size, gl_list_node_value)
36102         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
36103         (gl_list_previous_node, gl_list_get_at)
36104         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
36105         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
36106         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
36107         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
36108         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
36109         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
36110         (gl_list_iterator_free, gl_sortedlist_search)
36111         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
36112         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36113         (gl_sortedlist_remove):
36114         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
36115         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
36116         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
36117         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
36118         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
36119         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
36120         (gl_list_add_at, gl_sortedlist_add):
36121         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
36122         Wrap these extern decls inside "#if 0", because they are implemented
36123         as inline functions, and extern inline is not what's wanted here.
36124         It would simplify these .h files to remove the extern decls entirely,
36125         although a downside would be less-clear separation between
36126         specification and implementation.
36128 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36130         sys_stat: no 'static inline'
36131         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
36132         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
36134         extern-inline: no 'static inline'
36135         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
36136         Do not require AC_C_INLINE.
36137         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
36138         'static inline', for older compilers.
36140         snippet/warn-on-use: no 'static inline'
36141         * build-aux/snippet/warn-on-use.h:
36142         Remove unnecessary 'inline' in comment.
36144         rbtree-list, rbtreehash-list: no 'static inline'
36145         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
36146         * lib/gl_anytree_list2.h (node_at):
36147         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
36148         (gl_oset_first, add_nodes_to_buckets):
36149         Now static, not static inline.
36151         regex: no 'static inline'
36152         * lib/regex_internal.c (calc_state_hash):
36153         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
36154         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
36155         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
36156         Now static, not static inline.
36157         (inline) [__GNUC__ < 3 && _LIBC]:
36158         Remove macro; no longer needed.
36160         xvasprintf: no 'static inline'
36161         * lib/xvasprintf.c (xstrcat):
36162         Now static, not static inline.
36163         * m4/xvasprintf.m4 (gl_XVASPRINTF):
36164         Do not require AC_C_INLINE.
36166         parse-datetime, parse-duration: no 'static inline'
36167         * lib/parse-datetime.y (to_uchar):
36168         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
36169         (scale_n_add):
36170         Now static, not static inline.
36171         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
36172         * modules/parse-duration (configure.ac):
36173         Do not require AC_C_INLINE.
36175         getaddrinfo: no 'static inline'
36176         * lib/getaddrinfo.c (validate_family):
36177         Now static, not static inline.
36178         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
36179         Do not require AC_C_INLINE.
36181         ftruncate, fts, lstat, openat, raise: no 'static inline'
36182         * lib/ftruncate.c (chsize_nothrow):
36183         * lib/fts.c (opendirat, diropen):
36184         * lib/lstat.c (orig_lstat):
36185         * lib/openat.c (orig_openat):
36186         * lib/raise.c (raise_nothrow):
36187         Now static, not static inline.
36188         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
36189         * m4/fts.m4 (gl_FUNC_FTS_CORE):
36190         * m4/lstat.m4 (gl_PREREQ_LSTAT):
36191         * m4/openat.m4 (gl_PREREQ_OPENAT):
36192         * m4/raise.m4 (gl_PREREQ_RAISE):
36193         Do not require AC_C_INLINE.
36195         fflush, stat: no 'static inline'
36196         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36197         (clear_ungetc_buffer, disable_seek_optimization)
36198         (restore_seek_optimization, update_fpos_cache):
36199         * lib/stat.c (orig_stat):
36200         Now static, not static inline.
36201         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
36202         (update_fpos_cache):
36203         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
36204         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
36205         * m4/stat.m4 (gl_PREREQ_STAT):
36206         Do not require AC_C_INLINE.
36208         error, filevercmp: no 'static inline'
36209         * lib/error.c (is_open, flush_stdout):
36210         * lib/filevercmp.c (order):
36211         Now static, not static inline.
36212         * m4/error.m4 (gl_PREREQ_ERROR):
36213         * modules/filevercmp (configure.ac):
36214         Do not require AC_C_INLINE.
36216         dup, execute, fatal-signal, etc.: no 'static inline'
36217         * lib/dup.c (dup_nothrow):
36218         * lib/execute.c (nonintr_close, nonintr_open):
36219         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
36220         * lib/fopen.c (orig_fopen):
36221         * lib/freadseek.c (freadptrinc):
36222         * lib/freopen.c (orig_freopen):
36223         * lib/fstat.c (orig_fstat, fstat_nothrow):
36224         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
36225         (get_rusage_as_via_iterator):
36226         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
36227         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36228         * lib/isatty.c (_isatty_nothrow):
36229         * lib/open.c (orig_open):
36230         * lib/read.c (read_nothrow):
36231         * lib/sigprocmask.c (signal_nothrow):
36232         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
36233         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
36234         * lib/wait-process.c (unregister_slave_subprocess):
36235         * lib/write.c (write_nothrow):
36236         Now static, not static inline.
36237         * lib/spawn-pipe.c (nonintr_open): Define only if
36238         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
36239         * m4/dup.m4 (gl_PREREQ_DUP):
36240         * m4/execute.m4 (gl_EXECUTE):
36241         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
36242         * m4/fopen.m4 (gl_PREREQ_FOPEN):
36243         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
36244         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
36245         * m4/fstat.m4 (gl_PREREQ_FSTAT):
36246         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
36247         * m4/isatty.m4 (gl_PREREQ_ISATTY):
36248         * m4/open.m4 (gl_PREREQ_OPEN):
36249         * m4/read.m4 (gl_PREREQ_READ):
36250         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
36251         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
36252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
36253         * m4/wait-process.m4 (gl_WAIT_PROCESS):
36254         * m4/write.m4 (gl_PREREQ_WRITE):
36255         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
36256         Do not require AC_C_INLINE.
36258         c-strtod, memcoll, readutmp: no 'static inline'
36259         * lib/c-strtod.c (c_locale):
36260         * lib/memcoll.c (strcoll_loop):
36261         * lib/readutmp.c (desirable_utmp_entry):
36262         Now static, not static inline.
36263         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
36264         * m4/memcoll.m4 (gl_MEMCOLL):
36265         * m4/readutmp.m4 (gl_READUTMP):
36266         Do not require AC_C_INLINE.
36268         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
36269         * lib/arctwo.c (to_uchar):
36270         * lib/md4.c (set_uint32):
36271         * lib/md5.c (set_uint32):
36272         * lib/sha1.c (set_uint32):
36273         * lib/sha256.c (set_uint32):
36274         * lib/sha512.c (set_uint64):
36275         Now static, not static inline.  This is a bit simpler, and doesn't
36276         affect performance with GCC and default optimization.
36277         * m4/arctwo.m4 (gl_ARCTWO):
36278         * m4/md4.m4 (gl_MD4):
36279         * m4/md5.m4 (gl_MD5):
36280         * m4/sha1.m4 (gl_SHA1):
36281         * m4/sha256.m4 (gl_SHA256):
36282         * m4/sha512.m4 (gl_SHA512):
36283         Do not require AC_C_INLINE.
36285         cond, lock, thread: better 'inline'
36286         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
36287         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
36288         New macros.  Use them instead of static inline, for header functions.
36289         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
36290         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36291         * lib/glthread/lock.c (gl_waitqueue_init)
36292         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36293         * lib/glthread/thread.c (get_current_thread_handle):
36294         Change 'static inline' to 'inline'.
36295         * lib/glthread/cond.h, lib/glthread/thread.h:
36296         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36297         * m4/cond.m4 (gl_COND):
36298         * m4/lock.m4 (gl_PREREQ_LOCK):
36299         * m4/thread.m4 (gl_THREAD):
36300         Do not require AC_C_INLINE.
36301         * modules/cond, modules/thread (Depends-on): Add extern-inline.
36303         chdir-long, cycle-check, savewd: better 'inline'
36304         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
36305         (find_non_slash):
36306         * lib/cycle-check.c (is_zero_or_power_of_two):
36307         * lib/savewd.c (savewd_delegating):
36308         Change 'static inline' to 'inline'.
36309         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
36310         Replace all remaining uses of 'static inline' with it.
36311         * lib/savewd.h:
36312         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36313         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
36314         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
36315         * m4/savewd.m4 (gl_SAVEWD):
36316         Do not require AC_C_INLINE.
36317         * modules/savewd (Depends-on): Add extern-inline.
36319         base32, base64: no need for 'inline'
36320         * lib/base32.c (to_uchar, get_8, decode_8):
36321         * lib/base64.c (to_uchar, get_4, decode_4):
36322         Change 'static inline' to 'inline'.
36323         * m4/base32.m4 (gl_PREREQ_BASE32):
36324         * m4/base64.m4 (gl_PREREQ_BASE64):
36325         Do not require AC_C_INLINE.
36327         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
36328         * lib/gl_array_oset.c (gl_array_nx_add_at):
36329         (gl_array_remove_at):
36330         * lib/gl_linkedhash_list.c (hash_resize_after_add)
36331         (add_to_bucket, remove_from_bucket):
36332         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
36333         Change 'static inline' to 'static', as it's simpler to omit
36334         'inline' unless there's a significant performance advantage.
36336         list, oset, xlist, xoset, xsublist: simplify via extern inline
36337         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
36338         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
36339         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
36340         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
36341         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
36342         New macro.  Replace all uses of 'static inline' with it.
36343         [HAVE_INLINE]: Implement functions as *_INLINE functions,
36344         instead of as macros FOO that are defined to static inline
36345         functions FOO_inline.
36346         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
36347         * lib/gl_xsublist.c:
36348         Reimplement from scratch, by defining the corresponding *_INLINE
36349         macro and including the corresponding .h file.  This is simpler.
36350         * modules/list, modules/oset, modules/xlist, modules/xoset:
36351         (Files): Remove m4/gl_list.m4.
36352         (configure.ac): Remove gl_LIST.
36353         * m4/gl_list.m4: Remove.
36354         * modules/list, modules/oset, modules/xlist, modules/xoset:
36355         * modules/xsublist:
36356         (Depends-on): Depend on extern-inline, not inline.
36358         xalloc: better 'inline'
36359         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
36360         New macro.  Replace all uses of 'static inline' with it.
36361         (static_inline): Remove.
36362         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36363         Let 'extern inline' do the work automatically, instead of doing
36364         it by hand.
36365         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36366         Remove.  All uses removed.
36367         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36369         gethrxtime: better 'inline'
36370         * lib/xtime.c: New file.
36371         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36372         * lib/xtime.h (XTIME_INCLUDE):
36373         New macros.  Replace all uses of 'static inline' with them.
36374         * lib/gethrxtime.c (gethrxtime): Define only if
36375         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36376         this source file is now always compiled, because of the extern inline.
36377         * lib/gethrxtime.h, lib/xtime.h:
36378         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36379         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36380         if gethrtime works, as they're not needed in that case.
36381         (gl_XTIME): Do not require AC_C_INLINE.
36382         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36383         compiled now.  Move the check into gl_GETHRXTIME.
36384         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36385         (Depends-on): Add extern-inline.
36386         (configure.ac): gethrxtime is always compiled now.
36387         (lib_SOURCES): Add gethrxtime.c.
36389         wctype-h: better 'inline'
36390         * lib/wctype-h.c: New file.
36391         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36392         New macro.  Replace all uses of 'static inline' with it.
36393         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36394         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36395         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36396         (Depends-on): Add extern-inline.
36398         unistd: better 'inline'
36399         * lib/unistd.c: New file.
36400         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36401         New macro.  Replace all uses of 'static inline' with it.
36402         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36403         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36404         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36405         (Depends-on): Add extern-inline.
36407         sys_socket: better 'inline'
36408         * lib/sys_socket.c: New file.
36409         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36410         New macro.  Replace all uses of 'static inline' with it.
36411         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36413         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36414         (Depends-on): Add extern-inline.
36416         stdio: better 'inline'
36417         * lib/stdio.c: New file.
36418         * lib/stdio.in.h (_GL_STDIO_INLINE):
36419         New macro.  Replace all uses of 'static inline' with it.
36420         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36421         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36422         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36423         (Depends-on): Add extern-inline.
36425         sigaction: better 'inline'
36426         * lib/sig-handler.c: New file.
36427         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36428         New macro.  Replace all uses of 'static inline' with it.
36429         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36430         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36431         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36432         (Depends-on): Add extern-inline.
36434         selinux-h: better 'inline'
36435         * lib/se-context.c, lib/se-selinux.c: New files.
36436         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36437         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36438         New macro.  Replace all uses of 'static inline' with it.
36439         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36440         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36441         New macro.  Replace all uses of 'static inline' with it.
36442         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36443         * modules/selinux-h (Files, lib_SOURCES):
36444         Add lib/se-context.c, lib/se-selinux.c.
36445         (Depends-on): Add extern-inline.
36446         (configure.ac): Do not require AC_C_INLINE.
36448         pthread: better 'inline'
36449         * lib/pthread.c: New file.
36450         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36451         New macro.  Replace all uses of 'static inline' with it.
36452         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36453         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36454         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36455         * modules/pthread (Files): Add lib/pthread.c.
36456         (Depends-on): Add extern-inline.
36458         math: better 'inline'
36459         * lib/math.c: New file.
36460         * lib/math.in.h (_GL_MATH_INLINE):
36461         New macro.  Replace all uses of 'static inline' with it.
36462         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36463         * m4/math_h.m4 (gl_MATH_H):
36464         Do not require AC_C_INLINE.
36465         * modules/math (Files, lib_SOURCES):
36466         Add lib/math.c.
36467         (Depends-on): Add extern-inline.
36469         count-one-bits: better 'inline'
36470         * lib/count-one-bits.c: New file.
36471         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36472         New macro.  Replace all uses of 'static inline' with it.
36473         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36474         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
36475         Do not require AC_C_INLINE.
36476         * modules/count-one-bits (Files, lib_SOURCES):
36477         Add lib/count-one-bits.c.
36478         (Depends-on): Add extern-inline.
36480         count-leading-zeros: better 'inline'
36481         * lib/count-leading-zeros.c: New file.
36482         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
36483         New macro.  Replace all uses of 'static inline' with it.
36484         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36485         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
36486         Do not require AC_C_INLINE.
36487         * modules/count-leading-zeros (Files, lib_SOURCES):
36488         Add lib/count-leading-zeros.c.
36489         (Depends-on): Add extern-inline.
36491         bitrotate: better 'inline'
36492         * lib/bitrotate.c: New file.
36493         * lib/bitrotate.h (BITROTATE_INLINE):
36494         New macros.
36495         Replace all uses of 'static inline' with them.
36496         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36497         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
36498         (Depends-on): Add extern-inline.
36499         (configure.ac): Do not require AC_C_INLINE.
36501 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
36503         maint.mk: avoid gratuitous failure
36504         Reported by Stefano Lattarini in
36505         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
36506         * top/maint.mk (public-submodule-commit): Quote more safely.
36508 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
36510         canonicalize, canonicalize-lgpl: support MS-Windows file names
36511         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
36512         for test cases, which it'd be nice to add at some point.
36513         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
36514         * lib/canonicalize.c (canonicalize_filename_mode):
36515         * lib/canonicalize-lgpl.c (__realpath):
36516         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
36517         slash is at the beginning of the file name.  Use ISSLASH, instead
36518         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
36519         the first character with '/'.  Test for
36520         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
36521         with a drive letter.
36522         * lib/canonicalize.c (SLASHES): New macro.
36523         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
36525 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
36527         fts: introduce FTS_VERBATIM
36528         * lib/fts_.h (FTS_VERBATIM): New bit flag.
36529         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
36530         * lib/fts.c (fts_open): Honor it.
36532 2012-11-09  Pádraig Brady  <P@draigBrady.com>
36534         getlogin-tests: allow errno == ENXIO
36535         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36536         with errno == ENXIO (No controlling tty).
36537         getlogin_r-tests: Likewise. Also allow errno == ENOENT
36538         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
36539         with errno == ENOENT.  This was reported to happen in various
36540         situations on GNU/Linux.
36542 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36544         getlogin-tests: allow errno == ENOENT
36545         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36546         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
36547         when running a test in an Emacs shell buffer.
36549 2012-11-08  Jim Meyering  <jim@meyering.net>
36551         tests/nap.h: avoid warning about unused variable
36552         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
36554         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
36555         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
36556         white space before each of the special-cased file names, to avoid
36557         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
36558         in http://bugs.gnu.org/12830.
36560 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36562         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
36563         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
36564         fails with errno == EBADF when fd is opened with O_PATH.
36565         Reported by Jim Meyering in
36566         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
36567         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36568         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
36570 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36572         test-utimens: speed up by taking shorter naps
36573         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
36574         New functions.
36575         (nap): Use them, to do a better job of guessing the delay.
36576         On Fedora 17 with ext4 atop md atop hard disks, this made
36577         test-utimens run 10x faster, because the test napped for
36578         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
36579         <http://bugs.gnu.org/12820#11>.
36581 2012-11-07  Jim Meyering  <jim@meyering.net>
36583         mountlist.c: fix a compilation failure
36584         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
36585         I introduced while transforming commit v0.0-7683-g613bcb6
36587 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36589         errno: port to LynxOS 178 2.2.2
36590         Problem reported by Joel Brobecker in
36591         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
36592         * doc/posix-headers/errno.texi (errno.h): Document this.
36593         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
36594         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36595         Supply a string for EILSEQ.
36596         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
36598 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36600         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
36601         Linux kernel 2.6.39 introduced O_PATH (see
36602         <http://lwn.net/Articles/433854/>) and this is a better fallback
36603         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
36604         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36605         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
36606         * lib/fcntl.in.h (O_ACCMODE):
36607         * tests/test-fcntl-h.c (main):
36608         Do not reject O_ACCMODE merely because it has more than the
36609         minimal number of bits, as POSIX allows extensions here.
36611 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36613         mountlist: do not classify a bind-mounted dir entry as "dummy"
36614         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36615         the "none"-testing clause.
36616         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
36617         exception for bind-mounted directories.
36619 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
36621         quote: provide a means to escape strings with nul characters
36622         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
36623         (quote, quote_n): Rename formal arguments for consistency with
36624         quotearg.
36626 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36628         test-raise: don't assume 199 is an invalid signal
36629         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
36631         sh-quote-tests: port to Solaris 9
36632         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
36633         Problem reported by Dagobert Michelsen in
36634         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
36636 2012-10-28  Jim Meyering  <jim@meyering.net>
36638         maint.mk: rename a new configurable variable
36639         * top/maint.mk (_gl_translatable_string_re): Rename from
36640         translation-markers: _gl_ prefix to insulate from user Makefile code,
36641         and the _re suffix to inform that it's a regular expression.
36643 2012-10-26  Eric Blake  <eblake@redhat.com>
36645         maint.mk: let packages tweak sc_po_check pattern
36646         * top/maint.mk (sc_po_check): Add translation-markers, to allow
36647         finding files with other translation markers.
36649 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36651         euidaccess: speed up 'configure' on GNU hosts
36652         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
36653         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
36654         it's needed only in this case.  Use AC_CHECK_DECLS, not
36655         AC_CHECK_DECLS_ONCE.
36656         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
36657         or AC_REQUIRE for AC_FUNC_GETGROUPS.
36659         * lib/regexec.c (re_search_internal): Fix grammar in comment.
36661 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36663         fchmodat, fchownat, fstatat: port to non-inlining compilers
36664         Problem reported for FreeBSD 9 by Jim Meyering in
36665         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
36666         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
36667         New files, which define FCHMODAT_INLINE etc.
36668         * lib/fchmodat.c (FCHMODAT_INLINE):
36669         * lib/fchownat.c (FCHOWNAT_INLINE):
36670         * lib/fstatat.c (FSTATAT_INLINE):
36671         Remove, as chmodat.c etc. now do this.
36672         * modules/fchmodat (Files): Add lib/chmodat.c.
36673         * modules/fchownat (Files): Add lib/chownat.c.
36674         * modules/fstatat (Files): Add lib/statat.c.
36676 2012-10-15  Jim Meyering  <jim@meyering.net>
36678         fchmodat.c, fchownat.c: compile-impeding typos
36679         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
36680         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36681         Introduced in commit v0.0-7636-gd202279.
36683 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36685         fcntl-h: support GNU flags like O_IGNORE_CTTY
36686         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36687         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36688         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36689         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36690         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36691         Define to 0 if not already defined.
36692         * tests/test-fcntl-h.c: Test these new flags.
36694 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36696         faccessat, etc.: support AT_FDCWD-only use
36697         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36698         this function only if its first argument is AT_FDCWD.
36699         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36700         values other than AT_FDCWD, so it doesn't want all the openat
36701         machinery with fchdir etc.
36702         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36703         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36704         * modules/unlinkat (Files):
36705         Remove lib/openat-priv.h, as at-internal supplies this file.
36706         Removing this file here allows us to support programs like Emacs
36707         that avoid at-internal.
36709         faccessat: speed up 'configure' on mainstream hosts
36710         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36711         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36712         since it's only on unusual platforms that we need to check for
36713         'access', and it's better not to slow 'configure' down on all
36714         platforms.
36716         faccessat: port to Solaris 10
36717         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36718         Needed on Solaris 10, which doesn't have AT_EACCESS,
36719         so we need the Gnulib fcntl.h, which defines it.
36721 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36722         canonicalize: fix C89 compilation
36723         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36724         declarations so C89 is supported.  Also remove the comment
36725         referencing memorty allocation as the suggested feature could
36726         not be implemented as suggested.
36727         Reported by Michael Goffioul.
36729 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36731         group-member: omit unnecessary dependencies
36732         This is for Emacs, which has its own allocator and where we
36733         don't want to use xalloc.
36734         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36735         since we no longer use xmalloc.  Do not include stdbool.h, since
36736         the changes below happen to remove the only use of bool.
36737         (GROUPBUF_SIZE): New constant.
36738         (struct group_info): Remove n_groups member.  Add groupbuf member.
36739         This lets us get the groups without using malloc, usually.
36740         (free_group_info, get_group_info): Adjust to this.
36741         (get_group_info): Return the number of groups found, or -1 on error.
36742         Use plain malloc not xmalloc, and treat its failure as if there
36743         are no groups, as the user already loses in case of error.
36744         (group_member): Simplify, based on changes to get_group_info.
36745         * modules/group-member (Depends-on): Remove dependencies on
36746         xalloc and stdbool.  Add dependency on xalloc-oversized.
36748 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36750         gethrxtime: port to C++
36751         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36753 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36755         ptsname: fix macro-name typo
36756         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36758 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36760         inttostr: Relax license.
36761         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36763 2012-10-03  Eric Blake  <eblake@redhat.com>
36765         ptsname_r: support ptys returned by FreeBSD posix_openpt
36766         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36767         lives in /dev/pts/.
36769 2012-10-02  Eric Blake  <eblake@redhat.com>
36771         pselect: reject invalid file descriptors
36772         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36773         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36774         * modules/pselect (Depends-on): Add dup2.
36775         * doc/posix-functions/pselect.texi (pselect): Document this.
36777         select: reject invalid file descriptors
36778         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36779         * lib/select.c (rpl_select) [!win32]: Work around it.
36780         * modules/select (Depends-on): Add dup2.
36781         * doc/posix-functions/select.texi (select): Document this.
36783         select: enhance test
36784         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36785         New functions.
36786         (test_function): Enhance test.
36787         (do_select_bad_fd): Avoid any stale errno values.
36789         ptsname: reject invalid file descriptors
36790         http://www.austingroupbugs.net/view.php?id=503
36791         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36793         * modules/stdlib (Makefile.am): Replace witness.
36794         * lib/stdlib.in.h (ptsname): Allow for replacement.
36795         * modules/ptsname (configure.ac): Trigger replacement.
36796         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36798 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36800         hash-pjw-bare: new module
36801         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36802         * lib/hash-pjw-bare.h: Likewise.
36803         * modules/hash-pjw-bare: New file.
36804         * MODULES.html.sh (Misc): Add it.
36806 2012-10-02  Eric Blake  <eblake@redhat.com>
36808         manywarnings: cater to more gcc infelicities
36809         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36810         -Wuninitialized without -O.
36812 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36814         select, poll tests: Make setsockopt invocation effective.
36815         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36816         the bind() call.
36817         * tests/test-select.h (open_server_socket): Likewise.
36819 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36821         sockets, sys_stat: restore AC_C_INLINE
36822         This undoes the 2012-09-22 patch.
36823         * m4/sockets.m4 (gl_SOCKETS):
36824         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36825         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36826         and does not support plain 'inline'.  Reported by Bruno Haible in
36827         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36829 2012-09-30  Bruno Haible  <bruno@clisp.org>
36831         localeconv tests: Avoid test failure on OpenIndiana.
36832         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36833         skip the 'grouping' and 'mon_grouping' tests.
36834         Reported by Jim Meyering.
36836 2012-09-30  Bruno Haible  <bruno@clisp.org>
36838         havelib: Follow libtool developments.
36839         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36840         Suggested by Simon Josefsson.
36842 2012-09-29  Jim Meyering  <meyering@redhat.com>
36844         fstatat.c: fix a compile-impeding typo
36845         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36846         Introduced in commit v0.0-7636-gd202279.
36847         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36849 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36851         extern-inline: provide a -Wundef safe config.h
36852         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36853         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36854         to produce a -Wundef warning free config.h.
36856 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36858         hash-pjw: relax license to LGPLv2+
36859         * modules/hash-pjw (License): Relax, with consent of author.
36861 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36863         maint.mk: fix strict vs. lazy variable issues with RELEASE
36864         * top/maint.mk (_equal): New function.
36865         (member_check): Strip the result to avoid spurious spaces.
36866         (url_dir_list): Do not use ifeq, which is strict, as it will
36867         require RELEASE_TYPE to be defined.
36868         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36869         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36870         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36871         (announcement_Cc_beta,announcement_mail_headers_beta)
36872         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36873         (release): Do not depend on $(release-type), as it forces its
36874         evaluation.  Bounce to it.
36876 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36878         maint.mk: formatting changes
36879         * top/maint.mk: Indent bodies of if's.
36881 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36883         maint.mk: factor the validation of RELEASE_TYPE
36884         With help from Jim Meyering.
36885         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36886         * top/maint.mk (_empty, _sp): Move their definition earlier.
36887         (member-check, release-type): New.
36888         Use the latter instead of $(RELEASE_TYPE).
36889         Remove now useless local checks.
36891 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36893         maint.mk: provide "make upload" to ease uploading
36894         See
36895         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36896         Do not depend simply on the current $(VERSION), as there may have been
36897         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36898         as "make release-commit" already does.
36900         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36901         "make TYPE".
36903         * top/maint.mk (upload_command, upload, release): New.
36904         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36905         (VERSION): first word of $(RELEASE) is always right.
36906         (emit_upload_commands): Adjust.
36907         * top/README-release: Update.
36909 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36911         maint.mk: silent rules
36912         With help from Stefano Lattarini.
36913         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36914         (announcement): Use $(AM_V_at).
36916 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36918         localename: port gl_locale_name_thread_unsafe to FreeBSD
36919         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36920         and use the simpler FreeBSD implementation on Mac OS X as well.
36921         Original idea suggested by Ed Maste in
36922         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36924 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36926         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36927         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36928         * lib/mbuiter.c, lib/xsize.c: New files.
36929         * lib/binary-io.h (BINARY_IO_INLINE):
36930         * lib/eealloc.h (EEALLOC_INLINE):
36931         * lib/mbfile.h (MBFILE_INLINE):
36932         * lib/mbiter.h (MBITER_INLINE):
36933         * lib/mbuiter.h (MBUITER_INLINE):
36934         * lib/xsize.h (XSIZE_INLINE):
36935         New macros.
36936         Replace all uses of 'static inline' with them.
36937         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36938         * m4/eealloc.m4 (gl_EEALLOC):
36939         * m4/mbfile.m4 (gl_MBFILE):
36940         * m4/mbiter.m4 (gl_MBITER):
36941         * m4/xsize.m4 (gl_XSIZE):
36942         Do not require AC_C_INLINE.
36943         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36944         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36945         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36946         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36947         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36948         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36949         * modules/binary-io, modules/eealloc, modules/mbfile:
36950         * modules/mbiter, modules/mbuiter:
36951         (Depends-on): Add extern-inline.
36953         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36954         * lib/pipe-filter-aux.c: New file.
36955         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36956         Replace all uses of 'static inline' with it.
36957         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36958         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36959         (filter_retcode): No real need for inline here.
36960         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36961         (Files): Add lib/pipe-filter-aux.c.
36962         (Depends-on): Add extern-inline.
36963         (configure.ac): Do not require AC_C_INLINE.
36964         (lib_SOURCES): Add pipe-filter-aux.c.
36966         fdutimensat: omit unnecessary AC_C_INLINE
36967         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36969         fchmodat, fchownat, fstatat: use extern-inline
36970         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36971         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36972         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36973         New macros.
36974         * lib/openat.h:
36975         Replace all uses of 'static inline' with them.
36976         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36977         * modules/fchmodat, modules/fchownat, modules/fstatat:
36978         * modules/openat-h:
36979         (Depends-on):
36980         Add extern-inline.
36981         (configure.ac): Remove AC_C_INLINE.
36983         acl, mbchar, priv-set: use extern-inline
36984         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36985         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36986         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36987         New macros.
36988         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36989         Replace all uses of 'static inline' with it.
36990         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36991         * m4/acl.m4 (gl_FUNC_ACL):
36992         * m4/mbchar.m4 (gl_MBCHAR):
36993         * m4/priv-set.m4 (gl_PRIV_SET):
36994         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36995         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36996         Add extern-inline.
36998         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36999         * m4/sockets.m4 (gl_SOCKETS):
37000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37001         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
37002         environments where it's already guaranteed to work, so we needn't
37003         check for it at 'configure'-time.
37005         tls-tests: omit unnecessary 'inline'
37006         * tests/test-tls.c (perhaps_yield): No longer inline.
37007         Simplicity and portability trump efficiency in test cases.
37009         utimens-tests: avoid unnecessary 'inline'
37010         * modules/fdutimensat-tests (configure.ac):
37011         * modules/futimens-tests (configure.ac):
37012         * modules/utimens-tests (configure.ac):
37013         * modules/utimensat-tests (configure.ac):
37014         Remove AC_C_INLINE.
37015         * tests/test-utimens-common.h (ctime_compare):
37016         No longer inline.  Simplicity and portability trump efficiency here.
37018         misc: don't limit commentary to inline functions
37019         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
37020         * lib/xalloc-oversized.h, lib/xsize.h:
37021         Contrast macros to functions in general, not just to inline functions,
37022         when the commentary does not apply only to inline functions.
37024 2012-09-20  Jim Meyering  <meyering@redhat.com>
37026         non-recursive-gnulib-prefix-hack: new module
37027         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
37028         the file that originated in Bison.
37029         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
37030         largely copied from a snippet that resided in bison's configure.ac.
37031         * modules/non-recursive-gnulib-prefix-hack: New file.
37032         * MODULES.html.sh (Support for maintaining and releasing projects):
37033         Add it.
37035 2012-09-18  Jim Meyering  <meyering@redhat.com>
37037         maint.mk: generalize _gl_tight_scope for non-recursive make
37038         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
37039         that *.h would describe additional .h files in the directory
37040         specified by $(_gl_TS_dir).  I.e., add this...
37041         (_gl_TS_other_headers): New variable.
37043         maint.mk: exempt trailing blanks found in "binary" files
37044         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
37045         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
37046         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37048 2012-09-17  Jim Meyering  <meyering@redhat.com>
37050         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
37051         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
37052         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
37053         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37055 2012-09-17  Jim Meyering  <meyering@redhat.com>
37057         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
37058         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
37059         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
37060         It is not in the same category as "exit (0)" or "exit (1)", and
37061         besides, I know of no symbolic name for that 77.  Reported by
37062         Richard W.M. Jones in
37063         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37065 2012-09-17  Jim Meyering  <meyering@redhat.com>
37067         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
37068         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
37069         all uses of #define, not just those that start in column 1.
37070         Richard W.M. Jones reported a false positive in
37071         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37073 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37075         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
37076         * lib/localcharset.c (locale_charset) [DARWIN7]:
37077         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
37078         as these two values are incompatible.  Problem reported by Max Horn.
37079         For more discussion, please see
37080         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
37082         doc: document sticky-EOF issue
37083         * doc/posix-functions/fgetc.texi (fgetc):
37084         * doc/posix-functions/fgets.texi (fgets):
37085         * doc/posix-functions/fread.texi (fread):
37086         * doc/posix-functions/fscanf.texi (fscanf):
37087         * doc/posix-functions/getc.texi (getc):
37088         * doc/posix-functions/getchar.texi (getchar):
37089         * doc/posix-functions/scanf.texi (scanf):
37090         Mention that glibc and default Solaris do not conform to
37091         C99 and POSIX-2001 or later, with respect to how getchar
37092         etc. behave when feof reports nonzero.
37094 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37096         poll: fix poll(0, NULL, msec)
37097         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
37098         but nfd is 0.  In that case poll should behave like select.
37100 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37101             Paolo Bonzini  <bonzini@gnu.org>
37103         poll: fix for systems that can't recv() on a non-socket
37104         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
37105         is readable.  In this case POLLHUP will not be supported.
37106         * doc/posix-functions/poll.texi: Document this.
37108 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
37110         poll/select: document portability problems not fixed by Gnulib.
37111         * doc/posix-functions/poll.texi: poll does not work well on
37112         pipes under Windows.  It has the same limitations as select on
37113         BeOS.
37114         * doc/posix-functions/select.texi: select does not work well
37115         on pipes under Windows.
37117 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
37119         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
37120         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
37121         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
37122         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
37124 2012-09-06  Eric Blake  <eblake@redhat.com>
37126         net_if: give more details about the bug being fixed
37127         * doc/posix-headers/net_if.texi: Add clarification.
37129 2012-09-05  Eric Blake  <eblake@redhat.com>
37131         net_if: new module
37132         * modules/net_if: New module, borrowing ideas from netinet_in.
37133         * m4/net_if_h.m4: New file.
37134         * lib/net_if.in.h: Likewise.
37135         * doc/posix-headers/net_if.texi (net/if.h): Document it.
37136         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37137         * tests/test-net_if.c: Make function checks conditional.
37138         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
37140 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
37142         readutmp: fix non-portable UT_PID use
37143         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
37144         Use `UT_PID (u) > 0' as absolute condition.
37146 2012-09-04  Jim Meyering  <meyering@redhat.com>
37148         fts: reduce two or more trailing spaces to just one, usually
37149         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
37150         or more slashes, trim all but the final one.  But if a name consists
37151         solely of two slashes, don't modify it.  If it consists solely of
37152         three or more slashes, strip all but one.
37154         This is part of the solution to a minor problem with rm:
37155         it would print a bogus ELOOP diagnostic when failing to remove
37156         the slash-decorated name of a symlink-to-directory:
37158             $ mkdir d && ln -s d s && env rm -r s/
37159             rm: cannot remove 's': Too many levels of symbolic links
37161         With the change below and a trivial don't-trim-trailing-slashes
37162         adjustment to remove.c, it does this:
37164             $ env rm -r s/
37165             rm: cannot remove 's/': Not a directory
37167         Improved by: Eric Blake
37169         fts: when there is no risk of overlap, use memcpy, not memmove
37170         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
37172 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37174         stdbool: be more compatible with mixed C/C++ compiles
37175         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
37176         Define to bool, true, false, respectively, as GCC's builtin
37177         stdbool.h does.  Problem reported by Michael Goffioul in
37178         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
37180 2012-08-28  Jim Meyering  <meyering@redhat.com>
37182         revert last change: it was not needed
37183         * tests/test-vc-list-files-git.sh: There's already a test for
37184         a working git, just below.
37186 2012-08-28  Jim Meyering  <meyering@redhat.com>
37188         tests: test-vc-list-files-git.sh: skip if git is not available
37189         * tests/test-vc-list-files-git.sh: Skip this test when git is
37190         not available.
37192 2012-08-26  Bruno Haible  <bruno@clisp.org>
37194         gnulib-tool: Remove no-op option --no-changelog.
37195         * gnulib-tool (func_usage): Don't mention --no-changelog.
37196         (do_changelog): Remove variable.
37197         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37199 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37201         doc: remove fdl-1.2.texi
37202         It is no longer used or maintained, and its use of @acronym
37203         is problematic.  See the thread containing
37204         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
37205         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
37206         * doc/old-licenses/fdl-1.2.texi: Remove.
37208         execinfo: port to FreeBSD
37209         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
37210         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
37211         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
37212         * modules/execinfo (Link): Add $(LIB_EXECINFO).
37214 2012-08-23  Jim Meyering  <meyering@redhat.com>
37216         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
37217         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
37218         to placate gcc's -Wold-style-declaration.
37220 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37222         doc: do not use @acronym
37223         * doc/inet_ntoa.texi (inet_ntoa):
37224         * doc/parse-datetime.texi (Seconds since the Epoch)
37225         (Specifying time zone rules):
37226         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
37227         Don't use @acronym.  Problem reported by John Darlington in
37228         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
37230 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37232         stdnoreturn: port to newer GCCs
37233         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
37234         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
37235         Problem reported by Jim Meyering in
37236         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
37237         Also, rename the 'test' function to a void a clash with the
37238         already-supplied 'main' function; this fixes a bug that incorrectly
37239         rejected GCC 4.7.1's <stdnoreturn.h>.
37240         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
37241         Document GCC problem.
37243 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
37245         pipe-filter: fix comment typo
37246         * lib/pipe-filter.h: Mention correct function.
37248 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37250         execinfo: new module
37251         This is for Emacs.  Currently, it provides a no-effect stub
37252         on all platforms where it does not already work.
37253         It already works on glibc-based systems, and on Solaris 11.
37254         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
37255         New files.
37256         * doc/glibc-headers/execinfo.texi (execinfo.h):
37257         * MODULES.html.sh (Misc): Document it.
37259 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37261         extern-inline: support old GCC 'inline'
37262         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
37263         if available.  This applies to GCC versions 2.7 through 4.2, or
37264         when newer GCC is using -fgnu89-inline.  The goal is to address
37265         some of the performance issues mentioned by Bruno Haible in
37266         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
37268 2012-08-20  Eric Blake  <eblake@redhat.com>
37270         maint.mk: avoid redundant file name in message
37271         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37272         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
37273         (sc_makefile_path_separator_check): Remove bogus $(ME).
37275 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
37277         timer-time: fix link order when static linking on glibc
37278         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37279         _after_ -lrt so that it's significant.
37281 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37283         timespec: omit unnecessary AC_C_INLINE
37284         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
37286         stat-time: omit unnecessary AC_C_INLINE
37287         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37288         Do not require AC_C_INLINE.
37290         ignore-value: omit unnecessary AC_C_INLINE
37291         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
37293         sys_select: avoid 'static inline'
37294         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
37296         mktime: avoid 'static inline'
37297         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
37298         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
37300 2012-08-19  Bruno Haible  <bruno@clisp.org>
37302         gnulib-tool: Improve coding style.
37303         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37304         func_emit_lib_Makefile_am.
37305         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37307 2012-08-19  Bruno Haible  <bruno@clisp.org>
37309         gnulib-tool: Fix indentation.
37310         * gnulib-tool (func_import): Fix indentation.
37312 2012-08-19  Bruno Haible  <bruno@clisp.org>
37314         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
37315         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
37316         on the list of removed files.
37318 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37320         test-parse-datetime: avoid glibc leap-second glitch
37321         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
37322         with the 2012 rules.  Problem reported by Bruce Dubbs in
37323         <http://bugs.gnu.org/12206>.
37325 2012-08-14  Bruno Haible  <bruno@clisp.org>
37327         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
37328         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
37329         from argument.
37330         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37332 2012-08-14  Eric Blake  <eblake@redhat.com>
37334         ldexp: relax license
37335         * modules/ldexp (License): Trivial relax, since the module only
37336         provides a permissively licensed m4 file.
37338 2012-08-13  Bruno Haible  <bruno@clisp.org>
37340         gnulib-tool: Fix persistence of --witness-c-macro option.
37341         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
37342         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37344 2012-08-11  Eric Blake  <eblake@redhat.com>
37346         count-leading-zeros: use a lookup table on non-gcc compilers
37347         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
37348         alternate implementation, suggested by Jim Meyering.
37350 2012-08-10  Eric Blake  <eblake@redhat.com>
37352         count-leading-zeros: new module
37353         * modules/count-leading-zeros: New module.
37354         * m4/count-leading-zeros.m4: New file.
37355         * lib/count-leading-zeros.h: Likewise.
37356         * modules/count-leading-zeros-tests: New test.
37357         * tests/test-count-leading-zeros.c: New file.
37358         * MODULES.html.sh (Integer arithmetic functions): Document it.
37360 2012-08-07  Simon Josefsson  <simon@josefsson.org>
37361             Jim Meyering  <meyering@redhat.com>
37363         maintainer-makefile: Fix syntax error with dash.
37364         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37365         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37367 2012-08-05  Jim Meyering  <meyering@redhat.com>
37369         extern-inline: also ignore -Wmissing-declarations
37370         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37371         required with gcc-4.8.0-to-be.
37373         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37374         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37375         for /error ?([^,]*)/.  This avoids false-positives for strings like
37376         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37378 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37380         gnumakefile: better interaction with Automake-NG
37381         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37382         Automake-NG always contain a definition of VPATH, even in non-VPATH
37383         builds (its value being simply '.' in that case).  So, in the
37384         'clean-GNUmakefile' rule, to determine whether running under a
37385         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37386         '$(VPATH)' expands to the empty string.
37388 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37390         base64: Use extern C scope in header file, for C++.
37391         * lib/base64.h: Add C++ namespace protection.
37393 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37395         stat-time, timespec, u64: support naive out-of-dir builds
37396         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37397         Use '#include "foo.h"', not '#include <foo.h>', when including
37398         one's own interface.  This works better when configuring with
37399         out-of-directory builds, since packages need not add an
37400         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37402 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37404         utimens: use extern-inline
37405         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37406         * lib/utimens.h: Add copyright notice, since this is now large enough
37407         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37408         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37409         * modules/utimens (Depends-on): Add extern-inline.
37411         u64: use extern-inline
37412         * lib/u64.c: New file.
37413         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37414         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37415         * modules/u64 (Files): Add lib/u64.c.
37416         (Depends-on): Add extern-inline.
37417         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37418         does that now.
37419         (lib_SOURCES): Add u64.c.
37421         timespec: use extern-inline
37422         * lib/timespec.c: New file.
37423         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37424         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37425         * modules/timespec (Files): Add lib/timespec.c.
37426         (Depends-on): Add extern-inline.
37427         (lib_SOURCES): Add timespec.c.
37429         stat-time: use extern-inline
37430         * lib/stat-time.c: New file.
37431         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37432         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37433         * modules/stat-time (Files): Add lib/stat-time.c.
37434         (Depends-on): Add extern-inline.
37435         (lib_SOURCES): Add stat-time.c.
37437         extern-inline: new module
37438         * modules/extern-inline, m4/extern-inline.m4: New files.
37439         This is for better support of 'extern inline' a la ISO C99,
37440         with a portable alternative on compilers that do not support
37441         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37442         of the Emacs executable, when compiled with debugging disabled,
37443         which is a typical way that Emacs is built while developing.
37445 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37447         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37448         * build-aux/do-release-commit-and-tag: Move variable definitions
37449         together.
37450         ($branch): Instead of defaulting to "master", default to the current
37451         branch (as gnu-web-doc-update does).
37452         (help): Display the current values of the option arguments.
37453         * top/maint.mk (release-commit): New.
37454         * top/README-release: Simplify the corresponding step.
37456 2012-07-30  Eric Blake  <eblake@redhat.com>
37458         passfd: fix comment on recvfd
37459         * lib/passfd.c (recvfd): Fix comment.
37460         Reported by Jann Horn <jannhorn@googlemail.com>.
37462 2012-07-30  Jim Meyering  <meyering@redhat.com>
37464         maint.mk: avoid a sub-shell
37465         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37467 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37469         maint.mk: use silent-rules support from Automake
37470         * top/maint.mk (news-check, vc-diff-check, announcement)
37471         (no-submodule-changes, alpha beta stable, release-prep)
37472         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
37474 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37476         maint.mk: provide a web-manual-update target
37477         * top/maint.mk: here.
37478         * top/README-release: Use it to simplify the web manual update step.
37480 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37482         README-release: shorten the circuit to post a news
37483         * top/README-release: Point directly to the news submission form.
37485 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37487         gnu-web-doc-update: fix --help
37488         * build-aux/gnu-web-doc-update: The information "top level" was written
37489         twice.
37491 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37493         maint.mk: absolute VPATH issue
37494         * top/maint.mk (release-prep): Help Git find .git/.
37495         From Jim Meyering.
37497 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37499         gitlog-to-changelog: fix previous change
37500         * build-aux/gitlog-to-changelog: Fix condition.
37501         Add missing ";".
37503 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37505         gitlog-to-changelog: don't expect .git to be in $srcdir
37506         Reported by Bruno Haible.
37507         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
37508         * build-aux/gitlog-to-changelog (&git_dir_option): New.
37509         Use it.
37511 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37513         maint.mk: absolute VPATH build fix
37514         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
37515         $(srcdir) is not a parent of $(builddir).
37517 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
37519         clean-temp: Fix memory leak.
37520         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
37521         'files' members of tmpdir.
37523 2012-07-27  Jim Meyering  <meyering@redhat.com>
37525         maint.mk: new rule: refresh-gnulib-patches
37526         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
37527         Use this rule to refresh them.
37528         * top/maint.mk (refresh-gnulib-patches): New rule.
37530 2012-07-24  Bruno Haible  <bruno@clisp.org>
37532         gnulib-tool: Fix handling of inctests variable.
37533         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
37534         Reported by Nick Bowler <nbowler@elliptictech.com>.
37536 2012-07-22  Bruno Haible  <bruno@clisp.org>
37538         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
37539         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
37540         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37541         Remove exemption for getpass.h.
37542         Suggested by Eric Blake.
37544 2012-07-20  Eric Blake  <eblake@redhat.com>
37546         verify: document conflict with -Wnested-externs
37547         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
37549         maint.mk: forbid exit(-1)
37550         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
37552 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
37554         fsusage: port back to Solaris
37555         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
37556         error (fsd not declared) on Solaris 10.  Reported privately by
37557         Andrew Borodin.
37559 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
37561         gnu-web-doc-update: fix error messages
37562         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
37564         gnu-web-doc-update: check the requirements.
37565         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
37566         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
37567         * build-aux/bootstrap (find_tool): Comment change.
37569 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
37571         maint.mk: minor simplication.
37572         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
37573         for default values.
37575 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
37577         gitlog-to-changelog: VPATH build issues
37578         If builddir is not a subdirectory of srcdir, running git from it will
37579         fail.
37580         * build-aux/gitlog-to-changelog (--srcdir): New option.
37582 2012-07-15  Bruno Haible  <bruno@clisp.org>
37584         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
37585         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
37586         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
37587         Remove exemption for fpending.h.
37588         Suggested by Eric Blake.
37590 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37592         pthread_sigmask: fix bug on FreeBSD 9
37593         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
37594         Include string.h.
37595         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
37596         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
37597         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
37598         but pthread_sigmask (1729, NULL, NULL) returns zero.
37599         See <http://bugs.gnu.org/11884>.
37600         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
37601         by inspecting whether the main call changed the old mask.
37603 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
37605         README-release: make it more legible
37606         * top/README-release: Improve typography slightly.
37608 2012-07-15  Jim Meyering  <meyering@redhat.com>
37610         maint: require that each sc_... command start with "@"
37611         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37612         "make sc_maint" helps us avoid this nit.
37614 2012-07-15  Jim Meyering  <meyering@redhat.com>
37616         maint.mk: add leading "@" to quiet new "make syntax-check" rule
37617         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37619 2012-07-13  Eric Blake  <eblake@redhat.com>
37621         maint.mk: new syntax check for HAVE_DECL checks
37622         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
37623         * cfg.mk
37624         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37625         Exempt some false positives.
37626         Based on a report by Karel Zak.
37628         argp: make HAVE_DECL usage consistent
37629         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
37630         macros, not whether they are defined.
37631         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
37632         convention with other declaration checks.
37633         Reported by Karel Zak, with suggestions from Paul Eggert.
37635         stat-time: relax license to LGPLv2+
37636         * modules/stat-time (License): Relax, with consent of all authors.
37638         strndup: fix m4 usage error
37639         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
37640         defined, to either 0 or 1.
37641         Reported by Karel Zak.
37643 2012-07-11  Jim Meyering  <meyering@redhat.com>
37645         maint: enable the sc_avoid_if_before_free syntax-check rule
37646         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
37647         (if_before_free_offenders_): Define.
37648         (if_before_free_basename_re_): Define.
37649         Exempt current files with useless if-before-free.
37651 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37653         gettext: do not assume '#define ... defined ...' behavior
37654         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
37655         Do not use '#define FOO ... defined BAR ...', as the C standard says
37656         it's not portable to expect that this works after macro expansion.
37657         Problem reported for gzip by Steven M. Schweda in
37658         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
37660 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37662         getloadavg: clean out old Emacs and Autoconf cruft
37663         See Glenn Morris in <http://bugs.gnu.org/11905>.
37664         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
37665         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
37666         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
37667         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
37669 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
37671         bootstrap: let warn be like tests/init.sh's warn_
37672         Reported by Jim Meyering.
37673         * build-aux/bootstrap (warn): Remove, replaced by...
37674         (warnf_, warn_): these.
37675         Adjust callers.
37676         Shorten messages that no longer fit in 80 columns.
37678 2012-07-09  Bruno Haible  <bruno@clisp.org>
37680         getopt: Simplify after Emacs changed.
37681         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37682         (gl_GETOPT_IFELSE): Remove macro.
37684 2012-07-09  Jim Meyering  <meyering@redhat.com>
37686         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37687         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37689         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37690         Bugs in both of those conspired to make the
37691         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37692         _sc_search_regexp's handling of non-empty $in_files would filter
37693         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37694         choice of in_files value meant there would be no match in most
37695         projects, due to the presence of two or more Makefile.in files.
37696         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37697         Fix a bug in how a non-empty $$in_files was processed:
37698         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37699         in spite of the name, it's a regexp, not a list of file names.
37701 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37703         getloadavg, getopt: fix commentary re configure.in
37704         Autoconf is deprecating the name 'configure.in', so change it to
37705         to the new name 'configure.ac' in a couple of places.
37706         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37707         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37708         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37709         Emacs has renamed it to configure.ac, and it no longer refers
37710         to these macros anyway.
37712         timespec: mark functions with const attributes
37713         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37714         Mark with _GL_ATTRIBUTE_CONST.
37716 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37718         canonicalize[-lgpl]: handle "guessing" values when cross-building
37719         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37720         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37721         matches "*yes" instead of just "yes".  Regression introduced in commit
37722         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37724 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37725             Bruno Haible  <bruno@clisp.org>
37727         canonicalize: make the right guess when cross-compiling to GNU
37728         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37729         determine whether cross-compiling to glibc systems, so as to
37730         include GNU/Hurd.
37732 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37734         timespec-sub: avoid duplicate include
37735         * lib/timespec-sub.c: Do not include <config.h> twice.
37736         Reported by Juanma Barranquero.
37738 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37740         bootstrap: use a more consistent error reporting scheme
37741         * build-aux/bootstrap (warn, die): New.
37742         Use them.
37744 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37746         sys_time: allow too-wide tv_sec
37747         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37748         timeval even if tv_sec is wider than time_t.  This allows
37749         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37750         as without this patch gnulib replaces struct timeval
37751         and OpenBSD futimes therefore has a type mismatch.
37752         * doc/posix-headers/sys_time.texi: Mention this.
37754         pthread: check for both pthread_create and pthread_join
37755         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37756         alter the check so that it tests for both pthread_create and
37757         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37758         Suggested by Bruno Haible and Richard Yao in
37759         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37761         parse-datetime: doc tuneup
37762         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37763         spacing issues.
37765 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37767         do-release-commit-and-tag: fix the previous commit
37768         * build-aux/do-release-commit-and-tag: Actually the test was right,
37769         but the comment and the error message were misleading.
37770         Fix comment, and improve error message.
37771         Perform check first, so that NEWS is not modified uselessly.
37773         do-release-commit-and-tag: fix typo
37774         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37775         _not_ start with a stub.
37777 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37779         pthread: check for pthread_create, not pthread_join
37780         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37781         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37782         pthread_join in libc.  I hope this removes the need for all the
37783         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37784         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37786 2012-07-04  Jim Meyering  <meyering@redhat.com>
37788         parse-datetime: fix failure to diagnose invalid input
37789         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37790         rather than diagnosing the invalid input.  Now it reports this:
37791         date: invalid date '\260'
37792         * lib/parse-datetime.y (to_uchar): Define.
37793         (yylex): Don't sign-extend "other" bytes.
37794         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37795         Thanks to Bruno Haible for the patch to this file.
37796         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37797         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37799 2012-07-03  Jim Meyering  <meyering@redhat.com>
37801         bootstrap: do not require now-removed build-aux/missing
37802         Now that build-aux/missing is, er, missing, bootstrap would
37803         silently fail.
37804         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37805         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37806         no longer part of gnulib.
37807         Diagnose the failure.
37809 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37811         alloca: add support for HP NonStop TNS/E native
37812         * lib/alloca.in.h (alloca): Support the new host.
37813         From a suggestion by Joachim Schmitz in
37814         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37816 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37818         fsusage: remove code not needed on non GNU/Linux systems.
37820         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37821         Don't include headers no longer needed in this case.
37822         * lib/fsusage.c [STAT_STATVFS &&
37823         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37824         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37826 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37828         fsusage: include files needed for glibc 2.6 fallback
37829         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37830         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37831         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37832         Problem reported by Ludovic Courtès in
37833         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37835         fsusage: avoid needless check on GNU/Linux
37836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37837         on GNU/Linux systems, since it can't possibly work.
37839 2012-07-01  Bruno Haible  <bruno@clisp.org>
37841         log: Fix an autoconf >= 2.64 warning.
37842         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37843         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37845 2012-06-28  Bruno Haible  <bruno@clisp.org>
37847         log10f: Fix possible configuration problem.
37848         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37849         $LOGF_LIBM.
37850         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37852 2012-06-28  Bruno Haible  <bruno@clisp.org>
37854         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37855         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37856         not gl_cv_func_unlink_works.
37857         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37859 2012-06-27  Eric Blake  <eblake@redhat.com>
37861         config: drop scripts that automake says are not independent
37862         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37863         * build-aux/elisp-comp: Delete.
37864         * build-aux/missing: Likewise.
37865         * build-aux/ylwrap: Likewise.
37866         * modules/elisp-comp: Likewise.
37867         * MODULES.html.sh: Drop mention of elisp-comp.
37868         * NEWS: Mention this.
37870 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37872         root-uid: new module
37873         This is for portability to Tandem's NonStop Kernel.
37874         * lib/root-uid.h, modules/root-uid: New files.
37875         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37876         * lib/write-any-file.c, tests/test-sethostname2.c:
37877         Include "root-uid.h".
37878         * lib/euidaccess.c (euidaccess):
37879         * lib/pt_chown.c (main):
37880         * lib/unlinkdir.c (cannot_unlink_dir):
37881         * lib/write-any-file.c (can_write_any_file):
37882         * m4/mknod.m4 (gl_FUNC_MKNOD):
37883         * tests/test-sethostname2.c (geteuid, main):
37884         Don't assume ROOT_UID == 0.
37885         * modules/euidaccess (Depends-on):
37886         * modules/pt_chown (Depends-on):
37887         * modules/sethostname-tests (Depends-on):
37888         * modules/unlinkdir (Depends-on):
37889         * modules/write-any-file (Depends-on):
37890         Add root-uid.
37892         regex: use locale-independent comparison for codeset name
37893         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37894         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37895         for codeset name.
37896         * lib/regex_internal.h: Do not include <strings.h>, since we
37897         no longer use strcasecmp.
37898         * modules/regex (Depends-on): Remove strcase.
37900 2012-06-23  Bruno Haible  <bruno@clisp.org>
37902         getopt-posix: No longer guarantee that option processing is resettable.
37903         * doc/posix-functions/getopt.texi: Drop description of problem with
37904         internal state. Fix info about mingw and msvc9.
37905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37906         option processing by getopt(). Run three test programs instead of one.
37907         Simplify cross-compilation guess.
37908         * NEWS: Mention the change.
37909         Reported by Rich Felker <dalias@aerifal.cx>.
37911 2012-06-26  Bruno Haible  <bruno@clisp.org>
37913         argp, regex: Ensure strcasecmp gets declared.
37914         * lib/argp-help.c: Include <strings.h>.
37915         * lib/regex_internal.h: Likewise.
37916         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37918 2012-06-24  Bruno Haible  <bruno@clisp.org>
37920         ptsname_r: Make it consistent with ptsname on AIX.
37921         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37922         implementation as for OSF/1.
37923         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37924         a pty master.
37926         ptsname_r: Make it consistent with ptsname on OSF/1.
37927         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37928         OSF/1.
37930 2012-06-24  Bruno Haible  <bruno@clisp.org>
37932         ttyname_r: Fix result on OSF/1, Solaris.
37933         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37935 2012-06-24  Bruno Haible  <bruno@clisp.org>
37937         ptsname_r: Add support for Solaris.
37938         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37939         Solaris.
37941         ptsname_r: Fix test failure on native Windows.
37942         * modules/ptsname_r (Depends-on): Add isatty.
37944         ptsname_r: Fix test failures on IRIX, Solaris.
37945         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37946         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37947         accordingly.
37948         * lib/ptsname_r.c: Include <fcntl.h>.
37949         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37950         set errno if fd is invalid.
37951         * tests/test-isatty.c (main): Update comments.
37953 2012-06-24  Bruno Haible  <bruno@clisp.org>
37955         ptsname test: Extend test.
37956         * tests/test-ptsname.c: Include <errno.h>.
37957         (main): Test behaviour with invalid file descriptor.
37959 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37961         time: fix obsolete comment
37962         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37963         reference to HAVE_STRUCT_TIMESPEC in comment.
37965 2012-06-23  Bruno Haible  <bruno@clisp.org>
37967         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37969         does not handle abbreviated long options with equivalent
37970         disambiguations, set gl_replace_getopt to yes.
37971         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37973 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37975         time_r: fix typo that always overrode localtime_r decl
37976         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37977         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37978         not in a standard include.
37980 2012-06-22  Bruno Haible  <bruno@clisp.org>
37982         Write "Mac OS X" instead of "MacOS X".
37983         * README: Write "Mac OS X" instead of "MacOS X".
37984         * build-aux/bootstrap: Likewise.
37985         * build-aux/install-reloc: Likewise.
37986         * lib/acl-internal.h: Likewise.
37987         * lib/acl_entries.c: Likewise.
37988         * lib/argp-ba.c: Likewise.
37989         * lib/argp-pv.c: Likewise.
37990         * lib/config.charset: Likewise.
37991         * lib/copy-acl.c: Likewise.
37992         * lib/csharpexec.c: Likewise.
37993         * lib/euidaccess.c: Likewise.
37994         * lib/fbufmode.c: Likewise.
37995         * lib/fflush.c: Likewise.
37996         * lib/file-has-acl.c: Likewise.
37997         * lib/filemode.h: Likewise.
37998         * lib/fpurge.c: Likewise.
37999         * lib/freadable.c: Likewise.
38000         * lib/freadahead.c: Likewise.
38001         * lib/freading.c: Likewise.
38002         * lib/freadptr.c: Likewise.
38003         * lib/freadseek.c: Likewise.
38004         * lib/fseeko.c: Likewise.
38005         * lib/fseterr.c: Likewise.
38006         * lib/fsusage.c: Likewise.
38007         * lib/fwritable.c: Likewise.
38008         * lib/fwriting.c: Likewise.
38009         * lib/get-rusage-as.c: Likewise.
38010         * lib/get-rusage-data.c: Likewise.
38011         * lib/getdomainname.c: Likewise.
38012         * lib/idpriv-drop.c: Likewise.
38013         * lib/idpriv-droptemp.c: Likewise.
38014         * lib/localcharset.c: Likewise.
38015         * lib/locale.in.h: Likewise.
38016         * lib/localename.c: Likewise.
38017         * lib/mbsrtowcs-state.c: Likewise.
38018         * lib/nproc.c: Likewise.
38019         * lib/passfd.c: Likewise.
38020         * lib/posix_openpt.c: Likewise.
38021         * lib/printf-parse.c: Likewise.
38022         * lib/progreloc.c: Likewise.
38023         * lib/safe-read.h: Likewise.
38024         * lib/safe-write.h: Likewise.
38025         * lib/sched.in.h: Likewise.
38026         * lib/set-mode-acl.c: Likewise.
38027         * lib/signal.in.h: Likewise.
38028         * lib/stdint.in.h: Likewise.
38029         * lib/stdio-impl.h: Likewise.
38030         * lib/stdlib.in.h: Likewise.
38031         * lib/strtod.c: Likewise.
38032         * lib/sys_select.in.h: Likewise.
38033         * lib/tcgetsid.c: Likewise.
38034         * lib/unistd.in.h: Likewise.
38035         * lib/unlockpt.c: Likewise.
38036         * lib/vasnprintf.c: Likewise.
38037         * lib/vma-iter.c: Likewise.
38038         * lib/wcsrtombs-state.c: Likewise.
38039         * m4/acl.m4: Likewise.
38040         * m4/acosl.m4: Likewise.
38041         * m4/asinl.m4: Likewise.
38042         * m4/atanl.m4: Likewise.
38043         * m4/c-stack.m4: Likewise.
38044         * m4/cosl.m4: Likewise.
38045         * m4/expl.m4: Likewise.
38046         * m4/extensions.m4: Likewise.
38047         * m4/fdatasync.m4: Likewise.
38048         * m4/fmal.m4: Likewise.
38049         * m4/frexp.m4: Likewise.
38050         * m4/frexpf.m4: Likewise.
38051         * m4/frexpl.m4: Likewise.
38052         * m4/fsusage.m4: Likewise.
38053         * m4/getdomainname.m4: Likewise.
38054         * m4/getloadavg.m4: Likewise.
38055         * m4/getopt.m4: Likewise.
38056         * m4/gettext.m4: Likewise.
38057         * m4/gnulib-common.m4: Likewise.
38058         * m4/intdiv0.m4: Likewise.
38059         * m4/intlmacosx.m4: Likewise.
38060         * m4/largefile.m4: Likewise.
38061         * m4/ldexpl.m4: Likewise.
38062         * m4/link-follow.m4: Likewise.
38063         * m4/locale-ar.m4: Likewise.
38064         * m4/locale-fr.m4: Likewise.
38065         * m4/locale-ja.m4: Likewise.
38066         * m4/locale-tr.m4: Likewise.
38067         * m4/locale-zh.m4: Likewise.
38068         * m4/locale_h.m4: Likewise.
38069         * m4/lock.m4: Likewise.
38070         * m4/logl.m4: Likewise.
38071         * m4/mathfunc.m4: Likewise.
38072         * m4/minus-zero.m4: Likewise.
38073         * m4/mktime.m4: Likewise.
38074         * m4/mmap-anon.m4: Likewise.
38075         * m4/multiarch.m4: Likewise.
38076         * m4/nanosleep.m4: Likewise.
38077         * m4/nocrash.m4: Likewise.
38078         * m4/poll.m4: Likewise.
38079         * m4/printf-frexpl.m4: Likewise.
38080         * m4/printf.m4: Likewise.
38081         * m4/signbit.m4: Likewise.
38082         * m4/sinl.m4: Likewise.
38083         * m4/sqrtl.m4: Likewise.
38084         * m4/strerror_r.m4: Likewise.
38085         * m4/tanl.m4: Likewise.
38086         * m4/threadlib.m4: Likewise.
38087         * m4/ttyname_r.m4: Likewise.
38088         * m4/unlink.m4: Likewise.
38089         * m4/visibility.m4: Likewise.
38090         * m4/wcwidth.m4: Likewise.
38091         * tests/minus-zero.h: Likewise.
38092         * tests/test-alloca-opt.c: Likewise.
38093         * tests/test-copy-acl.sh: Likewise.
38094         * tests/test-copy-file.sh: Likewise.
38095         * tests/test-fdatasync.c: Likewise.
38096         * tests/test-file-has-acl.sh: Likewise.
38097         * tests/test-flock.c: Likewise.
38098         * tests/test-fsync.c: Likewise.
38099         * tests/test-localename.c: Likewise.
38100         * tests/test-malloca.c: Likewise.
38101         * tests/test-nonblocking-pipe.h: Likewise.
38102         * tests/test-nonblocking-socket.h: Likewise.
38103         * tests/test-openpty.c: Likewise.
38104         * tests/test-posix_openpt.c: Likewise.
38105         * tests/test-ptsname.c: Likewise.
38106         * tests/test-ptsname_r.c: Likewise.
38107         * tests/test-sameacls.c: Likewise.
38108         * tests/test-select.h: Likewise.
38109         * tests/test-set-mode-acl.sh: Likewise.
38110         * tests/test-snprintf-posix.h: Likewise.
38111         * tests/test-sprintf-posix.h: Likewise.
38112         * tests/test-strtod.c: Likewise.
38113         * tests/test-time.c: Likewise.
38114         * tests/test-vasnprintf-posix.c: Likewise.
38115         * tests/test-vasprintf-posix.c: Likewise.
38116         * doc/acl-resources.txt: Likewise.
38117         * doc/**/*.texi: Likewise.
38118         Reported by Max Horn <max@quendi.de>.
38120 2012-06-22  Bruno Haible  <bruno@clisp.org>
38122         grantpt: Relax requirement regarding invalid file descriptors.
38123         * lib/grantpt.c: Don't include <fcntl.h>.
38124         (grantpt): Don't verify the validity of the file descriptor.
38125         * modules/grantpt (Depends-on): Remove fcntl-h.
38126         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
38127         file descriptors.
38128         * doc/posix-functions/grantpt.texi: Document more platforms on which
38129         grantpt succeeds for invalid file descriptors.
38130         Reported by Rich Felker <dalias@aerifal.cx>.
38132 2012-06-22  Bruno Haible  <bruno@clisp.org>
38134         fbufmode test: Don't test unportable behaviour.
38135         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
38136         (main): Invoke it three times.
38137         Reported by Szabolcs Nagy <nsz@port70.net>
38138         and Rich Felker <dalias@aerifal.cx>.
38140 2012-06-21  Bruno Haible  <bruno@clisp.org>
38142         gnulib-tool: Refactor inctests variable.
38143         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
38144         (func_modules_transitive_closure,
38145         func_modules_transitive_closure_separately,
38146         func_import, func_create_testdir): Update.
38148         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
38149         * gnulib-tool: Accept option --without-tests.
38150         (func_usage): Document --without-tests option. Rearrange.
38151         (inctests): Normalize according to the mode.
38152         * NEWS: Mention the change.
38153         Suggested by Simon Josefsson.
38155 2012-06-21  Bruce Korb  <bkorb@gnu.org>
38157         parse-duration test: Avoid spurious output.
38158         * tests/test-parse-duration.sh: Reindent with leading tabs.
38160 2012-06-21  Jim Meyering  <meyering@redhat.com>
38162         maint: disable the strncpy prohibition
38163         * cfg.mk: Do not prohibit strncpy here.
38165 2012-06-21  Bruno Haible  <bruno@clisp.org>
38167         nonblocking: Avoid compilation error on mingw64.
38168         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
38169         fscanf.
38170         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
38171         * modules/vfscanf (configure.ac): Likewise.
38172         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
38173         definition only if stdio.h has prepared it.
38174         Reported by Daniel P. Berrange <berrange@redhat.com>.
38176 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
38178         gnulib-tool: Use readlink if it is available.
38179         * gnulib-tool (func_readlink): Choose function more appropriately.
38181 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38183         posixtm-tests: port to buggy compiler
38184         Problem reported by Simon Josefsson in
38185         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
38186         * modules/posixtm-tests (Depends-on): Add stdint.
38187         * tests/test-posixtm.c (struct posixtm_test.t_expected):
38188         Now of type int_least64_t, not int64_t, both because that's
38189         what INT64_C returns and because int_least64_t works even
38190         on 72-bit hosts.
38191         (T): Use INT64_C on constants outside the traditional int range,
38192         to work around compiler bug noted by Simon.
38194         mktime: fix integer overflow in 'configure'-time test
38195         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38196         after integer overflow.  Problem reported by Rich Felker in
38197         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
38198         Also, don't look for further instances of a bug if we've already
38199         found one instance; this helps 'configure' run faster.
38201 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
38203         tmpfile, clean-temp: Fix invocation of GetVersionEx.
38204         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
38205         GetVersionEx correctly.
38206         * lib/clean-temp.c (supports_delete_on_close): Likewise.
38208 2012-06-20  Bruno Haible  <bruno@clisp.org>
38210         fdopen: Allow implementations that don't reject invalid fd arguments.
38211         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
38212         succeeds.
38213         Reported by Rich Felker <dalias@aerifal.cx>.
38215 2012-06-20  Simon Josefsson  <simon@josefsson.org>
38217         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
38218         bring in LIBINTL.
38220 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38222         init.sh: do not rely on autoupated PWD
38223         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
38224         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
38225         Although Nelson's bug was not necessarily fixed by this patch,
38226         it seems wise to make the change for safety.
38227         * tests/init.sh (path_prepend_): Do not rely on PWD updating
38228         automagically after 'cd'; this is not reliable on older shells.
38229         (setup_): Fail if we cannot cd to temporary directory.
38231 2012-06-19  Bruno Haible  <bruno@clisp.org>
38233         stat, fstat: Avoid warnings on mingw64.
38234         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
38235         redefining.
38236         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
38237         Reported by Daniel P. Berrange <berrange@redhat.com>.
38239 2012-06-19  Bruno Haible  <bruno@clisp.org>
38241         stdioext: Add support for musl libc.
38243         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
38244         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
38246         * m4/fseterr.m4: New file.
38247         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
38248         function exists.
38249         * modules/fseterr (Files): Add m4/fseterr.m4.
38250         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
38251         __fseterr does not exist.
38252         (Makefile.am): Remove fseterr.c from lib_SOURCES.
38254         * lib/freadable.h: Update comment.
38256         * lib/fwritable.h: Update comment.
38258         * lib/freading.h: Update comment.
38260         * lib/fwriting.h: Update comment.
38262         * m4/freadahead.m4: New file.
38263         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
38264         that function exists.
38265         * modules/freadahead (Files): Add m4/freadahead.m4.
38266         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
38267         __freadahead does not exist.
38268         (Makefile.am): Remove freadahead.c from lib_SOURCES.
38270         * m4/freadptr.m4: New file.
38271         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
38272         function exists.
38273         * modules/freadptr (Files): Add m4/freadptr.m4.
38274         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
38275         __freadptr does not exist.
38276         (Makefile.am): Remove freadptr.c from lib_SOURCES.
38278         * m4/freadseek.m4: New file.
38279         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
38280         exists.
38281         * modules/freadseek (Files): Add m4/freadseek.m4.
38282         (configure.ac): Invoke gl_FUNC_FREADSEEK.
38284         * lib/fpurge.c (fpurge): Update comment.
38286         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
38288 2012-06-19  Bruno Haible  <bruno@clisp.org>
38290         *printf-posix: Put more info into config.log.
38291         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
38292         exit code into config.log.
38294 2012-06-19  Bruno Haible  <bruno@clisp.org>
38296         getopt-gnu: Fix exit code overflow in autoconf test.
38297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
38298         to keep them below < 128.
38300 2012-06-17  Jim Meyering  <meyering@redhat.com>
38302         maint.mk: fix typo in code to derive GPG key at release time
38303         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
38305 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
38307         regex: avoid warning when pointers are not long
38308         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
38309         and uintptr_t, not long, for portability to hosts where pointers and
38310         long have different sizes.  Issue noted by Daniel P. Berrange in
38311         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
38312         and fix suggested by Bruno Haible in
38313         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
38315 2012-06-17  Bruno Haible  <bruno@clisp.org>
38317         dummy: Relicense into the public domain.
38318         * modules/dummy (License): Set to "public domain".
38319         Suggested by Reuben Thomas.
38321 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38323         announce-gen: VPATH issues
38324         * build-aux/announce-gen (--srcdir): New option, used to trim the
38325         $srcdir part of the path from $builddir to NEWS.
38326         * top/maint.mk (announcement): Adjust.
38328 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38330         gnu-web-doc-update: VPATH builds
38331         * build-aux/gnu-web-doc-update (--builddir): New option.
38332         Revamp the handling of options.
38333         Prefer $(...) to `...`.
38334         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
38335         the template, and it is GNU mktemp specific.
38336         Prefer set -e to long series of &&.
38337         Restore the initial git branch, not "master".
38338         Properly initialize submodules (don't rely only on bootstrap).
38339         Do not reconfigure blindly, use config.status.
38340         * top/README-release: Update instructions for gnu-web-doc-update.
38342 2012-06-11  Jim Meyering  <meyering@redhat.com>
38344         maint.mk: revert most of the previous change re "all these"
38345         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
38346         For rationale, see the discussion at
38347         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
38349 2012-06-10  Karl Berry  <karl@gnu.org>
38351         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
38353         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
38355 2012-06-10  Bruce Korb  <bkorb@gnu.org>
38357         parse-duration: Relicense under LGPLv2+.
38358         * modules/parse-duration (License): Change to LGPLv2+.
38360 2012-06-10  Jim Meyering  <meyering@redhat.com>
38362         maint.mk: prohibit common grammar error: "all these"
38363         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38364         the list of prohibited word sequences.  It should be "all of these".
38365         * lib/tempname.c (__gen_tempname): Fix one of them.
38367 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38369         do-release-commit-and-tag: support VPATH builds
38370         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38371         (noteworthy): Defined earlier to factor its value.
38372         (noteworthy_stub): New.
38373         Use it to factor.
38374         (help_version): Split into...
38375         (help, version): these.
38376         Adjust the option processing part.
38377         Support "--option=value" in addition to "--option value".
38378         (builddir): New.
38379         (--builddir): New option.
38380         * top/README-release: Document this.
38381         Reword slightly so that the reader cannot understand that he
38382         has to do these steps before calling do-release-commit-and-tag.
38384 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38386         readme-release: also require announce-gen and maintainer-makefile
38387         * modules/readme-release (Depends-on): here.
38388         * modules/announce-gen, modules/do-release-commit-and-tag,
38389         modules/gnu-web-doc-update, modules/maintainer-makefile
38390         (Description): Point to readme-release.
38392 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38394         maint.mk: fix VPATH issues.
38395         * top/maint.mk (news-check): GNU Make understand $< very well.
38396         (release-prep): NEWS is in $(srcdir).
38398 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38400         readme-release: require the promoted modules.
38401         * modules/readme-release (Depends-on): Add
38402         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38403         in this text.
38405 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38406             Bruno Haible  <bruno@clisp.org>
38408         error, strerror-override: Support mingw64 from Fedora 17.
38409         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38410         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38411         EINPROGRESS.
38412         * lib/strerror-override.h (strerror_override): Test it.
38413         * lib/strerror-override.c (strerror_override): Likewise.
38414         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38416 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38417             Bruno Haible  <bruno@clisp.org>
38419         error, strerror-override: Support mingw64 from Fedora 17.
38420         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38421         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38422         * lib/strerror-override.h (strerror_override): Test it.
38423         * lib/strerror-override.c (strerror_override): Likewise.
38425 2012-06-03  Bruno Haible  <bruno@clisp.org>
38427         error, strerror-override: Support new errno values from POSIX:2008.
38428         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38429         ENOTRECOVERABLE.
38430         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38431         platforms.
38432         * lib/strerror-override.c (strerror_override): Conditionalize the
38433         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38434         * lib/strerror-override.h (strerror_override): Declare also if
38435         GNULIB_defined_EOWNERDEAD is defined.
38436         * tests/test-errno.c (e130, e131): New variables.
38437         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38438         ENOTRECOVERABLE.
38439         Reported by Paolo Bonzini.
38441 2012-05-31  Jim Meyering  <meyering@redhat.com>
38443         savewd: add missing dependency on sys_wait module
38444         * modules/savewd (Depends-on): Add sys_wait, needed at least
38445         for MSVC.  Report and suggested change by Michael Goffioul.
38447 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38449         system-quote-tests: port to CentOS 5
38450         Problem reported by Tom G. Christensen in
38451         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38452         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38454 2012-05-29  Jim Meyering  <meyering@redhat.com>
38456         maint: fix typos in comments and ChangeLog
38457         Culprits identified and fixed mostly automatically using these commands:
38458         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38459         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38460         using http://github.com/lyda/misspell-check
38461         * ChangeLog: Fix typos.
38462         * doc/solaris-versions: Likewise.
38463         * lib/regexec.c (re_search_stub): Likewise.
38464         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38466 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38468         manywarnings: remove duplicate -Wmultichar entry
38469         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38470         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38471         so keep the entry marked as documented.
38473 2012-05-27  Karl Berry  <karl@gnu.org>
38475         * config/srclist.txt (mktime.c): remove last libc sync,
38476         perhaps just temporarily.
38478 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38480         regex: don't assume uint64_t or uint32_t
38481         * lib/regcomp.c (init_word_char): Don't assume that the types
38482         uint64_t and uint32_t exist.  The C standard doesn't guarantee
38483         them, and on some 32-bit compilers there is no uint64_t.
38484         Problem reported by Gianluigi Tiesi in
38485         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
38487 2012-05-25  Jim Meyering  <meyering@redhat.com>
38489         maint.mk: add strncpy-prohibiting syntax-check rule
38490         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38492 2012-05-24  Jim Meyering  <meyering@redhat.com>
38494         maint.mk: compute $(gpg_key_ID) more portably
38495         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
38496         That use of sed is not portable to some fringe systems.
38497         Reported by Paul Eggert in
38498         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
38500 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38502         mktime: sync from glibc
38503         * config/srclist.txt: Uncomment mktime.c.
38504         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
38505         First, indent with tabs, since glibc uses tabs and doesn't want to
38506         change and we'd rather be identical to glibc.  Also, two small
38507         coding changes:
38508         (isdst_differ): Use &&, not &, as && is the usual style.
38509         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
38510         for clarity.
38512 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38514         announce-gen: du -h is more portable than du --human
38515         * build-aux/announce-gen (sizes): Invoke du with -h instead
38516         of --human.  Accept leading white space in its output.
38518 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38520         announce-gen: Improve diagnostics.
38521         * build-aux/announce-gen: When parsing command line options,
38522         prefer "announce-gen: option --release-type requires an argument"
38523         to "Option release-type requires an argument".
38525 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38527         maint.mk: gpg_key_ID: use sed more portably
38528         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38529         the closing brace.
38530         (refresh-po): Fuse two sed invocations into one.
38532 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
38534         gitlog-to-changelog: support the log message format used in Bison.
38535         * build-aux/gitlog-to-changelog: Support --strip-tab and
38536         --strip-cherry-picked.
38538 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38540         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
38541         the rest of the current time slice to another thread in the current
38542         process. So if the thread that feeds the file decscriptor we're
38543         polling is not in the current process, we get busy-waiting.
38544         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
38545         Patch from Theodore Leblond.
38546         * lib/select.c: Split polling out of the loop that sets the output
38547         fd_sets.  Check for zero result and loop if the wait timeout is
38548         infinite.
38550 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38552         select: Fix build error on IRIX 6.5.
38553         * lib/select.c: Include stddef.h for NULL.
38555 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38557         gc: fix libgcrypt detection on older machines.
38558         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
38559         copyright years because the file has been distributed every year
38560         since it was created.
38562 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38564         crypto: fix bug in large buffer handling
38565         Problem reported by Serge Belyshev for glibc in
38566         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
38567         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
38568         * lib/md4.c (md4_process_block):
38569         * lib/md5.c (md5_process_block):
38570         * lib/sha1.c (sha1_process_block):
38571         * lib/sha256.c (sha256_process_block):
38572         Don't assume the buffer length is less than 2**32.
38573         * lib/sha512.c (sha512_process_block): Likewise.
38574         Here, the bug is present only in the rare case where the host does
38575         not support uint64_t or where size_t is wider than 64 bits.
38576         Use u64size to work around the problems.
38577         * lib/u64.h (u64size): New macro.
38579 2012-05-15  Pádraig Brady  <P@draigBrady.com>
38581         fsusage: fix block size returned on older Linux 2.6
38583         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
38584         which is available since Linux 2.6.
38585         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
38586         when the member is available so it can be used as a fallback.
38587         * doc/posix-functions/statvfs.texi: Mention the hang issue
38588         on Linux < 2.6.36.
38590 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38592         bootstrap: suppress stderr chatter
38593         * build-aux/bootstrap (insert_sorted_if_absent, main program):
38594         Omit unnecessary chatter to stderr.  The main program chatter
38595         was there only inadvertantly.
38597         bootstrap: .gitignore files created by autopoint, libtool
38598         I ran into this problem when bootstrapping the latest diffutils.
38599         After './bootstrap', 'git status' reported lots of untracked files
38600         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
38601         autopoint and do not need to be version-controlled.
38602         * build-aux/bootstrap: Put into .gitignore the files that
38603         autopoint and libtool create, by keeping track of files that exist
38604         after but not before these programs are run.
38605         (version_controlled_file): Move up.  2nd arg is now full file
38606         name, not base name; this is more convenient.  Put CVS at the end,
38607         as it's now somewhat deprecated.
38609 2012-05-14  Jim Meyering  <meyering@redhat.com>
38611         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38612         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38613         definition.  Reported by Bruno Haible.
38615 2012-05-13  Bruno Haible  <bruno@clisp.org>
38616             Paul Eggert  <eggert@cs.ucla.edu>
38618         binary-io: Define set_binary_mode function.
38619         * lib/binary-io.h (set_binary_mode): New function.
38620         (SET_BINARY): Define in terms of set_binary_mode.
38621         * modules/binary-io (configure.ac): Require AC_C_INLINE.
38622         * tests/test-binary-io.c (main): Accept an argument, and test either
38623         set_binary_mode or SET_BINARY depending on the argument.
38624         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
38625         argument. Clean up also t-bin-out0.tmp.
38627 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
38629         bootstrap: take advantage of POSIX shell features
38631         The 'bootstrap' script offered by Gnulib script already uses POSIX
38632         shell features (like $((...)) arithmetic expansions) that are not
38633         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
38634         means that bootstrap must already be run using a proper POSIX shell,
38635         which will thus provide more features, like ${var#pattern} parameter
38636         expansion or inversion of a command exit status with '!'.  We can
38637         thus use these features to improve the clarity and the performances
38638         of the bootstrap script.
38640         Suggested by Eric Blake.
38642         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
38643         of sed/expr plus command substitutions, to save some forks.  While
38644         we are at it, prefer the POSIX $(...) form of command substitution,
38645         rather than the legacy form `...` (since the former is visually
38646         clearer and interacts better with quoting), and prefer the idiom:
38647           "if ! CMD; then ACTION ..."
38648         over the idiom:
38649           "if CMD; then :; else ACTION ..."
38650         which was required by legacy Bourne shells not supporting '!'.
38652 2012-05-12  Bruno Haible  <bruno@clisp.org>
38654         system-quote: Add more comments.
38655         * lib/system-quote.h: Add more comments about wilcards and limitations.
38656         Suggested by Eli Zaretskii <eliz@gnu.org>.
38658         sh-quote, system-quote: Add comments about wildcards.
38659         * lib/sh-quote.h: Clarify what happens with wildcard characters.
38660         * lib/system-quote.h: Likewise.
38661         Reported by Eli Zaretskii <eliz@gnu.org>.
38663 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38665         fsusage: check for GNU/Linux statvfs problem dynamically
38666         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
38667         Define STAT_STATFS2_BSIZE too, since in this case the code now
38668         checks dynamically whether statvfs is reliable, falling back on
38669         Linux-style statfs otherwise.
38670         (statvfs_works): New function, for dynamically testing statvfs.
38671         (get_fs_usage) [STAT_STATVFS]: Use it.
38672         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
38673         statvfs on GNU/Linux hosts, since it's now done dynamically.
38675 2012-05-10  Bruno Haible  <bruno@clisp.org>
38677         system-quote, execute, spawn-pipe: Escape '?' on Windows.
38678         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
38679         '?' character.
38680         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38681         * tests/test-system-quote-main.c (check_all): Check also strings like
38682         "??????????".
38683         Reported by Eli Zaretskii <eliz@gnu.org>.
38685 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38687         _Noreturn: port config.h to gcc -Wundef
38688         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38689         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38690         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38692 2012-05-10  Bruno Haible  <bruno@clisp.org>
38694         system-quote: Refactor.
38695         * lib/system-quote.h (system_quote_copy): Fix comment.
38696         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38697         New functions, extracted from system_quote_copy.
38698         (system_quote_length, system_quote_copy): Use these functions.
38699         Reported by Paul Eggert.
38701 2012-05-08  Bruno Haible  <bruno@clisp.org>
38703         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38704         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38706 2012-05-08  Bruno Haible  <bruno@clisp.org>
38708         Tests for module 'system-quote'.
38709         * modules/system-quote-tests: New file.
38710         * tests/test-system-quote.sh: New file.
38711         * tests/test-system-quote-main.c: New file.
38712         * tests/test-system-quote-child.c: New file.
38714         New module 'system-quote'.
38715         * lib/system-quote.h: New file.
38716         * lib/system-quote.c: New file.
38717         * modules/system-quote: New file.
38719 2012-05-08  Bruno Haible  <bruno@clisp.org>
38721         sh-quote: Make C++ safe and allow multiple inclusion.
38722         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38723         declarations in extern "C".
38725 2012-05-08  Bruno Haible  <bruno@clisp.org>
38727         sh-quote tests: Make tests stricter.
38728         * tests/test-sh-quote.c (check_one): Check the return value of
38729         shell_quote_copy.
38730         (main): Check a string with a CR character. Check a string that
38731         contains UCHAR_MAX.
38733 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38735         warnings.m4: provide a means to specify the program to compile.
38736         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38737         (gl_WARN_ADD): here.
38738         Use gl_AS_VAR_APPEND.
38739         Support an argument to specify the program to compile.
38740         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38741         AC_SUBST the WARN_CFLAGS when they are used.
38742         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38743         leave this to gl_WARN_ADD.
38745 2012-05-08  Eric Blake  <eblake@redhat.com>
38747         doc: recommendations on gettext version
38748         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38749         choice between versions.
38750         * DEPENDENCIES (gettext): Cover both approaches.
38752 2012-05-08  Jim Meyering  <meyering@redhat.com>
38754         init.sh: explain why EXEEXT support uses aliases rather than functions
38755         * tests/init.sh: Add a comment.
38757         init.sh: don't let bash aliases interfere with tests
38758         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38759         is bash.  This avoids problems for those who alias standard commands to
38760         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38761         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38763 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38765         stdint: be more consistent with glibc, SunOS libc
38766         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38767         (gl_int_fast16_t, gl_uint_fast16_t)
38768         (gl_int_fast32_t, gl_uint_fast32_t)
38769         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38770         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38771         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38772         Be consistent with glibc by default, and with SunOS 5.10 and later
38773         if __sun is defined.  This lessens the likelihood of clashes if
38774         code compiled for older hosts is combined with code compiled for
38775         newer ones.  Problem reported by Niels Möller in
38776         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38778 2012-05-07  Eric Blake  <eblake@redhat.com>
38780         isatty: relax license to LGPLv2+
38781         * modules/isatty (License): Relax license.
38783 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38785         stat-size: comment fix
38786         * lib/stat-size.h: Remove obsolete comment about indenting.
38788 2012-05-06  Bruno Haible  <bruno@clisp.org>
38790         Tests for module 'sh-quote'.
38791         * modules/sh-quote-tests: New file.
38792         * tests/test-sh-quote.c: New file.
38794 2012-05-06  Bruno Haible  <bruno@clisp.org>
38796         sh-quote: Improve shell_quote_argv's signature.
38797         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38798         * lib/sh-quote.c (shell_quote_argv): Likewise.
38800 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38802         stdint: document issues with int_fast8_t etc.
38803         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38804         stdint.h substitutes may define these types differently.  See
38805         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38807 2012-05-05  Bruno Haible  <bruno@clisp.org>
38809         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38811         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38812         or 'guessing no (mishandles large arguments)'.
38814 2012-05-05  Bruno Haible  <bruno@clisp.org>
38816         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38817         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38818         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38819         set gl_cv_func_link_follows_symlink to "guessing no".
38821 2012-05-05  Bruno Haible  <bruno@clisp.org>
38823         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38824         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38825         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38826         "guessing no".
38827         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38829 2012-05-05  Bruno Haible  <bruno@clisp.org>
38831         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38832         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38833         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38834         set gl_cv_struct_dirent_d_ino to "guessing yes".
38836 2012-05-05  Bruno Haible  <bruno@clisp.org>
38838         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38839         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38840         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38841         "guessing yes".
38843 2012-05-05  Bruno Haible  <bruno@clisp.org>
38845         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38846         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38847         compiling to a glibc system, set gl_cv_func_signbit and
38848         gl_cv_func_signbit_gcc to "guessing yes".
38850 2012-05-05  Bruno Haible  <bruno@clisp.org>
38852         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38853         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38854         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38855         to "guessing yes".
38856         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38857         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38859 2012-05-05  Bruno Haible  <bruno@clisp.org>
38861         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38862         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38863         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38864         gl_cv_func_realpath_works to "guessing yes".
38866 2012-05-05  Bruno Haible  <bruno@clisp.org>
38868         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38869         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38870         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38872 2012-05-04  Bruno Haible  <bruno@clisp.org>
38874         Tweak last commit.
38875         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38876         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38878 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38880         unistd_h: make it easier to avoid sys_types_h
38881         This is useful for Emacs, which has its own method of porting to
38882         Windows, and which therefore does not need the sys_types_h module.
38883         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38884         code moved here from gl_SYS_TYPES_H.
38885         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38886         using the code directly.
38887         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38888         gl_SYS_TYPES_H.
38889         * modules/sys_types (Files):
38890         * modules/unistd (Files): Add m4/off_t.m4.
38892 2012-05-03  Bruno Haible  <bruno@clisp.org>
38894         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38895         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38896         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38897         "guessing yes" or "guessing no".
38898         (gl_FUNC_LSTAT): Update.
38899         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38900         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38901         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38903 2012-05-03  Bruno Haible  <bruno@clisp.org>
38905         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38906         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38907         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38908         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38909         cross-compiling, choose the first alternative on glibc systems.
38910         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38912 2012-05-03  Bruno Haible  <bruno@clisp.org>
38914         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38915         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38916         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38918 2012-05-03  Bruno Haible  <bruno@clisp.org>
38920         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38921         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38923 2012-05-03  Bruno Haible  <bruno@clisp.org>
38925         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38926         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38927         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38928         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38929         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38930         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38931         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38932         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38933         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38934         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38935         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38936         gl_cv_func_chown_ctime_works to "guessing yes".
38937         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38938         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38939         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38940         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38941         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38943         compiling to glibc systems, set gl_cv_func_open_directory_works to
38944         "guessing yes".
38945         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38946         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38947         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38948         "guessing yes".
38949         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38950         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38951         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38952         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38953         "guessing yes".
38954         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38955         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38956         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38957         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38958         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38959         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38960         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38961         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38962         "guessing yes".
38963         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38964         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38965         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38966         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38967         "guessing yes".
38968         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38969         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38970         "guessing yes".
38971         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38972         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38973         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38974         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38975         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38976         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38977         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38978         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38979         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38980         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38981         "guessing yes".
38982         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38983         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38984         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38985         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38986         "guessing yes".
38987         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38988         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38989         "guessing yes".
38990         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38991         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38992         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38993         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38994         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38995         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38996         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38997         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38998         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38999         "guessing yes".
39000         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
39001         compiling to glibc systems, set gl_cv_func_mknod_works to
39002         "guessing yes".
39003         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
39004         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
39005         "guessing yes".
39006         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
39007         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
39008         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
39009         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
39010         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
39011         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
39012         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
39013         compiling to glibc systems, set gl_cv_func_svid_putenv to
39014         "guessing yes".
39015         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
39016         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
39017         "guessing yes".
39018         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
39019         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
39020         "guessing yes".
39021         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
39022         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
39023         to "guessing yes".
39024         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
39025         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
39026         to "guessing yes".
39027         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
39028         compiling to glibc systems, set gl_cv_func_rmdir_works to
39029         "guessing yes".
39030         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
39031         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
39032         gl_cv_func_unlink_parent_fails to "guessing yes".
39033         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
39034         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
39035         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
39036         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
39037         gl_cv_func_rename_dest_works to "guessing yes".
39038         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
39039         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
39040         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
39041         compiling to glibc systems, set gl_cv_func_roundf_ieee to
39042         "guessing yes".
39043         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
39044         compiling to glibc systems, set gl_cv_func_roundl_ieee to
39045         "guessing yes".
39046         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
39047         compiling to glibc systems, set gl_cv_func_setenv_works to
39048         "guessing yes".
39049         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
39050         compiling to glibc systems, set gl_cv_func_unsetenv_works to
39051         "guessing yes".
39052         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
39053         compiling to glibc systems, set gl_cv_func_sleep_works to
39054         "guessing yes".
39055         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
39056         compiling to glibc systems, set gl_cv_func_stat_file_slash to
39057         "guessing yes".
39058         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
39059         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
39060         "guessing yes".
39061         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
39062         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
39063         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
39064         compiling to glibc systems, set gl_cv_func_truncf_ieee to
39065         "guessing yes".
39066         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
39067         compiling to glibc systems, set gl_cv_func_truncl_ieee to
39068         "guessing yes".
39069         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
39070         compiling to glibc systems, set gl_cv_func_usleep_works to
39071         "guessing yes".
39072         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
39073         compiling to glibc systems, set gl_cv_func_futimesat_works to
39074         "guessing yes".
39076 2012-05-03  Bruno Haible  <bruno@clisp.org>
39078         Say "guessing yes" or "guessing no" when cross-compiling.
39079         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
39080         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
39081         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
39082         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
39083         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
39084         am_cv_func_working_getline to "guessing yes" or "guessing no".
39085         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
39086         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
39087         (gl_FUNC_MEMMEM): When cross-compiling, set
39088         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
39089         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
39090         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
39091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
39092         set gl_cv_func_strcasestr_works_always to "guessing yes" or
39093         "guessing no".
39094         (gl_FUNC_STRCASESTR): When cross-compiling, set
39095         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
39096         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
39097         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
39098         (gl_FUNC_STRSTR): When cross-compiling, set
39099         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
39100         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
39101         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
39102         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
39103         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
39105 2012-05-01  Bruno Haible  <bruno@clisp.org>
39107         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
39108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
39109         * build-aux/reloc-ldflags: Likewise.
39110         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
39112 2012-05-01  Bruno Haible  <bruno@clisp.org>
39114         gnulib-tool: Remove transitional code.
39115         * gnulib-tool: Don't warn about --import with 0 arguments any more.
39116         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39118 2012-05-01  Bruno Haible  <bruno@clisp.org>
39120         getcwd: Fix misindentation.
39121         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
39123 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
39125         exclude: process exclude and include directives in order
39126         This restores the pre-2009 behavior, and is part of a fix of a
39127         grep bug reported by Quentin Arce in
39128         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
39129         * lib/exclude.c (struct exclude): Remove 'tail' member.
39130         (new_exclude_segment): Prepend the new segment instead of appending.
39131         Return void, since that's now more convenient.
39132         (file_pattern_matches): Renamed from excluded_file_pattern_p.
39133         (file_name_matches): Renamed from excluded_file_name_p.
39134         (file_pattern_matches, file_name_matches):
39135         Return true if the pattern matches, not if it excludes.
39136         All callers changed.
39137         (excluded_file_name): Process the list in reverse order;
39138         since the list is now reversed this restores the pre-2009 behavior.
39139         (add_exclude): Adjust to new reversed-order list.  Use local var
39140         rather than macro, for clarity.
39141         * tests/test-exclude7.sh: Adjust to corrected behavior.
39143         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
39144         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
39145         it's not possible here.  Handle the case of \ at end of pattern
39146         without dumping core.
39147         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
39149         _Noreturn: future-proof non-GNU and non-MSVC compilers
39150         * build-aux/snippet/_Noreturn.h (_Noreturn):
39151         * m4/gnulib-common.m4 (gl_COMMON_BODY):
39152         Do not define _Noreturn if __STDC_VERSION__ indicates this is
39153         C11 or later.  This is more likely to work with random future C
39154         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
39155         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
39157         exclude: handle wildcards with FNM_EXTMATCH
39158         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
39159         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
39160         comment that "has wildcards" really means "has or may have
39161         wildcards".  Simplify by avoiding the need to call strcspn.
39163 2012-04-29  Bruno Haible  <bruno@clisp.org>
39165         gnulib-tool: Fix list of authors.
39166         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
39168 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
39170         bootstrap: support Automake-NG in $buildreq
39171         * bootstrap (check_versions): Handle automake and aclocal from
39172         Automake-NG specially.  They can be specified as respectively
39173         the "automake-ng" and "aclocal-ng" requirements.
39175 2012-04-25  Eric Blake  <eblake@redhat.com>
39177         bootstrap: only force latest Makefile.in.in for gettext module
39178         * build-aux/bootstrap (with_gettext): Only install latest
39179         Makefile.in.in for projects requesting bleeding edge gettext.
39181 2012-04-22  Bruno Haible  <bruno@clisp.org>
39183         doc: Mention reason for replacement on glibc/Linux systems.
39184         * doc/posix-functions/dprintf.texi: Mention the problem with special
39185         'long double' values.
39186         * doc/posix-functions/fprintf.texi: Likewise.
39187         * doc/posix-functions/printf.texi: Likewise.
39188         * doc/posix-functions/snprintf.texi: Likewise.
39189         * doc/posix-functions/sprintf.texi: Likewise.
39190         * doc/posix-functions/vdprintf.texi: Likewise.
39191         * doc/posix-functions/vfprintf.texi: Likewise.
39192         * doc/posix-functions/vprintf.texi: Likewise.
39193         * doc/posix-functions/vsnprintf.texi: Likewise.
39194         * doc/posix-functions/vsprintf.texi: Likewise.
39195         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39196         platforms with F_DUPFD_CLOEXEC problems.
39197         * doc/posix-functions/glob.texi: Mention which platforms are affected
39198         by the problem with symbolic links.
39199         * doc/posix-functions/linkat.texi: Mention the problem with
39200         AT_SYMLINK_FOLLOW on Linux.
39202 2012-04-22  Bruno Haible  <bruno@clisp.org>
39204         pwrite: Don't replace on all platforms.
39205         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
39207 2012-04-22  Bruno Haible  <bruno@clisp.org>
39209         rint* tests: Avoid gcc warnings.
39210         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
39211         * tests/test-rintf.c (INFINITY, NAN): Likewise.
39212         * tests/test-rintl.c (INFINITY, NAN): Likewise.
39214 2012-04-21  Bruno Haible  <bruno@clisp.org>
39216         users.txt: Update.
39217         * users.txt: Add freedink, wdiff. Update URLs for projects that have
39218         switched from CVS to git, bzr, or svn.
39220 2012-04-21  Bruno Haible  <bruno@clisp.org>
39222         Large File Support for native Windows platforms.
39224         * m4/largefile.m4 (gl_LARGEFILE): New macro.
39225         * modules/largefile (configure.ac): Require gl_LARGEFILE.
39227         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
39228         type.
39229         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
39230         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
39231         * doc/posix-headers/sys_types.texi: Mention the effect of the
39232         'largefile' module.
39234         * lib/fcntl.in.h: Add comments about off_t.
39235         * modules/fcntl-h (Depends-on): Add sys_types.
39237         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
39238         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
39239         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
39240         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
39241         * modules/unistd (Depends-on): Add sys_types.
39242         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
39244         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39245         instead of lseek.
39246         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
39247         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
39248         * modules/lseek (Depends-on): Add sys_types.
39250         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
39251         msvc-nothrow.h.
39252         (SetFileSize): New function.
39253         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
39254         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
39255         if Large File Support is requested.
39256         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
39257         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39259         * lib/stdio.in.h: Add comments about off_t.
39260         * modules/stdio (Depends-on): Add sys_types.
39262         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
39263         instead of ftello.
39264         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
39265         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
39266         (gl_PREREQ_FTELLO): New macro.
39267         * modules/ftello (Depends-on): Add sys_types.
39268         (configure.ac): Incoke gl_PREREQ_FTELLO.
39270         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
39271         instead of fseeko.
39272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
39273         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
39274         (gl_PREREQ_FSEEKO): New macro.
39275         * modules/fseeko (Depends-on): Add sys_types.
39276         (configure.ac): Invoke gl_PREREQ_FSEEKO.
39278         * lib/sys_stat.in.h: Add comments about off_t.
39279         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
39280         64-bit integer for st_size in 'struct stat'.
39281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
39282         Define _GL_WINDOWS_64_BIT_ST_SIZE.
39283         * modules/sys_stat (Depends-on): Add sys_types.
39284         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
39286         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
39287         instead of stat or _stat.
39289         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
39290         'struct _stati64' instead of fstat and 'struct stat'.
39291         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
39292         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
39294         Reported by Ray Satiro <raysatiro@yahoo.com>.
39296 2012-04-19  Eric Blake  <eblake@redhat.com>
39298         bootstrap: accommodate older libtool
39299         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
39300         Reported by Daniel P. Berrange.
39302 2012-04-19  Jim Meyering  <meyering@redhat.com>
39304         announce-gen: avoid failure due to lack of Digest::SHA1
39305         Even with the preferred Digest::SHA available, this script
39306         would fail when the backup module, Digest::SHA1, was not installed.
39307         * build-aux/announce-gen: Quote the conditional use of "use".
39308         Reported by Reuben Thomas in:
39309         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
39311         bootstrap: don't let a user's CDPATH setting affect this script
39312         When CDPATH is set, cd will sometimes generate output.
39313         When "cd" is run in a subshell whose output matters, that
39314         surprising-to-some output can cause malfunction.
39315         Unsetting CDPATH turns off this shell "feature."
39316         * build-aux/bootstrap (CDPATH): Unset.
39317         Reported by Reuben Thomas in:
39318         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
39319         and inspired by his patch here:
39320         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
39322 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
39323         and Jim Meyering  <meyering@redhat.com>
39325         maint.mk: catch "see @xref{}" and similar
39326         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
39327         prohibit "See also @xref{", "Also see @pxref{", and similar.
39329 2012-04-16  Jim Meyering  <meyering@redhat.com>
39331         bootstrap: really use gnulib's po/Makefile.in.in
39332         * build-aux/bootstrap: Correct the source file name in previous change.
39333         Reported by Akim Demaille.
39335         configmake: correct minor inconsistency in Makefile rule
39336         * modules/configmake (Makefile.am): All other rules like this one
39337         run the final "mv -f ..." in the same backslash-continued command
39338         as the one that does everything else.  This one put the mv -f ...
39339         command on a separate, non-backslash-continued line.
39340         Make it like the others.
39342         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
39343         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
39344         the one from gettext.  Reported by Akim Demaille.
39346 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
39348         Fix recursion of install-* into po directories.
39349         Bison's install-pdf bug reported by Hans Aberg at
39350         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
39351         * build-aux/po/Makefile.in.in (install-dvi, install-html)
39352         (install-info, install-pdf, install-ps): New targets.
39354 2012-04-16  Jim Meyering  <meyering@redhat.com>
39356         maint: avoid spurious "make sc_maint" failure
39357         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
39358         exempt all *.class file names, for lib/javaversion.class.
39360 2012-04-15  Bruno Haible  <bruno@clisp.org>
39362         lseek: Make configure test independent of environment.
39363         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39364         Windows, we know that lseek() on pipes is broken; skip the runtime
39365         test.
39367 2012-04-14  Bruno Haible  <bruno@clisp.org>
39369         stat: Bypass buggy override in mingw64.
39370         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39371         * lib/stat.c (stat) [mingw64]: Define to _stat.
39372         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39374 2012-04-14  Bruno Haible  <bruno@clisp.org>
39376         pathmax: Fix compilation error on MSVC 9.
39377         * modules/pathmax (Depends-on): Add unistd.
39379 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39381         README: document pointer comparison assumption
39382         * README (Portability guidelines): Document assumption about
39383         pointer comparisons, in response to a recent bug-gnulib comment by
39384         Jeffrey Kegler.
39386 2012-04-12  Bruno Haible  <bruno@clisp.org>
39388         Tests for module 'getrusage'.
39389         * modules/getrusage-tests: New file.
39390         * tests/test-getrusage.c: New file.
39392         New module 'getrusage'.
39393         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39394         warn-on-use.h.
39395         (getrusage): New declaration.
39396         * lib/getrusage.c: New file.
39397         * m4/getrusage.m4: New file.
39398         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39399         is declared.
39400         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39401         HAVE_GETRUSAGE.
39402         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39403         snippet/c++defs, snippet/warn-on-use.
39404         (Makefile.am): Update generation of sys/resource.h. Substitute
39405         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39406         * modules/getrusage: New file.
39407         * doc/posix-functions/getrusage.texi: Mention the new module.
39409 2012-04-12  Bruno Haible  <bruno@clisp.org>
39411         Tests for module 'sys_resource'.
39412         * modules/sys_resource-tests: New file.
39413         * tests/test-sys_resource.c: New file.
39415         New module 'sys_resource'.
39416         * lib/sys_resource.in.h: New file.
39417         * m4/sys_resource_h.m4: New file.
39418         * modules/sys_resource: New file.
39419         * doc/posix-headers/sys_resource.texi: Mention the new module.
39421 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39423         ioctl: Fix compilation error on mingw.
39424         * lib/ioctl.c: Include <windows.h>.
39425         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39427 2012-04-04  Jim Meyering  <meyering@redhat.com>
39429         regex: correct #pragma guard expression
39430         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39431         not 4.3.  Correct its cpp guard expression.
39433 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39435         regex: remove unnecessary type punning
39436         Problem reported by Vladimir Serbinenko in
39437         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39438         * lib/regex.h (struct re_pattern_buffer): Change the type of
39439         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39440         Fix comment to match code.
39441         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39442         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39443         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39444         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39445         (set_regs):
39446         Omit no-longer-necessary casts.
39448 2012-04-03  Bruno Haible  <bruno@clisp.org>
39450         Tests for module 'ilogbl'.
39451         * modules/ilogbl-tests: New file.
39452         * tests/test-ilogbl.c: New file.
39454         New module 'ilogbl'.
39455         * lib/math.in.h (ilogbl): New declaration.
39456         * lib/ilogbl.c: New file.
39457         * m4/ilogbl.m4: New file.
39458         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39460         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39461         Split sed invocation, to avoid the limit of 100 substitutions of
39462         HP-UX 'sed'.
39463         * modules/ilogbl: New file.
39464         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39465         * doc/posix-functions/ilogbl.texi: Mention the new module.
39467 2012-04-03  Bruno Haible  <bruno@clisp.org>
39469         Tests for module 'ilogbf'.
39470         * modules/ilogbf-tests: New file.
39471         * tests/test-ilogbf.c: New file.
39473         New module 'ilogbf'.
39474         * lib/math.in.h (ilogbf): New declaration.
39475         * lib/ilogbf.c: New file.
39476         * m4/ilogbf.m4: New file.
39477         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
39478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
39479         REPLACE_ILOGBF.
39480         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
39481         REPLACE_ILOGBF.
39482         * modules/ilogbf: New file.
39483         * tests/test-math-c++.cc: Check the declaration of ilogbf.
39484         * doc/posix-functions/ilogbf.texi: Mention the new module.
39486 2012-04-03  Bruno Haible  <bruno@clisp.org>
39488         Tests for module 'ilogb'.
39489         * modules/ilogb-tests: New file.
39490         * tests/test-ilogb.c: New file.
39491         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
39492         tests/test-logb-ieee.h.
39494         New module 'ilogb'.
39495         * lib/math.in.h (ilogb): New declaration.
39496         * lib/ilogb.c: New file.
39497         * m4/ilogb.m4: New file.
39498         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
39499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
39500         REPLACE_ILOGB.
39501         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
39502         REPLACE_ILOGB.
39503         * modules/ilogb: New file.
39504         * tests/test-math-c++.cc: Check the declaration of ilogb.
39505         * doc/posix-functions/ilogb.texi: Mention the new module.
39507 2012-04-03  Bruno Haible  <bruno@clisp.org>
39509         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
39510         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
39511         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
39512         (main): Check their values.
39513         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
39514         problem.
39516 2012-04-03  Bruno Haible  <bruno@clisp.org>
39518         Tests for module 'logbl-ieee'.
39519         * modules/logbl-ieee-tests: New file.
39520         * tests/test-logbl-ieee.c: New file.
39522         New module 'logbl-ieee'.
39523         * modules/logbl-ieee: New file.
39525         Tests for module 'logb-ieee'.
39526         * modules/logb-ieee-tests: New file.
39527         * tests/test-logb-ieee.c: New file.
39529         New module 'logb-ieee'.
39530         * modules/logb-ieee: New file.
39532         Tests for module 'logbf-ieee'.
39533         * modules/logbf-ieee-tests: New file.
39534         * tests/test-logbf-ieee.c: New file.
39535         * tests/test-logb-ieee.h: New file.
39537         New module 'logbf-ieee'.
39538         * modules/logbf-ieee: New file.
39540 2012-04-03  Bruno Haible  <bruno@clisp.org>
39542         Tests for module 'logbl'.
39543         * modules/logbl-tests: New file.
39544         * tests/test-logbl.c: New file.
39546         New module 'logbl'.
39547         * lib/math.in.h (logbl): New declaration.
39548         * lib/logbl.c: New file.
39549         * m4/logbl.m4: New file.
39550         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
39551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
39552         REPLACE_LOGBL.
39553         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
39554         REPLACE_LOGBL.
39555         * modules/logbl: New file.
39556         * tests/test-math-c++.cc: Check the declaration of logbl.
39557         * doc/posix-functions/logbl.texi: Mention the new module.
39559 2012-04-02  Bruno Haible  <bruno@clisp.org>
39561         Tests for module 'logbf'.
39562         * modules/logbf-tests: New file.
39563         * tests/test-logbf.c: New file.
39565         New module 'logbf'.
39566         * lib/math.in.h (logbf): New declaration.
39567         * lib/logbf.c: New file.
39568         * m4/logbf.m4: New file.
39569         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
39570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
39571         REPLACE_LOGBF.
39572         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
39573         REPLACE_LOGBF.
39574         * modules/logbf: New file.
39575         * tests/test-math-c++.cc: Check the declaration of logbf.
39576         * doc/posix-functions/logbf.texi: Mention the new module.
39578 2012-04-02  Bruno Haible  <bruno@clisp.org>
39580         logb tests: More tests.
39581         * tests/test-logb.h: New file, based on tests/test-logb.c and
39582         tests/test-frexp.h.
39583         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
39584         (main): Just invoke test_function.
39585         * modules/logb-tests (Files): Add tests/test-logb.h,
39586         tests/minus-zero.h, tests/randomd.c.
39587         (Makefile.am): Add randomd.c to test_logb_SOURCES.
39589         logb: Provide replacement and workarounds.
39590         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
39591         is 1.
39592         * lib/logb.c: New file.
39593         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
39594         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
39595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
39596         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
39597         * modules/logb (Files): Add lib/logb.c.
39598         (Depends-on): Add isfinite, frexp, isnand.
39599         (configure.ac): Compile the replacement code logb.c if needed.
39600         * tests/test-math-c++.cc: Check the declaration of logb.
39601         * doc/posix-functions/logb.texi: Mention the replacement and the bug
39602         with subnormal numbers.
39604 2012-04-02  Bruno Haible  <bruno@clisp.org>
39606         log10* tests: Speed up.
39607         * tests/test-log10.h (test_function): Reduce amount of random numbers
39608         to test.
39610 2012-04-01  Bruno Haible  <bruno@clisp.org>
39612         logf-ieee: Fix test whether logf works.
39613         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39615 2012-04-01  Bruno Haible  <bruno@clisp.org>
39617         log10l: Work around log10l-ieee test failure on IRIX 6.5.
39618         * lib/log10l.c: Include <float.h>
39619         (log10l): On IRIX, normalize the +Infinity value.
39620         * modules/log10l (Depends-on): Add 'float'.
39621         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
39622         +Infinity.
39624         log10f-ieee: Work around test failure on NetBSD 5.1.
39625         * m4/log10f-ieee.m4: New file.
39626         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
39627         test whether log10f works with a negative argument. Replace it if not.
39628         * lib/log10f.c (log10f): For negative arguments, return NaN.
39629         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
39630         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
39631         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
39633         log10f-ieee: Work around test failure on Solaris 9.
39634         * modules/log10f-ieee (Depends-on): Add log10-ieee.
39635         (configure.ac): Require gl_FUNC_LOG10F.
39637         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39638         * m4/log10-ieee.m4: New file.
39639         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
39640         whether log10 works with a negative argument. Replace it if not.
39641         * lib/log10.c (log10): For negative arguments, return NaN.
39642         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
39643         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
39644         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
39646         Tests for module 'log10l-ieee'.
39647         * modules/log10l-ieee-tests: New file.
39648         * tests/test-log10l-ieee.c: New file.
39650         New module 'log10l-ieee'.
39651         * modules/log10l-ieee: New file.
39653         Tests for module 'log10-ieee'.
39654         * modules/log10-ieee-tests: New file.
39655         * tests/test-log10-ieee.c: New file.
39657         New module 'log10-ieee'.
39658         * modules/log10-ieee: New file.
39660         Tests for module 'log10f-ieee'.
39661         * modules/log10f-ieee-tests: New file.
39662         * tests/test-log10f-ieee.c: New file.
39663         * tests/test-log10-ieee.h: New file.
39665         New module 'log10f-ieee'.
39666         * modules/log10f-ieee: New file.
39668 2012-04-01  Bruno Haible  <bruno@clisp.org>
39670         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
39671         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
39672         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
39673         workaround.
39674         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
39675         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
39676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
39677         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
39678         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
39679         (Depends-on): Update conditions.
39680         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39681         IRIX 6.5, OSF/1 5.1 problems.
39683 2012-04-01  Bruno Haible  <bruno@clisp.org>
39685         log10f: Work around OSF/1 5.1 bug.
39686         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39687         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39688         workaround.
39689         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39690         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39692         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39693         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39694         (Depends-on): Update conditions.
39695         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39697 2012-04-01  Bruno Haible  <bruno@clisp.org>
39699         log10: Work around OSF/1 5.1 bug.
39700         * lib/math.in.h (log10): New declaration.
39701         * lib/log10.c: New file.
39702         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39703         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39704         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39706         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39707         * modules/log10 (Files): Add lib/log10.c.
39708         (Depends-on): Add math.
39709         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39710         * tests/test-math-c++.cc: Check the declaration of log10.
39711         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39713 2012-03-31  Bruno Haible  <bruno@clisp.org>
39715         log10l tests: More tests.
39716         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39717         tests/minus-zero.h, tests/randoml.c.
39718         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39719         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39720         (main): Invoke test_function.
39722         log10f tests: More tests.
39723         * modules/log10f-tests (Files): Add tests/test-log10.h,
39724         tests/minus-zero.h, tests/randomf.c.
39725         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39726         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39727         (main): Invoke test_function.
39729         log10 tests: More tests.
39730         * tests/test-log10.h: New file.
39731         * modules/log10-tests (Files): Add tests/test-log10.h,
39732         tests/minus-zero.h, tests/randomd.c.
39733         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39734         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39735         (main): Invoke test_function.
39737 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39739         fflush: Fix syntax error.
39740         * lib/fflush.c: Include unused-parameter.h, needed for
39741         _GL_UNUSED_PARAMETER.
39742         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39744 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39746         regex: pacify GCC when compiling GRUB
39747         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39748         a diagnostic.  Reported by Vladimir Serbinenko in
39749         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39751 2012-03-29  Eric Blake  <eblake@redhat.com>
39753         stdio: don't assume gets any more
39754         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39755         support.
39756         * modules/stdio (Makefile.am): Likewise.
39757         * lib/stdio-read.c (gets): Likewise.
39758         * tests/test-stdio-c++.cc: Likewise.
39759         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39760         * lib/stdio.in.h (gets): Make warning occur in more places.
39761         * doc/posix-functions/gets.texi (gets): Update documentation.
39762         Reported by Christer Solskogen.
39764         maint.mk: fix syntax checks without exclusions
39765         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39766         Reported by Daniel P. Berrange.
39768         strerror_r: avoid compiler warning
39769         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39770         level.
39772         fflush: avoid compiler warning
39773         * lib/fflush.c (update_fpos_cache): Mark variables that are
39774         potentially unused.
39776 2012-03-25  Bruno Haible  <bruno@clisp.org>
39778         Tests for module 'localeconv'.
39779         * modules/localeconv-tests: New file.
39780         * tests/test-localeconv.c: New file.
39782         New module 'localeconv'.
39783         * lib/locale.in.h (localeconv): New declaration.
39784         * lib/localeconv.c: New file.
39785         * m4/localeconv.m4: New file.
39786         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39787         REPLACE_LOCALECONV.
39788         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39789         REPLACE_LOCALECONV.
39790         * modules/localeconv: New file.
39791         * modules/nl_langinfo (Depends-on): Add localeconv.
39792         * modules/human (Depends-on): Likewise.
39793         * doc/posix-functions/localeconv.texi: Mention the new module.
39795 2012-03-25  Bruno Haible  <bruno@clisp.org>
39797         locale: Provide a complete 'struct lconv'.
39798         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39799         'struct lconv' does not contain int_p_cs_precedes.
39800         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39801         * doc/posix-headers/locale.texi: Update.
39803         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39804         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39805         * doc/posix-headers/locale.texi: Update.
39807         locale: Provide a working 'struct lconv'.
39808         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39809         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39810         'struct lconv' does not even contain decimal_point.
39811         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39812         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39813         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39814         * doc/posix-headers/locale.texi: Mention the problems with
39815         'struct lconv'.
39816         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39818 2012-03-24  Bruno Haible  <bruno@clisp.org>
39820         Enable common subexpression optimization in GCC.
39821         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39822         macros.
39823         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39824         GCC attribute 'const'.
39825         (uc_locale_language): Declare with GCC attribute 'pure'.
39826         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39827         with GCC attribute 'const'.
39828         * lib/unictype.in.h (uc_is_general_category_withtable,
39829         uc_combining_class, uc_combining_class_name,
39830         uc_combining_class_long_name, uc_bidi_class_name,
39831         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39832         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39833         uc_decimal_value, uc_digit_value, uc_numeric_value,
39834         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39835         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39836         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39837         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39838         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39839         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39840         Declare with GCC attribute 'const'.
39841         (uc_general_category_name, uc_general_category_long_name,
39842         uc_general_category_byname, uc_general_category,
39843         uc_is_general_category, uc_combining_class_byname,
39844         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39845         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39846         Declare with GCC attribute 'pure'.
39847         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39848         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39849         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39850         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39851         with GCC attribute 'pure'.
39852         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39853         'const'.
39854         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39855         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39856         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39857         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39858         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39859         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39860         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39861         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39862         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39863         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39864         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39865         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39866         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39867         GCC attribute 'pure'.
39868         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39869         'const'.
39870         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39871         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39872         u32_strwidth): Declare with GCC attribute 'pure'.
39874         Enable common subexpression optimization in GCC.
39875         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39876         (alphasort): Declare with GCC attribute 'pure'.
39877         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39878         (atoll): Declare with GCC attribute 'pure'.
39879         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39880         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39881         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39882         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39883         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39884         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39885         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39887 2012-03-24  Bruno Haible  <bruno@clisp.org>
39889         gnulib-tool: Avoid unintended error output from 'cmp'.
39890         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39891         "cmp -s", not "cmp > /dev/null".
39893 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39895         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39897         It's not just Automake versions < 1.9b that creates an empty
39898         pkgdatadir at installation time if pkgdata_DATA is specified
39899         to empty; modern automake versions do this as well, at least
39900         until automake 1.11.4 (not yet released at the moment of writing,
39901         but soon to appear).  That behaviour was generally considered a
39902         feature rather than a bug, at least until this discussion:
39903         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39905         See also automake bugs #10997 and #11030.
39907         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39908         reference to relevant automake bug numbers.
39909         (func_emit_tests_Makefile_am): Likewise.
39911 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39913         announce-gen: use Digest::SHA when possible
39914         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39915         back to Digest::SHA1 if necessary.
39917 2012-03-20  Jim Meyering  <meyering@redhat.com>
39919         tests: avoid gcc warnings about argv vs. const initializers
39920         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39921         warnings about discarding 'const' qualifier from pointer target type.
39922         * tests/test-posix_spawn2.c (main): Likewise.
39924 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39926         README-release: simplify slightly
39927         * top/README-release: Run "git checkout master" only once.
39929 2012-03-15  Mark Wielaard  <mark@klomp.org>
39931         git-merge-changelog: add specific example on how to use with hg.
39932         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39934 2012-03-18  Mark Wielaard  <mark@klomp.org>
39936         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39938 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39940         git-version-gen: don't let "prefix" envvar cause trouble
39941         * build-aux/git-version-gen (prefix): Initialize properly,
39942         so as not to use a value specified via the environment.
39943         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39945 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39947         regex: diagnose too-large repeat counts in EREs
39948         Previously, the code did not diagnose the too-large repeat count
39949         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39950         as if it were 'b\{1000000000}', which is unexpected.
39951         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39952         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39953         is a reasonable one for this problem.  Another option would be to
39954         create a new REG_OVERFLOW error for repeat counts that are too large.
39955         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39956         count is too large, so that the caller can distinguish the two cases.
39957         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39958         "Too large" return code, and that repeat counts are one example of this.
39960 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39962         doc: some glibc x32 integer width issues
39963         * doc/posix-headers/sys_types.texi (sys/types.h):
39964         * doc/posix-headers/time.texi (time.h):
39965         Mention that glibc x32 does not conform to POSIX in a couple of
39966         areas related to integer widths.
39968 2012-03-15  Bruno Haible  <bruno@clisp.org>
39970         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39971         * lib/fma.c (VOLATILE): New macro.
39972         (FUNC): Use it to work around a GCC compiler bug.
39974 2012-03-13  Bruno Haible  <bruno@clisp.org>
39976         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39977         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39978         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39979         REPLACE_HYPOTL to 1.
39980         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39982 2012-03-13  Bruno Haible  <bruno@clisp.org>
39984         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39985         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39986         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39987         REPLACE_REMAINDERL to 1.
39988         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39989         bug.
39991 2012-03-13  Bruno Haible  <bruno@clisp.org>
39993         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39994         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39995         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39996         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39997         too big rounding errors.
39998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39999         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
40000         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
40001         (Depends-on): Update conditions.
40002         * tests/test-sqrtl.c (my_ldexpl): New function.
40003         (main): Add test of a particular value.
40004         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40006 2012-03-13  Pádraig Brady  <P@draigBrady.com>
40008         doc: Update timer_* platform portability notes.
40009         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
40010         that always return ENOSYS.
40011         * doc/posix-functions/timer_delete.texi: Likewise.
40012         * doc/posix-functions/timer_gettime.texi: Likewise.
40013         * doc/posix-functions/timer_settime.texi: Likewise.
40015 2012-03-13  Bruno Haible  <bruno@clisp.org>
40017         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40018         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
40019         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
40020         REPLACE_CBRTL to 1.
40021         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40023 2012-03-13  Bruno Haible  <bruno@clisp.org>
40025         remainderl: Avoid compilation error on AIX >= 5.2.
40026         * lib/math.in.h (remainderl): Undefine macro from the system header.
40028 2012-03-13  Bruno Haible  <bruno@clisp.org>
40030         Avoid compilation errors with MSVC option -fp:strict.
40031         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
40032         * lib/cbrtf.c: Likewise.
40033         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40035 2012-03-12  Bruno Haible  <bruno@clisp.org>
40037         uninorm: Don't crash in out-of-memory conditions.
40038         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
40039         gracefully.
40040         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
40041         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
40043 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
40045         quote: fix syntax-check
40046         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
40047         also exports quote_quoting_options.
40049 2012-03-12  Simon Josefsson  <simon@josefsson.org>
40051         Collapse list of copyright years to ranges.  See
40052         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
40053         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
40054         build-aux/csharpexec.sh.in, build-aux/gnupload,
40055         build-aux/install-reloc, build-aux/javacomp.sh.in,
40056         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
40057         build-aux/move-if-change, build-aux/reloc-ldflags,
40058         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
40060 2012-03-11  Bruno Haible  <bruno@clisp.org>
40062         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40063         * m4/log2f-ieee.m4: New file.
40064         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
40065         whether log2f works with a minus zero argument. Replace it if not.
40066         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40067         (Depends-on): Add log2-ieee.
40068         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
40069         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
40071         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40072         * m4/log2-ieee.m4: New file.
40073         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
40074         whether log2 works with a minus zero argument. Replace it if not.
40075         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
40076         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
40077         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
40079         Tests for module 'log2l-ieee'.
40080         * modules/log2l-ieee-tests: New file.
40081         * tests/test-log2l-ieee.c: New file.
40083         New module 'log2l-ieee'.
40084         * modules/log2l-ieee: New file.
40086         Tests for module 'log2-ieee'.
40087         * modules/log2-ieee-tests: New file.
40088         * tests/test-log2-ieee.c: New file.
40090         New module 'log2-ieee'.
40091         * modules/log2-ieee: New file.
40093         Tests for module 'log2f-ieee'.
40094         * modules/log2f-ieee-tests: New file.
40095         * tests/test-log2f-ieee.c: New file.
40096         * tests/test-log2-ieee.h: New file.
40098         New module 'log2f-ieee'.
40099         * modules/log2f-ieee: New file.
40101 2012-03-11  Bruno Haible  <bruno@clisp.org>
40103         Tests for module 'log2l'.
40104         * modules/log2l-tests: New file.
40105         * tests/test-log2l.c: New file.
40107         New module 'log2l'.
40108         * lib/math.in.h (log2l): New declaration.
40109         * lib/log2l.c: New file.
40110         * m4/log2l.m4: New file.
40111         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
40112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
40113         REPLACE_LOG2L.
40114         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
40115         REPLACE_LOG2L.
40116         * modules/log2l: New file.
40117         * tests/test-math-c++.cc: Check the declaration of log2l.
40118         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
40119         and OSF/1 problems.
40121 2012-03-11  Bruno Haible  <bruno@clisp.org>
40123         Tests for module 'log2f'.
40124         * modules/log2f-tests: New file.
40125         * tests/test-log2f.c: New file.
40127         New module 'log2f'.
40128         * lib/math.in.h (log2f): New declaration.
40129         * lib/log2f.c: New file.
40130         * m4/log2f.m4: New file.
40131         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
40132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
40133         REPLACE_LOG2F.
40134         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
40135         REPLACE_LOG2F.
40136         * modules/log2f: New file.
40137         * tests/test-math-c++.cc: Check the declaration of log2f.
40138         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
40139         and OSF/1 and Cygwin problems.
40141 2012-03-11  Bruno Haible  <bruno@clisp.org>
40143         Tests for module 'log2'.
40144         * modules/log2-tests: New file.
40145         * tests/test-log2.c: New file.
40146         * tests/test-log2.h: New file.
40148         New module 'log2'.
40149         * lib/math.in.h (log2): New declaration.
40150         * lib/log2.c: New file.
40151         * m4/log2.m4: New file.
40152         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
40153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
40154         REPLACE_LOG2.
40155         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
40156         REPLACE_LOG2.
40157         * modules/log2: New file.
40158         * tests/test-math-c++.cc: Check the declaration of log2.
40159         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
40160         and OSF/1 and Cygwin problems.
40162 2012-03-11  Bruno Haible  <bruno@clisp.org>
40164         exp2* tests: More tests.
40165         * tests/test-exp2.h (test_function): Test all integral arguments that
40166         don't need to overflow or denormalized numbers.
40167         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
40168         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
40169         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
40171 2012-03-10  Bruno Haible  <bruno@clisp.org>
40173         log1pl-ieee: Work around test failure on AIX 7.1.
40174         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
40176         log1pl-ieee: Work around test failure on IRIX 6.5.
40177         * m4/log1pl-ieee.m4: New file.
40178         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
40179         test whether log1pl works with a minus zero argument. Replace it if
40180         not.
40181         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
40182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
40183         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
40184         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
40185         (Depends-on): Update conditions.
40186         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40187         m4/signbit.m4.
40188         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
40189         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
40191         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40192         * m4/log1pf-ieee.m4: New file.
40193         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40194         test whether log1pf works with a minus zero argument. Replace it if
40195         not.
40196         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
40197         m4/signbit.m4.
40198         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
40199         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
40201         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
40202         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
40203         (configure.ac): Require gl_FUNC_LOG1PF.
40205         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
40206         * m4/log1p-ieee.m4: New file.
40207         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
40208         whether log1p works with a minus zero argument. Replace it if not.
40209         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
40210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
40211         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
40212         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
40213         (Depends-on): Update conditions.
40214         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40215         m4/signbit.m4.
40216         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
40217         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
40219         Tests for module 'log1pl-ieee'.
40220         * modules/log1pl-ieee-tests: New file.
40221         * tests/test-log1pl-ieee.c: New file.
40223         New module 'log1pl-ieee'.
40224         * modules/log1pl-ieee: New file.
40226         Tests for module 'log1p-ieee'.
40227         * modules/log1p-ieee-tests: New file.
40228         * tests/test-log1p-ieee.c: New file.
40230         New module 'log1p-ieee'.
40231         * modules/log1p-ieee: New file.
40233         Tests for module 'log1pf-ieee'.
40234         * modules/log1pf-ieee-tests: New file.
40235         * tests/test-log1pf-ieee.c: New file.
40236         * tests/test-log1p-ieee.h: New file.
40238         New module 'log1pf-ieee'.
40239         * modules/log1pf-ieee: New file.
40241 2012-03-10  Bruno Haible  <bruno@clisp.org>
40243         Tests for module 'log1pl'.
40244         * modules/log1pl-tests: New file.
40245         * tests/test-log1pl.c: New file.
40247         New module 'log1pl'.
40248         * lib/math.in.h (log1pl): New declaration.
40249         * lib/log1pl.c: New file.
40250         * m4/log1pl.m4: New file.
40251         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
40252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
40253         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
40254         * modules/log1pl: New file.
40255         * tests/test-math-c++.cc: Check the declaration of log1pl.
40256         * doc/posix-functions/log1pl.texi: Mention the new module.
40258 2012-03-10  Bruno Haible  <bruno@clisp.org>
40260         Tests for module 'log1pf'.
40261         * modules/log1pf-tests: New file.
40262         * tests/test-log1pf.c: New file.
40264         New module 'log1pf'.
40265         * lib/math.in.h (log1pf): New declaration.
40266         * lib/log1pf.c: New file.
40267         * m4/log1pf.m4: New file.
40268         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
40269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
40270         REPLACE_LOG1PF.
40271         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
40272         REPLACE_LOG1PF.
40273         * modules/log1pf: New file.
40274         * tests/test-math-c++.cc: Check the declaration of log1pf.
40275         * doc/posix-functions/log1pf.texi: Mention the new module.
40277 2012-03-10  Bruno Haible  <bruno@clisp.org>
40279         log1p tests: More tests.
40280         * tests/test-log1p.h: New file.
40281         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
40282         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
40283         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
40284         (main): Invoke test_function.
40286         log1p: Provide replacement for Minix and MSVC.
40287         * lib/math.in.h (log1p): New declaration.
40288         * lib/log1p.c: New file.
40289         * m4/log1p.m4: New file.
40290         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
40291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
40292         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
40293         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
40294         (Depends-on): Add math, isnand, log, round.
40295         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
40296         HAVE_LOG1P is 0.
40297         * tests/test-math-c++.cc: Check the declaration of log1p.
40298         * doc/posix-functions/log1p.texi: Mention the replacement.
40300 2012-03-10  Bruno Haible  <bruno@clisp.org>
40302         math tests: Small simplification.
40303         * tests/test-exp.h (test_function): Use the same err_bound for
40304         'double' on platforms with sizeof (long double) == sizeof (double)
40305         than on platforms with sizeof (long double) > sizeof (double).
40306         * tests/test-exp2.h (test_function): Likewise.
40307         * tests/test-expm1.h (test_function): Likewise.
40308         * tests/test-log.h (test_function): Likewise.
40310 2012-03-10  Bruno Haible  <bruno@clisp.org>
40312         Fix some comments.
40313         * lib/expl.c: Fix an ambiguous comment.
40314         * lib/expm1.c: Likewise.
40315         * lib/expm1l.c: Likewise.
40316         * lib/exp2.c: Likewise.
40317         * lib/exp2l.c: Likewise.
40319 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
40321         regex: allow inclusion of <regex.h> before <limits.h>
40322         Without this patch, portable programs had to include <limits.h> before
40323         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
40324         I ran into this problem with a test version of GNU grep on Solaris 8.
40325         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
40326         This is done conditionally so that this change can be merged
40327         back to glibc.
40328         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
40329         using the included regex.
40331         fts: depend on fdopendir
40332         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
40333         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
40334         problem was introduced when fdopendir was split out.
40336 2012-03-10  Bruno Haible  <bruno@clisp.org>
40338         Remove unused variables.
40339         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
40340         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40342 2012-03-10  Bruno Haible  <bruno@clisp.org>
40344         isnanf-nolibm: Fix last commit.
40345         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
40347         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
40348         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
40350 2012-03-10  Bruno Haible  <bruno@clisp.org>
40352         logf-ieee: Work around test failure on NetBSD 5.1.
40353         * m4/logf-ieee.m4: New file.
40354         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
40355         whether logf works with a negative argument. Replace it if not.
40356         * lib/logf.c (logf): For negative arguments, return NaN.
40357         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
40358         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
40359         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
40361         logf-ieee: Work around test failure on Solaris 9.
40362         * modules/logf-ieee (Depends-on): Add log-ieee.
40363         (configure.ac): Require gl_FUNC_LOGF.
40365         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40366         * m4/log-ieee.m4: New file.
40367         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40368         log works with a negative argument. Replace it if not.
40369         * lib/log.c (log): For negative arguments, return NaN.
40370         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40371         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40372         * doc/posix-functions/log.texi: Mention the log-ieee module.
40374         Tests for module 'logl-ieee'.
40375         * modules/logl-ieee-tests: New file.
40376         * tests/test-logl-ieee.c: New file.
40378         New module 'logl-ieee'.
40379         * modules/logl-ieee: New file.
40381         Tests for module 'log-ieee'.
40382         * modules/log-ieee-tests: New file.
40383         * tests/test-log-ieee.c: New file.
40385         New module 'log-ieee'.
40386         * modules/log-ieee: New file.
40388         Tests for module 'logf-ieee'.
40389         * modules/logf-ieee-tests: New file.
40390         * tests/test-logf-ieee.c: New file.
40391         * tests/test-log-ieee.h: New file.
40393         New module 'logf-ieee'.
40394         * modules/logf-ieee: New file.
40396 2012-03-10  Bruno Haible  <bruno@clisp.org>
40398         log: Fix bug introduced on 2012-03-09.
40399         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40401 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40403         timer-time: link explicitly with pthreads on glibc
40404         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40405         to support static linking, when newer glibc is
40406         detected, as that contains pthread emulation of
40407         POSIX timer functions where required.
40408         * modules/timer-time: Depend on threadlib to
40409         pull in the appropriate library to link.
40411 2012-03-10  Bruno Haible  <bruno@clisp.org>
40413         log* tests: More tests.
40414         * tests/test-log.h: New file.
40415         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40416         (main): Invoke test_function.
40417         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40418         (main): Invoke test_function.
40419         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40420         (main): Invoke test_function.
40421         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40422         tests/randomd.c.
40423         (Makefile.am): Add randomd.c to test_log_SOURCES.
40424         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40425         tests/randomf.c.
40426         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40427         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40428         tests/randoml.c.
40429         (Depends-on): Add 'float'.
40430         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40432 2012-03-09  Bruno Haible  <bruno@clisp.org>
40434         logl: Work around OSF/1 5.1 bug.
40435         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40436         * lib/logl.c (logl): If logl exists, use it and provide just the
40437         workaround.
40438         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40439         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40441         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40442         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40443         (Depends-on): Update conditions.
40444         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40446 2012-03-09  Bruno Haible  <bruno@clisp.org>
40448         logf: Work around OSF/1 5.1 bug.
40449         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40450         * lib/logf.c (logf): If logf exists, use it and provide just the
40451         workaround.
40452         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40453         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40455         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40456         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40457         (Depends-on): Update conditions.
40458         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40460 2012-03-09  Bruno Haible  <bruno@clisp.org>
40462         log: Work around OSF/1 5.1 bug.
40463         * lib/math.in.h (log): New declaration.
40464         * lib/log.c: New file.
40465         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40466         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40467         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40469         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40470         * modules/log (Files): Add lib/log.c.
40471         (Depends-on): Add math.
40472         (configure.ac): If REPLACE_LOG is 1, compile an override.
40473         * tests/test-math-c++.cc: Check the declaration of log.
40474         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
40476 2012-03-09  Jim Meyering  <meyering@redhat.com>
40478         readtokens.c: adjust wording in a comment
40479         * lib/readtokens.c: Insert omitted "that" in a comment.
40481 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40483         modechange: add notations +40, 00440, etc.
40484         * lib/modechange.c (mode_compile): Support new notations
40485         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
40487 2012-03-08  Bruno Haible  <bruno@clisp.org>
40489         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
40490         * m4/exp2l-ieee.m4: New file.
40491         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
40492         test whether exp2l works with a NaN argument and with a negative
40493         infinity argument. Replace it if not.
40494         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
40495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
40496         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
40497         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
40498         (Depends-on): Update conditions.
40499         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
40500         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
40501         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
40503         Tests for module 'exp2l-ieee'.
40504         * modules/exp2l-ieee-tests: New file.
40505         * tests/test-exp2l-ieee.c: New file.
40507         New module 'exp2l-ieee'.
40508         * modules/exp2l-ieee: New file.
40510         Tests for module 'exp2-ieee'.
40511         * modules/exp2-ieee-tests: New file.
40512         * tests/test-exp2-ieee.c: New file.
40514         New module 'exp2-ieee'.
40515         * modules/exp2-ieee: New file.
40517         Tests for module 'exp2f-ieee'.
40518         * modules/exp2f-ieee-tests: New file.
40519         * tests/test-exp2f-ieee.c: New file.
40520         * tests/test-exp2-ieee.h: New file.
40522         New module 'exp2f-ieee'.
40523         * modules/exp2f-ieee: New file.
40525 2012-03-08  Bruno Haible  <bruno@clisp.org>
40527         Tests for module 'exp2l'.
40528         * modules/exp2l-tests: New file.
40529         * tests/test-exp2l.c: New file.
40531         New module 'exp2l'.
40532         * lib/math.in.h (exp2l): New declaration.
40533         * lib/exp2l.c: New file.
40534         * lib/expl-table.c: New file, extracted from lib/expl.c.
40535         * lib/expl.c (gl_expl_table): New declaration.
40536         (expl): Remove expl_table. Update reference.
40537         * m4/exp2l.m4: New file.
40538         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
40539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
40540         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
40541         * modules/exp2l: New file.
40542         * modules/expl (Files): Add lib/expl-table.c.
40543         (configure.ac): Compile also expl-table.c.
40544         * tests/test-math-c++.cc: Check the declaration of exp2l.
40545         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
40546         problem.
40548 2012-03-08  Bruno Haible  <bruno@clisp.org>
40550         Tests for module 'exp2f'.
40551         * modules/exp2f-tests: New file.
40552         * tests/test-exp2f.c: New file.
40554         New module 'exp2f'.
40555         * lib/math.in.h (exp2f): New declaration.
40556         * lib/exp2f.c: New file.
40557         * m4/exp2f.m4: New file.
40558         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
40559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
40560         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
40561         * modules/exp2f: New file.
40562         * tests/test-math-c++.cc: Check the declaration of exp2f.
40563         * doc/posix-functions/exp2f.texi: Mention the new module and the
40564         IRIX problem.
40566 2012-03-08  Bruno Haible  <bruno@clisp.org>
40568         Tests for module 'exp2'.
40569         * modules/exp2-tests: New file.
40570         * tests/test-exp2.c: New file.
40571         * tests/test-exp2.h: New file.
40573         New module 'exp2'.
40574         * lib/math.in.h (exp2): New declaration.
40575         * lib/exp2.c: New file.
40576         * m4/exp2.m4: New file.
40577         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
40578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
40579         REPLACE_EXP2.
40580         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
40581         REPLACE_EXP2.
40582         * modules/exp2: New file.
40583         * tests/test-math-c++.cc: Check the declaration of exp2.
40584         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
40585         and OpenBSD problems.
40587 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40589         savedir: fix comment typo
40590         * lib/savedir.c (savedirstream): Fix typo in comment.
40592 2012-03-08  Bruno Haible  <bruno@clisp.org>
40594         test-readtokens.c: use const; remove unwarranted cast
40595         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
40597 2012-03-08  Bruno Haible  <bruno@clisp.org>
40599         fmal: Avoid compilation error on AIX.
40600         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
40601         AIX 5.2..7.1.
40603 2012-03-08  Bruno Haible  <bruno@clisp.org>
40605         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
40606         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
40607         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
40608         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40609         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40610         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40611         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40613 2012-03-08  Bruno Haible  <bruno@clisp.org>
40615         remainderf: Override buggy system function on IRIX 6.5.
40616         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
40617         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
40618         when it exists.
40619         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
40621 2012-03-08  Jim Meyering  <meyering@redhat.com>
40623         test-readtokens.c: avoid const-related compilation warnings
40624         * tests/test-readtokens.c: Avoid const-related compilation warnings.
40626 2012-03-07  Jim Meyering  <meyering@redhat.com>
40627             Bruno Haible  <bruno@clisp.org>
40629         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
40630         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
40631         tests/randomd.c.
40632         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
40633         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
40634         tests/randoml.c.
40635         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
40637 2012-03-07  Bruno Haible  <bruno@clisp.org>
40639         expm1l: Avoid compilation error on AIX.
40640         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
40641         AIX 5.2..7.1.
40643 2012-03-07  Bruno Haible  <bruno@clisp.org>
40645         expm1l: Don't override undeclared system function on IRIX 6.5.
40646         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
40647         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
40648         it exists. Set HAVE_DECL_EXPM1L.
40649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
40650         HAVE_EXPM1L.
40651         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
40652         HAVE_EXPM1L.
40653         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
40655 2012-03-07  Bruno Haible  <bruno@clisp.org>
40657         remainderl: Don't override undeclared system function on IRIX 6.5.
40658         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
40659         HAVE_REMAINDERL.
40660         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
40661         declared when it exists. Set HAVE_DECL_REMAINDERL.
40662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
40663         not HAVE_REMAINDERL.
40664         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
40665         HAVE_REMAINDERL.
40666         * doc/posix-functions/remainderl.texi: Mention missing declaration
40667         problem.
40669 2012-03-07  Bruno Haible  <bruno@clisp.org>
40671         rintf: Don't override undeclared system function on IRIX 6.5.
40672         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
40673         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
40674         exists. Set HAVE_DECL_RINTF.
40675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
40676         HAVE_RINTF.
40677         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
40678         HAVE_RINTF.
40679         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40681 2012-03-07  Bruno Haible  <bruno@clisp.org>
40683         roundl: Avoid compilation error on AIX.
40684         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40685         AIX 5.2..7.1.
40687 2012-03-07  Bruno Haible  <bruno@clisp.org>
40689         roundl: Don't override undeclared system function on IRIX 6.5.
40690         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40691         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40692         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40693         * modules/roundl (configure.ac): For replacement code, test
40694         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40695         (Depends-on): Update conditions.
40696         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40698 2012-03-07  Bruno Haible  <bruno@clisp.org>
40700         roundf: Don't override undeclared system function on IRIX 6.5.
40701         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40702         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40703         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40704         * modules/roundf (configure.ac): For replacement code, test
40705         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40706         (Depends-on): Update conditions.
40707         * modules/roundf-ieee (Depends-on): Update conditions.
40708         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40710 2012-03-07  Bruno Haible  <bruno@clisp.org>
40712         round: Don't override undeclared system function on IRIX 6.5.
40713         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40714         argument.
40715         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40716         also when it is not declared. Set HAVE_ROUND. For replacement code,
40717         test HAVE_ROUND, not HAVE_DECL_ROUND.
40718         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40719         not HAVE_DECL_ROUND.
40720         (Depends-on): Update conditions.
40721         * modules/round-ieee (Depends-on): Update conditions.
40722         * doc/posix-functions/round.texi: Mention the IRIX problem.
40724 2012-03-07  Bruno Haible  <bruno@clisp.org>
40726         copysignf: Don't override undeclared system function on IRIX 6.5.
40727         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40728         HAVE_COPYSIGNF.
40729         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40730         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40732         not HAVE_COPYSIGNF.
40733         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40734         HAVE_COPYSIGNF.
40735         * doc/posix-functions/copysignf.texi: Mention missing declaration
40736         problem.
40738 2012-03-07  Jim Meyering  <meyering@redhat.com>
40740         readtokens: add tests
40741         * modules/readtokens-tests: New file.
40742         * tests/test-readtokens.c: New file.
40744 2012-03-07  Jim Meyering  <meyering@redhat.com>
40746         quotearg: the module must now include quote.h
40747         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40748         So must the module.
40749         * modules/quotearg (Files): Add quote.h.
40751 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40753         readtokens: avoid core dumps with unusual calling patterns
40754         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40755         * lib/readtokens.c: Include limits.h.
40756         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40757         (readtoken): Don't cache the delimiters; the cache code was buggy
40758         if !delim && saved_delim, or if the new n_delim differs from the old.
40759         Also, it wasn't thread-safe.
40761 2012-03-07  Bruno Haible  <bruno@clisp.org>
40763         quote: Adhere to common module description layout.
40764         * modules/quote (Makefile.am): Add back empty section.
40766 2012-03-06  Akim Demaille  <demaille@gostai.com>
40768         quote: fuse into quotearg
40769         This patch is made for the benefit of Bison.
40770         quote does not leave the choice of the quoting style to the user.
40771         quoting_style provides poor customizability, yet quoting_options,
40772         which is very rich, is hidden inside quotearg.c.  So in order to
40773         allow quote customization, move its implementation to quotearg.c.
40774         * lib/quote.c: Remove.
40775         * modules/quote: Adjust.
40776         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40777         warning: provide all the members of literal structs.
40778         (quote_quoting_options): New.
40779         (quote, quote_n): Import implementation from quote.c.
40780         * lib/quote.h: Import the comments from quote.c.
40781         (quote_quoting_options): New.
40783 2012-03-06  Bruno Haible  <bruno@clisp.org>
40785         Tests for module 'expm1l-ieee'.
40786         * modules/expm1l-ieee-tests: New file.
40787         * tests/test-expm1l-ieee.c: New file.
40789         New module 'expm1l-ieee'.
40790         * modules/expm1l-ieee: New file.
40792         Tests for module 'expm1f-ieee'.
40793         * modules/expm1f-ieee-tests: New file.
40794         * tests/test-expm1f-ieee.c: New file.
40796         New module 'expm1f-ieee'.
40797         * modules/expm1f-ieee: New file.
40799         Tests for module 'expm1-ieee'.
40800         * modules/expm1-ieee-tests: New file.
40801         * tests/test-expm1-ieee.c: New file.
40802         * tests/test-expm1-ieee.h: New file.
40804         New module 'expm1-ieee'.
40805         * modules/expm1-ieee: New file.
40806         * m4/expm1-ieee.m4: New file.
40807         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40808         whether expm1 works with a minus zero argument. Replace it if not.
40809         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40811         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40812         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40813         (Depends-on): Update conditions.
40814         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40815         AIX problem.
40817 2012-03-06  Bruno Haible  <bruno@clisp.org>
40819         Work around expm1f bug on IRIX 6.5.
40820         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40821         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40822         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40823         not work.
40824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40825         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40826         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40827         (Depends-on): Update conditions.
40828         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40830 2012-03-06  Bruno Haible  <bruno@clisp.org>
40832         Tests for module 'expm1l'.
40833         * modules/expm1l-tests: New file.
40834         * tests/test-expm1l.c: New file.
40836         New module 'expm1l'.
40837         * lib/math.in.h (expm1l): New declaration.
40838         * lib/expm1l.c: New file.
40839         * m4/expm1l.m4: New file.
40840         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40842         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40843         * modules/expm1l: New file.
40844         * tests/test-math-c++.cc: Check the declaration of expm1l.
40845         * doc/posix-functions/expm1l.texi: Mention the new module.
40847 2012-03-06  Bruno Haible  <bruno@clisp.org>
40849         Tests for module 'expm1f'.
40850         * modules/expm1f-tests: New file.
40851         * tests/test-expm1f.c: New file.
40853         New module 'expm1f'.
40854         * lib/math.in.h (expm1f): New declaration.
40855         * lib/expm1f.c: New file.
40856         * m4/expm1f.m4: New file.
40857         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40859         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40860         * modules/expm1f: New file.
40861         * tests/test-math-c++.cc: Check the declaration of expm1f.
40862         * doc/posix-functions/expm1f.texi: Mention the new module.
40864 2012-03-06  Bruno Haible  <bruno@clisp.org>
40866         Tests for module 'expm1'.
40867         * modules/expm1-tests: New file.
40868         * tests/test-expm1.c: New file.
40869         * tests/test-expm1.h: New file.
40871         New module 'expm1'.
40872         * lib/math.in.h (expm1): New declaration.
40873         * lib/expm1.c: New file.
40874         * m4/expm1.m4: New file.
40875         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40877         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40878         * modules/expm1: New file.
40879         * tests/test-math-c++.cc: Check the declaration of expm1.
40880         * doc/posix-functions/expm1.texi: Mention the new module.
40882 2012-03-06  Bruno Haible  <bruno@clisp.org>
40884         math: Ensure declarations of math functions.
40885         * modules/acosf (Depends-on): Add 'extensions'.
40886         * modules/asinf (Depends-on): Likewise.
40887         * modules/atan2f (Depends-on): Likewise.
40888         * modules/atanf (Depends-on): Likewise.
40889         * modules/cbrt (Depends-on): Likewise.
40890         * modules/cbrtf (Depends-on): Likewise.
40891         * modules/cbrtl (Depends-on): Likewise.
40892         * modules/copysignf (Depends-on): Likewise.
40893         * modules/copysignl (Depends-on): Likewise.
40894         * modules/cosf (Depends-on): Likewise.
40895         * modules/coshf (Depends-on): Likewise.
40896         * modules/expf (Depends-on): Likewise.
40897         * modules/fabsf (Depends-on): Likewise.
40898         * modules/fabsl (Depends-on): Likewise.
40899         * modules/fmaf (Depends-on): Likewise.
40900         * modules/fmal (Depends-on): Likewise.
40901         * modules/fmodf (Depends-on): Likewise.
40902         * modules/fmodl (Depends-on): Likewise.
40903         * modules/frexpf (Depends-on): Likewise.
40904         * modules/frexpl (Depends-on): Likewise.
40905         * modules/hypot (Depends-on): Likewise.
40906         * modules/hypotf (Depends-on): Likewise.
40907         * modules/hypotl (Depends-on): Likewise.
40908         * modules/ldexpf (Depends-on): Likewise.
40909         * modules/ldexpl (Depends-on): Likewise.
40910         * modules/log10f (Depends-on): Likewise.
40911         * modules/log10l (Depends-on): Likewise.
40912         * modules/log1p (Depends-on): Likewise.
40913         * modules/logb (Depends-on): Likewise.
40914         * modules/logf (Depends-on): Likewise.
40915         * modules/modff (Depends-on): Likewise.
40916         * modules/modfl (Depends-on): Likewise.
40917         * modules/powf (Depends-on): Likewise.
40918         * modules/remainderf (Depends-on): Likewise.
40919         * modules/remainderl (Depends-on): Likewise.
40920         * modules/rintf (Depends-on): Likewise.
40921         * modules/rintl (Depends-on): Likewise.
40922         * modules/sinf (Depends-on): Likewise.
40923         * modules/sinhf (Depends-on): Likewise.
40924         * modules/sqrtf (Depends-on): Likewise.
40925         * modules/tanf (Depends-on): Likewise.
40926         * modules/tanhf (Depends-on): Likewise.
40927         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40928         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40929         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40930         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40931         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40932         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40933         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40934         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40935         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40936         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40937         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40938         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40939         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40940         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40941         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40942         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40943         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40944         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40945         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40946         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40947         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40948         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40949         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40950         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40951         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40952         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40953         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40954         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40955         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40956         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40957         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40958         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40959         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40960         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40961         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40962         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40963         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40964         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40965         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40966         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40967         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40969 2012-03-06  Bruno Haible  <bruno@clisp.org>
40971         math: Update module names in warnings.
40972         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40973         tanl): Use specific module name in warn-on-use warning.
40975 2012-03-06  Bruno Haible  <bruno@clisp.org>
40977         expl: Simplify computation.
40978         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40980 2012-03-05  Bruno Haible  <bruno@clisp.org>
40982         exp* tests: More tests.
40983         * tests/test-exp.h: New file.
40984         * tests/test-exp.c: Include <float.h> and test-exp.h.
40985         (main): Invoke test_function.
40986         * tests/test-expf.c: Include <float.h> and test-exp.h.
40987         (main): Invoke test_function.
40988         * tests/test-expl.c: Include <float.h> and test-exp.h.
40989         (main): Invoke test_function.
40990         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40991         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40992         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40993         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40994         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40995         (Depends-on): Add 'float'.
40996         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40998         expl: Fix precision of computed result.
40999         * lib/expl.c: Completely rewritten.
41000         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
41001         (Maintainer): Add me.
41002         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
41004 2012-03-05  Bruno Haible  <bruno@clisp.org>
41006         cbrt* tests: More tests.
41007         * tests/test-cbrt.h: New file.
41008         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
41009         (main): Invoke test_function.
41010         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
41011         (main): Invoke test_function.
41012         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
41013         (main): Invoke test_function.
41014         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
41015         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
41016         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
41017         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
41018         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
41019         (Depends-on): Add 'float'.
41020         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
41022 2012-03-05  Bruno Haible  <bruno@clisp.org>
41024         hypot* tests: More tests.
41025         * tests/test-hypot.h: New file, partially extracted from
41026         tests/test-hypotl.c.
41027         * tests/test-hypot.c: Include test-hypot.h.
41028         (main): Invoke test_function.
41029         * tests/test-hypotf.c: Include test-hypot.h.
41030         (main): Invoke test_function.
41031         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
41032         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
41033         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
41034         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
41035         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
41036         tests/randomf.c.
41037         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
41038         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
41039         tests/randoml.c.
41040         (Depends-on): Add 'fpucw', 'float'.
41041         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
41043 2012-03-05  Bruno Haible  <bruno@clisp.org>
41045         fpucw: Doc about FreeBSD.
41046         * lib/fpucw.h: Mention FreeBSD in comments.
41048 2012-03-04  Bruno Haible  <bruno@clisp.org>
41050         sqrt* tests: More tests.
41051         * tests/test-sqrt.h: New file.
41052         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
41053         (main): Invoke test_function.
41054         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
41055         (main): Invoke test_function.
41056         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
41057         (main): Invoke test_function.
41058         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
41059         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
41060         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
41061         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41062         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
41063         (Depends-on): Add 'float'.
41064         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
41066 2012-03-04  Bruno Haible  <bruno@clisp.org>
41068         remainder* tests: More tests.
41069         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
41070         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
41071         (main): Invoke test_function.
41072         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
41073         (main): Invoke test_function.
41074         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
41075         (main): Invoke test_function.
41076         * modules/remainder-tests (Files): Add tests/test-remainder.h,
41077         tests/randomd.c.
41078         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
41079         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
41080         tests/randomf.c.
41081         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
41082         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
41083         tests/randoml.c.
41084         (Depends-on): Add 'float'.
41085         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
41087 2012-03-04  Bruno Haible  <bruno@clisp.org>
41089         remainder, remainderf, remainderl: Fix computation for large quotients.
41090         * lib/remainder.c: Completely rewritten.
41091         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
41092         USE_FLOAT.
41093         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
41094         USE_LONG_DOUBLE.
41095         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
41096         isnand, isinf. Remove round, fma.
41097         * modules/remainderf (Files): Add lib/remainder.c.
41098         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
41099         Remove roundf, fmaf.
41100         * modules/remainderl (Files): Add lib/remainder.c.
41101         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
41102         isinf. Remove roundl, fmal.
41103         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
41104         REMAINDER_LIBM.
41105         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
41106         REMAINDERF_LIBM.
41107         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
41108         REMAINDERL_LIBM.
41110 2012-03-04  Bruno Haible  <bruno@clisp.org>
41112         fmod* tests: More tests.
41113         * tests/test-fmod.h (my_ldexp): New function.
41114         (test_function): Reduce amount of random numbers to test. Add tests
41115         of very large quotients x / y.
41116         * tests/test-fmod.c (MAX_EXP): New macro.
41117         * tests/test-fmodf.c (MAX_EXP): Likewise.
41118         * tests/test-fmodl.c (MAX_EXP): Likewise.
41120 2012-03-04  Bruno Haible  <bruno@clisp.org>
41122         fmod, fmodl: Fix computation for large quotients x / y.
41123         * lib/fmod.c: Completely rewritten.
41124         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
41125         USE_LONG_DOUBLE.
41126         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
41127         isnand. Remove fma.
41128         * modules/fmodl (Files): Add lib/fmod.c.
41129         (Depends-on): Add float, isfinite, signbit, fabsl,
41130         frexpl, ldexpl, isnanl. Remove fma.
41131         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
41132         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
41134 2012-03-03  Bruno Haible  <bruno@clisp.org>
41136         fmod* tests: More tests.
41137         * tests/test-fmod.h: New file.
41138         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
41139         (main): Invoke test_function.
41140         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
41141         (main): Invoke test_function.
41142         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
41143         (main): Invoke test_function.
41144         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
41145         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
41146         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
41147         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
41148         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
41149         (Depends-on): Add 'float'.
41150         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
41152 2012-03-03  Bruno Haible  <bruno@clisp.org>
41154         rint* tests: More tests.
41155         * tests/test-rint.h: New file, partially extracted from
41156         tests/test-rintl.c.
41157         * tests/test-rint.c: Include test-rint.h.
41158         (main): Invoke test_function.
41159         * tests/test-rintf.c: Include test-rint.h.
41160         (main): Invoke test_function.
41161         * tests/test-rintl.c: Include test-rint.h.
41162         (main): Invoke test_function.
41163         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
41164         (Makefile.am): Add randomd.c to test_rint_SOURCES.
41165         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
41166         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
41167         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
41168         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
41170 2012-03-03  Bruno Haible  <bruno@clisp.org>
41172         modf* tests: More tests.
41173         * tests/test-modf.h: New file.
41174         * tests/test-modf.c: Include <float.h> and test-modf.h.
41175         (main): Invoke test_function.
41176         * tests/test-modff.c: Include <float.h> and test-modf.h.
41177         (main): Invoke test_function.
41178         * tests/test-modfl.c: Include <float.h> and test-modf.h.
41179         (main): Invoke test_function.
41180         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
41181         (Makefile.am): Add randomd.c to test_modf_SOURCES.
41182         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
41183         (Makefile.am): Add randomf.c to test_modff_SOURCES.
41184         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
41185         (Depends-on): Add 'float'.
41186         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
41188 2012-03-03  Bruno Haible  <bruno@clisp.org>
41190         fabs* tests: More tests.
41191         * tests/test-fabs.h: New file, partially extracted from
41192         tests/test-fabsl.c.
41193         * tests/test-fabs.c (RANDOM): New macro.
41194         * tests/test-fabsf.c (RANDOM): New macro.
41195         * tests/test-fabsl.c (RANDOM): New macro.
41196         * modules/fabs-tests (Files): Add tests/randomd.c.
41197         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
41198         * modules/fabsf-tests (Files): Add tests/randomf.c.
41199         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
41200         * modules/fabsl-tests (Files): Add tests/randoml.c.
41201         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
41203 2012-03-03  Bruno Haible  <bruno@clisp.org>
41205         ldexp* tests: More tests.
41206         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
41207         * tests/test-ldexp.c (RANDOM): New macro.
41208         * tests/test-ldexpf.c (RANDOM): New macro.
41209         * tests/test-ldexpl.c (RANDOM): New macro.
41210         * modules/ldexp-tests (Files): Add tests/randomd.c.
41211         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
41212         * modules/ldexpf-tests (Files): Add tests/randomf.c.
41213         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
41214         * modules/ldexpl-tests (Files): Add tests/randoml.c.
41215         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
41217 2012-03-03  Bruno Haible  <bruno@clisp.org>
41219         frexp* tests: More tests.
41220         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
41221         * tests/test-frexp.c (RANDOM): New macro.
41222         * tests/test-frexpf.c (RANDOM): New macro.
41223         * tests/test-frexpl.c (RANDOM): New macro.
41224         * modules/frexp-tests (Files): Add tests/randomd.c.
41225         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
41226         * modules/frexpf-tests (Files): Add tests/randomf.c.
41227         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
41228         * modules/frexpl-tests (Files): Add tests/randoml.c.
41229         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
41231 2012-03-03  Bruno Haible  <bruno@clisp.org>
41233         Support for pseudo-random numbers in tests.
41234         * tests/randomf.c: New file.
41235         * tests/randomd.c: New file.
41236         * tests/randoml.c: New file.
41237         * tests/macros.h (randomf, randomd, randoml): New declarations.
41239 2012-03-03  Bruno Haible  <bruno@clisp.org>
41241         frexp* tests: Refactor.
41242         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
41243         * tests/test-frexp.c: Include and use it.
41244         * tests/test-frexpf.c: Likewise.
41245         * tests/test-frexpl.c: Likewise.
41246         * modules/frexp-tests (Files): Add tests/test-frexp.h.
41247         * modules/frexpf-tests (Files): Likewise.
41248         * modules/frexpl-tests (Files): Likewise.
41250 2012-03-02  Jim Meyering  <meyering@redhat.com>
41252         maint: don't specify XZ_OPT=-9ev in dist-related rule
41253         Using xz's -9 option is warranted only if you have a very large
41254         tarball (see xz's documentation for the sizes vs. presets), and
41255         requires 64MiB of memory at decompression time.
41256         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
41257         Automake's default of just "-e" is fine.  Override on a
41258         per-package basis by setting XZ_OPT e.g., in cfg.mk.
41260 2012-03-01  Eric Blake  <eblake@redhat.com>
41262         maint.mk: allow announcement for non-gnulib project
41263         * maint.mk (announcement): Skip gnulib version if not used.
41265 2012-03-01  Jim Meyering  <meyering@redhat.com>
41267         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
41268         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
41269         envvar settings cannot interfere.  Otherwise, setting envvars like
41270         prohibit=foo require=bar, etc. would cause spurious test failures.
41272 2012-03-01  Eric Blake  <eblake@redhat.com>
41274         maint.mk: add per-line exclusions to prohibitions
41275         * maint.mk (_sc_search_regexp): Add $exclude parameter.
41276         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
41277         (sc_const_long_option): Use it.
41279 2012-03-01  Bruno Haible  <bruno@clisp.org>
41281         Tests for module 'expl-ieee'.
41282         * modules/expl-ieee-tests: New file.
41283         * tests/test-expl-ieee.c: New file.
41285         New module 'expl-ieee'.
41286         * modules/expl-ieee: New file.
41288         Tests for module 'exp-ieee'.
41289         * modules/exp-ieee-tests: New file.
41290         * tests/test-exp-ieee.c: New file.
41292         New module 'exp-ieee'.
41293         * modules/exp-ieee: New file.
41295         Tests for module 'expf-ieee'.
41296         * modules/expf-ieee-tests: New file.
41297         * tests/test-expf-ieee.c: New file.
41298         * tests/test-exp-ieee.h: New file.
41300         New module 'expf-ieee'.
41301         * modules/expf-ieee: New file.
41303 2012-02-29  Bruno Haible  <bruno@clisp.org>
41305         cbrtl-ieee: Work around test failure on IRIX 6.5.
41306         * m4/cbrtl-ieee.m4: New file.
41307         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
41308         test whether cbrtl works with a minus zero argument. Replace it if not.
41309         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
41310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
41311         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
41312         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
41313         (Depends-on): Update conditions.
41314         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
41315         m4/signbit.m4.
41316         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
41317         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
41318         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
41320         Tests for module 'cbrtl-ieee'.
41321         * modules/cbrtl-ieee-tests: New file.
41322         * tests/test-cbrtl-ieee.c: New file.
41324         New module 'cbrtl-ieee'.
41325         * modules/cbrtl-ieee: New file.
41327         Tests for module 'cbrt-ieee'.
41328         * modules/cbrt-ieee-tests: New file.
41329         * tests/test-cbrt-ieee.c: New file.
41331         New module 'cbrt-ieee'.
41332         * modules/cbrt-ieee: New file.
41334         Tests for module 'cbrtf-ieee'.
41335         * modules/cbrtf-ieee-tests: New file.
41336         * tests/test-cbrtf-ieee.c: New file.
41337         * tests/test-cbrt-ieee.h: New file.
41339         New module 'cbrtf-ieee'.
41340         * modules/cbrtf-ieee: New file.
41342 2012-02-29  Bruno Haible  <bruno@clisp.org>
41344         cbrtf: Work around bug in IRIX 6.5 system function.
41345         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
41346         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
41347         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
41348         work.
41349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
41350         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
41351         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
41352         (Depends-on): Update conditions.
41353         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
41355 2012-02-29  Bruno Haible  <bruno@clisp.org>
41357         Tests for module 'cbrtl'.
41358         * modules/cbrtl-tests: New file.
41359         * tests/test-cbrtl.c: New file.
41361         New module 'cbrtl'.
41362         * lib/math.in.h (cbrtl): New declaration.
41363         * lib/cbrtl.c: New file.
41364         * m4/cbrtl.m4: New file.
41365         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41367         HAVE_DECL_CBRTL.
41368         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41369         HAVE_DECL_CBRTL.
41370         * modules/cbrtl: New file.
41371         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41372         * doc/posix-functions/cbrtl.texi: Mention the new module.
41374 2012-02-29  Bruno Haible  <bruno@clisp.org>
41376         Tests for module 'cbrtf'.
41377         * modules/cbrtf-tests: New file.
41378         * tests/test-cbrtf.c: New file.
41380         New module 'cbrtf'.
41381         * lib/math.in.h (cbrtf): New declaration.
41382         * lib/cbrtf.c: New file.
41383         * m4/cbrtf.m4: New file.
41384         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41386         HAVE_DECL_CBRTF.
41387         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41388         HAVE_DECL_CBRTF.
41389         * modules/cbrtf: New file.
41390         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41391         * doc/posix-functions/cbrtf.texi: Mention the new module.
41393 2012-02-29  Bruno Haible  <bruno@clisp.org>
41395         cbrt: Provide replacement on MSVC and Minix.
41396         * lib/math.in.h (cbrt): New declaration.
41397         * lib/cbrt.c: New file.
41398         * m4/cbrt.m4: New file.
41399         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41401         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41402         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41403         (Depends-on): Add dependencies.
41404         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41405         * tests/test-math-c++.cc: Check the declaration of cbrt.
41406         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41407         replacement.
41409 2012-02-29  Bruno Haible  <bruno@clisp.org>
41411         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41412         * m4/hypotl-ieee.m4: New file.
41413         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41414         test whether hypotl works with mixed NaN and Infinity arguments.
41415         Replace it if not.
41416         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41418         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41419         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41420         (Depends-on): Update conditions.
41421         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41422         (Depends-on): Add hypot-ieee.
41423         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41424         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41426         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41427         * m4/hypotf-ieee.m4: New file.
41428         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41429         test whether hypotf works with mixed NaN and Infinity arguments.
41430         Replace it if not.
41431         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41432         (Depends-on): Add hypot-ieee.
41433         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41434         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41436         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41437         * lib/math.in.h (hypot): New declaration.
41438         * lib/hypot.c: New file.
41439         * m4/hypot-ieee.m4: New file.
41440         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41441         whether hypot works with mixed NaN and Infinity arguments. Replace it
41442         if not.
41443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41444         REPLACE_HYPOT.
41445         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41446         * modules/hypot (Files): Add lib/hypot.c.
41447         (Depends-on): Add dependencies.
41448         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41449         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41450         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41451         * tests/test-math-c++.cc: Check the declaration of hypot.
41452         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41454         Tests for module 'hypotl-ieee'.
41455         * modules/hypotl-ieee-tests: New file.
41456         * tests/test-hypotl-ieee.c: New file.
41458         New module 'hypotl-ieee'.
41459         * modules/hypotl-ieee: New file.
41461         Tests for module 'hypot-ieee'.
41462         * modules/hypot-ieee-tests: New file.
41463         * tests/test-hypot-ieee.c: New file.
41465         New module 'hypot-ieee'.
41466         * modules/hypot-ieee: New file.
41468         Tests for module 'hypotf-ieee'.
41469         * modules/hypotf-ieee-tests: New file.
41470         * tests/test-hypotf-ieee.c: New file.
41471         * tests/test-hypot-ieee.h: New file.
41473         New module 'hypotf-ieee'.
41474         * modules/hypotf-ieee: New file.
41476 2012-02-29  Bruno Haible  <bruno@clisp.org>
41478         Remove unused variables.
41479         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
41480         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41481         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
41482         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41484 2012-02-29  Eric Blake  <eblake@redhat.com>
41486         termios: fix pid_t always, not just for tcgetsid
41487         * doc/posix-headers/termios.texi (termios.h): Mention problem.
41488         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
41489         just when building tcgetsid.
41491 2012-02-29  Bruno Haible  <bruno@clisp.org>
41493         Tests for module 'hypotl'.
41494         * modules/hypotl-tests: New file.
41495         * tests/test-hypotl.c: New file.
41497         New module 'hypotl'.
41498         * lib/math.in.h (hypotl): New declaration.
41499         * lib/hypotl.c: New file.
41500         * m4/hypotl.m4: New file.
41501         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
41503         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
41504         * modules/hypotl: New file.
41505         * tests/test-math-c++.cc: Check the hypotl declaration.
41506         * doc/posix-functions/hypotl.texi: Mention the new module.
41508 2012-02-29  Eric Blake  <eblake@redhat.com>
41510         tcgetsid: fix cygwin header bug
41511         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
41513         docs: update cygwin progress
41514         * doc/posix-functions/llround.texi (llround): Added in cygwin
41515         1.7.8.
41516         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
41517         * doc/glibc-functions/program_invocation_name.texi
41518         (program_invocation_name): Likewise.
41519         * doc/glibc-functions/program_invocation_short_name.texi
41520         (program_invocation_short_name): Likewise.
41521         * doc/glibc-functions/madvise.texi (madvise): Likewise.
41522         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
41523         Likewise.
41524         * doc/posix-functions/pthread_spin_destroy.texi
41525         (pthread_spin_destroy): Added in cygwin 1.7.10.
41526         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
41527         Likewise.
41528         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
41529         Likewise.
41530         * doc/posix-functions/pthread_spin_trylock.texi
41531         (pthread_spin_trylock): Likewise.
41532         * doc/posix-functions/pthread_spin_unlock.texi
41533         (pthread_spin_unlock): Likewise.
41534         * doc/posix-functions/pthread_setschedprio.texi
41535         (pthread_setschedprio): Likewise.
41536         * doc/posix-functions/pthread_attr_getstack.texi
41537         (pthread_attr_getstack): Likewise.
41538         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
41539         (pthread_attr_getstackaddr): Likewise.
41540         * doc/glibc-functions/pthread_getattr_np.texi
41541         (pthread_getattr_np): Likewise.
41542         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
41543         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
41544         * doc/posix-functions/clock_settime.texi (clock_settime):
41545         Likewise.
41546         * doc/posix-functions/pthread_attr_getguardsize.texi
41547         (pthread_attr_getguardsize): Likewise.
41548         * doc/posix-functions/pthread_attr_setguardsize.texi
41549         (pthread_attr_setguardsize): Likewise.
41550         * doc/posix-functions/pthread_attr_setstack.texi
41551         (pthread_attr_setstack): Likewise.
41552         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
41553         (pthread_attr_setstackaddr): Likewise.
41554         * doc/posix-functions/clock_getcpuclockid.texi
41555         (clock_getcpuclockid): Likewise.
41556         * doc/posix-functions/pthread_getcpuclockid.texi
41557         (pthread_getcpuclockid): Likewise.
41558         * doc/glibc-functions/error.texi (error): Likewise.
41559         * doc/glibc-functions/error_at_line.texi (error_at_line):
41560         Likewise.
41561         * doc/glibc-functions/error_message_count.texi
41562         (error_message_count): Likewise.
41563         * doc/glibc-functions/error_one_per_line.texi
41564         (error_one_per_line): Likewise.
41565         * doc/glibc-functions/error_print_progname.texi
41566         (error_print_progname): Likewise.
41567         * doc/posix-functions/pthread_condattr_getclock.texi
41568         (pthread_condattr_getclock): Likewise.
41569         * doc/posix-functions/pthread_condattr_setclock.texi
41570         (pthread_condattr_setclock): Likewise.
41571         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
41572         Likewise.
41573         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
41574         * doc/glibc-functions/getpt.texi (getpt): Likewise.
41575         * doc/glibc-functions/get_current_dir_name.texi
41576         (get_current_dir_name): Likewise.
41577         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
41578         Likewise.
41579         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
41580         wrong return type.
41581         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
41582         1.7.11.
41584 2012-02-29  Bruno Haible  <bruno@clisp.org>
41586         Tests for module 'hypotf'.
41587         * modules/hypotf-tests: New file.
41588         * tests/test-hypotf.c: New file.
41590         New module 'hypotf'.
41591         * lib/math.in.h (hypotf): New declaration.
41592         * lib/hypotf.c: New file.
41593         * m4/hypotf.m4: New file.
41594         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
41596         REPLACE_HYPOTF.
41597         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
41598         REPLACE_HYPOTF.
41599         * modules/hypotf: New file.
41600         * tests/test-math-c++.cc: Check the hypotf declaration.
41601         * doc/posix-functions/hypotf.texi: Mention the new module.
41603         hypot: Prepare for hypotf module.
41604         * m4/hypot.m4: New file.
41605         * modules/hypot (Files): Add m4/hypot.m4.
41606         (configure.ac): Invoke gl_FUNC_HYPOT.
41608 2012-02-29  Bruno Haible  <bruno@clisp.org>
41610         hypot tests: More tests.
41611         * tests/test-hypot.c: Include <float.h>.
41612         (main): Add tests about overflow and underflow.
41614 2012-02-29  Bruno Haible  <bruno@clisp.org>
41616         math code: Add comments.
41617         * lib/acosl.c: Add comment about related glibc source files.
41618         * lib/asinl.c: Likewise.
41619         * lib/atanl.c: Likewise.
41620         * lib/expl.c: Likewise.
41621         * lib/logl.c: Likewise.
41622         * lib/sincosl.c: Likewise.
41623         * lib/sinl.c: Likewise.
41624         * lib/tanl.c: Likewise.
41625         * lib/trigl.c: Likewise.
41626         * lib/cosl.c: Likewise. Fix comments.
41628 2012-02-28  Bruno Haible  <bruno@clisp.org>
41630         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
41631         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
41632         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
41633         HUGE_VALL are defined.
41634         (numeric_equald): Renamed from numeric_equal.
41635         (numeric_equalf, numeric_equall): New functions.
41636         (main): Check also HUGE_VALF, HUGE_VALL.
41637         * modules/math-tests (Files): Add tests/macros.h.
41638         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
41639         HUGE_VALL.
41641 2012-02-28  Bruno Haible  <bruno@clisp.org>
41643         doc: Move ISO C11 feature notes into POSIX chapters.
41644         * doc/posix-functions/aligned_alloc.texi: Renamed from
41645         doc/glibc-functions/aligned_alloc.texi.
41646         * doc/posix-functions/quick_exit.texi: Renamed from
41647         doc/glibc-functions/quick_exit.texi.
41648         * doc/posix-headers/uchar.texi: Renamed from
41649         doc/glibc-headers/uchar.texi.
41650         * doc/posix-functions/c16rtomb.texi: Renamed from
41651         doc/glibc-functions/c16rtomb.texi.
41652         * doc/posix-functions/c32rtomb.texi: Renamed from
41653         doc/glibc-functions/c32rtomb.texi.
41654         * doc/posix-functions/mbrtoc16.texi: Renamed from
41655         doc/glibc-functions/mbrtoc16.texi.
41656         * doc/posix-functions/mbrtoc32.texi: Renamed from
41657         doc/glibc-functions/mbrtoc32.texi.
41658         * doc/gnulib.texi: Update.
41659         (Glibc uchar.h): Remove section.
41660         Suggested by Eric Blake.
41662 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
41664         stdnoreturn: port to MSVC better
41665         MSVC standard headers use __declspec(noreturn), so #define noreturn
41666         to empty on that platform.  Reported by Bruno Haible in
41667         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
41668         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
41669         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
41671 2012-02-28  Bruno Haible  <bruno@clisp.org>
41673         doc: Mention new glibc headers and functions.
41674         * doc/glibc-headers/uchar.texi: New file.
41675         * doc/glibc-functions/aligned_alloc.texi: New file.
41676         * doc/glibc-functions/c16rtomb.texi: New file.
41677         * doc/glibc-functions/c32rtomb.texi: New file.
41678         * doc/glibc-functions/clock_adjtime.texi: New file.
41679         * doc/glibc-functions/fanotify_init.texi: New file.
41680         * doc/glibc-functions/fanotify_mark.texi: New file.
41681         * doc/glibc-functions/inet6_opt_append.texi: New file.
41682         * doc/glibc-functions/inet6_opt_find.texi: New file.
41683         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41684         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41685         * doc/glibc-functions/inet6_opt_init.texi: New file.
41686         * doc/glibc-functions/inet6_opt_next.texi: New file.
41687         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41688         * doc/glibc-functions/inet6_rth_add.texi: New file.
41689         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41690         * doc/glibc-functions/inet6_rth_init.texi: New file.
41691         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41692         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41693         * doc/glibc-functions/inet6_rth_space.texi: New file.
41694         * doc/glibc-functions/login.texi: New file.
41695         * doc/glibc-functions/mbrtoc16.texi: New file.
41696         * doc/glibc-functions/mbrtoc32.texi: New file.
41697         * doc/glibc-functions/name_to_handle_at.texi: New file.
41698         * doc/glibc-functions/ntp_gettimex.texi: New file.
41699         * doc/glibc-functions/open_by_handle_at.texi: New file.
41700         * doc/glibc-functions/prlimit.texi: New file.
41701         * doc/glibc-functions/process_vm_readv.texi: New file.
41702         * doc/glibc-functions/process_vm_writev.texi: New file.
41703         * doc/glibc-functions/recvmmsg.texi: New file.
41704         * doc/glibc-functions/scandirat.texi: New file.
41705         * doc/glibc-functions/sendmmsg.texi: New file.
41706         * doc/glibc-functions/setns.texi: New file.
41707         * doc/glibc-functions/timespec_get.texi: New file.
41708         * doc/gnulib.texi: Include them.
41709         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41710         sections.
41711         Reported by Eric Blake.
41713 2012-02-28  Bruno Haible  <bruno@clisp.org>
41715         Avoid compilation errors with MSVC option -fp:strict.
41716         * lib/floor.c: Use MSVC specific pragma fenv_access.
41717         * lib/ceil.c: Likewise.
41718         * lib/trunc.c: Likewise.
41719         * lib/round.c: Likewise.
41720         * lib/rint.c: Likewise.
41721         * lib/fma.c: Likewise.
41722         * lib/integer_length.c: Likewise.
41723         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41725         * tests/test-floor2.c: Likewise.
41726         * tests/test-floorf2.c: Likewise.
41727         * tests/test-ceil2.c: Likewise.
41728         * tests/test-ceilf2.c: Likewise.
41729         * tests/test-trunc2.c: Likewise.
41730         * tests/test-truncf2.c: Likewise.
41731         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41733 2012-02-27  Bruno Haible  <bruno@clisp.org>
41735         Tests for module 'sqrtl-ieee'.
41736         * modules/sqrtl-ieee-tests: New file.
41737         * tests/test-sqrtl-ieee.c: New file.
41739         New module 'sqrtl-ieee'.
41740         * modules/sqrtl-ieee: New file.
41742         Tests for module 'sqrt-ieee'.
41743         * modules/sqrt-ieee-tests: New file.
41744         * tests/test-sqrt-ieee.c: New file.
41746         New module 'sqrt-ieee'.
41747         * modules/sqrt-ieee: New file.
41749         Tests for module 'sqrtf-ieee'.
41750         * modules/sqrtf-ieee-tests: New file.
41751         * tests/test-sqrtf-ieee.c: New file.
41752         * tests/test-sqrt-ieee.h: New file.
41754         New module 'sqrtf-ieee'.
41755         * modules/sqrtf-ieee: New file.
41757 2012-02-27  Bruno Haible  <bruno@clisp.org>
41759         remainderl-ieee: Work around test failure on OSF/1.
41760         * m4/remainderl-ieee.m4: New file.
41761         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41762         present, test whether remainderl works with a zero second argument.
41763         Replace it if not.
41764         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41766         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41767         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41768         (Depends-on): Update conditions.
41769         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41770         (Depends-on): Add remainder-ieee.
41771         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41772         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41773         module.
41775         remainderf-ieee: Work around test failure on OSF/1.
41776         * m4/remainderf-ieee.m4: New file.
41777         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41778         present, test whether remainderf works with a zero second argument.
41779         Replace it if not.
41780         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41782         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41783         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41784         (Depends-on): Update conditions.
41785         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41786         (Depends-on): Add remainder-ieee.
41787         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41788         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41789         module.
41791         remainder-ieee: Work around test failure on OSF/1.
41792         * m4/remainder-ieee.m4: New file.
41793         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41794         present, test whether remainder works with a zero second argument.
41795         Replace it if not.
41796         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41798         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41799         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41800         (Depends-on): Update dependencies.
41801         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41802         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41803         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41805         Tests for module 'remainderl-ieee'.
41806         * modules/remainderl-ieee-tests: New file.
41807         * tests/test-remainderl-ieee.c: New file.
41809         New module 'remainderl-ieee'.
41810         * modules/remainderl-ieee: New file.
41812         Tests for module 'remainder-ieee'.
41813         * modules/remainder-ieee-tests: New file.
41814         * tests/test-remainder-ieee.c: New file.
41816         New module 'remainder-ieee'.
41817         * modules/remainder-ieee: New file.
41819         Tests for module 'remainderf-ieee'.
41820         * modules/remainderf-ieee-tests: New file.
41821         * tests/test-remainderf-ieee.c: New file.
41822         * tests/test-remainder-ieee.h: New file.
41824         New module 'remainderf-ieee'.
41825         * modules/remainderf-ieee: New file.
41827 2012-02-27  Bruno Haible  <bruno@clisp.org>
41829         modff, modfl: Fix configure syntax error.
41830         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41831         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41833 2012-02-27  Bruno Haible  <bruno@clisp.org>
41835         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41836         * m4/fmodl-ieee.m4: New file.
41837         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41838         whether fmodl works with zero arguments. Replace it if not.
41839         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41840         (Depends-on): Add fmod-ieee.
41841         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41842         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41844         fmodf-ieee: Work around test failure on OSF/1.
41845         * m4/fmodf-ieee.m4: New file.
41846         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41847         whether fmodf works with zero arguments. Replace it if not.
41848         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41850         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41851         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41852         (Depends-on): Update dependencies.
41853         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41854         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41855         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41857         fmodf-ieee: Work around test failure on MSVC 9.
41858         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41859         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41861         fmod-ieee: Work around test failures on OSF/1, mingw.
41862         * m4/fmod-ieee.m4: New file.
41863         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41864         whether fmod works with zero arguments. Replace it if not.
41865         * lib/math.in.h (fmod): New declaration.
41866         * lib/fmod.c: New file.
41867         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41869         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41870         * modules/fmod (Files): Add lib/fmod.c.
41871         (Depends-on): Add math, isinf, trunc, fma.
41872         (configure.ac): Arrange to compile lib/fmod.c if needed.
41873         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41874         m4/signbit.m4.
41875         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41876         * tests/test-math-c++.cc: Check the declaration of fmod.
41877         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41879         fmodl-ieee: Fix test failures.
41880         * lib/fmodl.c (fmodl): Treat Inf specially.
41881         * modules/fmodl (Depends-on): Add isinf.
41883         Tests for module 'fmodl-ieee'.
41884         * modules/fmodl-ieee-tests: New file.
41885         * tests/test-fmodl-ieee.c: New file.
41887         New module 'fmodl-ieee'.
41888         * modules/fmodl-ieee: New file.
41890         Tests for module 'fmod-ieee'.
41891         * modules/fmod-ieee-tests: New file.
41892         * tests/test-fmod-ieee.c: New file.
41894         New module 'fmod-ieee'.
41895         * modules/fmod-ieee: New file.
41897         Tests for module 'fmodf-ieee'.
41898         * modules/fmodf-ieee-tests: New file.
41899         * tests/test-fmodf-ieee.c: New file.
41900         * tests/test-fmod-ieee.h: New file.
41902         New module 'fmodf-ieee'.
41903         * modules/fmodf-ieee: New file.
41905 2012-02-27  Bruno Haible  <bruno@clisp.org>
41907         Tests for module 'rintl-ieee'.
41908         * modules/rintl-ieee-tests: New file.
41909         * tests/test-rintl-ieee.c: New file.
41911         New module 'rintl-ieee'.
41912         * modules/rintl-ieee: New file.
41914         Tests for module 'rint-ieee'.
41915         * modules/rint-ieee-tests: New file.
41916         * tests/test-rint-ieee.c: New file.
41918         New module 'rint-ieee'.
41919         * modules/rint-ieee: New file.
41921         Tests for module 'rintf-ieee'.
41922         * modules/rintf-ieee-tests: New file.
41923         * tests/test-rintf-ieee.c: New file.
41924         * tests/test-rint-ieee.h: New file.
41926         New module 'rintf-ieee'.
41927         * modules/rintf-ieee: New file.
41929 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41931         regex: re_search etc. should return -2 when memory exhausted
41932         This bug was uncovered when testing 'grep'.  Without the fix,
41933         re_search and friends return -1 when memory is exhausted, but -1
41934         means no match, and this causes grep to falsely report no-match
41935         instead of memory-exhaustion.  See
41936         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41937         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41938         trouble; this can occur if re_search_internal ran out of memory.
41940 2012-02-26  Bruno Haible  <bruno@clisp.org>
41942         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41943         * m4/modfl-ieee.m4: New file.
41944         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41945         whether modfl works with Inf. Replace it if not.
41946         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41948         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41949         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41950         (Depends-on): Update dependencies.
41951         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41952         m4/signbit.m4.
41953         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41954         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41956         modfl-ieee: Fix dependencies.
41957         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41959         modfl-ieee: Fix test failures.
41960         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41961         * modules/modfl (Depends-on): Add isfinite, isinf.
41963         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41964         * m4/modff-ieee.m4: New file.
41965         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41966         whether modff works with NaN and Inf. Replace it if not.
41967         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41969         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41970         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41971         (Depends-on): Update dependencies.
41972         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41973         m4/signbit.m4.
41974         (Depends-on): Add modf-ieee.
41975         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41976         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41978         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41979         * m4/modf-ieee.m4: New file.
41980         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41981         whether modf works with NaN and Inf. Replace it if not.
41982         * lib/math.in.h (modf): New declaration.
41983         * lib/modf.c: New file.
41984         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41986         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41987         * modules/modf (Files): Add lib/modf.c.
41988         (Depends-on): Add math, isfinite, trunc, isinf.
41989         (configure.ac): Addrange to compile lib/modf.c if needed.
41990         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41991         m4/signbit.m4.
41992         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41993         * tests/test-math-c++.cc: Check the declaration of modf.
41994         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41996         Tests for module 'modfl-ieee'.
41997         * modules/modfl-ieee-tests: New file.
41998         * tests/test-modfl-ieee.c: New file.
42000         New module 'modfl-ieee'.
42001         * modules/modfl-ieee: New file.
42003         Tests for module 'modf-ieee'.
42004         * modules/modf-ieee-tests: New file.
42005         * tests/test-modf-ieee.c: New file.
42007         New module 'modf-ieee'.
42008         * modules/modf-ieee: New file.
42010         Tests for module 'modff-ieee'.
42011         * modules/modff-ieee-tests: New file.
42012         * tests/test-modff-ieee.c: New file.
42013         * tests/test-modf-ieee.h: New file.
42015         New module 'modff-ieee'.
42016         * modules/modff-ieee: New file.
42018 2012-02-26  Bruno Haible  <bruno@clisp.org>
42020         Tests for module 'fabsl-ieee'.
42021         * modules/fabsl-ieee-tests: New file.
42022         * tests/test-fabsl-ieee.c: New file.
42024         New module 'fabsl-ieee'.
42025         * modules/fabsl-ieee: New file.
42027         Tests for module 'fabs-ieee'.
42028         * modules/fabs-ieee-tests: New file.
42029         * tests/test-fabs-ieee.c: New file.
42031         New module 'fabs-ieee'.
42032         * modules/fabs-ieee: New file.
42034         Tests for module 'fabsf-ieee'.
42035         * modules/fabsf-ieee-tests: New file.
42036         * tests/test-fabsf-ieee.c: New file.
42037         * tests/test-fabs-ieee.h: New file.
42039         New module 'fabsf-ieee'.
42040         * modules/fabsf-ieee: New file.
42042 2012-02-26  Bruno Haible  <bruno@clisp.org>
42044         Tests for module 'fmal-ieee'.
42045         * modules/fmal-ieee-tests: New file.
42046         * tests/test-fmal-ieee.c: New file.
42048         New module 'fmal-ieee'.
42049         * modules/fmal-ieee: New file.
42051         Tests for module 'fma-ieee'.
42052         * modules/fma-ieee-tests: New file.
42053         * tests/test-fma-ieee.c: New file.
42055         New module 'fma-ieee'.
42056         * modules/fma-ieee: New file.
42058         Tests for module 'fmaf-ieee'.
42059         * modules/fmaf-ieee-tests: New file.
42060         * tests/test-fmaf-ieee.c: New file.
42061         * tests/test-fma-ieee.h: New file.
42063         New module 'fmaf-ieee'.
42064         * modules/fmaf-ieee: New file.
42066 2012-02-26  Bruno Haible  <bruno@clisp.org>
42068         Tests for module 'ldexpl-ieee'.
42069         * modules/ldexpl-ieee-tests: New file.
42070         * tests/test-ldexpl-ieee.c: New file.
42072         New module 'ldexpl-ieee'.
42073         * modules/ldexpl-ieee: New file.
42075         Tests for module 'ldexp-ieee'.
42076         * modules/ldexp-ieee-tests: New file.
42077         * tests/test-ldexp-ieee.c: New file.
42079         New module 'ldexp-ieee'.
42080         * modules/ldexp-ieee: New file.
42082         Tests for module 'ldexpf-ieee'.
42083         * modules/ldexpf-ieee-tests: New file.
42084         * tests/test-ldexpf-ieee.c: New file.
42085         * tests/test-ldexp-ieee.h: New file.
42087         New module 'ldexpf-ieee'.
42088         * modules/ldexpf-ieee: New file.
42090 2012-02-26  Bruno Haible  <bruno@clisp.org>
42092         Refactor frexp*-ieee tests.
42093         * tests/test-frexp-ieee.h: New file.
42094         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
42095         (main): Just call test_function.
42096         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
42097         (main): Just call test_function.
42098         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
42099         (main): Just call test_function.
42100         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
42101         * modules/frexp-ieee-tests (Files): Likewise.
42102         * modules/frexpl-ieee-tests (Files): Likewise.
42104         Tests for module 'frexpl-ieee'.
42105         * modules/frexpl-ieee-tests: New file.
42106         * tests/test-frexpl-ieee.c: New file.
42108         New module 'frexpl-ieee'.
42109         * modules/frexpl-ieee: New file.
42111         Tests for module 'frexp-ieee'.
42112         * modules/frexp-ieee-tests: New file.
42113         * tests/test-frexp-ieee.c: New file.
42115         New module 'frexp-ieee'.
42116         * modules/frexp-ieee: New file.
42118         Tests for module 'frexpf-ieee'.
42119         * modules/frexpf-ieee-tests: New file.
42120         * tests/test-frexpf-ieee.c: New file.
42122         New module 'frexpf-ieee'.
42123         * modules/frexpf-ieee: New file.
42125 2012-02-26  Bruno Haible  <bruno@clisp.org>
42127         roundl-ieee tests: More tests.
42128         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42129         (main): Add tests for [MX] shaded specification in POSIX.
42130         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42131         (Depends-on): Add isnanl-nolibm.
42133         round-ieee tests: More tests.
42134         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42135         (main): Add tests for [MX] shaded specification in POSIX.
42136         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42137         (Depends-on): Add isnand-nolibm.
42139         roundf-ieee tests: More tests.
42140         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42141         (main): Add tests for [MX] shaded specification in POSIX.
42142         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42143         (Depends-on): Add isnanf-nolibm.
42145         truncl-ieee tests: More tests.
42146         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42147         (main): Add tests for [MX] shaded specification in POSIX.
42148         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42149         (Depends-on): Add isnanl-nolibm.
42151         trunc-ieee tests: More tests.
42152         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42153         (main): Add tests for [MX] shaded specification in POSIX.
42154         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42155         (Depends-on): Add isnand-nolibm.
42157         truncf-ieee tests: More tests.
42158         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42159         (main): Add tests for [MX] shaded specification in POSIX.
42160         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42161         (Depends-on): Add isnanf-nolibm.
42163         ceill-ieee tests: More tests.
42164         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42165         (main): Add tests for [MX] shaded specification in POSIX.
42166         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42167         (Depends-on): Add isnanl-nolibm.
42169         ceil-ieee tests: More tests.
42170         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42171         (main): Add tests for [MX] shaded specification in POSIX.
42172         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42173         (Depends-on): Add isnand-nolibm.
42175         ceilf-ieee tests: More tests.
42176         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42177         (main): Add tests for [MX] shaded specification in POSIX.
42178         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42179         (Depends-on): Add isnanf-nolibm.
42181         floorl-ieee tests: More tests.
42182         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42183         (main): Add tests for [MX] shaded specification in POSIX.
42184         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42185         (Depends-on): Add isnanl-nolibm.
42187         floor-ieee tests: More tests.
42188         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42189         (main): Add tests for [MX] shaded specification in POSIX.
42190         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42191         (Depends-on): Add isnand-nolibm.
42193         floorf-ieee tests: More tests.
42194         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42195         (main): Add tests for [MX] shaded specification in POSIX.
42196         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42197         (Depends-on): Add isnanf-nolibm.
42199 2012-02-26  Bruno Haible  <bruno@clisp.org>
42201         fpieee: More comments.
42202         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
42204 2012-02-25  Bruno Haible  <bruno@clisp.org>
42206         Tests for module 'log10l'.
42207         * modules/log10l-tests: New file.
42208         * tests/test-log10l.c: New file.
42209         * tests/test-math-c++.cc: Check the declaration of log10l.
42211         New module 'log10l'.
42212         * lib/math.in.h (log10l): New declaration.
42213         * lib/log10l.c: New file.
42214         * m4/log10l.m4: New file.
42215         * modules/log10l: New file.
42216         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
42217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
42218         HAVE_DECL_LOG10L.
42219         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
42220         HAVE_DECL_LOG10L.
42221         * doc/posix-functions/log10l.texi: Mention the new module.
42223 2012-02-25  Bruno Haible  <bruno@clisp.org>
42225         fmodl, remainder*: Avoid wrong results due to rounding errors.
42226         * lib/fmodl.c (fmodl): Correct the result if it is not within the
42227         expected bounds.
42228         * lib/remainderf.c (remainderf): Likewise.
42229         * lib/remainder.c (remainder): Likewise.
42230         * lib/remainderl.c (remainderl): Likewise.
42232 2012-02-25  Bruno Haible  <bruno@clisp.org>
42234         Tests for module 'remainderl'.
42235         * modules/remainderl-tests: New file.
42236         * tests/test-remainderl.c: New file.
42237         * tests/test-math-c++.cc: Check the declaration of remainderl.
42239         New module 'remainderl'.
42240         * lib/math.in.h (remainderl): New declaration.
42241         * lib/remainderl.c: New file.
42242         * m4/remainderl.m4: New file.
42243         * modules/remainderl: New file.
42244         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
42245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
42246         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
42247         HAVE_REMAINDERL.
42248         * doc/posix-functions/remainderl.texi: Mention the new module.
42250 2012-02-25  Bruno Haible  <bruno@clisp.org>
42252         Tests for module 'remainderf'.
42253         * modules/remainderf-tests: New file.
42254         * tests/test-remainderf.c: New file.
42255         * tests/test-math-c++.cc: Check the declaration of remainderf.
42257         New module 'remainderf'.
42258         * lib/math.in.h (remainderf): New declaration.
42259         * lib/remainderf.c: New file.
42260         * m4/remainderf.m4: New file.
42261         * modules/remainderf: New file.
42262         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
42263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
42264         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
42265         HAVE_REMAINDERF.
42266         * doc/posix-functions/remainderf.texi: Mention the new module.
42268 2012-02-25  Bruno Haible  <bruno@clisp.org>
42270         remainder: Support for MSVC.
42271         * lib/math.in.h (remainder): New declaration.
42272         * lib/remainder.c: New file.
42273         * m4/remainder.m4: New file.
42274         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
42275         (Depends-on): Add math, round, fma.
42276         (configure.ac): Use results of gl_FUNC_REMAINDER.
42277         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
42278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
42279         HAVE_DECL_REMAINDER.
42280         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
42281         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
42282         * tests/test-math-c++.cc: Check the declaration of remainder.
42283         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
42284         problems are fixed.
42286 2012-02-25  Bruno Haible  <bruno@clisp.org>
42288         Tests for module 'fmodl'.
42289         * modules/fmodl-tests: New file.
42290         * tests/test-fmodl.c: New file.
42291         * tests/test-math-c++.cc: Check the declaration of fmodl.
42293         New module 'fmodl'.
42294         * lib/math.in.h (fmodl): New declaration.
42295         * lib/fmodl.c: New file.
42296         * m4/fmodl.m4: New file.
42297         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
42298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
42299         REPLACE_FMODL.
42300         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
42301         REPLACE_FMODL.
42302         * modules/fmodl: New file.
42303         * doc/posix-functions/fmodl.texi: Mention the new module.
42305 2012-02-25  Bruno Haible  <bruno@clisp.org>
42307         Tests for module 'modfl'.
42308         * modules/modfl-tests: New file.
42309         * tests/test-modfl.c: New file.
42310         * tests/test-math-c++.cc: Check the declaration of modfl.
42312         New module 'modfl'.
42313         * lib/math.in.h (modfl): New declaration.
42314         * lib/modfl.c: New file.
42315         * m4/modfl.m4: New file.
42316         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
42317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
42318         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
42319         * modules/modfl: New file.
42320         * doc/posix-functions/modfl.texi: Mention the new module.
42322 2012-02-25  Bruno Haible  <bruno@clisp.org>
42324         Tests for module 'fabsl'.
42325         * modules/fabsl-tests: New file.
42326         * tests/test-fabsl.c: New file.
42327         * tests/test-math-c++.cc: Check the declaration of fabsl.
42329         New module 'fabsl'.
42330         * lib/math.in.h (fabsl): New declaration.
42331         * lib/fabsl.c: New file.
42332         * m4/fabsl.m4: New file.
42333         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
42334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
42335         REPLACE_FABSL.
42336         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
42337         REPLACE_FABSL.
42338         * modules/fabsl: New file.
42339         * doc/posix-functions/fabsl.texi: Mention the new module.
42341 2012-02-25  Bruno Haible  <bruno@clisp.org>
42343         fabs tests: More tests.
42344         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
42345         (zero): New variable.
42346         (main): Add tests for signed zero.
42347         * modules/fabs-tests (Files): Add tests/minus-zero.h.
42349         fabsf tests: More tests.
42350         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
42351         (zero): New variable.
42352         (main): Add tests for signed zero.
42353         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
42355 2012-02-24  Bruno Haible  <bruno@clisp.org>
42357         atanl: Provide function definition on MSVC.
42358         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
42359         function pointer.
42360         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42362 2012-02-24  Bruno Haible  <bruno@clisp.org>
42364         acosl: Provide function definition on MSVC.
42365         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42366         function pointer.
42367         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42369 2012-02-24  Bruno Haible  <bruno@clisp.org>
42371         asinl: Provide function definition on MSVC.
42372         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42373         function pointer.
42374         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42376 2012-02-24  Bruno Haible  <bruno@clisp.org>
42378         tanl: Provide function definition on MSVC.
42379         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42380         function pointer.
42381         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42383 2012-02-24  Bruno Haible  <bruno@clisp.org>
42385         cosl: Provide function definition on MSVC.
42386         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42387         function pointer.
42388         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42390 2012-02-24  Bruno Haible  <bruno@clisp.org>
42392         sinl: Provide function definition on MSVC.
42393         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42394         function pointer.
42395         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42397 2012-02-24  Bruno Haible  <bruno@clisp.org>
42399         logl: Provide function definition on MSVC.
42400         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42401         function pointer.
42402         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42404 2012-02-24  Bruno Haible  <bruno@clisp.org>
42406         expl: Provide function definition on MSVC.
42407         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42408         function pointer.
42409         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42411 2012-02-24  Bruno Haible  <bruno@clisp.org>
42413         sqrtl: Provide function definition on MSVC.
42414         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42415         a function pointer.
42416         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42418 2012-02-24  Bruno Haible  <bruno@clisp.org>
42420         ceill: Provide function definition on MSVC.
42421         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42422         used as a function pointer.
42423         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42425 2012-02-24  Bruno Haible  <bruno@clisp.org>
42427         floorl: Provide function definition on MSVC.
42428         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42429         used as a function pointer.
42430         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42432 2012-02-24  Bruno Haible  <bruno@clisp.org>
42434         ceilf: Provide function definition on MSVC.
42435         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42436         used as a function pointer.
42437         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42439 2012-02-24  Bruno Haible  <bruno@clisp.org>
42441         floorf: Provide function definition on MSVC.
42442         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42443         used as a function pointer.
42444         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42446 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42448         stdnoreturn: new module
42449         This implements a replacement for C11's <stdnoreturn.h>.
42450         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42451         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42452         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42453         * tests/test-stdnoreturn.c: New files.
42455 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42457         regex: fix false multibyte matches in some regular expressions
42458         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42459         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42460         * lib/regex_internal.c (re_string_skip_chars):
42461         Fix miscomputation of remain_len that may cause incomplete
42462         multi-byte character and false match.
42464 2012-02-24  Jim Meyering  <meyering@redhat.com>
42466         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42467         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42468         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42469         Remove now-unnecessary str''cmp obfuscation.
42470         Suggested by Akim Demaille.
42472 2012-02-24  Bruno Haible  <bruno@clisp.org>
42474         streq: Rename macro.
42475         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
42476         * NEWS: Mention the change.
42477         * lib/mbrtowc.c (mbrtowc): Update.
42478         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
42479         * lib/wcwidth.c (wcwidth): Update.
42480         Suggested by Akim Demaille and Jim Meyering.
42482 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42484         regex: fix typo in definition of MIN
42485         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
42486         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
42488 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42489             Bruno Haible  <bruno@clisp.org>
42491         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
42492         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
42493         entries into a stack-allocated buffer directly.
42494         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
42496 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42497             Bruno Haible  <bruno@clisp.org>
42499         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
42501          - There were several instances of this pattern:
42503              for (;;) {
42504                n = acl (f, GETACLCNT, 0, NULL);
42505                [ allocate an array A of size N ]
42506                if (acl (f, GETACL, n, a) == n)
42507                  break;
42508              }
42510            This loop might never terminate if some other process is constantly
42511            manipulating the file's ACL.  The loop should be rewritten to
42512            terminate.
42514          - The acl (... GETACLNT ...) call is merely an optimization; its value
42515            is merely a hint as to how big to make the array.  A better
42516            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
42517            and just guess a reasonably-big size, growing the size and trying
42518            again if it's not large enough.  This guarantees termination, and
42519            saves a system call.
42521         * lib/acl-internal.h: Include <limits.h>.
42522         (MIN, SIZE_MAX): New macros.
42523         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
42524         a stack-allocated buffer, and use malloc if it does not fit. Don't
42525         use GETACLCNT.
42526         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42528 2012-02-19  Bruno Haible  <bruno@clisp.org>
42530         acl: Fix endless loop on Solaris with vxfs.
42531         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
42532         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
42533         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42534         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
42535         * tests/test-sameacls.c (main)[Solaris]: Likewise.
42536         Reported by Bill Jones in
42537         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
42539 2012-02-19  Bruno Haible  <bruno@clisp.org>
42541         acl: Fix copy-acl test failure on Solaris 11.0.
42542         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
42543         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
42544         that this function returns 0 in some more cases.
42546 2012-02-19  Bruno Haible  <bruno@clisp.org>
42548         acl: Update doc references.
42549         * doc/acl-resources.txt: Update links to Solaris documentation.
42551 2012-02-19  Bruno Haible  <bruno@clisp.org>
42553         Fix test failure in many locales on Solaris 11.
42554         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
42555         'tr' arguments.
42556         * tests/test-pipe-filter-ii1.c (main): Likewise.
42557         * build-aux/bootstrap (check_versions): Run 'tr' command with range
42558         expressions in the C locale.
42559         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42560         * m4/host-os.m4 (gl_HOST_OS): Likewise.
42562 2012-02-19  Bruno Haible  <bruno@clisp.org>
42564         gnulib-tool: Improve usage message.
42565         * gnulib-tool (func_usage): Move doc of --help and --version to the
42566         section "Operation modes".
42568 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
42570         README-release: make it easier to execute commands
42571         * top/README-release: break commands out on to separate lines.
42573 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
42575         GNUmakefile: simplify detection of unconfigured trees
42576         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
42577         whether the tree make is being run from is already configured or
42578         not.  Related simplifications.
42580 2012-02-13  Simon Josefsson  <simon@josefsson.org>
42582         * gnulib-tool (func_usage): Document --help and --version.
42584 2012-02-11  Jim Meyering  <meyering@redhat.com>
42586         bootstrap: don't exit 0 upon gnulib-tool failure
42587         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
42588         its exit status, not 0.
42590 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
42592         README-release: various improvements
42593         * top/README-release: Give a command to push changes for the
42594         release.  Add "distcheck" to list of other pre-release checks.
42595         Fix instance of "make stable" which should be "make TYPE".
42597 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42599         maint: replace FSF snail-mail addresses with URLs
42600         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
42601         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
42602         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
42603         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
42604         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
42605         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
42606         * lib/check-version.c, lib/check-version.h, lib/config.charset:
42607         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
42608         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42609         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42610         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42611         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42612         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42613         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42614         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42615         * lib/glthread/thread.c, lib/glthread/thread.h:
42616         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
42617         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
42618         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
42619         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
42620         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
42621         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
42622         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
42623         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
42624         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
42625         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
42626         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
42627         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
42628         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
42629         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
42630         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
42631         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
42632         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
42633         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
42634         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
42635         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
42636         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
42637         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
42638         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
42639         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
42640         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
42641         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
42642         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
42643         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
42644         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
42645         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
42646         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
42647         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
42648         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
42649         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
42650         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
42651         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
42652         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
42653         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
42654         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
42655         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
42656         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
42657         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
42658         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
42659         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
42660         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
42661         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
42662         * tests/test-poll.c, tests/test-quotearg-simple.c:
42663         * tests/test-quotearg.c, tests/test-quotearg.h:
42664         * tests/test-round-ieee.c, tests/test-round1.c:
42665         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
42666         * tests/test-roundl-ieee.c, tests/test-roundl.c:
42667         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
42668         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
42669         * tests/test-strerror.c, tests/test-strerror_r.c:
42670         * tests/test-strsignal.c, tests/test-strverscmp.c:
42671         * tests/test-xmemdup0.c:
42672         Replace FSF snail mail addresses with URLs, as per GNU coding
42673         standards.  See glibc bug
42674         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
42676 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42678         README-release: capitalize a word and split a line
42679         * top/README-release: Fix punctuation and spacing.
42681 2012-02-08  Akim Demaille  <demaille@gostai.com>
42683         fatal-signal: use C prototypes (with explicit void).
42684         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42685         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42687 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42689         regex: spelling fix
42690         * lib/regexec.c: spelling fix
42692         regex: rely on stdint.h for SIZE_MAX
42693         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42695 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42697         regex: merge glibc changes
42699         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42700         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42701         (init_word_char): Work even if bitset words are not exactly 32 or
42702         64 bits wide.  Don't assume there are no padding bits.
42703         * lib/regex.c [_LIBC]: Do not include <config.h>.
42704         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42705         and -Wtype-limits.
42706         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42707         needless disagreement with glibc.  All uses changed.  Define it to
42708         1 only if _GNU_SOURCE, to match glibc.
42709         (_REG_RM_NAME): Remove; no longer needed, since the names in
42710         question are now all protected by __USE_GNU.
42711         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42712         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42713         * lib/regex_internal.h (MIN): New macro.
42715         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42716         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42718         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42719         * lib/regex_internal.c (re_string_fetch_byte_case):
42720         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42721         is miscompiled, and it turns out it is because of an incorrect
42722         attribute on re_string_fetch_byte_case.  Unlike
42723         re_string_peek_byte_case, this one is really not pure, it modifies
42724         memory (increments pstr->cur_idx), and with the pure attribute GCC
42725         assumed it doesn't and it cached the presumed value of
42726         regexp->cur_idx in a variable across the
42727          for (;; ++i)
42728            {
42729              if (i >= BRACKET_NAME_BUF_SIZE)
42730                return REG_EBRACK;
42731              if (token->type == OP_OPEN_CHAR_CLASS)
42732                ch = re_string_fetch_byte_case (regexp);
42733              else
42734                ch = re_string_fetch_byte (regexp);
42735              if (re_string_eoi(regexp))
42736                return REG_EBRACK;
42737              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42738                break;
42739              elem->opr.name[i] = ch;
42740            }
42742         2011-11-29 Andreas Schwab <schwab@redhat.com>
42743         * lib/regcomp.c (build_equiv_class):
42744         Fix access after end of search string in regex matcher.
42746         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42747         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42749         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42750         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42752         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42753         * lib/regcomp.c (parse_branch, parse_sub_exp):
42754         More regex memory leak fixes and tests.
42755         (parse_sub_exp, parse_bracket_exp):
42756         Fix memory leak for some invalid regular expressions.
42758         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42759         * lib/regex_internal.c, lib/regexec.c:
42760         Fix unnecessary overallocation due to incomplete character.  When
42761         incomplete characters are found at the end of a string the code
42762         ran amok and allocated lots of memory.  Stricter limits are now in
42763         place.
42765         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42766         * lib/regex.h: Update documentation.
42768         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42769         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42771         2010-05-05 Andreas Schwab <schwab@redhat.com>
42772         * lib/regexec.c (find_collation_sequence_value):
42773         Fix lookup of collation sequence value during regexp matching.
42775         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42776         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42778         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42779         * lib/regex.h: Cleanup namespace.
42781         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42782         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42784         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42785         * lib/regex_internal.h: Prevent some declarations and definitions
42786         to be seen when used in tests.
42788         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42789         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42790         __libc_lock_* macros if not _LIBC.
42791         (struct re_dfa_t): Add lock.
42793 2012-02-07  Eric Blake  <eblake@redhat.com>
42795         maint.mk: also prohibit lower-case @var@
42796         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42797         lower case, like @top_srcdir@.
42799 2012-02-04  Eric Blake  <eblake@redhat.com>
42801         canonicalize: avoid uninitialized memory use
42802         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42803         random '/' left in dest.
42804         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42806 2012-02-04  Bruno Haible  <bruno@clisp.org>
42808         isatty: Fix test failure of ptsname_r on native Windows.
42809         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42810         and don't set errno.
42811         (isatty): Test first whether fd is valid. Set errno when returning 0.
42813 2012-02-04  Bruno Haible  <bruno@clisp.org>
42815         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42816         * tests/test-spawn-pipe-main.c: Include progname.h.
42817         (main): Invoke set_program_name.
42818         * modules/spawn-pipe-tests (Depends-on): Add progname.
42820         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42821         * tests/test-nonblocking-socket-main.c: Include progname.h.
42822         (main): Invoke set_program_name.
42823         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42825         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42826         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42827         (main): Invoke set_program_name.
42828         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42830 2012-02-04  Eric Blake  <eblake@redhat.com>
42832         canonicalize-lgpl: fix // handling
42833         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42835         canonicalize: fix // handling
42836         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42837         /// to //, since only // is special.
42839 2012-02-04  Bruno Haible  <bruno@clisp.org>
42841         ioctl: Fix test failure on native Windows.
42842         * lib/ioctl.c: Include msvc-nothrow.h.
42843         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42845 2012-02-04  Bruno Haible  <bruno@clisp.org>
42847         fsync: Avoid test failure on native Windows.
42848         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42849         read-only.
42851 2012-02-04  Bruno Haible  <bruno@clisp.org>
42853         sys_select: Avoid syntax error on OpenBSD 5.0.
42854         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42855         currently being included, just include the system's <sys/select.h>.
42857 2012-02-04  Bruno Haible  <bruno@clisp.org>
42859         sys_select: Avoid syntax error on OpenBSD 5.0.
42860         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42861         <sys/select.h>, not before.
42862         Reported by Jiri B <jirib@devio.us>.
42864 2012-02-04  Bruno Haible  <bruno@clisp.org>
42866         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42867         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42868         global variables.
42869         * tests/test-get-rusage-data.c (main): Likewise.
42870         Reported by Jim Meyering.
42872 2012-02-04  Bruno Haible  <bruno@clisp.org>
42874         stdioext: Fix last commit.
42875         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42877 2012-02-03  Bruno Haible  <bruno@clisp.org>
42879         stdioext: Add tentative support for Plan9.
42880         * lib/stdio-impl.h: Include <errno.h>.
42881         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42882         * lib/freadable.c (freadable): Likewise.
42883         * lib/fwritable.c (fwritable): Likewise.
42884         * lib/fbufmode.c (fbufmode): Likewise.
42885         * lib/freading.c (freading): Likewise.
42886         * lib/fwriting.c (fwriting): Likewise.
42887         * lib/freadptr.c (freadptr): Likewise.
42888         * lib/freadseek.c (freadptrinc): Likewise.
42889         * lib/freadahead.c (freadahead): Likewise.
42890         * lib/fpurge.c (fpurge): Likewise.
42891         * lib/fseeko.c (rpl_fseeko): Likewise.
42892         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42893         Reported by Jens Staal <staal1978@gmail.com>.
42895 2012-02-02  Jim Meyering  <meyering@redhat.com>
42897         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42898         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42899         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42900         not even to try to add the attribute.  Instead, add a pragma to suppress
42901         the suggestion/warning.
42903 2012-01-31  Karl Berry  <karl@gnu.org>
42905         setstate doc: typo.
42906         * doc/posix-functions/setstate.texi (setstate): { not (.
42908 2012-01-31  Bruno Haible  <bruno@clisp.org>
42910         popen: Make more robust on Windows.
42911         * lib/popen.c: On native Windows, use the _popen based code even if
42912         HAVE_POPEN is set.
42913         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42914         environment variable on native Windows.
42916 2012-01-30  Bruno Haible  <bruno@clisp.org>
42918         pclose: Fix typo.
42919         * lib/stdio.in.h (pclose): Fix typo in warning message.
42921 2012-01-30  Bruno Haible  <bruno@clisp.org>
42923         doc about getlogin_r, setstate.
42924         * doc/posix-functions/getlogin_r.texi: List the incompatible
42925         declaration problem under "not fixed by gnulib".
42926         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42927         problem on Solaris 11 and other platforms.
42929 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42930             Bruno Haible  <bruno@clisp.org>
42932         poll tests: Make test more robust.
42933         * tests/test-poll.c: Include macros.h.
42934         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42935         return value of various I/O operations.
42936         * modules/poll-tests (Files): Add tests/macros.h.
42938 2012-01-30  Bruno Haible  <bruno@clisp.org>
42940         sys_stat: Fix support for mingw64 and MSVC.
42941         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42942         header files already do it.
42943         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42944         stat itself.
42945         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42947 2012-01-30  Bruno Haible  <bruno@clisp.org>
42949         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42950         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42951         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42953 2012-01-29  Bruno Haible  <bruno@clisp.org>
42955         quotearg: Fix test failure on MacOS X 10.5.
42956         * tests/test-quotearg-simple.c: Include localcharset.h.
42957         (main): If the locale encoding is not ASCII, bypass the tests of
42958         locale_quoting_style and clocale_quoting_style.
42959         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42961 2012-01-29  Jim Meyering  <meyering@redhat.com>
42963         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42964         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42965         detect uses of canonicalize_file_name.
42967 2012-01-28  Bruno Haible  <bruno@clisp.org>
42969         test-framework-sh: Fix test failure with AIX 7.1 diff.
42970         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42971         in column 1, like 'diff -c' does.
42972         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42973         whether 'diff -u' is used. Instead, test whether the output contains
42974         some '@' character.
42976 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42978         strtoimax: eliminate need for stdint.h, inttypes.h checks
42979         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42980         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42981         the prerequisites for a recently-introduced strtoimax test.
42982         I guess this might cause strtoimax to be replaced when not
42983         strictly necessary on older hosts, but this shouldn't introduce
42984         any bugs and it should make Emacs 'configure' faster on typical
42985         modern hosts.  Problem discovered when importing the latest gnulib
42986         to an Emacs test version.
42987         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42989 2012-01-28  Bruno Haible  <bruno@clisp.org>
42991         sys_time: Override 'struct timeval' on some native Windows platforms.
42992         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42993         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42994         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42995         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42996         needs to be overridden.
42997         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42998         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42999         * tests/test-sys_select.c: Check that the tv_sec member has the same
43000         size as a 'time_t'.
43001         * tests/test-sys_time.c: Likewise.
43002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
43003         is set, set also REPLACE_GETTIMEOFDAY.
43004         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
43005         convert the resulting 'struct timeval' before returning.
43006         * lib/select.c: Include <sys/time.h>.
43007         (select, timeval): Undefine at the right place.
43008         * modules/select (Depends-on): Add sys_time.
43009         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
43010         some Windows platforms.
43011         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43013 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43015         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
43016         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
43017         an integer.
43018         * lib/fcntl.c (dupfd): Likewise.
43019         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
43021 2012-01-28  Bruno Haible  <bruno@clisp.org>
43023         fcntl: Avoid compilation error on native Windows.
43024         * modules/fcntl (Depends-on): Add 'close'.
43026 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43028         select, poll, isatty: Avoid warnings on x86_64 mingw64.
43029         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
43030         pointer to an integer.
43031         * lib/poll.c (IsConsoleHandle): Likewise.
43032         * lib/isatty.c (IsConsoleHandle): Likewise.
43034 2012-01-28  Jim Meyering  <meyering@redhat.com>
43036         doc: clarify README-release
43037         * top/README-release: Clarify: you should make a point to have
43038         the latest stable versions of build tools in your PATH, and the
43039         reference to buildreq is solely for its list of tool names, not
43040         for its minimal-functional version numbers.
43041         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
43043         maint.mk: use more readable (yet functionally equivalent) quoting
43044         It is common to quote a single quote in a single quoted string like
43045         this:  '...'\''...'.  Unless you know the idiom, that looks like
43046         gibberish, so prefer to double-quote the string when possible.
43047         Then you can use a more readable, lone single quote: "...'..."
43048         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
43049         "don't" is more readable than the equivalent 'don'\''t'.
43050         (sc_cast_of_x_alloc_return_value): Likewise.
43051         (sc_cast_of_alloca_return_value): Likewise.
43052         (sc_makefile_path_separator_check): Similar: use ":" in '...',
43053         rather than '\'':'\''.
43055 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43057         stdalign: relax _Alignof and tighten _Alignas test
43058         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
43059         as it was too strict: alignof must divide offsetof, but it need
43060         not equal offsetof.  Inspired by Joseph S. Myers's comment
43061         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
43062         Conversely, tighten the _Alignas test a bit, as the resulting
43063         alignment must be exactly 8.
43065 2012-01-27  Bruno Haible  <bruno@clisp.org>
43067         stdalign: Document the last change.
43068         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
43070 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43072         stdalign: check that alignof and offsetof are consistent
43073         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
43074         Problem reported for gnulib by Richard W.M. Jones in
43075         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
43077 2012-01-27  Jim Meyering  <meyering@redhat.com>
43079         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
43080         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
43081         convert a sequence with gaps to the minimal containing range.
43082         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
43083         * tests/test-update-copyright.sh: Test for this.
43084         The FSF confirmed it is ok to do this, assuming there is at
43085         least one significant change per year in the affected range:
43086         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
43088 2012-01-26  Bruno Haible  <bruno@clisp.org>
43090         pipe2: refine doc about thread-safety
43091         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
43092         multithread-safety problem.
43093         * doc/glibc-functions/accept4.texi: Likewise.
43095 2012-01-26  Bruno Haible  <bruno@clisp.org>
43097         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
43098         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
43099         In the test program, include <fcntl.h>, for O_RDONLY.
43101 2012-01-26  Eric Blake  <eblake@redhat.com>
43103         pipe2: document lack of thread-safety in replacement
43104         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
43105         issue in replacement.
43106         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43107         Based on a report by Eric Wong.
43109 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43110             Bruno Haible  <bruno@clisp.org>
43112         malloca: Avoid warnings on x86_64 mingw64.
43113         * lib/malloca.c: Include <stdint.h>.
43114         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
43115         * modules/malloca (Depends-on): Add stdint.
43116         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
43118 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43120         obstack: remove __STDC__ conditionals
43121         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
43122         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
43123         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
43124         m4/include_next.m4 as the only gnulib-maintained places that still
43125         refer to __STDC__.
43127 2012-01-24  Bruno Haible  <bruno@clisp.org>
43129         havelib: Modern quoting.
43130         * build-aux/config.rpath: Quote 'like this', not `like this', as per
43131         the recent change to the GNU coding standards.
43133 2012-01-24  Bruno Haible  <bruno@clisp.org>
43135         stdint: Improve support for Android.
43136         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
43137         Reported by Simon Josefsson <simon@josefsson.org>.
43139 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43141         doc: omit trailing empty lines from INSTALL etc.
43142         * doc/Makefile (INSTALL): Omit trailing empty lines.
43143         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
43144         omit trailing empty lines.  This simplifies the build procedure.
43146 2012-01-23  Jim Meyering  <meyering@redhat.com>
43148         tests: avoid spurious warnings about gl_sockets_startup
43149         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
43150         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43151         reporting a "statement with no effect".
43152         * tests/test-accept.c (main): Mark as "(void)".
43153         * tests/test-accept4.c (main): Likewise.
43154         * tests/test-bind.c (main): Likewise.
43155         * tests/test-connect.c (main): Likewise.
43156         * tests/test-getpeername.c (main): Likewise.
43157         * tests/test-getsockname.c (main): Likewise.
43158         * tests/test-getsockopt.c (main): Likewise.
43159         * tests/test-listen.c (main): Likewise.
43160         * tests/test-recv.c (main): Likewise.
43161         * tests/test-recvfrom.c (main): Likewise.
43162         * tests/test-send.c (main): Likewise.
43163         * tests/test-sendto.c (main): Likewise.
43164         * tests/test-setsockopt.c (main): Likewise.
43165         * tests/test-shutdown.c (main): Likewise.
43167 2012-01-21  Bruno Haible  <bruno@clisp.org>
43169         locale-fr.m4: Fix for Android.
43170         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
43171         failure of the test program on Bionic libc.
43173 2012-01-21  Jim Meyering  <meyering@redhat.com>
43175         bootstrap: fail when bootstrap_post_import_hook fails
43176         Otherwise, it's far too easy to miss diagnostics emitted
43177         between gnulib-tool's output and that of running configure.
43178         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
43180 2012-01-17  Jim Meyering  <meyering@redhat.com>
43182         maint: enable sc_trailing_blank
43183         * build-aux/pmccabe.css: Remove trailing blanks.
43184         * doc/acl-cygwin.txt: Likewise.
43185         * doc/gnu-oids.texi: Likewise
43186         * cfg.mk: Enable sc_trailing_blank.
43187         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
43189 2012-01-17  Jim Meyering  <meyering@redhat.com>
43191         maint: enable sc_prohibit_openat_without_use
43192         * cfg.mk: Enable sc_prohibit_openat_without_use.
43193         Exempt lib/selinux-at.c.
43195 2012-01-17  Jim Meyering  <meyering@redhat.com>
43197         maint: enable sc_prohibit_cloexec_without_use
43198         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
43199         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
43201 2012-01-17  Jim Meyering  <meyering@redhat.com>
43203         maint: enable sc_prohibit_intprops_without_use
43204         * cfg.mk: Enable sc_prohibit_intprops_without_use
43205         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
43207 2012-01-17  Jim Meyering  <meyering@redhat.com>
43209         maint: enable sc_prohibit_hash_pjw_without_use
43210         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
43211         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
43212         to match any use of \<hash_pjw\>, i.e., not necessarily with a
43213         following " (".
43215 2012-01-17  Jim Meyering  <meyering@redhat.com>
43217         maint: enable double-word-prohibiting rule
43218         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
43219         Exempt three files.
43221 2012-01-17  Jim Meyering  <meyering@redhat.com>
43223         maint: remove empty lines at EOF, but excluding modules/*
43224         Apply syntax rules at home as well as abroad.  Most changes
43225         were induced by running this:
43226           make srcdir=. _build-aux=build-aux -f top/maint.mk \
43227             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
43228             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
43229         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
43230         Exempt modules/* and two binary files.
43231         Also exempt doc/INSTALL*, per request from Bruno Haible.
43232         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
43233         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
43234         * doc/Copyright/request-assign.future: Likewise.
43235         * doc/Copyright/request-disclaim.changes: Likewise.
43236         * doc/INSTALL: Likewise.
43237         * doc/INSTALL.ISO: Likewise.
43238         * doc/INSTALL.UTF-8: Likewise.
43239         * doc/acl-cygwin.txt: Likewise.
43240         * doc/acl-resources.txt: Likewise.
43241         * doc/fdl-1.2.texi: Likewise.
43242         * doc/fdl-1.3.texi: Likewise.
43243         * doc/fdl.texi: Likewise.
43244         * lib/argp-pin.c: Likewise.
43245         * lib/round.c: Likewise.
43246         * lib/unicase/u16-totitle.c: Likewise.
43247         * lib/unictype/block_test.c: Likewise.
43248         * lib/uninorm/canonical-decomposition.c: Likewise.
43249         * m4/README: Likewise.
43250         * m4/relocatable-lib.m4: Likewise.
43251         * tests/test-isnand-nolibm.c: Likewise.
43252         * tests/test-isnand.c: Likewise.
43253         * tests/uninorm/NormalizationTest.txt: Likewise.
43255 2012-01-17  Jim Meyering  <meyering@redhat.com>
43257         maint: add framework to run syntax-check rules against gnulib sources
43258         * cfg.mk: New file, to disable all currently-failing tests.
43259         We'll enable them one by one, as they are made to pass.
43260         * Makefile (sc_maint): New rule.
43262 2012-01-21  Bruno Haible  <bruno@clisp.org>
43264         stdint: Add support for Android.
43265         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
43266         include the system's <stdint.h>.
43267         Reported by Simon Josefsson <simon@josefsson.org>.
43269 2012-01-19  Jim Meyering  <meyering@redhat.com>
43271         bootstrap: add bootstrap_post_import_hook
43272         Bison does still need something like the gnulib_mk_hook whose
43273         invocation I had to remove along with slurp in commit 767ccd40.
43274         Technically, we could get along without it, but doing so would
43275         have required living with a warning and a mandatory post-bootstrap
43276         automake rerun.
43277         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
43278         (bootstrap_post_import_hook): New function.
43279         Invoke it after gnulib-tool --import and before autoreconf.
43281 2012-01-18  Jim Meyering  <meyering@redhat.com>
43283         gitlog-to-changelog: don't use "no_"-prefixed variable name
43284         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
43285         to enable both --cluster and --no-cluster.  Change variable name,
43286         s/\$no_cluster/$cluster/, and reverse usage to match.
43288         gitlog-to-changelog: use "||", not "or" in expressions
43289         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
43290         expressions.
43292 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
43294         gitlog-to-changelog: new option --no-cluster
43295         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
43296         clustering of adjacent commit messages.
43298 2012-01-17  Jim Meyering  <meyering@redhat.com>
43300         maint: spell file systems with two words, not one
43301         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
43302         two words, not one.
43304 2012-01-16  Jim Meyering  <meyering@redhat.com>
43306         bootstrap: add a FIXME comment to ensure we eventually remove the hack
43307         * build-aux/bootstrap (gnulib_tool_options): Add comment.
43309 2012-01-16  Eric Blake  <eblake@redhat.com>
43311         bootstrap: cater to autoconf 2.59
43312         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
43313         is not available.
43315         bootstrap: properly check for libtool
43316         * build-aux/bootstrap (libtoolize): Also run libtool when older
43317         usage is detected.
43319 2012-01-15  Bruno Haible  <bruno@clisp.org>
43321         Improve support for MSVC 9.
43322         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
43323         clashes on MSVC.
43324         * lib/fcntl.in.h: Likewise.
43325         * lib/stdlib.in.h: Likewise.
43326         * lib/sys_stat.in.h: Likewise.
43328 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
43330         gnupload: we hold the master copy of this script now
43331         For motivation and more information, see:
43332         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
43333         * build-aux/gnupload: Make it clear in the heading comments that the
43334         master copy of this file is maintained by gnulib.  Since we are at
43335         it, bump its copyright year and ...
43336         ($scriptversion): ... the date in its version.
43337         ($usage): Patches and bug reports should be sent to the gnulib list,
43338         not the automake one.
43339         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43340         anymore.
43342 2012-01-15  Bruno Haible  <bruno@clisp.org>
43344         Fix module 'random'.
43345         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
43346         initstate, setstate are declared.
43348 2012-01-14  Bruno Haible  <bruno@clisp.org>
43350         Tests for module 'random'.
43351         * modules/random-tests: New file.
43352         * tests/test-random.c: New file, based on tests/test-random_r.c.
43354         New module 'random'.
43355         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
43356         declarations.
43357         * lib/random.c: New file, based on glibc/stdlib/random.c.
43358         * m4/random.m4: New file.
43359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
43360         HAVE_RANDOM.
43361         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43362         * modules/random: New file.
43363         * config/srclist.txt: Add an entry for random.c.
43364         * doc/posix-functions/random.texi: Mention the 'random' module.
43365         * doc/posix-functions/initstate.texi: Likewise.
43366         * doc/posix-functions/setstate.texi: Likewise.
43367         * doc/posix-functions/srandom.texi: Likewise.
43369 2012-01-12  Bruno Haible  <bruno@clisp.org>
43371         random_r: Use common idioms.
43372         * lib/random_r.c: Include <stdlib.h> first.
43374         random_r: Override incompatible API on AIX, OSF/1.
43375         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43376         Override the system function if REPLACE_RANDOM_R is 1.
43377         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43378         and OSF/1, set REPLACE_RANDOM_R.
43379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43380         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43381         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43382         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43383         * doc/glibc-functions/random_r.texi: Likewise.
43384         * doc/glibc-functions/setstate_r.texi: Likewise.
43386         random_r: Support for MSVC 9.
43387         * lib/random_r.c: Include stdint.h, not inttypes.h.
43389 2012-01-12  Eric Blake  <eblake@redhat.com>
43391         inet_ntop: guard extra work by IF_LINT
43392         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43393         better code generation when not checking for warnings.
43394         Suggested by Paul Eggert and Jim Meyering.
43396         strptime: fix regression on mingw
43397         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43398         Fix regression.  Reported by Bruno Haible.
43400 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43401             Bruno Haible  <bruno@clisp.org>
43403         copy-file: add error-code-returning variant.
43404         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43405         (qcopy_file_preserving): New declaration.
43406         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43407         copy_file_preserving. Change return type to 'int'. Don't emit an error
43408         message here.
43409         (copy_file_preserving): New function.
43410         * tests/test-copy-file.c: Include <stdlib.h>.
43411         (main): Test qcopy_file_preserving if the environment variable
43412         NO_STDERR_OUTPUT is set.
43413         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43414         with NO_STDERR_OUTPUT
43415         * tests/test-copy-file-2.sh: Likewise.
43417 2012-01-10  Bruno Haible  <bruno@clisp.org>
43419         copy-file: Use 'quote' module consistently.
43420         * lib/copy-file.c (copy_file_preserving): Use quote().
43422         copy-file: Refactor.
43423         * lib/copy-file.c: Include quote.h.
43424         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43425         message here.
43426         * modules/copy-file (Depends-on): Add quote.
43428         acl: Export qcopy_acl.
43429         * lib/acl.h (qcopy_acl): New declaration.
43430         * lib/copy-acl.c (qcopy_acl): Make non-static.
43432         acl: Rename a local variable.
43433         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43435         acl: Align return values of copy_acl and qcopy_acl.
43436         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43437         maybe < -1.
43439 2012-01-11  Eric Blake  <eblake@redhat.com>
43441         strptime: silence gcc warnings
43442         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43443         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43444         Reported by Daniel P. Berrange.
43446         inet_ntop: silence gcc warning
43447         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43448         Reported by Daniel P. Berrange.
43450 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43452         getloadavg test: skip the test on GNU/Linux without /proc mounted
43453         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43454         file.  When /proc is not mounted, it always fails with ENOENT.
43455         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43456         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43458 2012-01-10  Bruno Haible  <bruno@clisp.org>
43460         regex: Avoid link error on MSVC 9.
43461         * modules/regex (Depends-on): Add wctype.
43463 2012-01-10  Bruno Haible  <bruno@clisp.org>
43465         doc: Mention --with-tests option.
43466         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43467         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43468         --with-tests.
43469         Reported by Reuben Thomas.
43471 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
43473         users.txt: order package names lexicographically.
43474         * users.txt: Order package names lexicographically.
43476 2012-01-10  Jim Meyering  <meyering@redhat.com>
43478         maint.mk: fix description in comment
43479         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
43481         ignore-value: remove deprecated ignore_ptr function
43482         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
43483         * NEWS: Note this.
43485 2012-01-09  Jim Meyering  <meyering@redhat.com>
43487         test-init.sh: avoid a subshell
43488         * tests/test-init.sh: Remove protective subshell.
43489         Suggested by Bernhard Voelker.  While a subshell is normally
43490         required to protect against older shells (Solaris, FreeBSD) that
43491         warn about a missing program before performing redirection, the
43492         shell-selection tests performed by init.sh probably exclude any
43493         offending shell.
43495 2012-01-08  Bruno Haible  <bruno@clisp.org>
43497         setlocale tests: Avoid test failure on Solaris 11.0.
43498         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
43499         variable.
43501 2012-01-08  Bruno Haible  <bruno@clisp.org>
43503         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
43504         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43505         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43506         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
43507         macro.
43508         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
43509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43510         * lib/spawn_faction_addopen.c: Add workaround implementation if
43511         HAVE_WORKING_POSIX_SPAWN.
43512         * modules/spawn (Makefile): Substitute
43513         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43514         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
43515         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
43516         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43517         (Depends-on): Update conditions.
43518         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43519         the Solaris 11 bug.
43521 2012-01-08  Bruno Haible  <bruno@clisp.org>
43523         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
43524         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43525         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43526         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
43527         macro.
43528         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
43529         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43530         * lib/spawn_faction_adddup2.c: Add workaround implementation if
43531         HAVE_WORKING_POSIX_SPAWN.
43532         * modules/spawn (Makefile): Substitute
43533         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43534         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
43535         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
43536         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43537         (Depends-on): Update conditions.
43538         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43539         the Solaris 11 bug.
43541 2012-01-08  Bruno Haible  <bruno@clisp.org>
43543         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
43544         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43545         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43546         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
43547         HAVE_WORKING_POSIX_SPAWN.
43548         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
43549         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
43550         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43551         * lib/spawn_faction_addclose.c: Add workaround implementation if
43552         HAVE_WORKING_POSIX_SPAWN.
43553         * modules/spawn (Makefile): Substitute
43554         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43555         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
43556         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
43557         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43558         (Depends-on): Update conditions.
43559         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43560         the Solaris 11 bug.
43562 2012-01-08  Bruno Haible  <bruno@clisp.org>
43564         doc: Update for Solaris 11.0.
43565         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
43566         * m4/printf.m4: Update comments.
43568 2012-01-08  Bruno Haible  <bruno@clisp.org>
43570         mktime: Avoid compilation error on Solaris 11.
43571         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
43573 2012-01-08  Bruno Haible  <bruno@clisp.org>
43575         doc: Small fix.
43576         * doc/posix-headers/nl_types.texi: Correct platforms list.
43578 2012-01-08  Simon Josefsson  <simon@josefsson.org>
43580         Add lgpl-3.0 module.
43581         * MODULES.html.sh (Support for building documentation): Add
43582         lgpl-3.0.
43583         * modules/lgpl-3.0: New file.
43585 2012-01-08  Jim Meyering  <meyering@redhat.com>
43587         select.c: indent with spaces, not TABs
43588         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
43590 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43592         quotearg: do not use grave accent for left quote
43593         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
43594         locale_quoting_style.
43595         (quotearg_buffer_restyled): Fix example.
43596         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
43598 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43600         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
43601         Most programs do not have translation catalogs for English and much
43602         less separate catalogs for British and American English.  Drop the
43603         suggestion to translators about these two, and provide it
43604         automatically for Unicode locales.  Like most programs, even those
43605         using American English, we use single quotation marks.  This conflicts
43606         with the American typographic convention, but works better when you
43607         cite the entire error message within double quotes.  It also tries not
43608         to clash with established practice and with what non-gnulib programs
43609         will usually do.
43610         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43611         using an UTF-8 or GB-18030 locale.  The list of other locales with
43612         quotes was provided by Bruno Haible.
43613         (quotearg_buffer_restyled): Adjust instructions to translators.
43614         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43615         text, since this would be wrong when using Unicode.
43616         * modules/quotearg: Depend on c-strcaseeq.
43618 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43620         quotearg: fix Wikipedia link
43621         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
43623 2012-01-07  Simon Josefsson  <simon@josefsson.org>
43625         Fix for mingw with MSVC9.
43626         * m4/ld-version-script.m4: Check that compiler rejects version
43627         scripts with syntax errors.  Reported by Bruno Haible
43628         <bruno@clisp.org>.
43630 2012-01-06  Bruno Haible  <bruno@clisp.org>
43632         Talk about "native Windows API", not "Woe32".
43633         * lib/accept4.c: Update comments to mention native Windows.
43634         * lib/execute.c: Likewise.
43635         * lib/fatal-signal.c: Likewise.
43636         * lib/localcharset.c: Likewise.
43637         * lib/nanosleep.c: Likewise.
43638         * lib/nl_langinfo.c: Likewise.
43639         * lib/pclose.c: Likewise.
43640         * lib/pipe-filter-gi.c: Likewise.
43641         * lib/pipe-filter-ii.c: Likewise.
43642         * lib/pipe.c: Likewise.
43643         * lib/pipe2.c: Likewise.
43644         * lib/popen.c: Likewise.
43645         * lib/progreloc.c: Likewise.
43646         * lib/relocatable.c: Likewise.
43647         * lib/sigaction.c: Likewise.
43648         * lib/sigprocmask.c: Likewise.
43649         * lib/spawn-pipe.h: Likewise.
43650         * lib/spawn-pipe.c: Likewise.
43651         * lib/spawni.c: Likewise.
43652         * lib/stat-time.h: Likewise.
43653         * lib/w32spawn.h: Likewise.
43654         * tests/test-isatty.c: Likewise.
43655         * lib/config.charset: More comments.
43656         * doc/gnulib-intro.texi: Mention native Windows.
43657         * doc/posix-functions/_Exit_C99.texi: Likewise.
43658         * doc/posix-headers/fcntl.texi: Likewise.
43660 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
43662         argp: Avoid crash if translator uses % characters in a translation.
43663         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
43664         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43666 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
43668         doc: C11 and C++11 are now official
43669         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
43670         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
43671         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
43672         * modules/stdalign:
43673         Replace references to draft C1X to C11, and to draft C++0X to C++11.
43675 2012-01-06  Bruno Haible  <bruno@clisp.org>
43677         uc-is-grapheme-break tests: Tweak.
43678         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
43679         message.
43681 2012-01-06  Bruno Haible  <bruno@clisp.org>
43683         test-init.sh: correct the test for diff -u
43684         * tests/test-init.sh: Also redirect stdout to /dev/null.
43686 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43688         Use ', not `, for quoting output.
43689         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43690         (print_changelog_deltas, get_tool_versions, main program):
43691         * build-aux/git-version-gen:
43692         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43693         * build-aux/move-if-change (help):
43694         * build-aux/useless-if-before-free (usage, main program):
43695         * check-module (parse_module_file, usage)
43696         (find_included_lib_files, check_module):
43697         * lib/argmatch.c (main) [TEST]:
43698         * lib/argp-help.c (_help):
43699         * lib/getopt1.c (main) [TEST]:
43700         * lib/git-merge-changelog.c (usage):
43701         * lib/xstrtol-error.c (xstrtol_error):
43702         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43703         * m4/argz.m4 (gl_FUNC_ARGZ):
43704         * m4/bison.m4 (gl_BISON):
43705         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43706         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43707         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43708         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43709         * m4/gc-random.m4 (gl_GC_RANDOM):
43710         * m4/intl.m4 (gt_CHECK_DECL):
43711         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43712         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43713         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43714         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43715         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43716         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43717         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43718         * tests/test-dirname.c (main):
43719         * tests/test-getpass.c (main):
43720         * tests/test-iconvme.c (main):
43721         * tests/test-parse-datetime.c (LOG):
43722         * tests/test-xstrtoimax.sh:
43723         * tests/test-xstrtol.sh:
43724         * tests/test-xstrtoll.sh:
43725         * tests/test-xstrtoumax.sh:
43726         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43727         * top/GNUmakefile (abort-due-to-no-makefile):
43728         Quote 'like this', not `like this', as per the recent change to
43729         the GNU coding standards.
43731 2012-01-05  Bruno Haible  <bruno@clisp.org>
43733         strtoimax: Don't force a replacement on systems where intmax_t is int.
43734         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43735         'intmax_t' is not larger than 'int'.
43736         Reported by Pádraig Brady <P@draigBrady.com>.
43738 2012-01-05  Bruno Haible  <bruno@clisp.org>
43740         doc: Mention NetBSD bugs.
43741         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43742         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43744 2012-01-05  Bruno Haible  <bruno@clisp.org>
43746         strtoumax tests: Enhance tests.
43747         * tests/test-strtoumax.c (main): Add tests for large values.
43749 2012-01-05  Bruno Haible  <bruno@clisp.org>
43751         strtoimax: Work around AIX 5.1 bug.
43752         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43753         definition.
43754         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43755         Set HAVE_STRTOIMAX.
43756         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43757         REPLACE_STRTOIMAX.
43758         * modules/inttypes-incomplete (Makefile.am): Substitute
43759         REPLACE_STRTOIMAX.
43760         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43761         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43762         (Depends-on): Update conditions.
43763         * tests/test-strtoimax.c (main): Add tests for large values.
43764         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43766 2012-01-05  Bruno Haible  <bruno@clisp.org>
43768         inttypes: Modernize.
43769         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43770         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43771         (Makefile.am): Update inttypes.h rule.
43773 2012-01-05  Jim Meyering  <meyering@redhat.com>
43775         init.sh: don't waste a subshell just to redirect stderr
43776         * tests/init.sh: In testing for diff -u and diff -c, use a
43777         stderr-redirecting exec inside `...` rather than a subshell.
43779         test-init.sh: avoid failure on HP-UX 11.00
43780         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43781         resolves to diff -c or cmp.  Reported by Bruno Haible.
43783 2012-01-05  Bruno Haible  <bruno@clisp.org>
43785         Tests for module 'strtoull'.
43786         * modules/strtoull-tests: New file.
43787         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43789 2012-01-05  Bruno Haible  <bruno@clisp.org>
43791         Tests for module 'strtoll'.
43792         * modules/strtoll-tests: New file.
43793         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43795 2012-01-05  Bruno Haible  <bruno@clisp.org>
43797         Tests for module 'strtoul'.
43798         * modules/strtoul-tests: New file.
43799         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43801 2012-01-05  Bruno Haible  <bruno@clisp.org>
43803         Tests for module 'strtol'.
43804         * modules/strtol-tests: New file.
43805         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43807 2012-01-04  Jim Meyering  <meyering@redhat.com>
43809         test-init.sh: accommodate Solaris 5.10's different diff -u output
43810         * tests/test-init.sh: Also exempt @@ lines from the comparison
43811         of diff output, since Solaris 5.10 and GNU diff formats differ.
43812         Reported by Stefano Lattarini.
43814 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43816         test-posixtm: don't assume signed integer wraparound
43817         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43818         after signed integer overflow.  Inspired by (though it may not
43819         fix) Bruno Haible's bug report in
43820         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43822         Spell out "Windows 9x" and "Windows XP".
43823         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43824         "Windows 9x" and "WinXP" with "Windows XP".
43826 2012-01-04  Jim Meyering  <meyering@redhat.com>
43828         test-vc-list-files-cvs.sh: remove obsolete comment
43829         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43830         double exit.  Now that's all encapsulated via skip_ and Exit.
43832 2012-01-04  Bruno Haible  <bruno@clisp.org>
43834         Talk about "native Windows API", not "Win32".
43835         * lib/classpath.c: Update comments to mention native Windows.
43836         * lib/csharpexec.c: Likewise.
43837         * lib/dup2.c: Likewise.
43838         * lib/error.c: Likewise.
43839         * lib/fcntl.c: Likewise.
43840         * lib/filename.h: Likewise.
43841         * lib/findprog.c: Likewise.
43842         * lib/get-rusage-as.c: Likewise.
43843         * lib/get-rusage-data.c: Likewise.
43844         * lib/getpagesize.c: Likewise.
43845         * lib/javaexec.c: Likewise.
43846         * lib/msvc-inval.c: Likewise.
43847         * lib/msvc-nothrow.c: Likewise.
43848         * lib/nanosleep.c: Likewise.
43849         * lib/nonblocking.c: Likewise.
43850         * lib/printf-parse.c: Likewise.
43851         * lib/setlocale.c: Likewise.
43852         * lib/sigaction.c: Likewise.
43853         * lib/strerror_r.c: Likewise.
43854         * lib/tmpdir.c: Likewise.
43855         * lib/vasnprintf.c: Likewise.
43856         * lib/w32spawn.h: Likewise.
43857         * lib/waitpid.c: Likewise.
43858         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43859         * m4/locale-ar.m4: Likewise.
43860         * m4/locale-fr.m4: Likewise.
43861         * m4/locale-ja.m4: Likewise.
43862         * m4/locale-tr.m4: Likewise.
43863         * m4/locale-zh.m4: Likewise.
43864         * m4/printf.m4: Likewise.
43865         * tests/test-cloexec.c: Likewise.
43866         * tests/test-copy-acl.sh: Likewise.
43867         * tests/test-copy-file.sh: Likewise.
43868         * tests/test-file-has-acl.sh: Likewise.
43869         * tests/test-set-mode-acl.sh: Likewise.
43870         * tests/test-dup-safer.c: Likewise.
43871         * tests/test-dup2.c: Likewise.
43872         * tests/test-dup3.c: Likewise.
43873         * tests/test-fcntl.c: Likewise.
43874         * tests/test-nonblocking-pipe.h: Likewise.
43875         * tests/test-nonblocking-socket.h: Likewise.
43876         * tests/test-pipe.c: Likewise.
43877         * tests/test-pipe2.c: Likewise.
43878         * tests/test-spawn-pipe-child.c: Likewise.
43879         * doc/acl-resources.txt: Likewise.
43880         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43881         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43882         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43883         * lib/localcharset.c: Update comments to mention native Windows.
43884         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43885         * lib/localename.c: Likewise.
43886         * lib/progreloc.c: Likewise.
43887         * lib/relocatable.c: Likewise.
43888         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43889         (windows_compute_revents): Renamed from win32_compute_revents.
43890         (windows_compute_revents_socket): Renamed from
43891         win32_compute_revents_socket.
43892         * lib/select.c: Update comments to mention native Windows.
43893         (windows_poll_handle): Renamed from win32_poll_handle.
43894         * m4/threadlib.m4: Update comments to mention native Windows.
43895         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43896         --enable-threads=windows instead of --enable-threads=win32. Set
43897         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43898         * lib/glthread/lock.h: Update comments to mention native Windows.
43899         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43900         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43901         USE_WIN32_THREADS.
43902         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43903         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43904         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43905         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43906         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43907         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43908         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43909         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43910         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43911         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43912         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43913         * tests/test-tls.c: Likewise.
43914         Rationale:
43915         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43916         on both 32-bit and 64-bit Windows systems.
43917         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43918         line of distinction is between "native Windows" on one side and Unix/
43919         POSIX systems on the other side. More details in
43920         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43921         Suggested by Paul Eggert.
43923 2012-01-03  Bruno Haible  <bruno@clisp.org>
43925         isatty: Support for MSVC 9.
43926         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43927         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43928         (_isatty_nothrow): New function.
43929         (isatty): Use it instead of _isatty.
43930         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43931         * lib/poll.c (IsConsoleHandle): Likewise.
43932         * lib/select.c (IsConsoleHandle): Likewise.
43933         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43934         (gl_PREREQ_ISATTY): New macro.
43935         * modules/isatty (Depends-on): Add msvc-inval.
43936         (configure.ac): Invoke gl_PREREQ_ISATTY.
43938 2012-01-03  Jim Meyering  <meyering@redhat.com>
43940         maint.mk: remove temporary transition aid from over 1.5 years ago
43941         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43942         purpose was to aid in the transition (avoiding silent malfunction)
43943         from that old name to the new _sc_search_regexp.  This shim was
43944         added by commit 219c504b.
43946         init.sh: do not try to accommodate compare arguments starting with "-"
43947         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43948         compare arguments that start with "-".  Besides, we do not worry
43949         about this when invoking diff or cmp; why start now with sed?
43950         Using "--" to separate options from argument would trigger sed
43951         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43952         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43954 2012-01-02  Bruno Haible  <bruno@clisp.org>
43956         Enhance tests for module 'isatty'.
43957         * modules/isatty-tests (Depends-on): Add pipe-posix.
43958         * tests/test-isatty.c: Include <fcntl.h>.
43959         (DEV_NULL): New macro.
43960         (main): Test the resut of isatty() also on regular files, pipes, and
43961         /dev/null.
43963         New module 'isatty'.
43964         * lib/unistd.in.h (isatty): New declaration.
43965         * lib/isatty.c: New file, based on an idea of
43966         Bastien Roucariès <roucaries.bastien@gmail.com>.
43967         * m4/isatty.m4: New file.
43968         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43969         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43970         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43971         REPLACE_ISATTY.
43972         * modules/isatty: New file.
43973         * doc/posix-functions/isatty.texi: Mention the new module.
43974         Suggested by Paolo Bonzini.
43976 2012-01-02  Bruno Haible  <bruno@clisp.org>
43978         canonicalize: Tweak 2011-12-29 commit.
43979         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43980         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43982 2012-01-02  Jim Meyering  <meyering@redhat.com>
43984         gitlog-to-changelog: describe input syntax in --help output
43985         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43987         gitlog-to-changelog: fix typo in --help: show backslash before email @
43988         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43989         in sources, but not in actual output.
43991 2011-12-30  Jim Meyering  <meyering@redhat.com>
43993         gitlog-to-changelog: don't malfunction when name contains %-directive
43994         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43995         in a name string cause trouble.  E.g., with a user name of "%s",
43996         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43998 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
44000         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
44001         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
44002         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
44003         the "  (tiny change)" notation that is appended to the standard
44004         ChangeLog "date  name  email" header line.
44006 2012-01-01  Jim Meyering  <meyering@redhat.com>
44008         test-framework-sh: init.sh: fix "make dist" failure
44009         When using gnulib-tool's --with-tests option and any module that
44010         depends on test-framework-sh, "make dist" would fail due to the
44011         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
44012         in the gltests directory, and not in the gllib/ directory.
44013         One way to work around that is to move the EXTRA_DIST += init.sh
44014         from the primary module to the -tests one:
44015         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
44016         * modules/test-framework-sh (Makefile.am): ...not here.
44017         Reported by Tom G. Christensen in
44018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
44020         version-etc: update copyright year reported by --version
44021         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
44023 2011-12-31  Pádraig Brady  <P@draigBrady.com>
44025         canonicalize: only stat() if required
44026         * lib/canonicalize.c (canonicalize_filename_mode):
44027         Avoid calling l?stat() when both CAN_MISSING,
44028         and CAN_NOLINKS are set, as we neither need
44029         to resolve symlinks or test component existence.
44031 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
44033         doc: cover st_ino issues once; add OpenVMS etc.
44034         * doc/posix-functions/stat.texi (stat):
44035         * doc/posix-functions/lstat.texi (lstat):
44036         * doc/posix-functions/fstatat.texi (fstatat):
44037         * doc/posix-functions/fstat.texi (fstat):
44038         Move general 'struct stat' stuff to sys_stat.texi,
44039         leaving behind a pointer.
44040         * doc/posix-headers/sys_stat.texi (sys/stat.h):
44041         Merge duplicate info about 'struct stat' problems into here.
44042         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
44043         and suggest partial workarounds.
44045         same-inode: port to OpenVMS
44046         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
44047         three st_ino values.
44049 2011-12-30  Pádraig Brady  <P@draigBrady.com>
44051         canonicalize: fix references to stat() and lstat()
44052         * lib/canonicalize.c (canonicalize_filename_mode):
44053         Ensure references always resolve to a replacement
44054         function if required (even via a macro).
44056 2011-12-30  Jim Meyering  <meyering@redhat.com>
44058         gitlog-to-changelog: remove a little duplication
44059         * build-aux/gitlog-to-changelog (main): Grep @lines once,
44060         rather than twice.
44062 2011-12-29  Pádraig Brady  <P@draigBrady.com>
44064         canonicalize: add support for not resolving symlinks
44065         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
44066         indicate we don't want to follow symlinks.  Also
44067         provide CAN_MODE_MASK to aid setting these existing
44068         mutually exclusive values.
44069         * lib/canonicalize.c (canonicalize_filename_mode):
44070         Extract the flags from can_mode parameter, which
44071         are currently just used to select between stat()
44072         and lstat().  Also ensure that mutually exclusive
44073         values are flagged immediately as invalid.
44074         * tests/test-canonicalize.c: Verify symlinks are
44075         not followed, and that invalid flag combinations
44076         are diagnosed.
44078 2011-12-25  Jim Meyering  <meyering@redhat.com>
44080         gitlog-to-changelog: do not clump multi-paragraph entries
44081         Identical header lines (date,name,email+coauthors) are suppressed,
44082         thus putting all entries with those same characteristics under
44083         a single header.  However, when a log entry consists of two or
44084         more paragraphs, it may not be clear where it starts and ends.
44085         This change makes it so that such an entry is always separated
44086         from others by a header line, even when that header would
44087         otherwise be suppressed.
44088         * build-aux/gitlog-to-changelog: Implement the above.
44089         Inspired by a related request from Stefano Lattarini in
44090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
44092 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44094         announce-gen: fix `cmd' typo in diagnostic
44095         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
44096         diagnostic: a missing '$' meant that the command was not output.
44098 2011-12-23  Jim Meyering  <meyering@redhat.com>
44100         test-framework-sh: distribute init.sh
44101         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
44102         Otherwise, "make -C gnulib-tests check" (at least in grep) would
44103         fail due to the lack of init.sh.
44105         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
44106         * modules/atexit-tests: Rather than listing tests/init.sh,
44107         now that there's a module for it, simply depend on that new module.
44108         * modules/closein-tests: Likewise.
44109         * modules/exclude-tests: Likewise.
44110         * modules/getcwd-tests: Likewise.
44111         * modules/perror-tests: Likewise.
44112         * modules/pread-tests: Likewise.
44113         * modules/pwrite-tests: Likewise.
44114         * modules/vc-list-files-tests: Likewise.
44115         * modules/verify-tests: Likewise.
44116         * modules/xalloc-die-tests: Likewise.
44117         * modules/xstrtoimax-tests: Likewise.
44118         * modules/xstrtol-tests: Likewise.
44119         * modules/xstrtoll-tests: Likewise.
44120         * modules/xstrtoumax-tests: Likewise.
44121         * modules/yesno-tests: Likewise.
44123 2011-12-22  Jim Meyering  <meyering@redhat.com>
44125         test-framework-sh: add minimal tests of init.sh's compare function
44126         * modules/test-framework-sh-tests: New file.
44127         * tests/test-init.sh: New file.
44129         test-framework-sh: new module
44130         * modules/test-framework-sh: New file.
44131         * MODULES.html.sh (Support for maintaining and releasing projects):
44132         List it.
44134         init.sh: do not emit simulated diff output to stderr
44135         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
44137 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44139         .gitignore: ignore gnulib.dvi and regex.info
44140         * doc/.gitignore:add gnulib.dvi and regex.info
44142 2011-12-22  Jim Meyering  <meyering@redhat.com>
44144         init.sh: correct previous change
44145         * tests/init.sh (compare): My previous change was wrong.
44146         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
44148         init.sh: avoid unwarranted test failure when using "set -e"
44149         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
44150         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
44151         a use like "compare exp out" would get evoke an unconditional failure.
44153 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
44155         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
44156         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
44157         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
44158         autoreconf that did not.
44159         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
44160         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44162 2011-12-17  Jim Meyering  <meyering@redhat.com>
44164         bootstrap: remove some now-unneeded code
44165         This script arose back when gnulib-tool was young.
44166         Since then, it has seen improvements that render much of this
44167         script unnecessary.  In particular, it can now make symlinks
44168         to the files it uses.  Also, I no longer see as much value in
44169         marking files as read-only via comments.
44170         If you relied on the symlink-creation feature of the preceding
44171         version of this script, you can get most of that functionality
44172         by adding the --symlink option to the definition of
44173         gnulib_tool_option_extras in your bootstrap.conf file.
44174         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
44175         Run autopoint and libtoolize *before* gnulib-tool.
44176         After it, run an abbreviated autoreconf, rather than a loop around
44177         all tools.
44178         (slirp, bt_mark_as_generated): Remove functions.
44180 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44182         ftoastr: fix typo
44183         * lib/ftoastr.h: Fix misspelling in comment.
44185 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
44187         * top/README-release: fix punctuation.
44189 2011-12-17  Jim Meyering  <meyering@redhat.com>
44191         bootstrap: correct the recent buildreq change
44192         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44193         had no effect.
44194         * build-aux/bootstrap (buildreq): Bracket each search term with
44195         "*...*", so that the shell "case" statement works as intended.
44196         Add comments.
44198 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
44200         build: let bootstrap resort to wget when downloading .po files
44201         * build-aux/bootstrap (download_po_files): Fallback to wget when
44202         downloading the .po files via rsync fails.  This is necessary to
44203         bootstrap from behind a strict firewall.
44205 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44207         stdint: don't assume C++11 when compiling with g++
44208         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
44209         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
44210         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
44211         work also in C++ before C++11, as that improperly inhibits
44212         generating a substitute stdint.h for that case.
44214 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44216         alloca: protect comment from gnulib-tool
44217         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
44218         that gnulib-tool doesn't think it's a license, and munge it to
44219         say "GCC version 3".
44221 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
44223         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
44224         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
44225         $(abs_top_builddir) instead of $(top_builddir).
44227 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44229         strftime-tests: also test nanoseconds
44230         * tests/test-strftime.c (T): Add a test of %N.
44232 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
44234         inttypes, stdint: add C++11 support
44235         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
44236         when including inttypes.h and stdint.h.  Support this change to
44237         the standard.
44238         * doc/posix-headers/inttypes.texi (inttypes.h):
44239         * doc/posix-headers/stdint.texi (stdint.h): Document this.
44240         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44241         Define if not defined already, for the benefit of pre-C++11 hosts.
44242         Define the standard format macros (e.g., PRId8) always.
44243         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
44244         Likewise, if __cpluspus.  Define the standard constant and limit
44245         macros (e.g., INT8_C, INT8_MAX) always.
44246         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
44247         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
44248         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
44249         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
44250         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
44251         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
44252         Likewise.
44254 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44256         nonblocking tests: Fix test failure on Linux/PPC.
44257         Suggested by Prerna Saxena in
44258         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
44259         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
44260         Set to 1100000.
44262 2011-12-12  Jim Meyering  <meyering@redhat.com>
44264         argmatch: don't hard-code `' when listing valid option arguments
44265         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
44266         use the quote function to add quotes.  Use fputs rather than
44267         fprintf for the format string with no format directive.
44269 2011-12-07  Eric Blake  <eblake@redhat.com>
44271         bootstrap: detect tools required by gnulib-tool
44272         * build-aux/bootstrap (buildreq): Provide minimum implicit
44273         dependencies.
44274         * DEPENDENCIES: Mention patch as a prereq.
44276 2011-12-04  Bruno Haible  <bruno@clisp.org>
44278         sethostname: Port to Windows platforms.
44279         * lib/sethostname.c: Provide an alternate implementation for Windows
44280         platforms.
44281         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
44282         (main): Skip the test if sethostname() fails with EPERM. On Windows
44283         platforms, don't check the result of gethostname().
44285 2011-12-04  Bruno Haible  <bruno@clisp.org>
44286             Jim Meyering  <meyering@redhat.com>
44288         tests: Avoid spurious error message on platforms without mktemp program.
44289         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
44291 2011-12-04  Bruno Haible  <bruno@clisp.org>
44293         sethostname: Fix documentation.
44294         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
44295         "not fixed" section.
44297 2011-12-03  Bruno Haible  <bruno@clisp.org>
44299         gnulib-tool: Verify that the License field is present and non-empty.
44300         * gnulib-tool (func_get_license_raw): New function, extracted from
44301         func_get_license.
44302         (func_get_license): Use it. Warn if the module is not a test module and
44303         has no license.
44304         Suggested by Jim Meyering.
44306 2011-12-03  Bruno Haible  <bruno@clisp.org>
44308         sethostname tests: Fix link error on mingw.
44309         * tests/test-sethostname1.c: New file, extracted from
44310         tests/test-sethostname.c.
44311         * tests/test-sethostname2.c: New file, extracted from
44312         tests/test-sethostname.c.
44313         * tests/test-sethostname.c: Remove file.
44314         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
44315         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
44316         (Depends-on): Add gethostname.
44317         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
44318         Link the latter with $(GETHOSTNAME_LIB).
44320         sethostname tests: Fix compilation error on mingw.
44321         * tests/test-sethostname.c: Don't include <sys/types.h>.
44322         (geteuid): Use a dummy value without uid_t.
44323         * modules/sethostname-tests (Depends-on): Remove sys_types.
44325         sethostname tests: Avoid a gcc warning.
44326         * tests/test-sethostname.c (main): Remove an unused variable.
44328         Tweak last commit.
44329         * modules/sethostname-tests (Files): Sort by decreasing importance.
44330         (configure.ac): Check for geteuid.
44331         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
44332         the test when there's nothing to test. Drop an unnecessary cast.
44333         Improve an error message. Verify that the final sethostname() call
44334         succeeds.
44336 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44338         Add a test suite for the sethostname module.
44339         * modules/sethostname-tests: New file.  A test program
44340         for the sethostname module.
44341         * tests/test-sethostname.c: Likewise.
44343 2011-12-03  Bruno Haible  <bruno@clisp.org>
44345         Tweak last commit.
44346         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
44347         Fix preprocessor directives indentation. Fix typos.
44348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
44349         * modules/unistd (Makefile): Likewise.
44351 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44353         Integrate the sethostname module into unistd.
44354         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
44355         into the unistd.h header.
44356         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
44357         preprocessor directives.
44358         * modules/unistd: Setup the Makefile substitutions of the
44359         SETHOSTNAME preprocessor directives.
44361 2011-12-03  Bruno Haible  <bruno@clisp.org>
44363         Tweak last commit.
44364         * lib/sethostname.c: Don't include <string.h>.
44365         (sethostname): No need to copy the argument string to the stack. Don't
44366         call clearerr. Preserve errno when fprintf failed.
44367         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44368         Don't invoke AC_REPLACE_FUNCS.
44369         * modules/sethostname (Link): Remove empty section.
44370         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44371         failure problem.
44373 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44375         New module 'sethostname'.
44376         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44377         for systems that lack it.
44378         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44379         sethostname declaration and function.
44380         * modules/sethostname: New file.  Define the sethostname module.
44382 2011-12-03  Bruno Haible  <bruno@clisp.org>
44384         Tweak last commit.
44385         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44387 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44389         Split the HOST_NAME_MAX detection into a separate m4 macro.
44390         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44391         macro so it can be used by the pending sethostname module.
44393 2011-12-03  Bruno Haible  <bruno@clisp.org>
44395         Fix module descriptions syntax.
44396         * modules/argv-iter (License): Fix syntax.
44397         * modules/di-set (License): Likewise.
44398         * modules/ino-map (License): Likewise.
44399         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44401 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44403         stdalign: port to Clang 3.0
44404         Problem reported by Simon Josefsson in
44405         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44406         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44407         which has <stdalign.h> but which does not define alignof.
44408         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44410 2011-12-01  Eric Blake  <eblake@redhat.com>
44412         mktempd: silence dd usage
44413         * build-aux/mktempd (rand_bytes): Silence dd.
44415 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44417         manywarnings: Don't mention gcc version in docstring.
44418         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44419         Jim Meyering <meyering@redhat.com>.
44421 2011-11-30  Jim Meyering  <meyering@redhat.com>
44423         hash: mark a few floating point constants with "f" suffix
44424         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44425         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44426         floating point constants with "f", since they're destined to be
44427         saved/used as "float"s.
44429 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44431         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44432         * tests/test-float.c (test_long_double): Correct and re-enable the
44433         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44435 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44437         Avoid subtracting two pointers that don't point into the same block.
44438         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44439         only pointers into the same memory block are subtracted. We cannot
44440         assume that sizeof (ptrdiff_t) == sizeof (void *).
44442 2011-11-29  Eric Blake  <eblake@redhat.com>
44444         maint.mk: add syntax check for use of compare from init.sh
44445         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44446         moved here from coreutils.
44448         manywarnings: drop -Wunsuffixed-float-constants
44449         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44450         '1.0D', which is the only way to silence this warning for 'double'.
44452 2011-11-29  Jim Meyering  <meyering@redhat.com>
44454         hash: mark compute_bucket_size with the pure attribute
44455         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44457         quotearg, propername: correct pragma guard expression
44458         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44459         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44461 2011-11-28  Jim Meyering  <meyering@redhat.com>
44463         propername: do not mark proper_name with the const attribute
44464         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44465         since it examines data pointed to by its parameter.
44466         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44467         the suggestion from -Wsuggest-attribute=const.
44469         propername: mark one more function as const
44470         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44472 2011-11-27  Jim Meyering  <meyering@redhat.com>
44474         mark functions with const and pure attributes
44476         Mark functions per suggestions from gcc-4.6 when using these options:
44477         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
44478         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
44479         Follow these guidelines: when possible, apply the attribute to
44480         an extern declaration, not to its definition.  Apply it to the
44481         definition only when the definition is static.
44482         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
44483         * lib/argv-iter.h (argv_iter_n_args): Likewise.
44484         * lib/base64.h (isbase64): Likewise.
44485         * lib/basename-lgpl.c (last_component, base_len): Likewise.
44486         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
44487         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
44488         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44489         (c_tolower, c_toupper): Likewise.
44490         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
44491         * lib/chdir-long.c (find_non_slash): Likewise.
44492         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
44493         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
44494         * lib/file-type.h (file_type): Likewise.
44495         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
44496         * lib/filevercmp.c (verrevcmp): Likewise.
44497         * lib/freadahead.h (freadahead): Likewise.
44498         * lib/fts.c (fts_maxarglen): Likewise.
44499         * lib/hash-pjw.h (hash_pjw): Likewise.
44500         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
44501         * lib/hash.c (is_prime, next_prime): Likewise.
44502         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
44503         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
44504         (hash_table_ok, hash_get_first, hash_string): Likewise.
44505         (compute_bucket_size): Likewise.
44506         * lib/i-ring.h (i_ring_empty): Likewise.
44507         * lib/isnan.c (isnanl): Likewise.
44508         * lib/math.h (isnanl, rpl_isnanl): Likewise.
44509         * lib/memcasecmp.h (memcasecmp): Likewise.
44510         * lib/memchr2.h (memchr2): Likewise.
44511         * lib/memcmp2.h (memcmp2): Likewise.
44512         * lib/parse-datetime.y (lookup_zone): Likewise.
44513         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
44514         [!WINDOWS_SOCKETS]: Likewise.
44515         * lib/strnlen1.h (strnlen1): Likewise.
44516         * lib/uniwidth.in.h (uc_width): Likewise.
44517         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
44518         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
44519         (quoting_options_from_style): Add a comment.
44520         * lib/propername.h (proper_name): Add a comment.
44522 2011-11-27  Bruno Haible  <bruno@clisp.org>
44524         Remove unused macros from !_LIBC code in glibc-borrowed files.
44525         * lib/fnmatch.c (STRCOLL): Remove macro.
44526         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
44527         * lib/glob.c (__stat, __readdir64): Remove macros.
44528         * lib/tempname.c (__open64, __xstat64): Remove macros.
44529         Suggested by Paul Eggert.
44531 2011-11-27  Bruno Haible  <bruno@clisp.org>
44533         getcwd: Fix link error on MSVC 9.
44534         * modules/getcwd (Depends-on): Add readdir, rewinddir.
44536 2011-11-27  Bruno Haible  <bruno@clisp.org>
44538         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
44539         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
44540         HAVE_OPENDIR is 0.
44541         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
44542         HAVE_CLOSEDIR is 0.
44543         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
44544         is 0.
44545         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
44547 2011-11-27  Bruno Haible  <bruno@clisp.org>
44549         getcwd: Fix bug from 2011-08-17.
44550         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
44551         platforms that need it.
44552         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
44553         code of 4 to be a failure, not a success. This ensures that
44554         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
44556 2011-11-27  Bruno Haible  <bruno@clisp.org>
44558         binary-io tests: Avoid test failure on mingw when libtool is used.
44559         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
44560         Don't verify the size of t-bin-out1.tmp here.
44561         * tests/test-binary-io.sh: Verify it here.
44562         Reported by Simon Josefsson.
44564 2011-11-26  Bruno Haible  <bruno@clisp.org>
44566         Fix conflict between two instantiations of module 'unistd'.
44567         * gnulib-tool (func_emit_autoconf_snippet): Substitute
44568         ${include_guard_prefix} also in the autoconf snippet.
44569         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
44570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
44571         GNULIB_UNISTD_H_GETOPT.
44572         * modules/getopt-posix (configure.ac): Set the
44573         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
44574         * modules/getopt-gnu (configure.ac): Likewise.
44575         * modules/unistd (Makefile.am): Change the substitution value of
44576         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
44577         Reported by Simon Josefsson.
44579 2011-11-25  Bruno Haible  <bruno@clisp.org>
44581         pagealign_alloc: Doc and comments.
44582         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
44583         module.
44584         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
44586 2011-11-25  Jim Meyering  <meyering@redhat.com>
44588         test-update-copyright.sh: avoid false-positive failure
44589         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44590         around false positive failure on Cygwin/Windows.  The latter was
44591         matching erroneously-created files with names like
44592         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
44594 2011-11-25  Simon Josefsson  <simon@josefsson.org>
44596         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
44597         * m4/valgrind-tests.m4: Check that the parameters that will be
44598         used works, not just a subset of them.  Reported by Bruno Haible
44599         <bruno@clisp.org>.
44601 2011-11-24  Jim Meyering  <meyering@redhat.com>
44603         test-stdalign.c: comment out long double tests
44604         * tests/test-stdalign.c: Don't try to reduce alignment of long double
44605         variables.  That provokes errors like this from gcc-4.7.0 20111124:
44606         error: '_Alignas' specifiers cannot reduce alignment of \
44607         'static_longdouble_alignas'.
44609 2011-11-22  Jim Meyering  <meyering@redhat.com>
44611         init.sh: make "compare /dev/null FILE" output more readable
44612         * tests/init.sh (compare_): Document the preferred order of arguments.
44613         (emit_diff_u_header_): New function.
44614         (compare_dev_null_): Emit a simulated diff, rather than just the
44615         contents of the unexpected file.  Suggestion from Bruno Haible.
44617 2011-11-21  Jim Meyering  <meyering@redhat.com>
44618             Eric Blake  <eblake@redhat.com>
44620         init.sh: work around OSF/1 5.1's mishandling of /dev/null
44621         * tests/init.sh: Make our compare function slightly more portable.
44622         Reported by Bruno Haible in
44623         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
44625 2011-11-21  Simon Josefsson  <simon@josefsson.org>
44627         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
44628         before using it, in code that ends up in config.h.
44630 2011-11-20  Bruno Haible  <bruno@clisp.org>
44632         getcwd: Work around getcwd bug on AIX 5..7.
44633         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
44634         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
44635         Use a different value for gl_cv_func_getcwd_path_max. Move the
44636         definition of HAVE_PARTLY_WORKING_GETCWD from here...
44637         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
44638         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
44639         Define HAVE_MINIMALLY_WORKING_GETCWD.
44640         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
44641         where it is not even minimally working, that is, on AIX.
44642         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
44643         m4/getcwd-path-max.m4.
44644         (main): Update exit code computation.
44645         * doc/posix-functions/getcwd.texi: Mention list of platforms where
44646         getcwd does not handle long file names.
44648 2011-11-20  Bruno Haible  <bruno@clisp.org>
44650         getcwd: Fix bug from 2009-09-10.
44651         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
44652         like "no".
44654 2011-11-20  Simon Josefsson  <simon@josefsson.org>
44656         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
44658 2011-11-20  Bruno Haible  <bruno@clisp.org>
44660         fma tests: Avoid shadowing local variables.
44661         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
44662         expected.
44664 2011-11-20  Bruno Haible  <bruno@clisp.org>
44666         copysignf tests: Fix.
44667         * tests/test-copysignf.c: Fix signature check.
44669 2011-11-20  Bruno Haible  <bruno@clisp.org>
44671         fma: Remove unused code.
44672         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44673         unused macros.
44675 2011-11-20  Bruno Haible  <bruno@clisp.org>
44677         sethostname: Fix doc about AIX.
44678         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
44679         sethostname; it has it.
44681         sethostname: Mention more portability problems.
44682         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44683         problem.
44684         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44686 2011-11-19  Bruno Haible  <bruno@clisp.org>
44688         Depend on module fcntl-h when AT_FDCWD is used.
44689         * modules/utimens (Depends-on): Add fcntl-h.
44690         * modules/areadlinkat (Depends-on): Likewise.
44691         * modules/areadlinkat-with-size (Depends-on): Likewise.
44692         * modules/faccessat (Depends-on): Likewise.
44693         * modules/fchmodat (Depends-on): Likewise.
44694         * modules/fchownat (Depends-on): Likewise.
44695         * modules/getcwd (Depends-on): Likewise.
44696         * modules/mkdirat (Depends-on): Likewise.
44697         * modules/mkfifoat (Depends-on): Likewise.
44698         * modules/readlinkat (Depends-on): Likewise.
44699         * modules/symlinkat (Depends-on): Likewise.
44700         * modules/dup2-tests (Depends-on): Likewise.
44701         * modules/fdutimensat-tests (Depends-on): Likewise.
44702         * modules/futimens-tests (Depends-on): Likewise.
44704 2011-11-19  Bruno Haible  <bruno@clisp.org>
44706         euidaccess: Update a comment.
44707         * lib/euidaccess.c: Update comment about platforms with faccessat.
44709 2011-11-19  Bruno Haible  <bruno@clisp.org>
44711         openat: Fix file list.
44712         * modules/openat (Files): Remove lib/at-func.c.
44714 2011-11-19  Bruno Haible  <bruno@clisp.org>
44716         fstatat: Simplify.
44717         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44718         gnulib should define rpl_fstatat, there is a
44719         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44721 2011-11-19  Bruno Haible  <bruno@clisp.org>
44723         Ensure 'inline' can be used in tests/test-utimens-common.h.
44724         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44725         * modules/futimens-tests (configure.ac): Likewise.
44726         * modules/utimens-tests (configure.ac): Likewise.
44727         * modules/utimensat-tests (configure.ac): Likewise.
44729 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44731         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44732         not hash_insert0.
44733         (hash_insert_if_absent): Doc fix.
44735 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44737         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44739 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44741         test-getcwd: disambiguate exit status
44742         * tests/test-getcwd.c (test_long_name): Return 0..7.
44743         (main): Exit with an unambiguous exit status.  The old
44744         code yielded a mysterious mixture of two failure codes.
44746         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44747         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44748         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44749         rpl_fstatat or fstatat.  This should fix the other problem
44750         reported by Kai Habel in
44751         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44752         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44753         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44754         and I reproduced it on a Solaris 8 host we still have in production.
44756 2011-11-18  Jim Meyering  <meyering@redhat.com>
44758         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44759         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44760         Add a sentence to the comment.
44761         (hash_insert0): New function that simply calls hash_insert_if_absent.
44762         * lib/hash.h (hash_insert_if_absent): Declare it.
44763         (hash_insert0): Add deprecation attribute.
44764         (_GL_ATTRIBUTE_DEPRECATED): Define.
44765         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44766         not hash_insert0.
44767         * NEWS: Mention it, even though it's not really an incompatible change.
44769 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44771         openat: avoid compilation failure due to lack of <errno.h> inclusion
44772         * lib/openat.c: Include <errno.h>.
44774 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44776         * modules/getcwd (Depends-on): Add fdopendir.
44777         This fixes one of the two problems reported by Kai Habel in
44778         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44780         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44781         stdalign problem reported by Ian Beckwith in
44782         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44783         * modules/crypto/gc-arcfour (Depends-on):
44784         Depend conditionally on crypto/arcfour.
44785         * modules/crypto/gc-arctwo (Depends-on):
44786         Depend conditionally on crypto/arctwo.
44787         * modules/crypto/gc-des (Depends-on):
44788         Depend conditionally on crypto/des.
44789         * modules/crypto/gc-hmac-md5 (Depends-on):
44790         Depend conditionally on crypto/hmac-md5.
44791         * modules/crypto/gc-hmac-sha1 (Depends-on):
44792         Depend conditionally on crypto/hmac-sha1.
44793         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44794         * modules/crypto/gc-md4 (Depends-on):
44795         Depend conditionally on crypto/md4.
44796         * modules/crypto/gc-md5 (Depends-on):
44797         Depend conditionally on crypto/md5.
44798         * modules/crypto/gc-rijndael (Depends-on):
44799         Depend conditionally on crypto/rijndael.
44800         * modules/crypto/gc-sha1 (Depends-on):
44801         Depend conditionally on crypto/sha1.
44802         * modules/crypto/gc-arcfour:
44803         * modules/crypto/gc-arctwo:
44804         * modules/crypto/gc-des:
44805         * modules/crypto/gc-hmac-md5:
44806         * modules/crypto/gc-hmac-sha1:
44807         * modules/crypto/gc-md2:
44808         * modules/crypto/gc-md4:
44809         * modules/crypto/gc-md5:
44810         * modules/crypto/gc-rijndael:
44811         * modules/crypto/gc-sha1:
44812         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44813         now that the conditional dependencies do the work for us.
44815 2011-11-17  Jim Meyering  <meyering@redhat.com>
44817         tests: factor st_ctime-comparison out of two headers
44818         * tests/test-utimens-common.h (ctime_compare): Define.
44819         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44820         * tests/test-lutimens.h (test_lutimens): Likewise.
44821         * tests/test-utimens.h (test_utimens): Likewise.
44823         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44824         Invoke the test program via an init.sh-using wrapper.
44825         * tests/test-getcwd.sh: New file.
44826         * modules/getcwd-tests (Files): Add it.
44827         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44829 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44831         gitlog-to-changelog: support multi-author commits.
44832         The FSF cares about keeping track of all authors of patches to its
44833         projects, but Git doesn't provide obvious support for multi-author
44834         changesets. Consensus seems to be forming around the use of extra
44835         Signed-off-by inspired lines in the log message formatted as
44836         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44837         multi-author commits between version control systems.
44838         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44839         log message and output in standard ChangeLog multi-author format.
44840         Reported by Peter Rosin <peda@lysator.liu.se>
44842 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44843             Bruno Haible  <bruno@clisp.org>
44845         Fix some modules' file list.
44846         * modules/fstatat (Files): Add m4/lstat.m4.
44847         * modules/openat (Files): Likewise.
44848         * modules/unlinkat (Files): Likewise.
44850 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44852         maint.mk: fix tight-scope.mk generation in VPATH builds.
44853         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44854         reference with $(srcdir) so that the file is found correctly even
44855         when running `make syntax-check' in a VPATH build.
44857 2011-11-13  Bruno Haible  <bruno@clisp.org>
44858             Jim Meyering  <meyering@redhat.com>
44860         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44861         * tests/init.sh (compare): Remove "No differences encountered" or
44862         synonymous output from the 'diff' program.
44864 2011-11-13  Bruno Haible  <bruno@clisp.org>
44866         Makefile: Tweak indentation.
44867         * Makefile: Use tab as first character in every line that contains rule
44868         commands.
44870 2011-11-13  Bruno Haible  <bruno@clisp.org>
44872         Syntax check for copyright statements.
44873         * check-copyright: New file.
44874         * Makefile (sc_check_copyright): New rule.
44876 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44878         * build-aux/git-version-gen: Add --prefix to configure the tag
44879         match string.
44881 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44883         * build-aux/git-version-gen: Add --help and --version.
44885 2011-11-12  Jim Meyering  <meyering@redhat.com>
44887         revamp the other test-exclude?.sh scripts to use init.sh, too
44888         * tests/test-exclude1.sh: Use init.sh.
44889         * tests/test-exclude2.sh: Likewise.
44890         * tests/test-exclude3.sh: Likewise.
44891         * tests/test-exclude4.sh: Likewise.
44892         * tests/test-exclude5.sh: Likewise.
44893         * tests/test-exclude6.sh: Likewise.
44894         * tests/test-exclude7.sh: Likewise.
44895         * tests/test-exclude8.sh: Likewise.
44896         * modules/exclude-tests (Files): List init.sh.
44898         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44899         These shell scripts ignored failure of the binary test-exclude,
44900         so making the latter return 77 didn't cause them to be skipped.
44901         * tests/test-exclude5.sh: Exit with test-exclude's error status
44902         when that program fails.  Revamp to use init.sh.
44903         * tests/test-exclude2.sh: Likewise.
44905         test-exclude: fix a typo
44906         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44908 2011-11-11  Bruno Haible  <bruno@clisp.org>
44910         obstack: Fix compilation error on MSVC 9.
44911         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44913 2011-11-11  Jim Meyering  <meyering@redhat.com>
44915         test-exclude: skip tests rather than failing on deficient systems
44916         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44917         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44918         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44919         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44921 2011-11-10  Bruno Haible  <bruno@clisp.org>
44923         ptsname_r test: Avoid gcc warning on glibc systems.
44924         * tests/test-ptsname_r.c (null_ptr): New function.
44925         (test_errors): Use it.
44927 2011-11-10  Bruno Haible  <bruno@clisp.org>
44929         ptsname_r: Avoid compilation error on OSF/1 5.1.
44930         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44932         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44933         function is not declared or incompatibly declared.
44934         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44935         * modules/ptsname_r (Depends-on, configure.ac): Update.
44936         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44938 2011-11-10  Bruno Haible  <bruno@clisp.org>
44940         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44941         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44942         When cross-compiling, guess yes on all platforms except AIX.
44943         Reported by Ludovic Courtès <ludo@gnu.org>.
44945 2011-11-09  Bruno Haible  <bruno@clisp.org>
44947         ptsname_r tests: Fix bugs.
44948         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44949         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44951 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44953         fstatat: work with cross-compilation
44954         Problem reported by Ludovic Courtès in
44955         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44956         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44957         "cross-compiling" and assume the bug is present.  Replace
44958         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44959         an inverted sense, to be more conservative about our assumptions.
44960         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44962 2011-11-09  Bruno Haible  <bruno@clisp.org>
44964         Improve MODULES.html output.
44965         * modules/mkfifoat (Description): Use the word "function".
44966         * modules/readlinkat (Description): Likewise.
44967         * modules/symlinkat (Description): Likewise.
44969 2011-11-09  Eric Blake  <eblake@redhat.com>
44971         ptsname_r-tests: new test module
44972         * modules/ptsname_r-tests: New module.
44973         * tests/test-ptsname_r.c: New file.
44975         ptsname_r: new module
44976         * modules/ptsname_r: New module.
44977         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44978         * lib/ptsname.c (__ptsname_r): Split...
44979         * lib/ptsname_r.c: ...into new file.
44980         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44981         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44982         * modules/stdlib (Makefile.am): Substitute witnesses.
44983         * lib/stdlib.in.h (ptsname_r): Declare it.
44984         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44985         * MODULES.html.sh (Misc): Likewise.
44986         * modules/ptsname (Depends-on): Alter dependency.
44987         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44989 2011-11-09  Jim Meyering  <meyering@redhat.com>
44991         announce-gen: be more concise when there's only one URL+tarball
44992         * build-aux/announce-gen (get_tool_versions): When you distribute
44993         only one type of tarball, combine the first two "Here are..."
44994         sections and make the key-checking grammar independent of
44995         how many tarballs there are.
44997 2011-11-09  Eric Blake  <eblake@redhat.com>
44999         openpty: provide a stub on mingw
45000         * lib/pty.in.h (includes): Provide forward declarations.
45001         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
45003         raise: fix mingw handling of SIGPIPE
45004         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
45006 2011-11-08  Bruno Haible  <bruno@clisp.org>
45008         More conditional dependencies.
45009         * modules/faccessat (Depends-on): Add conditions.
45010         * modules/fchmodat (Depends-on): Likewise.
45011         * modules/fchownat (Depends-on): Likewise.
45012         * modules/fstatat (Depends-on): Likewise.
45013         * modules/mkfifoat (Depends-on): Likewise.
45014         * modules/readlinkat (Depends-on): Likewise.
45015         * modules/symlinkat (Depends-on): Likewise.
45016         * modules/unlinkat (Depends-on): Likewise.
45017         * modules/utimensat (Depends-on): Likewise.
45018         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
45019         * modules/linkat (Depends-on): Refine the conditions.
45020         * modules/renameat (Depends-on): Likewise.
45022 2011-11-08  Bruno Haible  <bruno@clisp.org>
45024         faccessat: Move AC_LIBOBJ invocation to module description.
45025         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
45026         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
45027         invocation from here...
45028         * modules/faccessat (configure.ac): ... to here. Invoke
45029         gl_PREREQ_FACCESSAT.
45031 2011-11-08  Bruno Haible  <bruno@clisp.org>
45033         faccessat: Simplify autoconf macro.
45034         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
45035         gl_FUNC_EUIDACCESS.
45037 2011-11-08  Bruno Haible  <bruno@clisp.org>
45039         renameat: Fix dependencies.
45040         * modules/renameat (Depends-on): Add stdbool.
45042 2011-11-08  Bruno Haible  <bruno@clisp.org>
45044         mkfifoat: Fix module description.
45045         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
45046         not gl_UNISTD_MODULE_INDICATOR.
45048 2011-11-08  Bruno Haible  <bruno@clisp.org>
45050         fstatat: Remove unused dependency.
45051         * modules/fstatat (Depends-on): Remove fstat.
45053 2011-11-08  Simon Josefsson  <simon@josefsson.org>
45055         GNUmakefile: behave when Makefile is missing.
45056         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
45058 2011-11-08  Bruno Haible  <bruno@clisp.org>
45060         openat: Conditionalize dependencies.
45061         * lib/openat.c: Reduce the scope of some #includes.
45062         * modules/openat (Depends-on): Add conditions.
45064 2011-11-07  Jim Meyering  <meyering@redhat.com>
45066         maint.mk: extract GPG key ID without using a temporary file
45067         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
45068         without using a temporary file.  Based on a suggestion from Werner Koch
45069         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
45071 2011-11-07  Eric Blake  <eblake@redhat.com>
45073         grantpt: fix typo
45074         * lib/stdlib.in.h (grantpt): Check correct function.
45076         maint.mk: silence new syntax check
45077         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
45079 2011-11-06  Bruno Haible  <bruno@clisp.org>
45081         Doc about floating-point and math API.
45082         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
45083         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
45085 2011-11-06  Bruno Haible  <bruno@clisp.org>
45087         stdalign tests: Skip the test when compiled by Sun C.
45088         * tests/test-stdalign.c (main): Skip the test on Sun C.
45090 2011-11-06  Bruno Haible  <bruno@clisp.org>
45092         ansi-c++-opt: Complete the 2011-06-05 change.
45093         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
45094         does not support namespaces, set the variable to "no", not to ":".
45096 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45098         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
45100 2011-11-06  Bruno Haible  <bruno@clisp.org>
45102         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
45103         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
45104         (minus_zerol) [HP-UX]: New macro.
45105         (unary_minus) [HP-UX]: New function.
45106         (copysignl) [HP-UX]: Use unary_minus function.
45108 2011-11-06  Bruno Haible  <bruno@clisp.org>
45110         ldexp, ldexpf, ldexpl: Enhance tests.
45111         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
45112         and tests/test-ldexpl.c.
45113         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
45114         LDEXP, MIN_EXP, MAX_EXP): New macros.
45115         Include test-ldexp.h.
45116         (main): Just call test_function.
45117         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
45118         infinity.h, nan.h.
45119         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45120         MAX_EXP): New macros.
45121         Include test-ldexp.h.
45122         (x, y): Remove variables.
45123         (main): Just call test_function.
45124         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
45125         infinity.h, nan.h.
45126         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45127         MAX_EXP): New macros.
45128         Include test-ldexp.h.
45129         (x, y): Remove variables.
45130         (main): Just call test_function.
45131         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
45132         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
45133         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45134         (Depends-on): Add isnand-nolibm, signbit, float.
45135         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
45136         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45137         (Depends-on): Add isnanf-nolibm, signbit, float.
45139 2011-11-06  Bruno Haible  <bruno@clisp.org>
45141         math tests: Cosmetics.
45142         * tests/test-math-c++.cc: Reorder declarations.
45144 2011-11-05  Bruno Haible  <bruno@clisp.org>
45146         fma*: Simplify test.
45147         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
45148         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
45150         Tests for module 'fmal'.
45151         * modules/fmal-tests: New file.
45152         * tests/test-fmal1.c: New file.
45153         * tests/test-fmal2.c: New file.
45155         New module 'fmal'.
45156         * lib/math.in.h (fmal): New declaration.
45157         * lib/fmal.c: New file.
45158         * m4/fmal.m4: New file.
45159         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
45160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
45161         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
45162         REPLACE_FMAL.
45163         * modules/fmal: New file.
45164         * doc/posix-functions/fmal.texi: Mention the new module and the various
45165         bugs.
45167         Tests for module 'fmaf'.
45168         * modules/fmaf-tests: New file.
45169         * tests/test-fmaf1.c: New file.
45170         * tests/test-fmaf2.c: New file.
45172         New module 'fmaf'.
45173         * lib/math.in.h (fmaf): New declaration.
45174         * lib/fmaf.c: New file.
45175         * m4/fmaf.m4: New file.
45176         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
45177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
45178         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
45179         REPLACE_FMAF.
45180         * modules/fmaf: New file.
45181         * doc/posix-functions/fmaf.texi: Mention the new module and the various
45182         bugs.
45184         Tests for module 'fma'.
45185         * modules/fma-tests: New file.
45186         * tests/test-fma1.c: New file.
45187         * tests/test-fma1.h: New file.
45188         * tests/test-fma2.c: New file.
45189         * tests/test-fma2.h: New file.
45191         New module 'fma'.
45192         * lib/math.in.h (fma): New declaration.
45193         * lib/fma.c: New file.
45194         * m4/fma.m4: New file.
45195         * m4/fegetround.m4: New file.
45196         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
45197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
45198         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
45199         REPLACE_FMA.
45200         * modules/fma: New file.
45201         * doc/posix-functions/fma.texi: Mention the new module and the various
45202         bugs.
45204         Extend gl_MATHFUNC.
45205         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
45206         Support 'void' as argument type.
45207         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
45209 2011-11-05  Jim Meyering  <meyering@redhat.com>
45211         maint.mk: also prohibit inclusion of dirent.h without use
45212         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
45214 2011-11-05  Bruno Haible  <bruno@clisp.org>
45216         ldexpl tests: Avoid test failure on MSVC 9.
45217         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
45218         value. Needed in order to enforce the conversion from a value greater
45219         than LDBL_MAX to Infinity.
45221 2011-11-05  Bruno Haible  <bruno@clisp.org>
45223         New modules 'at-internal', 'openat-h', split off from module 'openat'.
45224         * modules/at-internal: New file, extracted from modules/openat.
45225         * modules/openat-h: New file.
45226         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
45227         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
45228         * modules/openat (Description): Add reference to POSIX function.
45229         (Files): Remove lib/openat.h, lib/openat-proc.c.
45230         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
45231         intprops, unistd.
45232         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
45233         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
45234         gl_FCNTL_MODULE_INDICATOR.
45235         (Include): Remove unistd.h, openat.h.
45236         * modules/areadlinkat (Files): Add lib/at-func.c.
45237         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45238         openat-die, openat-h, save-cwd.
45239         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
45240         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45241         openat-die, openat-h, save-cwd, unistd.
45242         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
45243         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45244         openat-h, save-cwd. Remove fcntl-h, openat.
45245         * modules/fchmodat (Files): Remove lib/openat.h.
45246         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45247         openat, stdbool, unistd.
45248         * modules/fchownat (Files): Remove lib/openat.h.
45249         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45250         openat, stdbool, sys_stat.
45251         * modules/fdopendir (Files): Remove lib/openat-priv.h,
45252         lib/openat-proc.c.
45253         (Depends-on): Add at-internal.
45254         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
45255         * modules/fstatat (Files): Remove lib/openat.h.
45256         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45257         stdbool, unistd.
45258         * modules/fts (Depends-on): Add openat-h.
45259         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
45260         openat.
45261         * modules/mkdirat (Files): Remove lib/openat.h.
45262         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45263         openat, stdbool, sys_stat.
45264         * modules/mkfifoat (Files): Add lib/at-func.c.
45265         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45266         openat-h, save-cwd. Remove fcntl-h, openat.
45267         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
45268         * modules/readlinkat (Files): Add lib/at-func.c.
45269         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45270         openat-h, save-cwd. Remove fcntl-h, openat.
45271         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
45272         openat.
45273         * modules/selinux-at (Files): Add lib/at-func.c.
45274         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45275         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
45276         * modules/symlinkat (Files): Add lib/at-func.c.
45277         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45278         openat-h, save-cwd. Remove fcntl-h, openat.
45279         * modules/unlinkat (Files): Remove lib/openat.h.
45280         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45281         stdbool.
45282         * modules/utimensat (Files): Add lib/at-func.c.
45283         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
45284         openat-die, openat-h, save-cwd.
45285         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
45286         * modules/fdutimensat-tests (Depends-on): Add openat.
45287         * modules/fstatat-tests (Depends-on): Add openat-h.
45288         * modules/readlinkat-tests (Depends-on): Add openat.
45289         * modules/symlinkat-tests (Depends-on): Add openat.
45291 2011-11-05  Bruno Haible  <bruno@clisp.org>
45293         openat: Include <stdbool.h>.
45294         * lib/openat.c: Include <stdbool.h>.
45296 2011-11-04  Bruno Haible  <bruno@clisp.org>
45298         fchownat, renameat, unlinkat: Fix dependencies.
45299         * modules/fchownat (Depends-on): Add fstatat.
45300         * modules/renameat (Depends-on): Likewise.
45301         * modules/unlinkat (Depends-on): Likewise.
45303 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
45305         openat: remove direct dependency on dirent
45306         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
45307         and hasn't been needed ever since fdopendir was split into its own
45308         module on 2009-08-31.
45309         * modules/openat (Depends-on): Remove dirent.
45311 2011-11-04  Bruno Haible  <bruno@clisp.org>
45313         renameat: Optimize code size.
45314         * modules/renameat (configure.ac): Don't compile at-func2.c if
45315         REPLACE_RENAMEAT is 1.
45317 2011-11-04  Bruno Haible  <bruno@clisp.org>
45319         openat tests: Fix file list.
45320         * modules/openat-tests (Files): Add tests/test-open.h.
45322 2011-11-04  Bruno Haible  <bruno@clisp.org>
45324         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
45325         * modules/fchmodat (Depends-on): Add openat-die.
45326         * modules/fchownat (Depends-on): Likewise.
45327         * modules/linkat (Depends-on): Likewise.
45328         * modules/renameat (Depends-on): Likewise.
45329         * modules/openat (Depends-on): Add dirent.
45331 2011-11-04  Jim Meyering  <meyering@redhat.com>
45333         at-func*.c: fix comments
45334         * lib/at-func2.c: Correct/improve first-line comment.
45335         * lib/at-func.c: Correct grammar in first-line comment.
45337 2011-11-04  Bruno Haible  <bruno@clisp.org>
45339         New module 'mkdirat', split off from module 'openat'.
45340         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
45341         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
45342         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
45343         * modules/mkdirat: New file, extracted from modules/openat.
45344         * modules/openat (Files): Remove lib/mkdirat.c.
45345         (Depends-on): Remove mkdir.
45346         (configure.ac): Remove AC_LIBOBJ of mkdirat.
45347         (Include): Remove <sys/stat.h>.
45348         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
45349         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
45350         tests/test-mkdir.h.
45351         (Depends-on): Remove ignore-value.
45352         (Makefile.am): Remove rules for test-mkdirat.
45353         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
45354         of module 'openat'.
45355         * NEWS: Mention the change.
45357 2011-11-04  Bruno Haible  <bruno@clisp.org>
45359         closedir: Avoid warning on mingw.
45360         * lib/closedir.c: Include <unistd.h>.
45362 2011-11-04  Bruno Haible  <bruno@clisp.org>
45364         New module 'fstatat', split off from module 'openat'.
45365         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45366         defined.
45367         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45368         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45369         gl_FUNC_FSTATAT.
45370         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45371         * modules/fstatat: New file, extracted from modules/openat.
45372         * modules/openat (Files): Remove lib/fstatat.c.
45373         (Depends-on): Remove lstat.
45374         (configure.ac): Remove AC_LIBOBJ of fstatat.
45375         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45376         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45377         tests/test-lstat.h, tests/test-stat.h.
45378         (Depends-on): Remove getcwd-lgpl.
45379         (Makefile.am): Remove rules for test-fstatat.
45380         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45381         of module 'openat'.
45382         * NEWS: Mention the change.
45383         * modules/getcwd (Depends-on): Add fstatat.
45384         * modules/linkat (Depends-on): Likewise.
45385         * modules/mkfifoat-tests (Depends-on): Likewise.
45386         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45388 2011-11-03  Bruno Haible  <bruno@clisp.org>
45390         New module 'unlinkat', split off from module 'openat'.
45391         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45392         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45393         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45394         * modules/unlinkat: New file, extracted from modules/openat. Correct
45395         the dependency conditions.
45396         * modules/openat (Files): Remove lib/unlinkat.c.
45397         (Depends-on): Remove rmdir, unlink.
45398         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45399         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45400         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45401         tests/test-rmdir.h, tests/test-unlink.h.
45402         (Depends-on): Remove unlinkdir.
45403         (Makefile.am): Remove rules for test-unlinkat.
45404         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45405         of module 'openat'.
45406         * NEWS: Mention the change.
45407         * modules/linkat-tests (Depends-on): Add unlinkat.
45408         * modules/mkfifoat-tests (Depends-on): Likewise.
45409         * modules/readlinkat-tests (Depends-on): Likewise.
45411 2011-11-02  Bruno Haible  <bruno@clisp.org>
45413         New module 'fchmodat', split off from module 'openat'.
45414         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45415         defined.
45416         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45417         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45418         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45419         * modules/fchmodat: New file, extracted from modules/openat.
45420         * modules/openat (Files): Remove lib/fchmodat.c.
45421         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45422         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45423         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45424         (Makefile.am): Remove rules for test-fchmodat.
45425         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45426         of module 'openat'.
45427         * NEWS: Mention the change.
45429 2011-11-02  Jim Meyering  <meyering@redhat.com>
45431         putenv: indent #definition of "environ" to placate cppi
45432         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45434         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45435         Git logs are often treated as immutable, because editing them
45436         changes the SHA1 checksums of all descendants.  Thus, errors in
45437         git logs tend to stay there forever.  However, when we generate
45438         a ChangeLog file -- typically for distribution -- from that git log,
45439         we can actually make corrections in the generated file.  The key
45440         lies in recording in machine-readable/applicable form the desired
45441         corrections.  See --help for description and an example.
45442         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45443         (usage): Describe it; alphabetize option descriptions.
45444         (main): Honor the new option, carefully.
45446 2011-11-01  Jim Meyering  <meyering@redhat.com>
45448         gitlog-to-changelog: avoid an infloop
45449         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45450         that ends up being empty.
45452 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45454         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45455         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45456         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45457         contains (possibly-quoted) backslashes.  This should avoid
45458         all-too-common shell bugs if COMPLICATED contains backslashes in
45459         the "wrong" places.  Reported by David Evans in
45460         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45461         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45462         because we want ASCII ranges.  Is there some reason we don't use
45463         the C locale everywhere in this script?
45464         (func_module, top level): Avoid unwanted pathname expansion when
45465         $repo_url_prefix or $repo_url_suffix_repl contain shell
45466         metacharacters like '?' and '*'.
45468 2011-11-01  Bruno Haible  <bruno@clisp.org>
45470         fchownat: Improve description.
45471         * modules/fchownat (Description): Add link to function.
45473 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45475         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
45476         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
45477         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
45478         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
45480 2011-11-01  Bruno Haible  <bruno@clisp.org>
45482         alignof: Avoid collision with stdalign module.
45483         * lib/alignof.h (alignof): Remove macro.
45484         * NEWS: Mention the change.
45485         Reported by Paul Eggert.
45487 2011-11-01  Bruno Haible  <bruno@clisp.org>
45489         New module 'fchownat', split off from module 'openat'.
45490         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
45491         defined.
45492         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
45493         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
45494         invoke gl_FUNC_FCHOWNAT.
45495         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
45496         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
45497         * modules/fchownat: New file, extracted from modules/openat.
45498         * modules/openat (Files): Remove lib/fchownat.c.
45499         (Depends-on): Remove lchown.
45500         (configure.ac): Remove AC_LIBOBJ of fchownat.
45501         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
45502         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
45503         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
45504         (Depends-on): Remove mgetgroups, usleep, stat-time.
45505         (configure.ac): Remove test for getegid.
45506         (Makefile.am): Remove rules for test-fchownat.
45507         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
45508         of module 'openat'.
45509         * NEWS: Mention the change.
45511 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45513         stdalign: port better to MSVC and to Sun C 5.11
45514         This fixes some of the problems reported by Bruno Haible in
45515         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
45516         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
45517         shortcomings of MSVC and of Sun C 5.11.
45518         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
45519         around __declspec arg.
45520         * modules/stdalign-tests (Files): Add tests/macros.h.
45521         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
45522         Include macros.h, for ASSERT.
45523         (DECLARE_ALIGNED): Remove.
45524         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
45525         to catch bug), and to 1 if not (simplifies the rest of the code).
45526         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
45527         (CHECK_AUTO): Remove.
45528         (CHECK_ALIGNED): Check only the alignment of the static vars,
45529         since auto var alignment isn't supported by Sun C 5.11.
45530         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
45531         ASSERT failures are easier to diagnose.
45533 2011-10-31  Bruno Haible  <bruno@clisp.org>
45535         doc about some IRIX 5.3 problems.
45536         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
45537         on IRIX 5.3.
45538         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
45539         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
45540         5.3.
45541         * doc/posix-functions/grantpt.texi: Likewise.
45542         * doc/posix-functions/unlockpt.texi: Likewise.
45543         * doc/posix-functions/lgamma.texi: Likewise.
45544         * doc/posix-functions/nextafter.texi: Likewise.
45545         * doc/posix-functions/remainder.texi: Likewise.
45546         * doc/posix-functions/select.texi: Mention misplaced declaration on
45547         IRIX 5.3.
45548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45550 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
45552         gitlog-to-changelog: fix git-log invocation.
45553         git-log mishandles date strings before 1970-01-01 UTC, and there is
45554         no use to specify --since=1970-01-01 by default anyway.
45555         * build-aux/gitlog-to-changelog: By default, when no --since option
45556         was given, do not specify explicit --since option to git-log.
45558 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
45560         gitlog-to-changelog: new option --append-dot.
45561         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
45562         first non-blank line of each commit message terminated with a dot.
45564 2011-10-30  Bruno Haible  <bruno@clisp.org>
45566         ffsl, ffsll: Avoid compilation error due to 'restrict'.
45567         * lib/ffsl.h: Include <config.h>.
45568         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
45570 2011-10-30  Jim Meyering  <meyering@redhat.com>
45572         GNUmakefile: reenable "make syntax-check" for most projects
45573         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
45574         build-aux variable", "syntax-check" would do nothing but succeed with
45575         the "No version control files detected..." diagnostic (unless you
45576         happened to override _build-aux via cfg.mk).
45577         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
45578         to precede inclusion of maint.mk.  Otherwise, these variables would
45579         be used undefined in any project that does not override the default.
45581 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
45583         gitlog-to-changelog: treat a message with only blank lines as empty.
45584         * build-aux/gitlog-to-changelog: Move the code that removes leading and
45585         trailing blank lines before the code that issues a warning about an
45586         empty commit message.
45588 2011-10-30  Jim Meyering  <meyering@redhat.com>
45590         test-parse-datetime.c: avoid new DST-related false positive test failure
45591         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
45592         based on the time/date we'll convert, not the current time.
45593         Otherwise, the moment we cross a DST boundary like today's in
45594         Europe, (CEST to CET), that offset ends up being one hour off.
45596 2011-10-27  Bruno Haible  <bruno@clisp.org>
45598         fstat: Tweak documentation.
45599         * modules/fstat (Description): More precise description.
45601 2011-10-27  Bruno Haible  <bruno@clisp.org>
45603         Update documentation regarding 'largefile' module.
45604         * doc/posix-functions/fstat.texi: Tweak wording.
45605         * doc/posix-functions/opendir.texi: Mention that the module fixes the
45606         problems with huge directories and/or small ino_t types.
45607         * doc/posix-functions/readdir.texi: Likewise.
45608         * doc/posix-functions/rewinddir.texi: Likewise.
45610 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45612         maint.mk: don't maintain a second build-aux variable.
45613         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45614         depends on GNUmakefile, which already maintains a cfg.mk
45615         overridable $(_build-aux) for projects with a non-standard
45616         build-aux directory location, although without the $(srcdir)
45617         prefix.  Use that variable consistently instead of introducing a
45618         second one.  Adjust all call sites.
45620 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45622         Add stdalign module and use it in other modules.
45623         This is based on a previous proposal by Bruno Haible
45624         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
45626         stdalign: new module
45627         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
45628         * modules/stdalign: New files.
45629         * MODULES.html.sh (c1x_core_properties): Add stdalign.
45630         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
45632         stdalign-tests: new module
45633         * modules/stdalign-tests, tests/test-stdalign.c: New files.
45635         argp: use stdalign
45636         * lib/argp-parse.c: Include <stdalign.h>.
45637         (alignof): Remove.
45638         * modules/argp (Depends-on): Add stdalign.
45640         crypto libraries: use stdalign
45641         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
45642         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
45643         Do not include <stdlib.h> twice, in md4.c.
45644         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
45645         because we are accessing a pointer's bit-pattern, not a size.
45646         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
45647         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
45648         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
45649         * modules/crypto/sha512: Likewise.
45651         sys_socket: use stdalign, not alignof
45652         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
45653         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45655 2011-10-27  Bruno Haible  <bruno@clisp.org>
45657         raise test: Avoid a test failure on Linux/MIPS.
45658         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
45659         because 99 is a valid signal on Linux/MIPS.
45661 2011-10-27  Bruno Haible  <bruno@clisp.org>
45663         nonblocking tests: Fix test failure on Linux/MIPS.
45664         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
45665         Set to 270000.
45667 2011-10-27  Bruno Haible  <bruno@clisp.org>
45669         utimensat: Work around problem on Linux/hppa.
45670         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
45671         values.
45672         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
45674 2011-10-25  Jim Meyering  <meyering@redhat.com>
45676         maint.mk: fix a bug in sc_prohibit_stddef_without_use
45677         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
45678         after symbols like NULL, size_t, etc.
45679         Reported by Alfred M. Szmidt.
45681         maint.mk: exempt ENODATA from a syntax-check rule
45682         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45683         from the sc_prohibit_always-defined_macros syntax-check rule.
45684         Add a comment.  See this for more details:
45685         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45687 2011-10-23  Jim Meyering  <meyering@redhat.com>
45689         fts: close parent dir FD before returning from post-traversal fts_read
45690         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45691         unlink A, even though an FD open on A remained.  This is suboptimal
45692         (holding a file descriptor open longer than needed), but otherwise not
45693         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45694         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45695         that represents a real problem: it causes the removal of A to fail
45696         with e.g., "rm: cannot remove `A': Device or resource busy"
45698         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45699         directory file descriptors.  After completing the final, FTS_DP,
45700         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45701         cache, but then proceeded to add a new FD to it via the subsequent
45702         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45703         final file descriptor would be closed only via fts_close's call to
45704         fd_ring_clear.  Now, it is usually closed earlier, via the final
45705         FTS_DP-returning fts_read call.
45706         * lib/fts.c (restore_initial_cwd): New function, converted from
45707         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45708         Update callers.
45709         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45710         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45712 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45713             Bruno Haible  <bruno@clisp.org>
45714             Jim Meyering  <jim@meyering.net>
45716         readme-release: improve safety of release prep instructions.
45717         * README-release: Don't git pull all branches when only master
45718         is needed for the release process.
45719         Run make maintainer-clean before changing trees and merging.
45720         Don't try to run ./configure right after git pull in case files
45721         that influence the bootstrap process have changed, move the
45722         ./configure step to after running ./bootstrap.
45723         Don't bootstrap "one last time"... it's the first time!
45725 2011-10-22  Bruno Haible  <bruno@clisp.org>
45727         errno, strerror-override: Support for MSVC 10.
45728         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45729         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45730         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45731         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45732         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45733         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45734         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45735         Assign values compatible with MSVC 10.
45736         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45737         New macros.
45738         (GNULIB_defined_EWINSOCK): New macro.
45739         * lib/strerror-override.c (strerror_override): Update accordingly.
45740         * lib/strerror-override.h: Likewise.
45741         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45742         longer equal to the corresponding errno value.
45743         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45745 2011-10-22  Bruno Haible  <bruno@clisp.org>
45747         perror: Recognize when test program crashes.
45748         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45749         strerror, set gl_cv_func_perror_works to no.
45750         Reported by Daniel Richard G. <skunk@iskunk.org>.
45752         perror: Fix indentation.
45753         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45755 2011-10-22  Bruno Haible  <bruno@clisp.org>
45757         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45758         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45759         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45760         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45761         functions, not as a macro.
45762         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45763         macros.
45764         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45765         absence of macro.
45766         Suggested by Eric Blake.
45767         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45769 2011-10-21  Bruno Haible  <bruno@clisp.org>
45771         relocatable-prog-wrapper: Don't leave object files behind.
45772         * build-aux/install-reloc: Re-synchronize list of .o files to be
45773         removed with list of compilation units.
45775 2011-10-20  Bruno Haible  <bruno@clisp.org>
45777         openpty, posix_openpt: Remove code duplication.
45778         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45779         * lib/openpty.c: Include <stdlib.h>.
45780         (openpty): Use posix_openpt on all platforms except IRIX.
45781         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45783 2011-10-20  Bruno Haible  <bruno@clisp.org>
45785         unlockpt: Detect invalid argument.
45786         * lib/unlockpt.c: Include <fcntl.h>.
45787         (unlockpt): Check whether fd is valid, using fcntl().
45788         * modules/unlockpt (Depends-on): Add fcntl-h.
45790 2011-10-20  Bruno Haible  <bruno@clisp.org>
45792         openpty: Avoid compilation error on AIX 6.1.
45793         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45795 2011-10-20  Bruno Haible  <bruno@clisp.org>
45797         posix_openpt: Support for OpenBSD.
45798         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45799         (posix_openpt) [OpenBSD]: New code.
45800         * lib/grantpt.c: Include <fcntl.h>.
45801         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45802         * modules/grantpt (Depends-on): Add fcntl-h.
45804 2011-10-20  Bruno Haible  <bruno@clisp.org>
45806         posix_openpt test: Coding style.
45807         * tests/test-posix_openpt.c: Use GNU coding style.
45809 2011-10-20  Bruno Haible  <bruno@clisp.org>
45811         grantpt: Support --avoid=pt_chown.
45812         * modules/grantpt (Files): Add lib/pty-private.h.
45814 2011-10-20  Bruno Haible  <bruno@clisp.org>
45816         posix_openpt: Fix autoconf macro.
45817         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45818         unneeded check for _getpty.
45820 2011-10-20  Bruno Haible  <bruno@clisp.org>
45822         openpty: Update comments.
45823         * lib/openpty.c: Add comments about Minix.
45825 2011-10-19  Eric Blake  <eblake@redhat.com>
45827         openpty: relax license
45828         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45830         pt_chown: use configmake to simplify build
45831         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45833         ptsname and others: relax license
45834         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45835         * modules/unlockpt (License): Likewise.
45836         * modules/pt_chown (License): Likewise.
45837         * modules/ptsname (License): Likewise.
45838         * modules/ttyname_r (License): Likewise.
45840 2011-10-19  Jim Meyering  <meyering@redhat.com>
45842         posix_openpt: remove spurious #endif
45843         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45845 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45847         maint.mk: Respect $(build_aux) in web-manual rule.
45848         * top/maint.mk (web-manual): Find gen-announce script in user's
45849         $(build_aux) directory instead of hard-coding 'build-aux'.
45851 2011-10-19  Bruno Haible  <bruno@clisp.org>
45853         posix_openpt: Fix compilation error.
45854         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45855         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45856         Mention the openpty module as an alternative.
45858 2011-10-19  Bruno Haible  <bruno@clisp.org>
45860         Support for old NeXTstep 3.3 frexp().
45861         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45862         execution time of the test to 5 seconds.
45863         Reported by Daniel Richard G. <skunk@iskunk.org>.
45865 2011-10-19  Bruno Haible  <bruno@clisp.org>
45867         Support for old NeXTstep 3.3 sed.
45868         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45869         part, use /.../, not \|...|. Escape periods in the header file name.
45870         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45871         Reported by Daniel Richard G. <skunk@iskunk.org>.
45873 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45875         Support for old NeXTstep 3.3 gcc.
45876         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45877         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45878         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45879         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45880         * lib/regex.h (_Restrict_arr_): Likewise.
45881         * lib/regex_internal.h (re_token_t): Likewise.
45882         * lib/regexec.c (check_node_accept_bytes): Likewise.
45883         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45885 2011-10-18  Eric Blake  <eblake@redhat.com>
45887         posix_openpt: new module
45888         * modules/posix_openpt: New module.
45889         * m4/posix_openpt.m4: New file.
45890         * lib/posix_openpt.c: Likewise.
45891         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45892         (gl_STDLIB_H_DEFAULTS): Set defaults.
45893         * modules/stdlib (Makefile.am): Substitute macros.
45894         * lib/stdlib.in.h (posix_openpt): Declare.
45895         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45896         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45897         * modules/posix_openpt-tests: New test module.
45898         * tests/test-posix_openpt.c: New test.
45900 2011-10-15  Bruno Haible  <bruno@clisp.org>
45902         xstrtoll: Fix compilation failure.
45903         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45904         from lib/strtol.c.
45905         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45906         some platforms.
45907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45909 2011-10-15  Bruno Haible  <bruno@clisp.org>
45911         vasnprintf: Optimize bit search operation.
45912         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45914         gl_DOUBLE_EXPONENT_LOCATION.
45915         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45916         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45917         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45918         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45919         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45920         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45921         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45922         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45923         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45925 2011-10-15  Bruno Haible  <bruno@clisp.org>
45927         vasnprintf: Fix comments.
45928         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45930 2011-10-14  Bruno Haible  <bruno@clisp.org>
45932         Tests for module 'integer_length_ll'.
45933         * modules/integer_length_ll-tests: New file.
45934         * tests/test-integer_length_ll.c: New file.
45936         New module 'integer_length_ll'.
45937         * lib/integer_length_ll.c: New file.
45938         * modules/integer_length_ll: New file.
45940 2011-10-14  Bruno Haible  <bruno@clisp.org>
45942         Tests for module 'integer_length_l'.
45943         * modules/integer_length_l-tests: New file.
45944         * tests/test-integer_length_l.c: New file.
45946         New module 'integer_length_l'.
45947         * lib/integer_length_l.c: New file.
45948         * modules/integer_length_l: New file.
45950 2011-10-14  Bruno Haible  <bruno@clisp.org>
45952         Tests for module 'integer_length'.
45953         * modules/integer_length-tests: New file.
45954         * tests/test-integer_length.c: New file.
45956         New module 'integer_length'.
45957         * lib/integer_length.h: New file.
45958         * lib/integer_length.c: New file.
45959         * modules/integer_length: New file.
45961 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45963         popen: Fix dependency conditions.
45964         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45966 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45968         perror: Fix autoconf test.
45969         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45970         <stdlib.h> and <string.h>.
45972 2011-10-14  Bruno Haible  <bruno@clisp.org>
45974         ffsl: Optimize on 64-bit platforms.
45975         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45976         unrolling.
45978 2011-10-13  Bruno Haible  <bruno@clisp.org>
45980         ffsl: Optimize on 32-bit platforms.
45981         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45982         use ffs() without a loop.
45984         ffsl, ffsll: Optimize for GCC.
45985         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45986         * lib/ffsl.c (GCC_BUILTIN): New macro.
45987         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45989 2011-10-13  Bruno Haible  <bruno@clisp.org>
45991         ffs, bcopy, memset: Support symbol renaming via config.h.
45992         * lib/ffs.c: Include <config.h>.
45993         * lib/bcopy.c: Likewise.
45994         * lib/memset.c: Likewise.
45996 2011-10-10  Bruno Haible  <bruno@clisp.org>
45998         atanl: Simplify for platforms where 'long double' == 'double'.
45999         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46000         alternative implementation.
46001         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46002         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46003         * modules/atanl (Depends-on): Add atan. Update conditions.
46005 2011-10-10  Bruno Haible  <bruno@clisp.org>
46007         acosl: Simplify for platforms where 'long double' == 'double'.
46008         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46009         alternative implementation.
46010         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46011         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46012         * modules/acosl (Depends-on): Add acos. Update conditions.
46014 2011-10-10  Bruno Haible  <bruno@clisp.org>
46016         asinl: Simplify for platforms where 'long double' == 'double'.
46017         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46018         alternative implementation.
46019         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46020         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46021         * modules/asinl (Depends-on): Add asin. Update conditions.
46023 2011-10-10  Bruno Haible  <bruno@clisp.org>
46025         tanl: Simplify for platforms where 'long double' == 'double'.
46026         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46027         implementation.
46028         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46029         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46030         * modules/tanl (Depends-on): Add tan. Update conditions.
46031         (configure.ac): Don't compile trigl.c if
46032         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46034 2011-10-10  Bruno Haible  <bruno@clisp.org>
46036         cosl: Simplify for platforms where 'long double' == 'double'.
46037         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46038         implementation.
46039         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46040         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46041         * modules/cosl (Depends-on): Add cos. Update conditions.
46042         (configure.ac): Don't compile sincosl.c and trigl.c if
46043         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46045 2011-10-10  Bruno Haible  <bruno@clisp.org>
46047         sinl: Simplify for platforms where 'long double' == 'double'.
46048         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46049         implementation.
46050         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46051         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46052         * modules/sinl (Depends-on): Add sin. Update conditions.
46053         (configure.ac): Don't compile sincosl.c and trigl.c if
46054         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46056 2011-10-10  Bruno Haible  <bruno@clisp.org>
46058         logl: Simplify for platforms where 'long double' == 'double'.
46059         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46060         implementation.
46061         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46062         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46063         * modules/logl (Depends-on): Add log. Update conditions.
46065 2011-10-10  Bruno Haible  <bruno@clisp.org>
46067         expl: Simplify for platforms where 'long double' == 'double'.
46068         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46069         implementation.
46070         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46071         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46072         * modules/expl (Depends-on): Add exp. Update conditions.
46074 2011-10-10  Bruno Haible  <bruno@clisp.org>
46076         sqrtl: Simplify for platforms where 'long double' == 'double'.
46077         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46078         alternative implementation.
46079         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46080         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46081         * modules/sqrtl (Depends-on): Update conditions.
46083 2011-10-10  Bruno Haible  <bruno@clisp.org>
46085         ldexpl: Simplify for platforms where 'long double' == 'double'.
46086         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46087         alternative implementation.
46088         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46089         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46090         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
46092 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
46094         ffsll: set correct witness
46095         * modules/ffsll (configure.ac): Fix typo.
46097 2011-10-10  Bruno Haible  <bruno@clisp.org>
46099         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
46100         * lib/printf-frexpl.c: Include <config.h>.
46101         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46102         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
46103         second time.
46104         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
46105         gl_LONG_DOUBLE_VS_DOUBLE.
46106         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
46107         conditions.
46109 2011-10-10  Bruno Haible  <bruno@clisp.org>
46111         frexpl: Simplify for platforms where 'long double' == 'double'.
46112         * lib/frexpl.c: Include <config.h>.
46113         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46114         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46115         time.
46116         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46117         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46118         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
46119         * modules/frexpl (Depends-on): Add frexp. Update conditions.
46120         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
46121         conditions.
46123 2011-10-10  Jim Meyering  <meyering@redhat.com>
46125         test-renameat: don't leave behind a temporary file
46126         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
46127           ERROR: files left in build directory after distclean:
46128           ./gltests/test-renameat.too
46129           make[1]: *** [distcleancheck] Error 1
46130         Reported by Tom G. Christensen.
46132 2011-10-09  Bruno Haible  <bruno@clisp.org>
46134         rint: Determine RINT_LIBM correctly on AIX 7.
46135         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
46136         directly, not only through a function pointer. Also accept an optional
46137         4th argument with extra code.
46138         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
46139         rintf() call by gcc when optimizing.
46141         mathfunc.m4: Refactor.
46142         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
46143         m4 variable.
46145 2011-10-09  Bruno Haible  <bruno@clisp.org>
46147         rintl: Simplify for platforms where 'long double' == 'double'.
46148         * lib/rintl.c: Include <config.h>.
46149         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46150         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46151         time.
46152         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46153         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46154         * modules/rintl (Depends-on): Add rint. Update conditions.
46156 2011-10-09  Bruno Haible  <bruno@clisp.org>
46158         roundl: Simplify for platforms where 'long double' == 'double'.
46159         * lib/roundl.c: Include <config.h>.
46160         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46161         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46162         time.
46163         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46164         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46165         * modules/roundl (Depends-on): Add round. Update conditions.
46167 2011-10-09  Bruno Haible  <bruno@clisp.org>
46169         truncl: Simplify for platforms where 'long double' == 'double'.
46170         * lib/truncl.c: Include <config.h>.
46171         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46172         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46173         time.
46174         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46175         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46176         * modules/truncl (Depends-on): Add trunc. Update conditions.
46178 2011-10-09  Bruno Haible  <bruno@clisp.org>
46180         ceill: Simplify for platforms where 'long double' == 'double'.
46181         * lib/ceill.c: Include <config.h>.
46182         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46183         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46184         time.
46185         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46186         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46187         * modules/ceill (Depends-on): Add ceil. Update conditions.
46189 2011-10-09  Bruno Haible  <bruno@clisp.org>
46191         floorl: Simplify for platforms where 'long double' == 'double'.
46192         * lib/floorl.c: Include <config.h>.
46193         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46194         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46195         time.
46196         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46197         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46198         * modules/floorl (Depends-on): Add floor. Update conditions.
46200 2011-10-09  Bruno Haible  <bruno@clisp.org>
46202         rint: Fix ordering constraints.
46203         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
46204         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
46205         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
46207 2011-10-09  Bruno Haible  <bruno@clisp.org>
46209         copysignl: Simplify for platforms where 'long double' == 'double'.
46210         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46211         alternative.
46212         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46213         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46214         * modules/copysignl (Depends-on): Add copysign. Update conditions.
46216 2011-10-09  Bruno Haible  <bruno@clisp.org>
46218         Tests for module 'rintl'.
46219         * modules/rintl-tests: New file.
46220         * tests/test-rintl.c: New file.
46222         New module 'rintl'.
46223         * lib/math.in.h (rintl): New declaration.
46224         * lib/rintl.c: New file.
46225         * m4/rintl.m4: New file.
46226         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
46227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
46228         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
46229         * modules/rintl: New file.
46230         * tests/test-math-c++.cc: Check the declaration of rintl.
46231         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46232         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
46233         * doc/posix-functions/rintl.texi: Mention the new module.
46235 2011-10-09  Bruno Haible  <bruno@clisp.org>
46237         Tests for module 'rintf'.
46238         * modules/rintf-tests: New file.
46239         * tests/test-rintf.c: New file.
46241         New module 'rintf'.
46242         * lib/math.in.h (rintf): New declaration.
46243         * lib/rintf.c: New file.
46244         * m4/rintf.m4: New file.
46245         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
46246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
46247         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
46248         * modules/rintf: New file.
46249         * tests/test-math-c++.cc: Check the declaration of rintf.
46250         * doc/posix-functions/rintf.texi: Mention the new module.
46252 2011-10-09  Bruno Haible  <bruno@clisp.org>
46254         rint: Support for MSVC.
46255         * lib/math.in.h (rint): New declaration.
46256         * lib/rint.c: New file.
46257         * m4/rint.m4: New file.
46258         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
46259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
46260         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
46261         * modules/rint (Description): Fix.
46262         (Files): Add lib/rint.c, m4/rint.m4.
46263         (Depends-on): Add math.
46264         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
46265         gl_MATH_MODULE_INDICATOR.
46266         * tests/test-math-c++.cc: Check the declaration of rint.
46267         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46268         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
46269         * doc/posix-functions/rint.texi: Mention the replacement provided by
46270         the module.
46272         rint tests: More tests.
46273         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
46274         minus-zero.h, infinity.h, nan.h.
46275         (main): Skip the test if the current rounding mode is not standard. Add
46276         tests for negative numbers, minus zero, infinity, NaN.
46277         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
46278         tests/nan.h.
46279         (Depends-on): Add isnand-nolibm.
46281 2011-10-09  Bruno Haible  <bruno@clisp.org>
46283         Tests for module 'copysignl'.
46284         * modules/copysignl-tests: New file.
46285         * tests/test-copysignl.c: New file.
46287         New module 'copysignl'.
46288         * lib/math.in.h (copysignl): New declaration.
46289         * lib/copysignl.c: New file.
46290         * m4/copysignl.m4: New file.
46291         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
46292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
46293         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
46294         HAVE_COPYSIGNL.
46295         * modules/copysignl: New file.
46296         * tests/test-math-c++.cc: Check the declaration of copysignl.
46297         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46298         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
46299         * doc/posix-functions/copysignl.texi: Mention the new module.
46301 2011-10-09  Bruno Haible  <bruno@clisp.org>
46303         Tests for module 'copysignf'.
46304         * modules/copysignf-tests: New file.
46305         * tests/test-copysignf.c: New file.
46307         New module 'copysignf'.
46308         * lib/math.in.h (copysignf): New declaration.
46309         * lib/copysignf.c: New file.
46310         * m4/copysignf.m4: New file.
46311         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
46312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
46313         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
46314         HAVE_COPYSIGNF.
46315         * modules/copysignf: New file.
46316         * tests/test-math-c++.cc: Check the declaration of copysignf.
46317         * doc/posix-functions/copysignf.texi: Mention the new module.
46319 2011-10-09  Bruno Haible  <bruno@clisp.org>
46321         Ensure that HAVE_* variables are set to 1 before they are set to 0.
46322         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
46323         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
46324         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46325         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
46326         gl_SIGNAL_H_DEFAULTS.
46328 2011-10-09  Bruno Haible  <bruno@clisp.org>
46330         poll: Make macro safer.
46331         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
46332         ac_cv_header_poll_h is not set.
46334 2011-10-09  Bruno Haible  <bruno@clisp.org>
46336         copysign: Provide replacement.
46337         * lib/math.in.h (copysign): New declaration.
46338         * lib/copysign.c: New file.
46339         * m4/copysign.m4: New file.
46340         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
46341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
46342         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
46343         HAVE_COPYSIGN.
46344         * modules/copysign (Description): Clarify.
46345         (Files): Add lib/copysign.c, m4/copysign.m4.
46346         (Depends-on): Add math, signbit.
46347         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
46348         gl_MATH_MODULE_INDICATOR.
46349         * tests/test-math-c++.cc: Check the declaration of copysign.
46350         * doc/posix-functions/copysign.texi: Mention the effects of the module
46351         on Minix and MSVC.
46353 2011-10-09  Bruno Haible  <bruno@clisp.org>
46355         isinf: Ensure macro on AIX 5.1.
46356         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
46357         macro.
46358         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
46360 2011-10-09  Bruno Haible  <bruno@clisp.org>
46362         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46363         * modules/snprintf-posix-tests (configure.ac): Require
46364         gl_LONG_DOUBLE_VS_DOUBLE.
46365         * modules/sprintf-posix-tests (configure.ac): Likewise.
46366         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46367         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46368         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46369         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46370         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46371         tests on platforms where 'long double' is the same as 'double'.
46372         * tests/test-sprintf-posix.h (test_function): Likewise.
46373         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46374         * tests/test-vasprintf-posix.c (test_function): Likewise.
46376         *printf: Fix for platforms where 'long double' == 'double'.
46377         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46378         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46379         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46380         * modules/fprintf-posix (Files): Likewise.
46381         * modules/obstack-printf-posix (Files): Likewise.
46382         * modules/snprintf-posix (Files): Likewise.
46383         * modules/sprintf-posix (Files): Likewise.
46384         * modules/vasnprintf (Files): Likewise.
46385         * modules/vasnprintf-posix (Files): Likewise.
46386         * modules/vasprintf-posix (Files): Likewise.
46387         * modules/vdprintf-posix (Files): Likewise.
46388         * modules/vfprintf-posix (Files): Likewise.
46389         * modules/vsnprintf-posix (Files): Likewise.
46390         * modules/vsprintf-posix (Files): Likewise.
46391         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46392         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46393         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46394         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46395         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46396         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46397         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46399         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46400         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46401         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46402         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46403         'long double'.
46404         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46406         isinf: Fix for platforms where 'long double' == 'double'.
46407         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46408         Don't blindly assume 80-bit 'long double'.
46410         isfinite: Fix for platforms where 'long double' == 'double'.
46411         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46412         Don't blindly assume 80-bit 'long double'.
46414         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46415         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46416         * modules/isfinite-tests (configure.ac): Require
46417         gl_LONG_DOUBLE_VS_DOUBLE.
46418         * modules/isinf-tests (configure.ac): Likewise.
46419         * modules/isnan-tests (configure.ac): Likewise.
46420         * modules/isnanl-tests (configure.ac): Likewise.
46421         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46422         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46423         tests on platforms where 'long double' is the same as 'double'.
46424         * tests/test-isinf.c (test_isinfl): Likewise.
46425         * tests/test-isnan.c (test_long_double): Likewise.
46426         * tests/test-isnanl.h (main): Likewise.
46428 2011-10-08  Bruno Haible  <bruno@clisp.org>
46430         Tests for module 'tanhf'.
46431         * modules/tanhf-tests: New file.
46432         * tests/test-tanhf.c: New file.
46434         New module 'tanhf'.
46435         * lib/math.in.h (tanhf): New declaration.
46436         * lib/tanhf.c: New file.
46437         * m4/tanhf.m4: New file.
46438         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46440         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46441         * modules/tanhf: New file.
46442         * tests/test-math-c++.cc: Check the declaration of tanhf.
46443         * doc/posix-functions/tanhf.texi: Mention the new module.
46445         tanh: Use a .m4 file.
46446         * m4/tanh.m4: New file.
46447         * modules/tanh (Files): Add it.
46448         (configure.ac): Just invoke gl_FUNC_TANH.
46450 2011-10-08  Bruno Haible  <bruno@clisp.org>
46452         Tests for module 'coshf'.
46453         * modules/coshf-tests: New file.
46454         * tests/test-coshf.c: New file.
46456         New module 'coshf'.
46457         * lib/math.in.h (coshf): New declaration.
46458         * lib/coshf.c: New file.
46459         * m4/coshf.m4: New file.
46460         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46462         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46463         * modules/coshf: New file.
46464         * tests/test-math-c++.cc: Check the declaration of coshf.
46465         * doc/posix-functions/coshf.texi: Mention the new module.
46467         cosh: Use a .m4 file.
46468         * m4/cosh.m4: New file.
46469         * modules/cosh (Files): Add it.
46470         (configure.ac): Just invoke gl_FUNC_COSH.
46472 2011-10-08  Bruno Haible  <bruno@clisp.org>
46474         Tests for module 'sinhf'.
46475         * modules/sinhf-tests: New file.
46476         * tests/test-sinhf.c: New file.
46478         New module 'sinhf'.
46479         * lib/math.in.h (sinhf): New declaration.
46480         * lib/sinhf.c: New file.
46481         * m4/sinhf.m4: New file.
46482         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
46483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
46484         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
46485         * modules/sinhf: New file.
46486         * tests/test-math-c++.cc: Check the declaration of sinhf.
46487         * doc/posix-functions/sinhf.texi: Mention the new module.
46489         sinh: Use a .m4 file.
46490         * m4/sinh.m4: New file.
46491         * modules/sinh (Files): Add it.
46492         (configure.ac): Just invoke gl_FUNC_SINH.
46494 2011-10-08  Bruno Haible  <bruno@clisp.org>
46496         Tests for module 'atan2f'.
46497         * modules/atan2f-tests: New file.
46498         * tests/test-atan2f.c: New file.
46500         New module 'atan2f'.
46501         * lib/math.in.h (atan2f): New declaration.
46502         * lib/atan2f.c: New file.
46503         * m4/atan2f.m4: New file.
46504         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
46505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
46506         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
46507         * modules/atan2f: New file.
46508         * tests/test-math-c++.cc: Check the declaration of atan2f.
46509         * doc/posix-functions/atan2f.texi: Mention the new module.
46511         atan2: Use a .m4 file.
46512         * m4/atan2.m4: New file.
46513         * modules/atan2 (Files): Add it.
46514         (configure.ac): Just invoke gl_FUNC_ATAN2.
46516 2011-10-08  Bruno Haible  <bruno@clisp.org>
46518         Tests for module 'atanf'.
46519         * modules/atanf-tests: New file.
46520         * tests/test-atanf.c: New file.
46522         New module 'atanf'.
46523         * lib/math.in.h (atanf): New declaration.
46524         * lib/atanf.c: New file.
46525         * m4/atanf.m4: New file.
46526         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
46527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
46528         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
46529         * modules/atanf: New file.
46530         * tests/test-math-c++.cc: Check the declaration of atanf.
46531         * doc/posix-functions/atanf.texi: Mention the new module.
46533         atan: Use a .m4 file.
46534         * m4/atan.m4: New file.
46535         * modules/atan (Files): Add it.
46536         (configure.ac): Just invoke gl_FUNC_ATAN.
46538 2011-10-08  Bruno Haible  <bruno@clisp.org>
46540         Tests for module 'acosf'.
46541         * modules/acosf-tests: New file.
46542         * tests/test-acosf.c: New file.
46544         New module 'acosf'.
46545         * lib/math.in.h (acosf): New declaration.
46546         * lib/acosf.c: New file.
46547         * m4/acosf.m4: New file.
46548         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
46549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
46550         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
46551         * modules/acosf: New file.
46552         * tests/test-math-c++.cc: Check the declaration of acosf.
46553         * doc/posix-functions/acosf.texi: Mention the new module.
46555         acos: Use a .m4 file.
46556         * m4/acos.m4: New file.
46557         * modules/acos (Files): Add it.
46558         (configure.ac): Just invoke gl_FUNC_ACOS.
46560 2011-10-08  Bruno Haible  <bruno@clisp.org>
46562         Tests for module 'asinf'.
46563         * modules/asinf-tests: New file.
46564         * tests/test-asinf.c: New file.
46566         New module 'asinf'.
46567         * lib/math.in.h (asinf): New declaration.
46568         * lib/asinf.c: New file.
46569         * m4/asinf.m4: New file.
46570         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
46571         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
46572         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
46573         * modules/asinf: New file.
46574         * tests/test-math-c++.cc: Check the declaration of asinf.
46575         * doc/posix-functions/asinf.texi: Mention the new module.
46577         asin: Use a .m4 file.
46578         * m4/asin.m4: New file.
46579         * modules/asin (Files): Add it.
46580         (configure.ac): Just invoke gl_FUNC_ASIN.
46582 2011-10-08  Bruno Haible  <bruno@clisp.org>
46584         Tests for module 'tanf'.
46585         * modules/tanf-tests: New file.
46586         * tests/test-tanf.c: New file.
46588         New module 'tanf'.
46589         * lib/math.in.h (tanf): New declaration.
46590         * lib/tanf.c: New file.
46591         * m4/tanf.m4: New file.
46592         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
46593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
46594         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
46595         * modules/tanf: New file.
46596         * tests/test-math-c++.cc: Check the declaration of tanf.
46597         * doc/posix-functions/tanf.texi: Mention the new module.
46599         tan: Use a .m4 file.
46600         * m4/tan.m4: New file.
46601         * modules/tan (Files): Add it.
46602         (configure.ac): Just invoke gl_FUNC_TAN.
46604 2011-10-08  Bruno Haible  <bruno@clisp.org>
46606         Tests for module 'cosf'.
46607         * modules/cosf-tests: New file.
46608         * tests/test-cosf.c: New file.
46610         New module 'cosf'.
46611         * lib/math.in.h (cosf): New declaration.
46612         * lib/cosf.c: New file.
46613         * m4/cosf.m4: New file.
46614         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46616         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
46617         * modules/cosf: New file.
46618         * tests/test-math-c++.cc: Check the declaration of cosf.
46619         * doc/posix-functions/cosf.texi: Mention the new module.
46621         cos: Use a .m4 file.
46622         * m4/cos.m4: New file.
46623         * modules/cos (Files): Add it.
46624         (configure.ac): Just invoke gl_FUNC_COS.
46626 2011-10-08  Bruno Haible  <bruno@clisp.org>
46628         Tests for module 'sinf'.
46629         * modules/sinf-tests: New file.
46630         * tests/test-sinf.c: New file.
46632         New module 'sinf'.
46633         * lib/math.in.h (sinf): New declaration.
46634         * lib/sinf.c: New file.
46635         * m4/sinf.m4: New file.
46636         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
46637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
46638         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
46639         * modules/sinf: New file.
46640         * tests/test-math-c++.cc: Check the declaration of sinf.
46641         * doc/posix-functions/sinf.texi: Mention the new module.
46643         sin: Use a .m4 file.
46644         * m4/sin.m4: New file.
46645         * modules/sin (Files): Add it.
46646         (configure.ac): Just invoke gl_FUNC_SIN.
46648 2011-10-08  Bruno Haible  <bruno@clisp.org>
46650         Tests for module 'powf'.
46651         * modules/powf-tests: New file.
46652         * tests/test-powf.c: New file.
46654         New module 'powf'.
46655         * lib/math.in.h (powf): New declaration.
46656         * lib/powf.c: New file.
46657         * m4/powf.m4: New file.
46658         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
46659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
46660         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
46661         * modules/powf: New file.
46662         * tests/test-math-c++.cc: Check the declaration of powf.
46663         * doc/posix-functions/powf.texi: Mention the new module.
46665         pow: Use a .m4 file.
46666         * m4/pow.m4: New file.
46667         * modules/pow (Files): Add it.
46668         (configure.ac): Just invoke gl_FUNC_POW.
46670 2011-10-08  Bruno Haible  <bruno@clisp.org>
46672         Tests for module 'log10f'.
46673         * modules/log10f-tests: New file.
46674         * tests/test-log10f.c: New file.
46676         New module 'log10f'.
46677         * lib/math.in.h (log10f): New declaration.
46678         * lib/log10f.c: New file.
46679         * m4/log10f.m4: New file.
46680         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46682         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46683         * modules/log10f: New file.
46684         * tests/test-math-c++.cc: Check the declaration of log10f.
46685         * doc/posix-functions/log10f.texi: Mention the new module.
46687         log10: Use a .m4 file.
46688         * m4/log10.m4: New file.
46689         * modules/log10 (Files): Add it.
46690         (configure.ac): Just invoke gl_FUNC_LOG10.
46692 2011-10-08  Bruno Haible  <bruno@clisp.org>
46694         Tests for module 'logf'.
46695         * modules/logf-tests: New file.
46696         * tests/test-logf.c: New file.
46698         New module 'logf'.
46699         * lib/math.in.h (logf): New declaration.
46700         * lib/logf.c: New file.
46701         * m4/logf.m4: New file.
46702         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46704         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46705         * modules/logf: New file.
46706         * tests/test-math-c++.cc: Check the declaration of logf.
46707         * doc/posix-functions/logf.texi: Mention the new module.
46709         log: Use a .m4 file.
46710         * m4/log.m4: New file.
46711         * modules/log (Files): Add it.
46712         (configure.ac): Just invoke gl_FUNC_LOG.
46714 2011-10-08  Bruno Haible  <bruno@clisp.org>
46716         Tests for module 'expf'.
46717         * modules/expf-tests: New file.
46718         * tests/test-expf.c: New file.
46720         New module 'expf'.
46721         * lib/math.in.h (expf): New declaration.
46722         * lib/expf.c: New file.
46723         * m4/expf.m4: New file.
46724         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46726         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46727         * modules/expf: New file.
46728         * tests/test-math-c++.cc: Check the declaration of expf.
46729         * doc/posix-functions/expf.texi: Mention the new module.
46731         exp: Use a .m4 file.
46732         * m4/exp.m4: New file.
46733         * modules/exp (Files): Add it.
46734         (configure.ac): Just invoke gl_FUNC_EXP.
46736 2011-10-08  Bruno Haible  <bruno@clisp.org>
46738         Tests for module 'sqrtf'.
46739         * modules/sqrtf-tests: New file.
46740         * tests/test-sqrtf.c: New file.
46742         New module 'sqrtf'.
46743         * lib/math.in.h (sqrtf): New declaration.
46744         * lib/sqrtf.c: New file.
46745         * m4/sqrtf.m4: New file.
46746         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46748         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46749         * modules/sqrtf: New file.
46750         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46751         * doc/posix-functions/sqrtf.texi: Mention the new module.
46753 2011-10-08  Bruno Haible  <bruno@clisp.org>
46755         Tests: Avoid link failures w.r.t. libintl.
46756         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46757         $(LIBINTL).
46758         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46759         $(LIBINTL).
46760         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46761         against $(LIBINTL).
46762         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46763         $(LIBINTL).
46764         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46765         $(LIBINTL).
46766         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46768 2011-10-08  Bruno Haible  <bruno@clisp.org>
46770         pow tests: Defeat compiler optimizations.
46771         * tests/test-pow.c (main): Assign arguments to x and y before use.
46773 2011-10-08  Bruno Haible  <bruno@clisp.org>
46775         gnulib-tool: Improve last commit.
46776         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46777         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46778         ignore dependencies that are not among the modules list.
46780 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46782         gnulib-tool: don't follow dependencies to avoided modules
46783         This fixes a bug that is related to the previous one.
46784         * gnulib-tool (func_modules_transitive_closure)
46785         (func_emit_autoconf_snippets):
46786         Check whether a dependency is acceptable before using it.
46787         (--extract-dependencies): Report an error if --avoid is also used,
46788         since this combination of options is not yet supported.
46790         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46791         Problem reported by Peter Dyballa in
46792         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46793         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46794         when echoing "$condition".
46796 2011-10-07  Bruno Haible  <bruno@clisp.org>
46798         Fix documentation about math functions on MacOS X.
46799         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46800         MacOS X 10.5.
46801         * doc/posix-functions/fdim.texi: Likewise.
46802         * doc/posix-functions/feclearexcept.texi: Likewise.
46803         * doc/posix-functions/fegetenv.texi: Likewise.
46804         * doc/posix-functions/fegetround.texi: Likewise.
46805         * doc/posix-functions/feholdexcept.texi: Likewise.
46806         * doc/posix-functions/feraiseexcept.texi: Likewise.
46807         * doc/posix-functions/fesetenv.texi: Likewise.
46808         * doc/posix-functions/fesetround.texi: Likewise.
46809         * doc/posix-functions/fetestexcept.texi: Likewise.
46810         * doc/posix-functions/feupdateenv.texi: Likewise.
46811         * doc/posix-functions/fmax.texi: Likewise.
46812         * doc/posix-functions/fmin.texi: Likewise.
46813         * doc/posix-functions/log2.texi: Likewise.
46814         * doc/posix-functions/modff.texi: Likewise.
46815         * doc/posix-functions/nan.texi: Likewise.
46816         * doc/posix-functions/nanf.texi: Likewise.
46817         * doc/posix-functions/nextafterf.texi: Likewise.
46818         * doc/posix-functions/remquo.texi: Likewise.
46820 2011-10-07  Bruno Haible  <bruno@clisp.org>
46822         modff: Drop assumption about library that defines modff.
46823         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46824         AC_CHECK_FUNCS.
46825         * modules/modff (Files): Add m4/mathfunc.m4.
46827 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46829         raise tests: Avoid a GCC warning.
46830         * tests/test-raise.c (handler): Use _Noreturn.
46832 2011-10-07  Bruno Haible  <bruno@clisp.org>
46834         Tests for module 'ldexpf'.
46835         * modules/ldexpf-tests: New file.
46836         * tests/test-ldexpf.c: New file.
46838         New module 'ldexpf'.
46839         * lib/math.in.h (ldexpf): New declaration.
46840         * lib/ldexpf.c: New file.
46841         * m4/ldexpf.m4: New file.
46842         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46844         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46845         * modules/ldexpf: New file.
46846         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46847         * doc/posix-functions/ldexpf.texi: Mention the new module.
46849 2011-10-06  Bruno Haible  <bruno@clisp.org>
46851         frexpf: Work around problems on IRIX and mingw.
46852         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46854         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46855         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46856         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46857         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46858         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46860 2011-10-06  Bruno Haible  <bruno@clisp.org>
46862         fabsf: Drop assumption about library that defines fabsf.
46863         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46864         AC_CHECK_FUNCS.
46865         * modules/fabsf (Files): Add m4/mathfunc.m4.
46867 2011-10-06  Bruno Haible  <bruno@clisp.org>
46869         frexpf: Drop assumption about library that defines frexpf.
46870         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46871         'int *', 'float *', 'long double *', 'float', 'long double'.
46872         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46873         AC_CHECK_FUNCS.
46874         * modules/frexpf (Files): Add m4/mathfunc.m4.
46876         Tests for module 'frexpf'.
46877         * modules/frexpf-tests: New file.
46878         * tests/test-frexpf.c: New file.
46880         New module 'frexpf'.
46881         * lib/math.in.h (frexpf): New declaration.
46882         * lib/frexpf.c: New file.
46883         * m4/frexpf.m4: New file.
46884         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46886         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46887         * modules/frexpf: New file.
46888         * tests/test-math-c++.cc: Check the declaration of frexpf.
46889         * doc/posix-functions/frexpf.texi: Mention the new module.
46891 2011-10-06  Bruno Haible  <bruno@clisp.org>
46893         math: Sort function declarations of math.in.h.
46894         * lib/math.in.h (frexp, logb): Move declarations.
46896 2011-10-05  Bruno Haible  <bruno@clisp.org>
46898         Tests for module 'modff'.
46899         * modules/modff-tests: New file.
46900         * tests/test-modff.c: New file.
46902         New module 'modff'.
46903         * lib/math.in.h (modff): New declaration.
46904         * lib/modff.c: New file.
46905         * m4/modff.m4: New file.
46906         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46908         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46909         * modules/modff: New file.
46910         * tests/test-math-c++.cc: Check the declaration of modff.
46911         * doc/posix-functions/modff.texi: Mention the new module.
46913         modf tests: Make test sharper.
46914         * tests/test-modf.c (main): Strengthen upper bound.
46916         modf: Use a .m4 file.
46917         * m4/modf.m4: New file.
46918         * modules/modf (Files): Add it.
46919         (configure.ac): Just invoke gl_FUNC_MODF.
46921 2011-10-05  Bruno Haible  <bruno@clisp.org>
46923         Tests for module 'fmodf'.
46924         * modules/fmodf-tests: New file.
46925         * tests/test-fmodf.c: New file.
46927         New module 'fmodf'.
46928         * lib/math.in.h (fmodf): New declaration.
46929         * lib/fmodf.c: New file.
46930         * m4/fmodf.m4: New file.
46931         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46933         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46934         * modules/fmodf: New file.
46935         * tests/test-math-c++.cc: Check the declaration of fmodf.
46936         * doc/posix-functions/fmodf.texi: Mention the new module.
46938         fmod: Use a .m4 file.
46939         * m4/fmod.m4: New file.
46940         * modules/fmod (Files): Add it.
46941         (configure.ac): Just invoke gl_FUNC_FMOD.
46943 2011-10-05  Bruno Haible  <bruno@clisp.org>
46945         Tests for module 'fabsf'.
46946         * modules/fabsf-tests: New file.
46947         * tests/test-fabsf.c: New file.
46949         New module 'fabsf'.
46950         * lib/math.in.h (fabsf): New declaration.
46951         * lib/fabsf.c: New file.
46952         * m4/fabsf.m4: New file.
46953         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46955         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46956         * modules/fabsf: New file.
46957         * tests/test-math-c++.cc: Check the declaration of fabsf.
46958         * doc/posix-functions/fabsf.texi: Mention the new module.
46960         fabs: Use a .m4 file.
46961         * m4/fabs.m4: New file.
46962         * modules/fabs (Files): Add it.
46963         (configure.ac): Just invoke gl_FUNC_FABS.
46965 2011-10-05  Jim Meyering  <meyering@redhat.com>
46967         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46968         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46969         ls -lL regression introduced in coreutils-8.12, it does so at the
46970         cost of an additional stat call in the common case.  Besides, now
46971         that the kernel change that prompted commit 95f7c57f has been reverted
46972         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46973         we have no use for commit 95f7c57f, "file-has-acl: use
46974         acl_extended_file_nofollow if available".
46976 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46978         file-has-acl: revert unintended change in behavior of ls -L
46979         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46980         derived from...
46981         (file_has_acl): ...code here.  Call it.
46982         This problem was introduced with 2011-07-22 commit 95f7c57f,
46983         "file-has-acl: use acl_extended_file_nofollow if available".
46984         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46986 2011-10-03  Bruno Haible  <bruno@clisp.org>
46988         poll: Avoid link errors on MSVC.
46989         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46990         * modules/poll (Depends-on): Add sockets.
46991         (Link): New section.
46992         * NEWS: Mention the change.
46993         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46994         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46995         $(LIB_POLL) instead of $(LIBSOCKET).
46997 2011-10-03  Bruno Haible  <bruno@clisp.org>
46999         sys_select tests: Fix link error on MSVC 9.
47000         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
47001         with $(LIB_SELECT) instead of $(LIBSOCKET).
47003 2011-10-03  Bruno Haible  <bruno@clisp.org>
47005         sys_select: Fix compilation error on mingw.
47006         * lib/sys_select.in.h: On native Windows, include <io.h>.
47008 2011-10-03  Bruno Haible  <bruno@clisp.org>
47010         wmemset: Support for MSVC.
47011         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
47012         whether wmemset() exists.
47014 2011-10-03  Bruno Haible  <bruno@clisp.org>
47016         wmemmove: Support for MSVC.
47017         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
47018         whether wmemmove() exists.
47020 2011-10-03  Bruno Haible  <bruno@clisp.org>
47022         wmemcpy: Support for MSVC.
47023         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
47024         whether wmemcpy() exists.
47026 2011-10-03  Bruno Haible  <bruno@clisp.org>
47028         wmemcmp: Support for MSVC.
47029         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
47030         whether wmemcmp() exists.
47032 2011-10-03  Bruno Haible  <bruno@clisp.org>
47034         wmemchr: Support for MSVC.
47035         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
47036         whether wmemchr() exists.
47038 2011-10-03  Bruno Haible  <bruno@clisp.org>
47040         glthread/*, strsignal: Support for MSVC.
47041         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
47042         including <winsock.h> on MSVC 9.
47043         * lib/glthread/lock.h: Likewise.
47044         * lib/glthread/thread.h: Likewise.
47045         * lib/glthread/tls.h: Likewise.
47046         * lib/glthread/yield.h: Likewise.
47047         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
47048         if HAVE_UNISTD_H is false.
47049         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
47051 2011-10-03  Bruno Haible  <bruno@clisp.org>
47053         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
47054         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
47055         Set to 100000.
47057 2011-10-03  Bruno Haible  <bruno@clisp.org>
47059         acl: Fix specification.
47060         * lib/file-has-acl.c (file_has_acl): Fix specification.
47062 2011-10-03  Bruno Haible  <bruno@clisp.org>
47064         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
47065         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
47066         (compute_curr_prefix, shared_library_fullname,
47067         find_shared_library_fullname, get_shared_library_fullname, relocate):
47068         Use it together with PIC && INSTALLDIR.
47069         Reported by <jojelino@gmail.com>
47070         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
47072 2011-10-01  Jim Meyering  <meyering@redhat.com>
47074         maint.mk: adjust a release-related rule not to require use of gzip
47075         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
47076         Instead, check each file in $(DIST_ARCHIVES).  This is better for
47077         projects that build only .tar.xz files.  Also fix an erroneous test.
47079         test-linkat: don't leave behind a temporary file
47080         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
47081         Otherwise, coreutils' "make distcheck" would fail with this:
47082           Only in /c/cu/tests/torture/coreutils/test/\
47083             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
47084           make[2]: *** [my-distcheck] Error 1
47086         float, math: add omitted file
47087         * lib/itold.c: Add file, required for yesterday's float change.
47089 2011-10-01  Bruno Haible  <bruno@clisp.org>
47091         isinf: Fix for OpenBSD/x86.
47092         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
47093         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
47094         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
47096 2011-10-01  Bruno Haible  <bruno@clisp.org>
47098         isfinite: Fix syntax error in configure test.
47099         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
47101         isfinite: Fix typo.
47102         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47103         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
47105 2011-10-01  Bruno Haible  <bruno@clisp.org>
47107         nonblocking tests: Fix test failure on Linux/IA-64.
47108         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
47109         Set to 270000.
47111 2011-10-01  Bruno Haible  <bruno@clisp.org>
47113         mkfifoat tests: Fix a test failure on mingw.
47114         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
47115         with error ENOSYS.
47117 2011-09-30  Bruno Haible  <bruno@clisp.org>
47119         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
47120         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
47121         'long double'. Set REPLACE_ITOLD.
47122         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
47123         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
47124         * lib/itold.c: New file.
47125         * modules/float (Files): Add lib/itold.c.
47126         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
47127         (Makefile.am): Substitute REPLACE_ITOLD.
47128         * modules/math (Depends-on): Add float.
47129         (Makefile.am): Substitute REPLACE_ITOLD.
47130         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
47131         * doc/posix-headers/math.texi: Likewise.
47132         * doc/posix-functions/logl.texi: Likewise.
47134 2011-09-30  Bruno Haible  <bruno@clisp.org>
47136         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
47137         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
47138         Set to 140000.
47140 2011-09-30  Bruno Haible  <bruno@clisp.org>
47142         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
47143         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
47144         invocation, say "right after AC_PROG_CC_STDC", not "right after
47145         AC_PROG_CC".
47146         Reported by Gary V. Vaughan <gary@gnu.org>.
47148 2011-09-30  Bruno Haible  <bruno@clisp.org>
47150         Centralize C99 requirement.
47151         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
47152         * modules/stdarg (configure.ac-early): Invoke it instead of
47153         AC_PROG_CC_STDC.
47154         Reported by Gary V. Vaughan and Paul Eggert.
47156 2011-09-29  Bruno Haible  <bruno@clisp.org>
47158         float: Fix LDBL_MAX value on Linux/PowerPC.
47159         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
47160         on Linux/PowerPC.
47161         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
47162         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
47163         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
47164         platform.
47165         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
47167 2011-09-29  Bruno Haible  <bruno@clisp.org>
47169         doc: Improve doc about gl_EARLY.
47170         * doc/gnulib-tool.texi (Initial import): Mention where to place an
47171         AC_PROG_CC_STDC invocation.
47172         Reported by Gary V. Vaughan <gary@gnu.org>.
47174 2011-09-28  Bruno Haible  <bruno@clisp.org>
47176         fgetc, fputc, fread, fwrite tests: Fix link error.
47177         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
47178         on non-MSVC platforms.
47179         * tests/test-fputc.c (main): Likewise.
47180         * tests/test-fread.c (main): Likewise.
47181         * tests/test-fwrite.c (main): Likewise.
47182         Reported by Jim Meyering.
47184 2011-09-27  Bruno Haible  <bruno@clisp.org>
47186         fputc, fwrite tests: Avoid test failure on MSVC.
47187         * tests/test-fgetc.c: Include msvc-inval.h.
47188         (main): Invoke gl_msvc_inval_ensure_handler.
47189         * tests/test-fputc.c: Include msvc-inval.h.
47190         (main): Invoke gl_msvc_inval_ensure_handler.
47191         * tests/test-fread.c: Include msvc-inval.h.
47192         (main): Invoke gl_msvc_inval_ensure_handler.
47193         * tests/test-fwrite.c: Include msvc-inval.h.
47194         (main): Invoke gl_msvc_inval_ensure_handler.
47195         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47196         * modules/fputc-tests (Depends-on): Likewise.
47197         * modules/fread-tests (Depends-on): Likewise.
47198         * modules/fwrite-tests (Depends-on): Likewise.
47200 2011-09-27  Bruno Haible  <bruno@clisp.org>
47202         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
47203         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
47204         (raise): Remove older, duplicated declaration.
47205         (_gl_raise_SIGPIPE): New declaration.
47206         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
47207         (rpl_raise): Remove function.
47208         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
47209         a gnulib-defined SIGPIPE here.
47210         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
47211         'sigprocmask' has detected missing signal-blocking and the module
47212         'sigpipe' is enabled.
47213         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47215 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
47217         base64-tests: avoid memory leak
47218         * tests/test-base64.c (main): Plug memory leak.
47220         base32: new module
47221         * modules/base32: New module.
47222         * lib/base32.c: New file.
47223         * lib/base32.h: Likewise.
47224         * m4/base32.m4: Likewise.
47225         * modules/base32-tests: New test.
47226         * tests/test-base32.c: Likewise.
47227         * MODULES.html.sh (Misc): Mention it.
47229 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47231         gnulib: use more-standard license notice wording
47232         * gnulib-tool (func_emit_copyright_notice): When emitting a
47233         license notice into a file, use the standard wording as suggested
47234         by the current information for GNU maintainers, except say "file"
47235         rather than "program".  The new wording gives a license version
47236         number, which addresses an issue raised by Glenn Morris in
47237         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
47238         * m4/onceonly.m4: Use that same wording here, too.
47240         dup2: minor simplification
47241         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
47242         as lib/dup2.c no longer uses 'inline'.
47244 2011-09-25  Bruno Haible  <bruno@clisp.org>
47246         strings: Fix compilation error on MSVC.
47247         * lib/strings.in.h: Include <stddef.h> for size_t.
47249 2011-09-25  Bruno Haible  <bruno@clisp.org>
47251         fflush et al.: Document limitation on MSVC.
47252         * doc/posix-functions/fflush.texi: Document possible crash in handling
47253         mode other than DEFAULT_HANDLING.
47254         * doc/posix-functions/fgetc.texi: Likewise.
47255         * doc/posix-functions/fputc.texi: Likewise.
47256         * doc/posix-functions/fread.texi: Likewise.
47257         * doc/posix-functions/fwrite.texi: Likewise.
47259 2011-09-25  Bruno Haible  <bruno@clisp.org>
47261         msvc-inval: Allow three invalid parameter handling modes.
47262         * lib/msvc-inval.h: Don't include <stdlib.h> here.
47263         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
47264         macros.
47265         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
47266         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
47267         SANE_LIBRARY_HANDLING as a no-op.
47268         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
47269         <stdlib.h>.
47270         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
47272 2011-09-25  Bruno Haible  <bruno@clisp.org>
47274         msvc-inval: Make handler multithread-safe.
47275         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
47276         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
47277         declarations.
47278         (gl_msvc_inval_current): New declaration.
47279         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47280         Operate on the structure returned by gl_msvc_inval_current().
47281         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
47282         Remove varaiables.
47283         (tls_index, tls_initialized): New variables.
47284         (not_per_thread): New variable.
47285         (gl_msvc_inval_current): New function.
47286         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
47287         returned by gl_msvc_inval_current().
47289 2011-09-25  Bruno Haible  <bruno@clisp.org>
47291         msvc-inval: Install handler globally.
47292         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
47293         !_MSC_VER.
47294         (gl_msvc_invalid_parameter_handler): Remove declaration.
47295         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
47296         declarations.
47297         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47298         Install the handler globally, don't uninstall it.
47299         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
47300         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
47301         currently valid, call RaiseException instead.
47302         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
47303         for !_MSC_VER.
47305 2011-09-25  Bruno Haible  <bruno@clisp.org>
47307         strerror_r-posix: Fix for MSVC 9.
47308         * lib/strerror_r.c (local_snprintf): New function.
47309         (snprintf): Define to local_snprintf, not to _snprintf.
47311 2011-09-25  Bruno Haible  <bruno@clisp.org>
47313         ftruncate: Support for MSVC 9.
47314         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
47315         (chsize_nothrow): New function.
47316         (chsize): Redefine as a macro.
47317         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47318         * modules/ftruncate (Depends-on): Add msvc-inval.
47320 2011-09-25  Bruno Haible  <bruno@clisp.org>
47322         New module 'fstat'.
47323         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
47324         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
47325         * lib/fchdir.c (rpl_fstat): Remove function.
47326         * m4/fstat.m4: New file.
47327         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
47328         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
47329         declared.
47330         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
47331         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
47332         * modules/fstat: New file.
47333         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
47334         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
47335         is set.
47336         * doc/posix-functions/fstat.texi: Mention the new module and the
47337         problem on MSVC.
47338         * NEWS: Mention the change.
47339         * modules/acl (Depends-on): Add fstat.
47340         * modules/chdir-safer (Depends-on): Likewise.
47341         * modules/chown (Depends-on): Likewise.
47342         * modules/copy-file (Depends-on): Likewise.
47343         * modules/fchdir (Depends-on): Likewise.
47344         * modules/fdopendir (Depends-on): Likewise.
47345         * modules/fopen (Depends-on): Likewise.
47346         * modules/fts (Depends-on): Likewise.
47347         * modules/getcwd (Depends-on): Likewise.
47348         * modules/isapipe (Depends-on): Likewise.
47349         * modules/linkat (Depends-on): Likewise.
47350         * modules/lseek (Depends-on): Likewise.
47351         * modules/mkdir-p (Depends-on): Likewise.
47352         * modules/open (Depends-on): Likewise.
47353         * modules/openat (Depends-on): Likewise.
47354         * modules/read-file (Depends-on): Likewise.
47355         * modules/renameat (Depends-on): Likewise.
47356         * modules/utimens (Depends-on): Likewise.
47358 2011-09-25  Bruno Haible  <bruno@clisp.org>
47360         linkat: Fix compilation on MSVC 9.
47361         * lib/linkat.c: Don't include <stdint.h>.
47363 2011-09-25  Bruno Haible  <bruno@clisp.org>
47365         fclose: Support for MSVC 9.
47366         * lib/fclose.c: Include msvc-inval.h.
47367         (fclose_nothrow): New function.
47368         (rpl_fclose): Use it.
47369         * modules/fclose (Depends-on): Add msvc-inval.
47370         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47372 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47374         dup2: minor simplifications
47375         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47376         that it's a performance win.
47377         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47378         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47380 2011-09-24  Jim Meyering  <meyering@redhat.com>
47382         test-futimens: avoid a warning from gcc -Wshadow
47383         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47384         to avoid a shadowing warning.
47386 2011-09-24  Bruno Haible  <bruno@clisp.org>
47388         fdopen: Support for MSVC 9.
47389         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47390         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47391         * lib/fdopen.c: Include msvc-inval.h.
47392         (fdopen_nothrow): New function.
47393         (rpl_fdopen): Use it.
47394         * modules/fdopen (Depends-on): Add msvc-inval.
47395         * modules/fclose-tests (Depends-on): Add fdopen.
47396         * modules/fflush-tests (Depends-on): Likewise.
47397         * modules/fgetc-tests (Depends-on): Likewise.
47398         * modules/fputc-tests (Depends-on): Likewise.
47399         * modules/fread-tests (Depends-on): Likewise.
47400         * modules/freopen-tests (Depends-on): Likewise.
47401         * modules/fseeko-tests (Depends-on): Likewise.
47402         * modules/ftello-tests (Depends-on): Likewise.
47403         * modules/fwrite-tests  (Depends-on): Likewise.
47404         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47406 2011-09-24  Bruno Haible  <bruno@clisp.org>
47408         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47409         * modules/fgetc-tests (Depends-on): Add unistd.
47410         * modules/fputc-tests (Depends-on): Likewise.
47411         * modules/fread-tests (Depends-on): Likewise.
47412         * modules/fwrite-tests (Depends-on): Likewise.
47414 2011-09-24  Bruno Haible  <bruno@clisp.org>
47416         dup: Simplify autoconf test.
47417         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47418         on gl_MSVC_INVAL's result.
47420 2011-09-24  Bruno Haible  <bruno@clisp.org>
47422         Tests for function fwrite().
47423         * modules/fwrite-tests: New file.
47424         * tests/test-fwrite.c: New file.
47425         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47427         Tests for function fread().
47428         * modules/fread-tests: New file.
47429         * tests/test-fread.c: New file.
47430         * modules/stdio-tests (Depends-on): Add fread-tests.
47432         Activate fputc tests.
47433         * modules/stdio-tests (Depends-on): Add fputc-tests.
47435         Enhance fgetc, fputc tests.
47436         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47437         * tests/test-fputc.c (main): Likewise.
47439 2011-09-24  Bruno Haible  <bruno@clisp.org>
47441         write: Support for MSVC 9.
47442         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47443         is not 1.
47444         * lib/write.c (write_nothrow): New function.
47445         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47446         not 1. Use write_nothrow.
47447         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47448         invalid parameter handler.
47449         (gl_PREREQ_WRITE): New macro.
47450         * modules/write (Depends-on): Add msvc-inval.
47451         (configure.ac): Invoke gl_PREREQ_WRITE.
47452         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47454 2011-09-24  Bruno Haible  <bruno@clisp.org>
47456         read: Fix last commit.
47457         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47459 2011-09-24  Bruno Haible  <bruno@clisp.org>
47461         dup2: Fix last commit.
47462         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47463         (rpl_dup2): Disable fcntl workaround on native Windows.
47465         sigprocmask: Make code safer.
47466         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47467         section that changes macro definitions for this compilation unit.
47469 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47471         dup2: clarify by coalescing Windows-specific material
47472         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
47473         "msvc-nothrow.h"' to the Windows-specific section, so that the
47474         Emacs source need not contain these include files.
47475         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
47476         Windows-specific fixes into this function rather than just the
47477         nothrow fix, as this shortens and clarifies the code.  Always
47478         define as a function, as that's a bit cleaner than having it be
47479         sometimes a function and sometimes a macro.
47480         (rpl_dup2): Move the Windows-specific stuff out of here and into
47481         ms_windows_dup2.  Don't protect the Haiku-related fix with
47482         "#if !defined __linux__", as the same code also works around
47483         a Linux kernel bug, and it doesn't add any system calls on any
47484         platform.  Add comment about FreeBSD 6.1.
47486         sigprocmask: move #include directive
47487         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
47488         Windows-specific section, so that the Emacs source need not
47489         contain msvc-inval.h.
47491 2011-09-23  Bruno Haible  <bruno@clisp.org>
47493         read: Support for MSVC 9.
47494         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47495         is not 1.
47496         * lib/read.c (read_nothrow): New function.
47497         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
47498         read_nothrow.
47499         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
47500         invalid parameter handler.
47501         (gl_PREREQ_READ): New macro.
47502         * modules/read (Depends-on): Add msvc-inval.
47503         (configure.ac): Invoke gl_PREREQ_READ.
47504         * doc/posix-functions/read.texi: Mention the problem on MSVC.
47506 2011-09-23  Bruno Haible  <bruno@clisp.org>
47508         close: Support for MSVC 9.
47509         * lib/close.c: Include <errno.h>, msvc-inval.h.
47510         (close_nothrow): New function.
47511         (rpl_close): Use it.
47512         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
47513         invalid parameter handler.
47514         * modules/close (Depends-on): Add msvc-inval.
47515         * modules/dup2-tests (Depends-on): Add close.
47516         * modules/dup3-tests (Depends-on): Likewise.
47517         * modules/fcntl-tests (Depends-on): Likewise.
47518         * modules/spawn-pipe-tests (Depends-on): Likewise.
47519         * modules/unistd-safer-tests (Depends-on): Likewise.
47520         * doc/posix-functions/close.texi: Mention the problem on MSVC.
47522 2011-09-23  Bruno Haible  <bruno@clisp.org>
47524         New module 'dup'.
47525         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
47526         Allow replacement.
47527         * lib/dup.c: New file.
47528         * lib/fchdir.c (rpl_dup): Remove function.
47529         * m4/dup.m4: New file.
47530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
47531         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
47532         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
47533         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
47534         * modules/dup: New file.
47535         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
47536         'dup' module is in use.
47537         * modules/fdopendir (Depends-on): Add dup.
47538         * modules/fdutimensat-tests (Depends-on): Likewise.
47539         * modules/fts (Depends-on): Likewise.
47540         * modules/futimens-tests (Depends-on): Likewise.
47541         * modules/posix_spawnp-tests (Depends-on): Likewise.
47542         * modules/unistd-safer-tests (Depends-on): Likewise.
47543         * modules/utimens-tests (Depends-on): Likewise.
47544         * doc/posix-functions/dup.texi: Mention the new module and the problem
47545         on MSVC.
47547 2011-09-23  Bruno Haible  <bruno@clisp.org>
47549         getdtablesize: Support for MSVC 9.
47550         * lib/getdtablesize.c: Include msvc-inval.h.
47551         (_setmaxstdio_nothrow): New function.
47552         (_setmaxstdio): Redefine it.
47553         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
47554         * modules/getdtablesize (Depends-on): Add msvc-inval.
47555         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
47557 2011-09-23  Bruno Haible  <bruno@clisp.org>
47559         signal-h: Rename from signal.
47560         * modules/signal-h: Renamed from modules/signal.
47561         * modules/pthread_sigmask (Depends-on): Update.
47562         * modules/raise (Depends-on): Likewise.
47563         * modules/sigaction (Depends-on): Likewise.
47564         * modules/sigpipe (Depends-on): Likewise.
47565         * modules/sigprocmask (Depends-on): Likewise.
47566         * modules/sys_select (Depends-on): Likewise.
47567         * modules/signal-h-tests: Renamed from modules/signal-tests.
47568         (Files, Depends-on, Makefile.am): Update.
47569         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
47570         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
47571         (Files, Makefile.am): Update.
47572         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
47573         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
47574         * modules/signal: New placeholder file.
47575         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
47576         * doc/posix-headers/signal.texi: Update.
47577         * NEWS: Mention the change.
47579 2011-09-23  Bruno Haible  <bruno@clisp.org>
47581         sigprocmask: Avoid crashes through signal() on MSVC 9.
47582         * lib/sigprocmask.c: Include msvc-inval.h.
47583         (signal_nothrow): New function.
47584         (signal): Redefine it.
47585         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
47586         * modules/sigprocmask (Depends-on): Add msvc-inval.
47587         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
47589 2011-09-23  Bruno Haible  <bruno@clisp.org>
47591         Tests for module 'raise'.
47592         * modules/raise-tests: New file.
47593         * tests/test-raise.c: New file.
47595         raise: Support for MSVC.
47596         * lib/signal.in.h (raise): New declaration.
47597         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
47598         for native Windows platforms.
47599         * m4/raise.m4: New file.
47600         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
47601         HAVE_RAISE, REPLACE_RAISE.
47602         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
47603         REPLACE_RAISE.
47604         * modules/raise (Status, Notice): Remove fields.
47605         (Files): Add m4/raise.m4.
47606         (Depends-on): Add signal, msvc-inval.
47607         (configure.ac): Use the common idioms.
47608         (Maintainer): Add me.
47609         * tests/test-signal-c++.cc: Check the signature of raise.
47610         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47612 2011-09-23  Bruno Haible  <bruno@clisp.org>
47614         pipe2: Fix compilation on pre-C99 compilers.
47615         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
47617 2011-09-23  Bruno Haible  <bruno@clisp.org>
47619         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
47620         * lib/msvc-nothrow.h: New file.
47621         * lib/msvc-nothrow.c: New file.
47622         * m4/msvc-nothrow.m4: New file.
47623         * modules/msvc-nothrow: New file.
47624         * lib/dup2.c: Include msvc-nothrow.h.
47625         (rpl_dup2): No need to protect _get_osfhandle call here.
47626         * lib/accept4.c: Include msvc-nothrow.h.
47627         * lib/error.c: Likewise.
47628         * lib/fcntl.c: Likewise.
47629         * lib/lseek.c: Likewise.
47630         * lib/nonblocking.c: Likewise.
47631         * lib/poll.c: Likewise.
47632         * lib/read.c: Likewise.
47633         * lib/select.c: Likewise.
47634         * lib/sockets.h: Likewise.
47635         * lib/sockets.c: Likewise.
47636         * lib/stdio-read.c: Likewise.
47637         * lib/stdio-write.c: Likewise.
47638         * lib/write.c: Likewise.
47639         * lib/w32sock.h: Likewise.
47640         * lib/w32spawn.h: Likewise.
47641         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
47642         * lib/fsync.c: Likewise.
47643         * lib/isapipe.c: Likewise.
47644         * modules/dup2 (Depends-on): Add msvc-nothrow.
47645         * modules/accept4 (Depends-on): Likewise.
47646         * modules/error (Depends-on): Likewise.
47647         * modules/fcntl (Depends-on): Likewise.
47648         * modules/lseek (Depends-on): Likewise.
47649         * modules/nonblocking (Depends-on): Likewise.
47650         * modules/poll (Depends-on): Likewise.
47651         * modules/read (Depends-on): Likewise.
47652         * modules/select (Depends-on): Likewise.
47653         * modules/sockets (Depends-on): Likewise.
47654         * modules/sigpipe (Depends-on): Likewise.
47655         * modules/write (Depends-on): Likewise.
47656         * modules/accept (Depends-on): Likewise.
47657         * modules/bind (Depends-on): Likewise.
47658         * modules/connect (Depends-on): Likewise.
47659         * modules/gethostname (Depends-on): Likewise.
47660         * modules/getpeername (Depends-on): Likewise.
47661         * modules/getsockname (Depends-on): Likewise.
47662         * modules/getsockopt (Depends-on): Likewise.
47663         * modules/ioctl (Depends-on): Likewise.
47664         * modules/listen (Depends-on): Likewise.
47665         * modules/recv (Depends-on): Likewise.
47666         * modules/recvfrom (Depends-on): Likewise.
47667         * modules/send (Depends-on): Likewise.
47668         * modules/sendto (Depends-on): Likewise.
47669         * modules/setsockopt (Depends-on): Likewise.
47670         * modules/shutdown (Depends-on): Likewise.
47671         * modules/socket (Depends-on): Likewise.
47672         * modules/execute (Depends-on): Likewise.
47673         * modules/spawn-pipe (Depends-on): Likewise.
47674         * modules/flock (Depends-on): Likewise.
47675         * modules/fsync (Depends-on): Likewise.
47676         * modules/isapipe (Depends-on): Likewise.
47677         * tests/test-cloexec.c: Include msvc-nothrow.h.
47678         * tests/test-dup-safer.c: Likewise.
47679         * tests/test-dup2.c: Likewise.
47680         * tests/test-dup3.c: Likewise.
47681         * tests/test-fcntl.c: Likewise.
47682         * tests/test-pipe.c: Likewise.
47683         * tests/test-pipe2.c: Likewise.
47684         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47685         * modules/unistd-safer-tests (Depends-on): Likewise.
47686         * modules/dup2-tests (Depends-on): Likewise.
47687         * modules/dup3-tests (Depends-on): Likewise.
47688         * modules/fcntl-tests (Depends-on): Likewise.
47689         * modules/pipe-posix-tests (Depends-on): Likewise.
47690         * modules/pipe2-tests (Depends-on): Likewise.
47692 2011-09-23  Bruno Haible  <bruno@clisp.org>
47694         dup2: Make code more maintainable.
47695         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47696         (rpl_dup2): Use it.
47697         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47698         * modules/dup2 (configure.ac): Invoke it.
47699         Reported by Paul Eggert.
47701 2011-09-23  Bruno Haible  <bruno@clisp.org>
47703         msvc-inval: Fix compilation error.
47704         * lib/msvc-inval.h: Include <excpt.h>.
47706 2011-09-23  Bruno Haible  <bruno@clisp.org>
47708         mkdir: Tweak for MSVC 9.
47709         * lib/sys_stat.in.h: Update comments.
47710         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47712         Tests for module 'chdir'.
47713         * modules/chdir-tests: New file.
47714         * tests/test-chdir.c: New file.
47716         New module 'chdir'.
47717         * modules/chdir: New file.
47718         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47719         (chdir): New declaration.
47720         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47721         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47722         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47723         * tests/test-unistd-c++.cc: Check signature of chdir.
47724         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47725         * modules/chdir-long (Depends-on): Add chdir.
47726         * modules/fchdir (Depends-on): Likewise.
47727         * modules/rename (Depends-on): Likewise.
47728         * modules/savewd (Depends-on): Likewise.
47730         rmdir: Support for mingw, MSVC 9.
47731         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47732         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47734         getcwd: Tweak for MSVC 9.
47735         * lib/unistd.in.h: Update comments.
47736         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47738 2011-09-22  Bruno Haible  <bruno@clisp.org>
47740         strerror_r-posix: Avoid a link error on MSVC.
47741         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47742         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47744 2011-09-22  Bruno Haible  <bruno@clisp.org>
47746         select: Avoid link errors on MSVC.
47747         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47748         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47749         * modules/pselect (Link): Likewise.
47750         * NEWS: Mention the change.
47751         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47752         test-select-stdin against $(LIB_SELECT).
47753         * modules/pselect-tests (Makefile.am): Link test-pselect against
47754         $(LIB_SELECT).
47756 2011-09-22  Bruno Haible  <bruno@clisp.org>
47758         select: Avoid compilation error on MSVC.
47759         * lib/select.c: Don't include <stdbool.h>.
47761 2011-09-21  Bruno Haible  <bruno@clisp.org>
47763         Consolidate all uses of PATH_MAX in *.m4 files.
47764         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47765         macros.
47766         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47767         and gl_PATHMAX_SNIPPET.
47768         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47769         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47770         * modules/chdir-long (Files): Add m4/pathmax.m4.
47771         * modules/getcwd (Files): Likewise.
47773 2011-09-21  Bruno Haible  <bruno@clisp.org>
47775         ftruncate: Un-deprecate, concentrate on Win32 support.
47776         * modules/ftruncate (Status, Notice): Remove sections.
47777         (Depends-on): Add largefile.
47778         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47779         non-mingw platforms.
47780         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47781         include <io.h>.
47782         * modules/perror-tests (Depends-on): Add ftruncate.
47783         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47784         'ftruncate' module.
47786 2011-09-21  Bruno Haible  <bruno@clisp.org>
47788         Add dependencies to new dirent related modules.
47789         * modules/opendir (Depends-on): Add closedir.
47790         * modules/getcwd (Depends-on): Add opendir, closedir.
47791         * modules/dirent-safer-tests (Depends-on): Likewise.
47792         * modules/fdopendir-tests (Depends-on): Likewise.
47793         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47794         * modules/renameat-tests (Depends-on): Likewise.
47796 2011-09-21  Bruno Haible  <bruno@clisp.org>
47798         opendir: Avoid compilation error on mingw.
47799         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47800         * modules/opendir (Depends-on): Add unistd.
47802 2011-09-21  Bruno Haible  <bruno@clisp.org>
47804         ftruncate tests: Avoid a test failure on mingw.
47805         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47807 2011-09-21  Bruno Haible  <bruno@clisp.org>
47809         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47810         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47811         native Windows.
47813 2011-09-21  Bruno Haible  <bruno@clisp.org>
47815         New module 'fdopen'.
47816         * lib/stdio.in.h (fdopen): New declaration.
47817         * lib/fdopen.c: New file.
47818         * m4/fdopen.m4: New file.
47819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47820         REPLACE_FDOPEN.
47821         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47822         REPLACE_FDOPEN.
47823         * modules/fdopen: New file.
47824         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47825         * tests/test-stdio-c++.cc: Check signature of fdopen.
47826         * doc/posix-functions/fdopen.texi: Mention the new module.
47828 2011-09-21  Bruno Haible  <bruno@clisp.org>
47830         unlockpt tests: Avoid test failure on NetBSD 5.1.
47831         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47832         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47834 2011-09-21  Bruno Haible  <bruno@clisp.org>
47836         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47837         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47838         * tests/test-getlogin_r.c (main): Likewise.
47840 2011-09-20  Bruno Haible  <bruno@clisp.org>
47842         time tests: Don't require pid_t.
47843         * doc/posix-headers/time.texi: Revert last change.
47844         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47845         * tests/test-time.c: Comment out the check for pid_t.
47847 2011-09-20  Bruno Haible  <bruno@clisp.org>
47849         fsync tests: Avoid a test failure on mingw.
47850         * tests/test-fsync.c (main): Allow a failure with EIO.
47852 2011-09-20  Bruno Haible  <bruno@clisp.org>
47854         euidaccess: Update comments.
47855         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47857 2011-09-20  Bruno Haible  <bruno@clisp.org>
47859         Ensure EBADF returns for socket functions on mingw.
47860         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47861         descriptor is invalid.
47862         * lib/bind.c (rpl_bind): Likewise.
47863         * lib/connect.c (rpl_connect): Likewise.
47864         * lib/getpeername.c (rpl_getpeername): Likewise.
47865         * lib/getsockname.c (rpl_getsockname): Likewise.
47866         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47867         * lib/listen.c (rpl_listen): Likewise.
47868         * lib/recv.c (rpl_recv): Likewise.
47869         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47870         * lib/send.c (rpl_send): Likewise.
47871         * lib/sendto.c (rpl_sendto): Likewise.
47872         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47873         * lib/shutdown.c (rpl_shutdown): Likewise.
47875 2011-09-20  Bruno Haible  <bruno@clisp.org>
47877         select tests: EBADF tests.
47878         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47879         test_bad_fd): New functions.
47880         (test_function): Invoke also test_bad_fd.
47882 2011-09-20  Bruno Haible  <bruno@clisp.org>
47884         Tests for module 'posix_spawn_file_actions_addopen.
47885         * modules/posix_spawn_file_actions_addopen-tests: New file.
47886         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47888         Tests for module 'posix_spawn_file_actions_adddup2'.
47889         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47890         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47892         Tests for module 'posix_spawn_file_actions_addclose'.
47893         * modules/posix_spawn_file_actions_addclose-tests: New file.
47894         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47896 2011-09-20  Bruno Haible  <bruno@clisp.org>
47898         Tests for module 'unlockpt'.
47899         * modules/unlockpt-tests: New file.
47900         * tests/test-unlockpt.c: New file.
47901         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47903         Tests for module 'grantpt'.
47904         * modules/grantpt-tests: New file.
47905         * tests/test-grantpt.c: New file.
47906         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47908 2011-09-20  Bruno Haible  <bruno@clisp.org>
47910         freopen tests: EBADF tests.
47911         * tests/test-freopen.c: Include errno.h, unistd.h.
47912         (main): Add tests for EBADF, commented out for the moment.
47914         fclose tests: EBADF tests.
47915         * tests/test-fclose.c (main): Add tests for EBADF.
47917         fflush tests: EBADF tests.
47918         * tests/test-fflush.c: Include errno.h, macros.h.
47919         (main): Add tests for EBADF.
47921         ftello tests: EBADF tests.
47922         * tests/test-ftello4.sh: New file.
47923         * tests/test-ftello4.c: New file.
47924         * modules/ftello-tests (Files): Add them.
47925         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47927         fseeko tests: EBADF tests.
47928         * tests/test-fseeko4.sh: New file.
47929         * tests/test-fseeko4.c: New file.
47930         * modules/fseeko-tests (Files): Add them.
47931         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47933         Tests for function fputc().
47934         * modules/fputc-tests: New file.
47935         * tests/test-fputc.c: New file.
47936         * modules/stdio-tests (Depends-on): Add fputc-tests.
47938         Tests for function fgetc().
47939         * modules/fgetc-tests: New file.
47940         * tests/test-fgetc.c: New file.
47941         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47943         Tests for function fdopen().
47944         * modules/fdopen-tests: New file.
47945         * tests/test-fdopen.c: New file.
47946         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47948         Tests for module 'vdprintf'.
47949         * modules/vdprintf-tests: New file.
47950         * tests/test-vdprintf.c: New file.
47952         Tests for module 'dprintf'.
47953         * modules/dprintf-tests: New file.
47954         * tests/test-dprintf.c: New file.
47956 2011-09-20  Bruno Haible  <bruno@clisp.org>
47958         Tests for module 'ioctl'.
47959         * modules/ioctl-tests: New file.
47960         * tests/test-ioctl.c: New file.
47962 2011-09-20  Bruno Haible  <bruno@clisp.org>
47964         fcntl tests: EBADF tests.
47965         * tests/test-fcntl.c (main): Add more tests for EBADF.
47967 2011-09-20  Bruno Haible  <bruno@clisp.org>
47969         utimensat tests: EBADF tests.
47970         * tests/test-utimensat.c (main): Add tests for EBADF.
47972         renameat tests: EBADF tests.
47973         * tests/test-renameat.c (main): Add tests for EBADF.
47975         mkfifoat tests: EBADF tests.
47976         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47978         readlinkat tests: EBADF tests.
47979         * tests/test-readlinkat.c (main): Add tests for EBADF.
47981         symlinkat tests: EBADF tests.
47982         * tests/test-symlinkat.c (main): Add tests for EBADF.
47984         linkat tests: EBADF tests.
47985         * tests/test-linkat.c (main): Add tests for EBADF.
47987         Tests for module 'faccessat'.
47988         * modules/faccessat-tests: New file.
47989         * tests/test-faccessat.c: New file.
47991         fdopendir tests: EBADF tests.
47992         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47994         openat tests: EBADF tests.
47995         * tests/test-fchownat.c (main): Add tests for EBADF.
47996         * tests/test-fstatat.c (main): Likewise.
47997         * tests/test-mkdirat.c (main): Likewise.
47998         * tests/test-openat.c (main): Likewise.
47999         * tests/test-unlinkat.c (main): Likewise.
48000         * tests/test-fchmodat.c: New file.
48001         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
48002         (Makefile.am): Also run 'test-fchmodat'.
48004 2011-09-20  Bruno Haible  <bruno@clisp.org>
48006         utimens, futimens, fdutimensat tests: EBADF tests.
48007         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
48009         Tests for function fstat().
48010         * modules/fstat-tests: New file.
48011         * tests/test-fstat.c: New file.
48012         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
48014 2011-09-20  Bruno Haible  <bruno@clisp.org>
48016         test-ttyname_r tests: EBADF tests.
48017         * tests/test-ttyname_r.c (main): Add tests for EBADF.
48019         Tests for module 'isatty'.
48020         * modules/isatty-tests: New file.
48021         * tests/test-isatty.c: New file.
48023         Tests for module 'write'.
48024         * modules/write-tests: New file.
48025         * tests/test-write.c: New file.
48027         Tests for module 'read'.
48028         * modules/read-tests: New file.
48029         * tests/test-read.c: New file.
48031         pwrite tests: EBADF tests.
48032         * tests/test-pwrite.c (main): Add tests for EBADF.
48034         pread tests: EBADF tests.
48035         * tests/test-pread.c (main): Add tests for EBADF.
48037         lseek tests: EBADF tests.
48038         * tests/test-lseek.c (main): Add more tests for EBADF.
48040         Tests for module 'ftruncate'.
48041         * modules/ftruncate-tests: New file.
48042         * tests/test-ftruncate.sh: New file.
48043         * tests/test-ftruncate.c: New file.
48045         fsync tests: EBADF tests.
48046         * tests/test-fsync.c (main): Add more tests for EBADF.
48048         fdatasync tests: EBADF tests.
48049         * tests/test-fdatasync.c (main): Add more tests for EBADF.
48051         Tests for module 'fchown'.
48052         * modules/fchown-tests: New file.
48053         * tests/test-fchown.c: New file.
48055         Tests for module 'fchmod'.
48056         * modules/fchmod-tests: New file.
48057         * tests/test-fchmod.c: New file.
48059         fchdir tests: EBADF tests.
48060         * tests/test-fchdir.c (main): Add more tests for EBADF.
48062         dup2 tests: EBADF tests.
48063         * tests/test-dup2.c (main): Add more tests for EBADF.
48065         Tests for module 'dup'.
48066         * modules/dup-tests: New file.
48067         * tests/test-dup.c: New file.
48069         Tests for module 'close'.
48070         * modules/close-tests: New file.
48071         * tests/test-close.c: New file.
48073 2011-09-20  Bruno Haible  <bruno@clisp.org>
48075         Tests for module 'shutdown'.
48076         * modules/shutdown-tests: New file.
48077         * tests/test-shutdown.c: New file.
48079         Tests for module 'setsockopt'.
48080         * modules/setsockopt-tests: New file.
48081         * tests/test-setsockopt.c: New file.
48083         Tests for module 'sendto'.
48084         * modules/sendto-tests: New file.
48085         * tests/test-sendto.c: New file.
48087         Tests for module 'send'.
48088         * modules/send-tests: New file.
48089         * tests/test-send.c: New file.
48091         Tests for module 'recvfrom'.
48092         * modules/recvfrom-tests: New file.
48093         * tests/test-recvfrom.c: New file.
48095         Tests for module 'recv'.
48096         * modules/recv-tests: New file.
48097         * tests/test-recv.c: New file.
48099         Tests for module 'listen'.
48100         * modules/listen-tests: New file.
48101         * tests/test-listen.c: New file.
48103         Tests for module 'getsockopt'.
48104         * modules/getsockopt-tests: New file.
48105         * tests/test-getsockopt.c: New file.
48107         Tests for module 'getsockname'.
48108         * modules/getsockname-tests: New file.
48109         * tests/test-getsockname.c: New file.
48111         Tests for module 'getpeername'.
48112         * modules/getpeername-tests: New file.
48113         * tests/test-getpeername.c: New file.
48115         Tests for module 'connect'.
48116         * modules/connect-tests: New file.
48117         * tests/test-connect.c: New file.
48119         Tests for module 'bind'.
48120         * modules/bind-tests: New file.
48121         * tests/test-bind.c: New file.
48123         accept4 tests: Fix for native Windows.
48124         * tests/test-accept4.c: Include sockets.h.
48125         (main): Invoke gl_sockets_startup.
48126         * modules/accept4-tests (Depends-on): Add sockets.
48128         accept tests: Fix for native Windows.
48129         * tests/test-accept.c: Include sockets.h.
48130         (main): Invoke gl_sockets_startup.
48131         * modules/accept-tests (Depends-on): Add sockets.
48133 2011-09-19  Bruno Haible  <bruno@clisp.org>
48135         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
48136         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
48137         do...while(0).
48138         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
48139         Suggested by Paul Eggert.
48141 2011-09-19  Bruno Haible  <bruno@clisp.org>
48143         sched: Ensure pid_t is defined.
48144         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
48145         not define pid_t.
48146         * lib/sched.in.h: Include <sys/types.h>.
48147         * doc/posix-headers/sched.texi: Mention the pid_t problem.
48148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48150 2011-09-19  Bruno Haible  <bruno@clisp.org>
48152         msvc-inval: Ensure the entire expansion is a single statement.
48153         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
48154         of braces.
48156 2011-09-19  Jim Meyering  <meyering@redhat.com>
48158         tests: use printf, not echo in init.sh's warn_ function
48159         * tests/init.sh (warn_): Use printf, not echo.  The latter would
48160         misbehave when given strings containing a backslash or starting
48161         with e.g., -n.  James Youngman suggested setting IFS.
48163 2011-09-19  Eric Blake  <eblake@redhat.com>
48165         futimens: enhance test
48166         * tests/test-futimens.h (test_futimens): Also check for EBADF on
48167         closed non-negative fd.
48169         date: accept 'hence' as opposite of 'ago'
48170         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
48171         * tests/test-parse-datetime.c (main): Enhance test.
48172         Suggested by Jesse Wilson.
48174 2011-09-19  Jim Meyering  <meyering@redhat.com>
48176         getcwd: don't fail in a deep directory on a system without openat
48177         Before this change, getcwd would fail when called from a directory
48178         of depth PATH_MAX / 3 or greater.  That was due to the fact that
48179         the non-openat implementation used "..", "../..", "../../..", etc.
48180         to access ancestor directories.  With too many, that string would
48181         be longer than PATH_MAX.
48182         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
48183         using gnulib's openat replacement.
48184         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
48185         we're using the replacement function.
48187 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
48189         maint.mk: avoid warnings from perl about missing files
48190         * top/maint.mk (def_sym_regex): Ignore files listed in
48191         $(gl_other_headers_) that do not exist, say because a project
48192         does not use a corresponding module.
48194 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48196         stat: use pathmax.h only if needed
48197         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
48198         This is better for Emacs, which does not have a mingw port and
48199         therefore can avoid the pathmax module.
48201         utimens: remove dependency on dup2
48202         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
48203         to work around the Linux kernel bug.
48204         * modules/utimens (Depends-on): Remove dup2.
48206 2011-09-18  Bruno Haible  <bruno@clisp.org>
48208         inet_ntop, inet_pton: Look for it also in libresolv.
48209         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
48210         libnsl, search for it in libresolv.
48211         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48212         Needed on Solaris 7.
48214 2011-09-18  Bruno Haible  <bruno@clisp.org>
48216         accept, accept4 tests: Avoid link error on Solaris.
48217         * modules/accept-tests (Makefile.am): Link test-accept against
48218         $(LIBSOCKET).
48219         * modules/accept4-tests (Makefile.am): Link test-accept4 against
48220         $(LIBSOCKET).
48222         accept4: Avoid link error on Solaris.
48223         * modules/accept4 (Link): New section.
48225         socket functions: Avoid link errors on Solaris.
48226         * modules/accept (Depends-on): Add socketlib.
48227         (Link): New section.
48228         * modules/bind (Depends-on): Add socketlib.
48229         (Link): New section.
48230         * modules/connect (Depends-on): Add socketlib.
48231         (Link): New section.
48232         * modules/getpeername (Depends-on): Add socketlib.
48233         (Link): New section.
48234         * modules/getsockname (Depends-on): Add socketlib.
48235         (Link): New section.
48236         * modules/getsockopt (Depends-on): Add socketlib.
48237         (Link): New section.
48238         * modules/listen (Depends-on): Add socketlib.
48239         (Link): New section.
48240         * modules/recv (Depends-on): Add socketlib.
48241         (Link): New section.
48242         * modules/recvfrom (Depends-on): Add socketlib.
48243         (Link): New section.
48244         * modules/send (Depends-on): Add socketlib.
48245         (Link): New section.
48246         * modules/sendto (Depends-on): Add socketlib.
48247         (Link): New section.
48248         * modules/setsockopt (Depends-on): Add socketlib.
48249         (Link): New section.
48250         * modules/shutdown (Depends-on): Add socketlib.
48251         (Link): New section.
48252         * modules/socket (Depends-on): Add socketlib.
48253         (Link): New section.
48255 2011-09-18  Bruno Haible  <bruno@clisp.org>
48257         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
48258         * tests/test-ptsname.c (main): Terminate the test if it takes longer
48259         than 5 seconds.
48260         * modules/ptsname-tests (configure.ac): Test for alarm.
48262 2011-09-18  Bruno Haible  <bruno@clisp.org>
48264         posix_spawn_file_actions_add*: Fix module dependencies.
48265         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
48266         posix_spawn_file_actions_init.
48267         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
48268         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
48270 2011-09-18  Bruno Haible  <bruno@clisp.org>
48272         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
48273         * tests/test-rename.h (test_rename): Allow error code EEXIST.
48274         * tests/test-renameat.c (main): Likewise.
48276 2011-09-18  Bruno Haible  <bruno@clisp.org>
48278         Tests for module 'accept4'.
48279         * modules/accept4-tests: New file.
48280         * tests/test-accept4.c: New file.
48282 2011-09-18  Bruno Haible  <bruno@clisp.org>
48284         Tests for module 'accept'.
48285         * modules/accept-tests: New file.
48286         * tests/test-accept.c: New file.
48288 2011-09-18  Bruno Haible  <bruno@clisp.org>
48290         dup2: Support for MSVC.
48291         * lib/dup2.c: Include msvc-inval.h.
48292         (rpl_dup2): Handle invalid parameter notifications during dup2 and
48293         _get_osfhandle calls.
48294         * modules/dup2 (Depends-on): Add msvc-inval.
48295         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
48297         New module 'msvc-inval'.
48298         * lib/msvc-inval.h: New file.
48299         * lib/msvc-inval.c: New file.
48300         * m4/msvc-inval.m4: New file.
48301         * modules/msvc-inval: New file.
48303 2011-09-17  Bruno Haible  <bruno@clisp.org>
48305         Tests for module 'pclose'.
48306         * modules/pclose-tests: New file.
48308         New module 'pclose'.
48309         * lib/stdio.in.h (pclose): New declaration.
48310         * lib/pclose.c: New file.
48311         * m4/pclose.m4: New file.
48312         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
48313         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
48314         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
48315         * modules/pclose: New file.
48316         * modules/popen-tests (Depends-on): Add pclose.
48317         * modules/popen-safer-tests (Depends-on): Likewise.
48318         * doc/posix-functions/pclose.texi: Mention the new module.
48320 2011-09-17  Bruno Haible  <bruno@clisp.org>
48322         popen: Support for MSVC.
48323         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
48324         * lib/popen.c (popen): Provide alternate definition for native Windows.
48325         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
48326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
48327         * modules/popen (Depends-on, configure.ac): Update condition.
48328         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
48329         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
48330         fixed.
48332 2011-09-17  Bruno Haible  <bruno@clisp.org>
48334         isnanl, isnand, isnanf: Work around MSVC bug.
48335         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
48337 2011-09-17  Bruno Haible  <bruno@clisp.org>
48339         sys_socket tests: Fix recent mistake.
48340         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
48342 2011-09-17  Bruno Haible  <bruno@clisp.org>
48344         putenv: Support for MSVC.
48345         * modules/putenv (Depends-on): Add environ.
48346         * lib/putenv.c (environ): Disable declaration.
48347         * lib/unistd.in.h: Update comment.
48349 2011-09-17  Bruno Haible  <bruno@clisp.org>
48351         math: Avoid macro redefinition warnings on MSVC.
48352         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
48353         Undefine before redefining.
48355 2011-09-17  Bruno Haible  <bruno@clisp.org>
48357         doc: Mention functions which are declared as macros.
48358         * doc/posix-functions/*[fl].texi: Mention that some functions are
48359         defined as macros with arguments only.
48361 2011-09-17  Bruno Haible  <bruno@clisp.org>
48363         Add dependencies to new dirent related modules.
48364         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48365         * modules/fts (Depends-on): Likewise.
48366         * modules/glob (Depends-on): Likewise.
48367         * modules/savedir (Depends-on): Likewise.
48368         * modules/scandir (Depends-on): Likewise.
48369         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48370         * modules/fdopendir (Depends-on): Add opendir.
48372 2011-09-17  Bruno Haible  <bruno@clisp.org>
48374         inet_pton: Support for MSVC on Windows Vista or newer.
48375         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48376         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48377         HAVE_DECL_INET_PTON is defined.
48378         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48379         On platforms with <winsock2.h>, test whether inet_pton is declared in
48380         <ws2tcpip.h>. If so, arrange to replace it.
48381         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48382         REPLACE_INET_PTON.
48383         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48384         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48385         (Depends-on, configure.ac): Update condition.
48386         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48388 2011-09-17  Bruno Haible  <bruno@clisp.org>
48390         inet_ntop: Support for MSVC on Windows Vista or newer.
48391         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48392         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48393         HAVE_DECL_INET_NTOP is defined.
48394         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48395         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48396         <ws2tcpip.h>. If so, arrange to replace it.
48397         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48398         REPLACE_INET_NTOP.
48399         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48400         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48401         (Depends-on, configure.ac): Update condition.
48402         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48404 2011-09-16  Eric Blake  <eblake@redhat.com>
48406         test-fsync: yet another enhancement
48407         * tests/test-fsync.c (main): Also test behavior on read-only text
48408         file.
48410 2011-09-16  Bruno Haible  <bruno@clisp.org>
48412         Enhance fsync, fdatasync tests.
48413         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48414         * tests/test-fdatasync.c (main): Likewise.
48416 2011-09-16  Bruno Haible  <bruno@clisp.org>
48418         Support for MSVC compiler: Ensure mode_t gets defined.
48419         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48420         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48422         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48423         * tests/test-fcntl-h.c: Check that mode_t is defined.
48424         * tests/test-sys_stat.c: Likewise.
48425         * tests/test-sys_types.c: Likewise.
48426         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48427         * doc/posix-headers/sys_stat.texi: Likewise.
48428         * doc/posix-headers/sys_types.texi: Likewise.
48430 2011-09-16  Bruno Haible  <bruno@clisp.org>
48432         sys_stat: Support for MSVC.
48433         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48434         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48435         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48436         MSVC.
48438 2011-09-16  Bruno Haible  <bruno@clisp.org>
48440         Support for MSVC compiler: Ensure off_t gets defined.
48441         * lib/unistd.in.h: Include <sys/types.h>.
48442         * tests/test-fcntl-h.c: Check that off_t is defined.
48443         * tests/test-sys_stat.c: Likewise.
48444         * tests/test-sys_types.c: Likewise.
48446 2011-09-16  Eric Blake  <eblake@redhat.com>
48448         fdatasync: port to Solaris
48449         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48450         * modules/fdatasync (Link): Document it.
48451         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48453         fdatasync: port to MacOS X 10.7
48454         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48455         declared.
48456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48457         * modules/unistd (Makefile.am): Substitute it.
48458         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48459         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48461         fdatasync: minor improvements
48462         * modules/fdatasync (Depends-on): Add condition for fsync.
48463         * lib/fdatasync.c (fdatasync): Add comment.
48464         * tests/test-unistd-c++.cc: Test fdatasync.
48466         unistd: update refs to newer POSIX
48467         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48468         Suggested by Bruno Haible.
48470         fdatasync: new module
48471         * modules/fsync (Description): Document difference to fdatasync.
48472         * modules/fdatasync: New module.
48473         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
48474         * lib/fdatasync.c (fdatasync): Likewise.
48475         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
48476         defaults.
48477         * modules/unistd (Makefile.am): Set witnesses.
48478         * lib/unistd.in.h (fdatasync): Declare.
48479         * MODULES.html.sh: Document it.
48480         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
48481         * modules/fdatasync-tests: New test.
48482         * tests/test-fdatasync.c: Likewise.
48484 2011-09-16  Eric Blake  <eblake@redhat.com>
48486         test-fsync: enhance tests
48487         * modules/fsync-tests (Depends-on): Add errno, for mingw.
48488         * tests/test-fsync.c (main): Enhance test.
48490 2011-09-15  Bruno Haible  <bruno@clisp.org>
48492         Support for MSVC compiler: Ensure ssize_t gets defined.
48493         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
48494         * doc/posix-headers/stdio.texi: Likewise.
48495         * modules/stdio (Depends-on): Add ssize_t.
48496         * modules/sys_socket (Depends-on): Likewise.
48497         * modules/sys_types (Depends-on): Likewise.
48498         * modules/sys_uio (Depends-on): Likewise.
48499         * modules/unistd (Depends-on): Likewise.
48500         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
48501         * tests/test-sys_types.c: Check that ssize_t is defined.
48503 2011-09-14  Bruno Haible  <bruno@clisp.org>
48505         Avoid using #, the m4 comment starter character, near brackets.
48506         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
48507         delimiter character in sed expressions.
48508         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
48509         Suggested by Eric Blake.
48511         Properly quote AC_CHECK_DECLS' 4th argument.
48512         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
48513         argument.
48514         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48515         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48516         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48517         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48518         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48519         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
48520         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
48521         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
48522         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
48523         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48524         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
48525         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48526         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48527         * m4/isinf.m4 (gl_ISINF): Likewise.
48528         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48529         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48530         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48531         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48533         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48534         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48535         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
48536         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
48537         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48538         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48539         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
48541         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48543         Reported by Eric Blake.
48545         Properly quote AC_CHECK_DECL's 4th argument.
48546         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
48547         argument.
48548         * m4/argp.m4 (gl_ARGP): Likewise.
48549         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48550         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48551         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48552         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48553         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
48554         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
48555         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
48556         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48557         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48558         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48559         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48560         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48561         Reported by Eric Blake.
48563 2011-09-14  Eric Blake  <eblake@redhat.com>
48565         opendir: avoid compile warning
48566         * lib/opendir.c (includes): Always include errno.h.
48567         Reported by Tatsuro MATSUOKA.
48569 2011-09-14  Jim Meyering  <meyering@redhat.com>
48571         maint.mk: sc_tight_scope: propagate failure from sub-make
48572         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
48573         Reported by Martin von Gagern.
48575 2011-09-13  Bruno Haible  <bruno@clisp.org>
48577         tempname: Support for MSVC.
48578         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
48579         MSVC.
48580         * modules/tempname (Depends-on): Add fcntl-h.
48582 2011-09-13  Bruno Haible  <bruno@clisp.org>
48584         sys_time: Support for MSVC.
48585         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
48586         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
48587         include <winsock2.h>.
48588         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
48589         function declarations that collide with POSIX.
48590         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
48591         (Makefile.am): Substitute HAVE_WINSOCK2_H.
48593 2011-09-13  Bruno Haible  <bruno@clisp.org>
48595         stat: Support for MSVC.
48596         * lib/stat.c: Include pathmax.h.
48597         * modules/stat (Depends-on): Add pathmax.
48599         pathmax: Support for native Windows.
48600         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
48602 2011-09-12  Bruno Haible  <bruno@clisp.org>
48604         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
48605         * lib/dirent.in.h (struct dirent): New type.
48606         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
48607         DT_WHT): New macros.
48608         (DIR): New type.
48609         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48610         (readdir, rewinddir): New declarations.
48611         * lib/dirent-private.h: New file.
48612         * lib/opendir.c: New file.
48613         * lib/readdir.c: New file.
48614         * lib/rewinddir.c: New file.
48615         * lib/closedir.c: New file.
48616         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
48617         * m4/opendir.m4: New file.
48618         * m4/readdir.m4: New file.
48619         * m4/rewinddir.m4: New file.
48620         * m4/closedir.m4: New file.
48621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
48622         REPLACE_CLOSEDIR here.
48623         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
48624         readdir, rewinddir are declared.
48625         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
48626         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
48627         HAVE_REWINDDIR, HAVE_CLOSEDIR.
48628         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
48629         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
48630         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
48631         * modules/opendir: New file.
48632         * modules/readdir: New file.
48633         * modules/rewinddir: New file.
48634         * modules/closedir: New file.
48635         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
48636         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
48637         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
48638         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
48639         * NEWS: Mention the 'fchdir' change.
48641 2011-09-11  Bruno Haible  <bruno@clisp.org>
48643         asm-underscore.m4: Support for MSVC.
48644         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
48645         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
48647 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
48649         Doc about crypt functions.
48650         * doc/posix-functions/crypt.texi: Expand range of glibc versions
48651         needing for _GNU_SOURCE to get crypt.
48652         * doc/posix-functions/encrypt.texi: Likewise.
48653         * doc/posix-functions/setkey.texi: Likewise.
48655 2011-09-11  Bruno Haible  <bruno@clisp.org>
48657         doc: Update regarding MSVC 9.
48658         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
48659         tested".
48660         * doc/posix-functions/*.texi: Update with info about MSVC 9.
48661         * doc/posix-headers/*.texi: Likewise.
48662         * doc/pastposix-functions/*.texi: Likewise.
48663         * doc/glibc-functions/*.texi: Likewise.
48664         * doc/glibc-headers/*.texi: Likewise.
48666 2011-09-11  Bruno Haible  <bruno@clisp.org>
48668         unistd et al.: Don't assume <unistd.h> exists.
48669         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
48670         does not exist.
48671         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
48672         exist. But include <stdlib.h>.
48673         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
48674         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
48675         symlink() does not exist.
48676         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
48677         include <io.h> instead.
48678         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
48679         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
48680         include <direct.h> instead.
48681         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48682         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48683         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48684         <io.h> instead.
48685         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48686         correctly if the system does not have hard links.
48687         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48688         <direct.h> instead.
48689         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48690         it when looking for function declarations.
48691         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48692         <direct.h> and <io.h> instead.
48693         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48695 2011-09-11  Bruno Haible  <bruno@clisp.org>
48697         strcase: Support for MSVC.
48698         * modules/strcase (Status, Notice): Remove obsoletion mark.
48699         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48700         * doc/posix-functions/strncasecmp.texi: Likewise.
48702         strings: Don't assume <strings.h> exists.
48703         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48704         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48705         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48706         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48708 2011-09-11  Bruno Haible  <bruno@clisp.org>
48710         dirent: Don't assume <dirent.h> exists.
48711         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48712         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48713         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48714         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48716 2011-09-11  Bruno Haible  <bruno@clisp.org>
48718         Fix wint_t on MSVC.
48719         * lib/wchar.in.h (wint_t): On MSVC, override it.
48720         * lib/wctype.in.h (wint_t): Likewise.
48721         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48722         MSVC.
48723         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48724         * doc/posix-headers/wctype.texi: Likewise.
48726 2011-09-11  Bruno Haible  <bruno@clisp.org>
48728         sys_types: Fix typo.
48729         * lib/sys_types.in.h: Fix typo in comment.
48730         Reported by Paul Eggert.
48732         Support for MSVC compiler: Ensure size_t gets defined.
48733         * modules/strings (Depends-on): Add 'sys_types'.
48734         * modules/sys_uio (Depends-on): Likewise.
48735         * lib/sys_uio.in.h: Update comment.
48737         C++ tests for module 'sys_types'.
48738         * modules/sys_types-c++-tests: New file.
48739         * tests/test-sys_types-c++.cc: New file.
48741         Tests for module 'sys_types'.
48742         * modules/sys_types-tests: New file.
48743         * tests/test-sys_types.c: New file.
48745         New module 'sys_types'.
48746         * lib/sys_types.in.h: New file.
48747         * m4/sys_types_h.m4: New file.
48748         * modules/sys_types: New file.
48749         * doc/posix-headers/sys_types.texi: Mention the new module and the
48750         size_t problem on MSVC 9.
48752 2011-09-11  Bruno Haible  <bruno@clisp.org>
48754         Support for MSVC compiler: Avoid division by a literal 0.
48755         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48756         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48757         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48758         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48759         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48760         * tests/infinity.h: New file.
48761         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48762         on MSVC.
48763         * tests/test-ceilf1.c: Include infinity.h.
48764         (main): Use Infinityf.
48765         * tests/test-ceil1.c: Include infinity.h.
48766         (main): Use Infinityd.
48767         * tests/test-ceill.c: Include infinity.h.
48768         (main): Use Infinityl.
48769         * tests/test-dprintf-posix.c: Include infinity.h.
48770         (test_function): Use Infinityd.
48771         * tests/test-floorf1.c: Include infinity.h.
48772         (main): Use Infinityf.
48773         * tests/test-floor1.c: Include infinity.h.
48774         (main): Use Infinityd.
48775         * tests/test-floorl.c: Include infinity.h.
48776         (main): Use Infinityl.
48777         * tests/test-fprintf-posix.c: Include infinity.h.
48778         (test_function): Use Infinityd.
48779         * tests/test-frexp.c: Include infinity.h.
48780         (main): Use Infinityd.
48781         * tests/test-frexpl.c: Include infinity.h.
48782         (main): Use Infinityl.
48783         * tests/test-isfinite.c: Include infinity.h.
48784         (test_isfinitef): Use Infinityf.
48785         (test_isfinited): Use Infinityd.
48786         (test_isfinitel): Use Infinityl.
48787         * tests/test-isinf.c: Include infinity.h.
48788         (test_isinff): Use Infinityf.
48789         (test_isinfd): Use Infinityd.
48790         (test_isinfl): Use Infinityl.
48791         * tests/test-isnan.c: Include infinity.h.
48792         (test_float): Use Infinityf.
48793         (test_double): Use Infinityd.
48794         (test_long_double): Use Infinityl.
48795         * tests/test-isnanf.h: Include infinity.h.
48796         (main): Use Infinityf.
48797         * tests/test-isnand.h: Include infinity.h.
48798         (main): Use Infinityd.
48799         * tests/test-isnanl.h: Include infinity.h.
48800         (main): Use Infinityl.
48801         * tests/test-ldexpl.c: Include infinity.h.
48802         (main): Use Infinityl.
48803         * tests/test-printf-posix.h: Include infinity.h.
48804         (test_function): Use Infinityd.
48805         * tests/test-roundf1.c: Include infinity.h.
48806         (main): Use Infinityf.
48807         * tests/test-round1.c: Include infinity.h.
48808         (main): Use Infinityd.
48809         * tests/test-roundl.c: Include infinity.h.
48810         (main): Use Infinityl.
48811         * tests/test-signbit.c: Include infinity.h.
48812         (test_signbitf): Use Infinityf.
48813         (test_signbitd): Use Infinityd.
48814         (test_signbitl): Use Infinityl.
48815         * tests/test-snprintf-posix.h: Include infinity.h.
48816         (test_function): Use Infinityd, Infinityl.
48817         * tests/test-sprintf-posix.h: Include infinity.h.
48818         (test_function): Use Infinityd, Infinityl.
48819         * tests/test-truncf1.c: Include infinity.h.
48820         (main): Use Infinityf.
48821         * tests/test-trunc1.c: Include infinity.h.
48822         (main): Use Infinityd.
48823         * tests/test-truncl.c: Include infinity.h.
48824         (main): Use Infinityl.
48825         * tests/test-vasnprintf-posix.c: Include infinity.h.
48826         (test_function): Use Infinityd, Infinityl.
48827         * tests/test-vasprintf-posix.c: Include infinity.h.
48828         (test_function): Use Infinityd, Infinityl.
48829         * modules/ceilf-tests (Files): Add tests/infinity.h.
48830         * modules/ceil-tests (Files): Likewise.
48831         * modules/ceill-tests (Files): Likewise.
48832         * modules/dprintf-posix-tests (Files): Likewise.
48833         * modules/floorf-tests (Files): Likewise.
48834         * modules/floor-tests (Files): Likewise.
48835         * modules/floorl-tests (Files): Likewise.
48836         * modules/fprintf-posix-tests (Files): Likewise.
48837         * modules/frexp-tests (Files): Likewise.
48838         * modules/frexp-nolibm-tests (Files): Likewise.
48839         * modules/frexpl-tests (Files): Likewise.
48840         * modules/frexpl-nolibm-tests (Files): Likewise.
48841         * modules/isfinite-tests (Files): Likewise.
48842         * modules/isinf-tests (Files): Likewise.
48843         * modules/isnan-tests (Files): Likewise.
48844         * modules/isnanf-tests (Files): Likewise.
48845         * modules/isnanf-nolibm-tests (Files): Likewise.
48846         * modules/isnand-tests (Files): Likewise.
48847         * modules/isnand-nolibm-tests (Files): Likewise.
48848         * modules/isnanl-tests (Files): Likewise.
48849         * modules/isnanl-nolibm-tests (Files): Likewise.
48850         * modules/ldexpl-tests (Files): Likewise.
48851         * modules/printf-posix-tests (Files): Likewise.
48852         * modules/roundf-tests (Files): Likewise.
48853         * modules/round-tests (Files): Likewise.
48854         * modules/roundl-tests (Files): Likewise.
48855         * modules/signbit-tests (Files): Likewise.
48856         * modules/snprintf-posix-tests (Files): Likewise.
48857         * modules/sprintf-posix-tests (Files): Likewise.
48858         * modules/truncf-tests (Files): Likewise.
48859         * modules/trunc-tests (Files): Likewise.
48860         * modules/truncl-tests (Files): Likewise.
48861         * modules/vasnprintf-posix-tests (Files): Likewise.
48862         * modules/vasprintf-posix-tests (Files): Likewise.
48863         * modules/vdprintf-posix-tests (Files): Likewise.
48864         * modules/vfprintf-posix-tests (Files): Likewise.
48865         * modules/vprintf-posix-tests (Files): Likewise.
48866         * modules/vsnprintf-posix-tests (Files): Likewise.
48867         * modules/vsprintf-posix-tests (Files): Likewise.
48868         * modules/xprintf-posix-tests (Files): Likewise.
48870 2011-09-11  Bruno Haible  <bruno@clisp.org>
48872         Ensure pid_t gets defined.
48873         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48874         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48875         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48876         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48877         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48878         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48879         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48880         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48881         * tests/test-fcntl-h.c: Check that pid_t is defined.
48882         * tests/test-sched.c: Likewise.
48883         * tests/test-termios.c: Likewise.
48884         * tests/test-time.c: Likewise.
48885         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48886         * doc/posix-headers/signal.texi: Likewise.
48887         * doc/posix-headers/sys_types.texi: Likewise.
48888         * doc/posix-headers/time.texi: Likewise.
48890 2011-09-11  Bruno Haible  <bruno@clisp.org>
48892         acl: Fix compilation on Solaris 10 (older version).
48893         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48894         of ACE_EVERYONE.
48895         * lib/set-mode-acl.c (qset_acl): Likewise.
48896         Reported by Christian Jullien <eligis@orange.fr>.
48898 2011-09-10  Bruno Haible  <bruno@clisp.org>
48900         iconv, unsetenv: Add support for MSVC compiler.
48901         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48902         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48904 2011-09-10  Bruno Haible  <bruno@clisp.org>
48906         *printf: Add support for MSVC compiler.
48907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48908         handles the exception caused by the %n directive. When cross-compiling,
48909         guess no on native Windows.
48910         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48911         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48912         emulate it through vsnprintf.
48913         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48914         * doc/posix-functions/dprintf.texi: Update documentation regarding
48915         MSVC 9.
48916         * doc/posix-functions/fprintf.texi: Likewise.
48917         * doc/posix-functions/printf.texi: Likewise.
48918         * doc/posix-functions/snprintf.texi: Likewise.
48919         * doc/posix-functions/sprintf.texi: Likewise.
48920         * doc/posix-functions/swprintf.texi: Likewise.
48921         * doc/posix-functions/vdprintf.texi: Likewise.
48922         * doc/posix-functions/vfprintf.texi: Likewise.
48923         * doc/posix-functions/vprintf.texi: Likewise.
48924         * doc/posix-functions/vsnprintf.texi: Likewise.
48925         * doc/posix-functions/vsprintf.texi: Likewise.
48926         * doc/glibc-functions/asprintf.texi: Likewise.
48927         * doc/glibc-functions/obstack_printf.texi: Likewise.
48928         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48929         * doc/glibc-functions/vasprintf.texi: Likewise.
48931 2011-09-10  Bruno Haible  <bruno@clisp.org>
48933         nocrash: Add support for native Windows.
48934         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48936 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48937             Bruno Haible  <bruno@clisp.org>
48939         absolute-header, include-next: Add support for MSVC compiler.
48940         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48941         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48942         directory separator in #line directives.
48943         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48944         recognize also backslash as directory separator in #line directives.
48946 2011-09-08  Jim Meyering  <meyering@redhat.com>
48948         maint.mk: mark the post-release commit log with "maint: " prefix
48949         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48950         one-line commit-log summary.
48952 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48953             Bruno Haible  <bruno@clisp.org>
48955         Doc about crypt functions.
48956         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48957         systems.
48958         * doc/posix-functions/encrypt.texi: Likewise.
48959         * doc/posix-functions/setkey.texi: Likewise.
48961 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48963         * lib/gc.h: Fix copyright header.
48965 2011-09-07  Bruno Haible  <bruno@clisp.org>
48967         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48968         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48969         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48971 2011-09-07  Bruno Haible  <bruno@clisp.org>
48973         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48974         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48975         * lib/freopen.c: Likewise.
48976         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48977         * lib/lstat.c: Likewise.
48978         * lib/stat.c: Likewise.
48979         * lib/open.c: Use different syntax for include of <fcntl.h>.
48980         * lib/openat.c: Include fcntl.h again, explicitly.
48982 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48984         parse-datetime: document the newly accepted format
48985         * doc/parse-datetime.texi (Combined date and time of day items):
48986         New section.
48988 2011-09-06  Bruno Haible  <bruno@clisp.org>
48990         acl: Fix a test failure on newer Solaris 10 with ZFS.
48991         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48992         ENOSYS as no ACL.
48993         Reported by Jim Meyering.
48995 2011-09-06  Bruno Haible  <bruno@clisp.org>
48997         acl: Update for AIX >= 5.3 with NFS.
48998         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48999         ENOSYS as no ACL.
49001         acl: Fix a test failure on AIX >= 5.3 with NFS.
49002         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
49003         as no ACL.
49005 2011-09-06  Bruno Haible  <bruno@clisp.org>
49007         acl: Fix a test failure on IRIX 6.5 with NFS.
49008         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
49009         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
49010         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
49011         * lib/copy-acl.c (qcopy_acl): Likewise.
49013 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49015         openat: port to AIX 7.1 with large files
49016         AIX 7.1 does a "#define openat open64at" if large files are in use,
49017         so we can't simply #undef openat.  Use the orig_openat trick (similar
49018         to orig_open in lib/open.c) to work around the problem.  Problem
49019         reported by Kevin Brott for GNU tar, in the thread containing
49020         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
49021         * lib/openat.c (__need_system_fcntl_h): Define first.
49022         Include <fcntl.h> and <sys/types.h> before undefining.
49023         (orig_openat) [HAVE_OPENAT]: New inline function.
49024         (openat) [HAVE_OPENAT]: Do not undef.
49025         (rpl_openat): Use orig_openat, not openat.
49027 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
49028             Bruno Haible  <bruno@clisp.org>
49030         acl: Avoid errors on NonStop Kernel.
49031         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
49032         ENOTSUP errors.
49034 2011-09-05  Bruno Haible  <bruno@clisp.org>
49036         acl: Clean up Solaris code.
49037         * lib/acl-internal.h: Remove no-op #if.
49038         * lib/file-has-acl.c: Likewise.
49039         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
49040         * lib/copy-acl.c (qcopy_acl): Likewise.
49042 2011-09-05  Bruno Haible  <bruno@clisp.org>
49044         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
49045         binaries built on the original Solaris 10.
49046         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
49047         trivial.
49049 2011-09-05  Bruno Haible  <bruno@clisp.org>
49051         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49052         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
49053         10.
49054         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
49055         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
49056         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
49057         instead of acl_get, facl_get, acl_set, facl_set.
49059 2011-09-05  Bruno Haible  <bruno@clisp.org>
49061         copy-file: Try unit tests on more file systems.
49062         * tests/test-copy-file-1.sh: New file.
49063         * tests/test-copy-file-2.sh: New file.
49064         * modules/copy-file-tests (Files): Add them.
49065         (Makefile.am): Add them to TESTS.
49067         acl: Try unit tests on more file systems.
49068         * tests/test-file-has-acl-1.sh: New file.
49069         * tests/test-file-has-acl-2.sh: New file.
49070         * tests/test-set-mode-acl-1.sh: New file.
49071         * tests/test-set-mode-acl-2.sh: New file.
49072         * tests/test-copy-acl-1.sh: New file.
49073         * tests/test-copy-acl-2.sh: New file.
49074         * modules/acl-tests (Files): Add them.
49075         (Makefile.am): Add them to TESTS.
49077 2011-09-04  Bruno Haible  <bruno@clisp.org>
49079         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49080         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
49081         10.
49082         (OLD_ALLOW, OLD_DENY): New macros.
49083         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
49084         ACE_ACCESS_ALLOWED_ACE_TYPE.
49085         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
49086         ACE_ACCESS_DENIED_ACE_TYPE.
49087         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
49088         (NEW_ACE_EXECUTE): Fix value.
49089         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
49090         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
49091         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
49092         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
49093         NEW_ACE_SYNCHRONIZE): New macros.
49094         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
49095         instead of acl_fromtext, acl_set, facl_set.
49096         Fixes a coreutils/tests/cp/perm failure.
49098 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
49100         openat: test for fstatat (..., 0) bug
49101         Further testing with tar suggests that fstatat (..., 0)
49102         does not work in general, on AIX 7.1; see
49103         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
49104         So, give up entirely on AIX 7.1's fstatat, and fall back on our
49105         replacement fstatat (which is what older AIX releases were using
49106         anyway).
49107         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
49108         use is now changed to orig_fstatat.  This was probably the right
49109         thing to do anyway.
49110         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
49111         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
49112         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
49113         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
49114         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
49115         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
49116         if the bug is found.
49118         openat: test for fstatat (AT_FDCWD, ..., 0) bug
49119         This tests for another fstatat bug on AIX 7.1:
49120         fstatat (AT_FDCWD, ..., 0) does not work.  See
49121         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
49122         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
49123         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
49124         (rpl_fstatat): Adjust so that it works around either (or both)
49125         bugs if present.
49126         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
49128 2011-09-03  Karl Berry  <karl@gnu.org>
49130         * doc/regex.texi (Character Class Operators): Avoid literal ":"
49131         in index entries.
49133 2011-09-02  Bruno Haible  <bruno@clisp.org>
49135         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
49136         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
49137         values of AR, ARFLAGS, RANLIB.
49138         Reported by John W. Eaton <jwe@gnu.org> for Octave.
49140 2011-09-02  Bruno Haible  <bruno@clisp.org>
49142         Find 'ar' program that fits with --host argument.
49143         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
49145 2011-09-02  Bruno Haible  <bruno@clisp.org>
49147         tests: init.sh: Support any non-GNU diff.
49148         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
49149         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
49150         Solaris 8.
49152 2011-09-02  Bruno Haible  <bruno@clisp.org>
49154         tests: init.sh: work also with any non-GNU diff that supports -u
49155         * tests/init.sh: Relax check for diff -u support.
49156         Rather than checking for GNU diff via --version, simply check
49157         for support for -u itself.  Useful at least on OpenBSD 4.9,
49158         AIX 7.1, IRIX 6.5, and Solaris 10.
49160 2011-09-01  Bruno Haible  <bruno@clisp.org>
49162         strtoimax, strtoumax: Document problem on HP-UX 11.
49163         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
49164         * doc/posix-functions/strtoumax.texi: Likewise.
49166 2011-09-01  Bruno Haible  <bruno@clisp.org>
49168         strtoumax: Avoid link error on OSF/1 with DTK cc.
49169         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
49170         defined as a function.
49171         * modules/strtoumax (Depends-on, configure.ac): Test only whether
49172         strtoumax is defined, not whether it is declared.
49174 2011-09-01  Bruno Haible  <bruno@clisp.org>
49176         strtoimax: Avoid link error on OSF/1 with DTK cc.
49177         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
49178         defined as a function.
49179         * modules/strtoimax (Depends-on, configure.ac): Test only whether
49180         strtoimax is defined, not whether it is declared.
49182 2011-09-01  Bruno Haible  <bruno@clisp.org>
49184         imaxdiv: Avoid link error on OSF/1 with DTK cc.
49185         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
49186         as a function.
49187         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
49188         whether it is declared.
49190 2011-09-01  Bruno Haible  <bruno@clisp.org>
49192         imaxabs: Avoid link error on OSF/1 with DTK cc.
49193         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49194         as a function.
49195         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49196         whether it is declared.
49198 2011-09-01  Bruno Haible  <bruno@clisp.org>
49200         Tests for module 'strtoumax'.
49201         * modules/strtoumax-tests: New file.
49202         * tests/test-strtoumax.c: New file.
49204         Tests for module 'strtoimax'.
49205         * modules/strtoimax-tests: New file.
49206         * tests/test-strtoimax.c: New file.
49208         Tests for module 'imaxdiv'.
49209         * modules/imaxdiv-tests: New file.
49210         * tests/test-imaxdiv.c: New file.
49212         Tests for module 'imaxabs'.
49213         * modules/imaxabs-tests: New file.
49214         * tests/test-imaxabs.c: New file.
49216 2011-09-01  Bruno Haible  <bruno@clisp.org>
49218         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
49219         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
49220         pthread_create.
49222 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49224         openat: work around AIX 7.1 fstatat issue
49225         This should fix the problem that was not properly fixed
49226         in the previous change, dated 2011-08-30.
49227         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
49228         __need_system_stat_h defined.
49229         (orig_fstatat) [HAVE_FSTATAT]: New function.
49230         (rpl_fstatat): Go back to the old way of doing things,
49231         except call orig_fstatat instead of fstatat.
49232         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
49233         Remove unnecessary check whether fstatat fills in st_size etc.
49235 2011-09-01  Bruno Haible  <bruno@clisp.org>
49237         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
49238         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
49239         just include the system's header.
49241 2011-08-31  Jim Meyering  <meyering@redhat.com>
49243         tests: avoid spurious assertion failure in test-float.c on ppc64
49244         * tests/test-float.c (test_long_double): Comment out an assertion,
49245         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
49246         with gcc-4.4.4.
49248         maint: indent with spaces, not TABs
49249         I need to get in the habit of running gnulib's "make check".
49250         Both of these would have been caught.
49251         * m4/largefile.m4: Indent with spaces, not TABs.
49252         * lib/parse-datetime.y (iso_8601_time): Likewise.
49253         Spotted by Pádraig Brady.
49255         test-parse-datetime.c: accommodate a relatively strict gcc warning
49256         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
49257         to avoid a warning from gcc's -Werror=missing-declarations.
49258         Insert a few spaces-before-funcall-parenthesis.
49260 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
49262         parse-datetime: accept ISO 8601 date and time rep with "T" separator
49263         The parser now accepts ISO 8601 date-time strings with "T" as the
49264         separator.  It has long parsed dates like "2004-02-29 16:21:42"
49265         with a space between the date and time strings.  Now it also parses
49266         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
49267         variants like "2004-02-29T16:21:42.333-07:00"
49268         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
49269         of day representation using the 'T' separator character.
49270         * doc/parse-datetime.texi (General date syntax): replace use of
49271         deprecated --iso-8601 option with --rfc-3339 in example of date
49272         command output formats that can be parsed.
49273         * tests/test-parse-datetime.c (tm_diff): New function, taken from
49274         lib/parse-datetime.y.
49275         (gmt_offset): New function.
49276         (main): Add additional test cases to validate ISO8601 extended
49277         date and time of day parsing.
49279 2011-08-31  Bruno Haible  <bruno@clisp.org>
49281         freopen: Documentation.
49282         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
49283         name.
49284         Reported by Claudio Bley <claudio.bley@gmail.com>.
49286 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
49288         freopen: Don't crash if the filename argument is NULL.
49289         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
49290         NULL.
49292 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49294         openat: work around AIX 7.1 fstatat bug
49295         Problem reported by Kevin Brott for GNU tar, in the thread containing
49296         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
49297         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
49298         FSTATAT_ST_SIZE_ETC_BROKEN.
49299         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
49300         rpl_fstatat.
49301         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
49302         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
49303         AC_CHECK_FUNCS_ONCE for fstatat.
49304         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
49305         fchmodat, mkdirat, openat and unlinkat.
49307 2011-08-30  Bruno Haible  <bruno@clisp.org>
49309         Avoid endless recursions if config.h includes some header files.
49310         * lib/fopen.c (__need_FILE): Define already before including config.h.
49311         * lib/freopen.c (__need_FILE): Likewise.
49312         * lib/open.c (__need_system_fcntl_h): Likewise.
49313         * lib/stat.c (__need_system_sys_stat_h): Likewise.
49314         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
49315         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
49317 2011-08-25  Karl Berry  <karl@gnu.org>
49319         * config/srclist.txt (ylwrap): new try.
49320         * build-aux/ylwrap: new file.
49322 2011-08-23  Bruno Haible  <bruno@clisp.org>
49324         tmpdir: Use a good default directory on native Windows.
49325         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
49326         (P_tmpdir): Default to _P_tmpdir on native Windows.
49327         (path_search): On native Windows, try the value returned by GetTempPath
49328         before trying P_tmpdir.
49329         * modules/tmpdir (Depends-on): Add pathmax.
49330         Suggested by John Darrington <john@darrington.wattle.id.au>.
49332 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
49334         doc: fix typo in README-release
49335         * top/README-release: Capitalize first word of a sentence.
49337 2011-08-19  Jim Meyering  <meyering@redhat.com>
49339         fts: do not exhaust memory when processing million-entry directories
49340         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
49341         directory would require about 256*N bytes of memory.  Thus, it was
49342         easy to construct a directory too large to be processed by any of
49343         those tools.  With this change, fts' maximum memory utilization is
49344         now limited to around 30MB.
49345         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
49346         (fts_read): When we've processed the final entry (i.e., when
49347         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
49348         using the parent entry to read any remaining entries.  Dispatch
49349         depending on what fts_build returns:
49350         - NULL+stop, aka failure: stop
49351         - NULL otherwise: move up in the dir hierarchy
49352         - non-NULL: handle this new entry
49353         (fts_build): Declare and use new local, continue_readdir.
49354         Prepare to be called from fts_read, when the entries
49355         from a partially-read directory have just been exhausted.
49356         In that case, we'll skip the opendir and instead use the parent's
49357         fts_dirp and derive dir_fd from that.
49358         Finally, in the readdir loop, if we read max_entries entries,
49359         exit the loop ensuring *not* to call closedir.  This is required
49360         so that fts_dirp can be reused on a subsequent call.
49361         Prompted by Ben England's report of memory exhaustion in find
49362         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49364         maint: fts: move decl of `dp' down into while loop; split a long line
49365         * lib/fts.c (fts_build): No semantic change.
49367         fts: add/use new struct member, fts_dirp
49368         We are about to use this to manage any directory with
49369         too many entries to read all of them into memory at once.
49370         To do that, we'll need to save the DIR* pointer in each
49371         affected FTSENT struct.
49372         * lib/fts_.h: Include <dirent.h>.
49373         (struct FTSENT) [fts_dirp]: New member.
49374         * lib/fts.c (closedir_and_clear): Define.
49375         Use it in place of closedir so that we are sure to
49376         clear the new fts_dirp member when done with it.
49377         (fts_alloc): Initialize the new member.
49378         (fts_lfree): Free, if needed.
49380         maint: fts: give __opendir2 a new parameter and rename
49381         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49382         than surreptitiously using sole caller's "dir_fd".
49383         (fts_opendir): Rename from __opendir2.
49385         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49386         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49388         maint: fts.c: correct off-by-one indentation
49389         * lib/fts.c (fts_build): Correct indentation, change style
49390         of a couple of block comments, and bracing style.
49392         maint: fts.c: move __opendir2 #define "up" out of function body
49393         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49395         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49396         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49397         out for a long time and besides was useful only on BSD systems.
49399 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49401         regex: port to Stratus OpenVOS
49402         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49403         define to empty, rather than attempting nonportable optimizations.
49404         Problem reported by Paul Green in:
49405         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49406         and fix suggested by Eric Blake in:
49407         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49409 2011-08-17  Eric Blake  <eblake@redhat.com>
49411         getcwd: fix test failures on mingw
49412         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49413         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49414         test if long directory cannot be created, and allow mingw errno.
49416         getcwd-lgpl: fix m4 to match relaxed test for BSD
49417         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49418         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49419         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49420         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49421         signature problem.
49423         getcwd: fix compilation on mingw64
49424         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49425         getcwd.
49426         Reported by Marc-André Lureau.
49428         pipe2: silence compiler warning
49429         * lib/pipe2.c (pipe2): Hide label if it is not used.
49431 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49433         relocatable-prog: fix link error
49434         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49435         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49436         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49437         into modules/relocatable-lib without noticing that
49438         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49439         also needs to build relocatable.c.
49441 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49443         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49444         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49445         shell code: it contained a 'break' that was not in a loop.
49446         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49447         via a shell-language loop; this may have been true in old Autoconf
49448         versions, but it's not true in Autoconf 2.68.  I found this bug
49449         when testing coreutils git on Solaris 8, whose shell complains
49450         about the syntax error.
49452 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49454         * lib/base64.c: Fix comment to reference RFC 4648.
49455         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49456         <gvtulder@gmail.com>.
49458 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49460         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49462         po/Makefile.in.in: fix make -q problem
49463         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49464         rule, since there's no file named 'check-macro-version' and its
49465         use as a file breaks make -q.
49466         (all): Don't depend on check-macro-version.
49467         (CHECK_MACRO_VERSION): New macro.
49468         (stamp-po): Use it.
49470         configmake: fix make -q problem
49471         * modules/configmake (configmake.h): Update configmake.h's time stamp
49472         even if the file does not change.  Otherwise, 'make -q' fails.
49473         Problem reported by Simon Josefsson in
49474         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
49476 2011-08-11  Jim Meyering  <meyering@redhat.com>
49478         git-version-gen: correct the advice in a comment
49479         * build-aux/git-version-gen: Correct comment.
49480         Don't recommend to list .tarball-version in .gitignore.
49482 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49484         base64: fix off-by-one buffer size bug
49485         Problem and (trivial) fix reported by Gijs van Tulder in
49486         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
49487         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
49488         * tests/test-base64.c (main): Catch the bug.
49490 2011-08-10  Eric Blake  <eblake@redhat.com>
49492         closein: correct comments
49493         * lib/closein.c (close_stdin): Improve comments.
49495 2011-08-09  Bruno Haible  <bruno@clisp.org>
49497         More tests for 'fseeko'.
49498         * tests/test-fseeko3.c: New file, from Eric Blake.
49499         * tests/test-fseeko3.sh: New file.
49500         * modules/fseeko-tests (Files): Add them.
49501         (TESTS): Add test-fseeko3.sh.
49502         (check_PROGRAMS): Add test-fseeko3.
49504 2011-08-09  Eric Blake  <eblake@redhat.com>
49506         fseeko: remove unneeded hack
49507         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
49509         fseeko: fix bug on glibc
49510         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
49511         Reported by John W. Eaton.
49513 2011-08-08  Bruno Haible  <bruno@clisp.org>
49515         unictype/base: Fix interoperability with preinstalled libunistring.
49516         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
49517         Reported by Simon Josefsson.
49519 2011-08-08  Bruno Haible  <bruno@clisp.org>
49521         iswblank: Detect declaration correctly.
49522         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
49523         AC_CHECK_DECLS invocation.
49525 2011-08-08  Bruno Haible  <bruno@clisp.org>
49527         tcgetsid: Detect declaration correctly.
49528         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
49529         AC_CHECK_DECLS invocation.
49530         Reported by Simon Josefsson.
49532 2011-08-08  Eric Blake  <eblake@redhat.com>
49534         largefile: fix typo that regressed large file support
49535         * modules/largefile (configure.ac-early): Fix section name.
49537 2011-08-06  Karl Berry  <karl@gnu.org>
49539         * MODULES.html.sh (func_all_files): _Noreturn is no longer
49540         a separate module.
49542 2011-08-05  Simon Josefsson  <simon@josefsson.org>
49544         openat: Fix warnings and commens when building unlinkat.c on Hurd.
49545         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
49546         get prototype for free.
49548 2011-08-04  Bruno Haible  <bruno@clisp.org>
49550         Tests for module 'pathmax'.
49551         * modules/pathmax-tests: New file.
49552         * tests/test-pathmax.c: New file.
49554         canonicalize-lgpl: Support larger filenames on the Hurd.
49555         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
49556         Reported by Paul Eggert.
49558         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
49559         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
49560         * lib/chdir-long.h: Include pathmax.h.
49561         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
49562         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
49563         (PATH_MAX): Remove code that is done by pathmax.h.
49564         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
49565         * lib/tmpfile.c: Add a comment.
49566         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
49567         * modules/chdir-long (Depends-on): Add pathmax.
49568         * modules/getcwd (Depends-on): Add pathmax.
49569         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
49570         is not defined.
49571         * doc/posix-headers/limits.texi: Mention the pathmax module.
49572         * NEWS: Mention the change.
49574 2011-08-02  Bruno Haible  <bruno@clisp.org>
49576         pthread_sigmask: Actually use results of gl_THREADLIB.
49577         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
49578         gl_THREADLIB, not gl_[]THREADLIB.
49579         Reported by Eric Blake.
49581 2011-08-02  Jim Meyering  <meyering@redhat.com>
49583         maint.mk: relax the default _gl_TS_function_match regexp
49584         * top/maint.mk (_gl_TS_function_match): Don't require at least one
49585         space between function name and "(" in an "extern" declaration.
49586         That would fail to match a decl with no space there: extern void foo();
49588 2011-07-31  Iain Nicol  <iain@thenicols.net>
49590         git-version-gen: document that EXTRA_DIST must include .version
49591         * build-aux/git-version-gen: In the how-to-use comment, document
49592         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
49593         will fail when run from an unpacked distribution tarball.
49595 2011-08-01  Bruno Haible  <bruno@clisp.org>
49597         wctype-h: Fix last change.
49598         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
49599         REPLACE_TOWLOWER to 0.
49600         Reported by Sam Steingold <sds@gnu.org>.
49602 2011-07-31  Bruno Haible  <bruno@clisp.org>
49604         frexpl: Update autoconf test.
49605         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
49606         according to changes of 2011-06-20.
49608 2011-07-31  Bruno Haible  <bruno@clisp.org>
49610         sys_utsname: Add support for Minix.
49611         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49612         <sys/utsname.h>.
49613         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49614         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49616 2011-07-31  Bruno Haible  <bruno@clisp.org>
49618         strings: Add support for Minix.
49619         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
49620         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49621         * doc/posix-headers/strings.texi: Document the Minix problem.
49623 2011-07-31  Bruno Haible  <bruno@clisp.org>
49625         wctype-h: Add support for Minix.
49626         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
49627         REPLACE_TOWLOWER.
49628         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
49629         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
49630         REPLACE_ISWCNTRL.
49632 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
49634         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
49635         This is a performance improvement for 64-bit hosts: it causes the
49636         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
49638 2011-07-31  Bruno Haible  <bruno@clisp.org>
49640         stdioext: Add support for Minix.
49641         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
49642         * lib/fpurge.c (fpurge): Likewise.
49643         * lib/freadahead.c (freadahead): Likewise.
49644         * lib/freadable.c (freadable): Likewise.
49645         * lib/freading.c (freading): Likewise.
49646         * lib/freadptr.c (freadptr): Likewise.
49647         * lib/freadseek.c (freadptrinc): Likewise.
49648         * lib/fseeko.c (rpl_fseeko): Likewise.
49649         * lib/fseterr.c (fseterr): Likewise.
49650         * lib/fwritable.c (fwritable): Likewise.
49651         * lib/fwriting.c (fwriting): Likewise.
49652         * lib/fflush.c (clear_ungetc_buffer): Update comment.
49653         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
49655 2011-07-31  Bruno Haible  <bruno@clisp.org>
49657         errno: Port to Minix.
49658         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
49659         ECONNABORTED are defined.
49660         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
49661         GNULIB_defined_ECONNABORTED): New macros.
49662         * lib/strerror-override.h (strerror_override): Test also
49663         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
49664         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
49665         ECONNABORTED.
49666         * doc/posix-headers/errno.texi: Mention the Minix problem.
49668 2011-07-31  Bruno Haible  <bruno@clisp.org>
49670         Work around declaration collisions on Minix.
49671         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
49672         defined, set REPLACE_MBSINIT.
49673         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
49674         defined, set REPLACE_MBRTOWC.
49675         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
49676         set REPLACE_MBRLEN.
49677         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
49678         defined, set REPLACE_MBSRTOWCS.
49679         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
49680         defined, set REPLACE_WCRTOMB.
49681         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49682         defined, set REPLACE_WCSRTOMBS.
49684 2011-07-31  Bruno Haible  <bruno@clisp.org>
49686         Add support for Minix with ACK compiler.
49687         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49688         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49689         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49691 2011-07-31  Bruno Haible  <bruno@clisp.org>
49693         Documentation about Minix.
49694         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49695         * doc/glibc-headers/*.texi: Likewise.
49696         * doc/posix-functions/*.texi: Likewise.
49697         * doc/glibc-functions/*.texi: Likewise.
49699 2011-07-31  Bruno Haible  <bruno@clisp.org>
49701         snippet/warn-on-use: Fix indentation.
49702         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49704 2011-07-25  Jim Meyering  <meyering@redhat.com>
49706         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49707         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49708         commands.
49710 2011-07-27  Jim Meyering  <meyering@redhat.com>
49712         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49713         * top/maint.mk (gl_extract_significant_defines_): Now that
49714         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49715         gnulib/lib/signal.in.h, and now that we recommend to
49716         define-if-undefined those two symbols in application code,
49717         we must filter them out of the "significant" list.
49718         This avoids a "make syntax-check" failure in coreutils.
49720 2011-07-26  Eric Blake  <eblake@redhat.com>
49722         warnings: add comments about previous patch
49723         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49724         * m4/include_next.m4: Likewise.
49725         * m4/warn-on-use.m4: Likewise.
49726         * m4/warnings.m4: Likewise, and simplify use.
49727         Suggested by Stefano Lattarini.
49729         include-next, warnings: support older autoconf
49730         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49731         AS_VAR_PUSHDEF in a way that works with older autoconf.
49732         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49733         Reported by Daniel P. Berrange.
49735 2011-07-25  Bruno Haible  <bruno@clisp.org>
49737         fseek, ftell: Fix doc.
49738         * doc/posix-functions/fseek.texi: Reword statement about
49739         AC_SYS_LARGEFILE.
49740         * doc/posix-functions/ftell.texi: Likewise.
49742 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49743             Bruno Haible  <bruno@clisp.org>
49745         Add dependencies to the 'largefile' module.
49746         * modules/fopen (Depends-on): Add 'largefile'.
49747         * modules/freopen (Depends-on): Likewise.
49748         * modules/fseeko (Depends-on): Likewise.
49749         * modules/ftello (Depends-on): Likewise.
49750         * modules/glob (Depends-on): Likewise.
49751         * modules/lseek (Depends-on): Likewise.
49752         * modules/lstat (Depends-on): Likewise.
49753         * modules/mkostemp (Depends-on): Likewise.
49754         * modules/mkostemps (Depends-on): Likewise.
49755         * modules/mkstemp (Depends-on): Likewise.
49756         * modules/mkstemps (Depends-on): Likewise.
49757         * modules/open (Depends-on): Likewise.
49758         * modules/openat (Depends-on): Likewise.
49759         * modules/pread (Depends-on): Likewise.
49760         * modules/pwrite (Depends-on): Likewise.
49761         * modules/scandir (Depends-on): Likewise.
49762         * modules/stat (Depends-on): Likewise.
49763         * modules/tmpfile (Depends-on): Likewise.
49764         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49765         since the containing module now depends on the largefile module.
49766         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49767         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49768         off_t is fixed by gnulib.
49769         * doc/posix-functions/freopen.texi: Likewise.
49770         * doc/posix-functions/fseeko.texi: Likewise.
49771         * doc/posix-functions/fstatat.texi: Likewise.
49772         * doc/posix-functions/ftello.texi: Likewise.
49773         * doc/posix-functions/glob.texi: Likewise.
49774         * doc/posix-functions/lseek.texi: Likewise.
49775         * doc/posix-functions/lstat.texi: Likewise.
49776         * doc/posix-functions/mkstemp.texi: Likewise.
49777         * doc/posix-functions/open.texi: Likewise.
49778         * doc/posix-functions/openat.texi: Likewise.
49779         * doc/posix-functions/pread.texi: Likewise.
49780         * doc/posix-functions/pwrite.texi: Likewise.
49781         * doc/posix-functions/scandir.texi: Likewise.
49782         * doc/posix-functions/stat.texi: Likewise.
49783         * doc/posix-functions/tmpfile.texi: Likewise.
49784         * doc/glibc-functions/mkostemp.texi: Likewise.
49785         * doc/glibc-functions/mkostemps.texi: Likewise.
49786         * doc/glibc-functions/mkstemps.texi: Likewise.
49788 2011-07-25  Bruno Haible  <bruno@clisp.org>
49790         fcntl: Move AC_LIBOBJ invocation to module description.
49791         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49792         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49794         fcntl: Remove call-in from fchdir.m4.
49795         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49796         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49798         dup3: Remove potential call-in from fchdir.m4.
49799         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49802         dup2: Move AC_LIBOBJ invocation to module description.
49803         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49804         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49805         Don't invoke AC_LIBOBJ.
49806         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49808         dup2: Remove call-in from fchdir.m4.
49809         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49812         fclose: Move AC_LIBOBJ invocation to module description.
49813         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49814         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49815         to 1.
49816         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49818         fclose: Remove call-in from close.m4.
49819         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49820         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49822         close: Move AC_LIBOBJ invocation to module description.
49823         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49824         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49825         1.
49826         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49828         close: Remove call-in from fchdir.m4.
49829         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49832         open: Move AC_LIBOBJ invocation to module description.
49833         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49834         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49835         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49837         open: Remove call-in from fchdir.m4.
49838         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49841         fchdir: Start to remove gl_REPLACE_* idiom.
49842         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49843         (gl_FUNC_FCHDIR): Invoke it.
49845 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49847         * lib/ftell.c (ftell): Comment out cast.
49849         close: use gl_REPLACE_FCLOSE only if defined
49850         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49851         is defined.  The close module doesn't depend on the fclose module
49852         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49853         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49854         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49856 2011-07-24  Jim Meyering  <meyering@redhat.com>
49858         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49859         * tests/test-select.h (test_function): Declare as "static".
49861 2011-07-24  Bruno Haible  <bruno@clisp.org>
49863         doc: Mention the effects of AC_SYS_LARGEFILE.
49864         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49865         on this function.
49866         * doc/posix-functions/aio_error.texi: Likewise.
49867         * doc/posix-functions/aio_fsync.texi: Likewise.
49868         * doc/posix-functions/aio_read.texi: Likewise.
49869         * doc/posix-functions/aio_return.texi: Likewise.
49870         * doc/posix-functions/aio_suspend.texi: Likewise.
49871         * doc/posix-functions/aio_write.texi: Likewise.
49872         * doc/posix-functions/fgetpos.texi: Likewise.
49873         * doc/posix-functions/fopen.texi: Likewise.
49874         * doc/posix-functions/freopen.texi: Likewise.
49875         * doc/posix-functions/fsetpos.texi: Likewise.
49876         * doc/posix-functions/fstatvfs.texi: Likewise.
49877         * doc/posix-functions/ftruncate.texi: Likewise.
49878         * doc/posix-functions/ftw.texi: Likewise.
49879         * doc/posix-functions/getrlimit.texi: Likewise.
49880         * doc/posix-functions/glob.texi: Likewise.
49881         * doc/posix-functions/lio_listio.texi: Likewise.
49882         * doc/posix-functions/lockf.texi: Likewise.
49883         * doc/posix-functions/mkstemp.texi: Likewise.
49884         * doc/posix-functions/mmap.texi: Likewise.
49885         * doc/posix-functions/nftw.texi: Likewise.
49886         * doc/posix-functions/openat.texi: Likewise.
49887         * doc/posix-functions/opendir.texi: Likewise.
49888         * doc/posix-functions/posix_fadvise.texi: Likewise.
49889         * doc/posix-functions/posix_fallocate.texi: Likewise.
49890         * doc/posix-functions/pread.texi: Likewise.
49891         * doc/posix-functions/pwrite.texi: Likewise.
49892         * doc/posix-functions/readdir.texi: Likewise.
49893         * doc/posix-functions/readdir_r.texi: Likewise.
49894         * doc/posix-functions/rewinddir.texi: Likewise.
49895         * doc/posix-functions/scandir.texi: Likewise.
49896         * doc/posix-functions/seekdir.texi: Likewise.
49897         * doc/posix-functions/setrlimit.texi: Likewise.
49898         * doc/posix-functions/statvfs.texi: Likewise.
49899         * doc/posix-functions/telldir.texi: Likewise.
49900         * doc/posix-functions/tmpfile.texi: Likewise.
49901         * doc/posix-functions/truncate.texi: Likewise.
49902         * doc/glibc-functions/fallocate.texi: Likewise.
49903         * doc/glibc-functions/fstatfs.texi: Likewise.
49904         * doc/glibc-functions/fts_children.texi: Likewise.
49905         * doc/glibc-functions/fts_read.texi: Likewise.
49906         * doc/glibc-functions/getdirentries.texi: Likewise.
49907         * doc/glibc-functions/mkostemp.texi: Likewise.
49908         * doc/glibc-functions/mkostemps.texi: Likewise.
49909         * doc/glibc-functions/mkstemps.texi: Likewise.
49910         * doc/glibc-functions/preadv.texi: Likewise.
49911         * doc/glibc-functions/pwritev.texi: Likewise.
49912         * doc/glibc-functions/sendfile.texi: Likewise.
49913         * doc/glibc-functions/statfs.texi: Likewise.
49915 2011-07-24  Bruno Haible  <bruno@clisp.org>
49917         doc: Fix typo.
49918         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49920 2011-07-24  Bruno Haible  <bruno@clisp.org>
49922         doc: Mention fsusage.
49923         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49925 2011-07-24  Bruno Haible  <bruno@clisp.org>
49927         doc: Mention new glibc headers and functions.
49928         * doc/glibc-headers/gshadow.texi: New file.
49929         * doc/glibc-functions/endsgent.texi: New file.
49930         * doc/glibc-functions/fgetsgent.texi: New file.
49931         * doc/glibc-functions/fgetsgent_r.texi: New file.
49932         * doc/glibc-functions/getsgent.texi: New file.
49933         * doc/glibc-functions/getsgent_r.texi: New file.
49934         * doc/glibc-functions/getsgnam.texi: New file.
49935         * doc/glibc-functions/getsgnam_r.texi: New file.
49936         * doc/glibc-functions/putsgent.texi: New file.
49937         * doc/glibc-functions/setsgent.texi: New file.
49938         * doc/glibc-functions/sgetsgent.texi: New file.
49939         * doc/glibc-functions/sgetsgent_r.texi: New file.
49940         * doc/glibc-functions/malloc_info.texi: New file.
49941         * doc/glibc-functions/preadv.texi: New file.
49942         * doc/glibc-functions/pwritev.texi: New file.
49943         * doc/glibc-functions/register_printf_modifier.texi: New file.
49944         * doc/glibc-functions/register_printf_specifier.texi: New file.
49945         * doc/glibc-functions/register_printf_type.texi: New file.
49946         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49947         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49948         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49949         * doc/glibc-functions/pthread_getname_np.texi: New file.
49950         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49951         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49952         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49953         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49954         * doc/glibc-functions/pthread_setname_np.texi: New file.
49955         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49956         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49957         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49958         * doc/glibc-functions/qsort_r.texi: New file.
49959         * doc/glibc-functions/quick_exit.texi: New file.
49960         * doc/glibc-functions/syncfs.texi: New file.
49961         * doc/gnulib.texi: Include them.
49962         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49963         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49964         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49965         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49966         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49967         * doc/glibc-functions/execvpe.texi: Likewise.
49969 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49971         ftell: don't include <unistd.h>
49972         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49973         guaranteed to define off_t, and the ftell module depends on the
49974         stdio module.
49976         ftell: do not assume wraparound signed arithmetic
49977         * lib/ftell.c: Include <limits.h>.
49978         (ftell): Don't assume wraparound signed arithmetic.
49980 2011-07-24  Bruno Haible  <bruno@clisp.org>
49982         close: No longer depend on module 'fclose'.
49983         * modules/close (Depends-on): Remove fclose.
49984         * NEWS: Mention the change.
49985         Suggested by Sam Steingold <sds@gnu.org>.
49987 2011-07-24  Bruno Haible  <bruno@clisp.org>
49989         fsusage: Enable large volume support on AIX >= 5.2.
49990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49991         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49992         instead of STAT_STATVFS.
49993         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49995         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49996         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49997         f_blocks field only on MacOS X.
49999         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
50000         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
50001         * modules/fsusage (Depends-on): Add largefile.
50003 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50005         * README: Modernize discussion of signed integers.
50006         Assuming overflow wraparound is no longer safe.
50007         Mention ones' complement and signed magnitude.
50009 2011-07-22  Bruno Haible  <bruno@clisp.org>
50011         select tests, pselect tests: Refactor.
50012         * tests/test-select.h: New file, extracted from tests/test-select.c.
50013         (select_fn): New type.
50014         (test, do_select, do_select_nowait, do_select_wait, test_tty,
50015         test_connect_first, test_accept_first, test_pair, test_socket_pair,
50016         test_pipe): Add my_select argument.
50017         (test_function): Renamed from main. Add my_select argument.
50018         * tests/test-select.c: Move most code to tests/test-select.h. Include
50019         test-select.h.
50020         * modules/select-tests (Files): Add tests/test-select.h.
50021         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
50022         (my_select, main): New functions.
50023         * modules/pselect-tests (Files): Add tests/test-select.h,
50024         tests/macros.h, tests/signature.h.
50025         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
50026         (configure.ac): Check for <sys/wait.h>.
50028 2011-07-22  Bruno Haible  <bruno@clisp.org>
50030         sys_select tests: Check the signature of FD_*.
50031         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
50032         signature tests from here...
50033         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
50034         here.
50035         * modules/sys_select-tests (Files): Add tests/signature.h.
50037 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50039         largefile: new module, replacing large-inode
50040         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
50041         * MODULES.html.sh: Add largefile, remove large-inode.
50042         * modules/largefile, m4/largefile.m4: New files.
50043         * modules/large-inode, m4/large-inode.m4: Remove.
50045         fsusage: port to MacOS X 10.7 with 4 TiB file systems
50046         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
50047         implementations that use only 32 bits to count blocks.
50048         On typical hosts with 1024-byte blocks, this fails with file
50049         systems as small as 4 TiB.  Problem reported by Herb Wartens
50050         <http://debbugs.gnu.org/9140> and this should also fix a similar
50051         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
50053         large-inode: New module
50054         * MODULES.html.sh: Add it.
50055         * modules/large-inode, m4/large-inode.m4: New files.
50057         extensions: Enable extensions on MacOS X 10.5 and later.
50058         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
50060 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
50062         file-has-acl: use acl_extended_file_nofollow if available
50063         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
50064         (acl_extended_file): New macro.
50065         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
50066         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
50068 2011-07-21  Bruno Haible  <bruno@clisp.org>
50070         Declare system functions in a way that works with C++.
50071         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
50072         declare fdopendir as extern "C".
50073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
50074         declare frexpl as extern "C".
50075         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
50076         declare gai_strerror as extern "C".
50077         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
50078         programs, declare gai_strerror as extern "C".
50079         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
50080         declare getlogin_r as extern "C".
50081         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
50082         as extern "C".
50083         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
50084         declare ldexpl as extern "C".
50085         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
50086         as extern "C".
50087         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
50088         program, declare getmntinfo as extern "C".
50089         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
50090         stpncpy as extern "C".
50091         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
50092         program, declare __xpg_strerror_r as extern "C".
50093         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
50094         strndup as extern "C".
50095         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
50096         declare memset and bzero as extern "C".
50097         Reported by Sam Steingold <sds@gnu.org>.
50099 2011-07-12  Jim Meyering  <meyering@redhat.com>
50101         maint.mk: prohibit inclusion of "verify.h" without use
50102         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
50104 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50106         timer-time: A new module to check for timer_settime()
50107         * m4/timer_time.m4: Check for the posix function.
50108         * modules/timer-time: Add the new module.
50109         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
50110         Mention it.
50112 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
50113             Bruno Haible  <bruno@clisp.org>
50115         pthread_sigmask: assume POSIX threads if --avoid=threadlib
50116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
50117         not defined, assume POSIX threads and look for pthread_sigmask in
50118         $LIBS, without changing $CPPFLAGS.
50120 2011-07-19  Bruno Haible  <bruno@clisp.org>
50122         strstr: Update cross-compilation guess.
50123         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
50124         CPUs, guess no, in view of glibc
50125         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
50126         Suggested by Eric Blake. Reported by Reuben Thomas.
50128 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50130         getopt-gnu: suppress core dumps from detection code
50131         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
50132         to suppress core dumps that may well occur on glibc systems.
50133         * modules/getopt-gnu: Depend on nocrash.
50135 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50137         pthread_sigmask: ensure usleep is declared
50138         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
50139         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
50141 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50143         doc: Document NonStop portability issues.
50144         * doc/posix-functions/sigaction.texi (sigaction):
50145         * doc/posix-headers/signal.texi (signal.h):
50146         Document NonStop.  See Joachim Schmitz in
50147         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
50149 2011-07-15  Bruno Haible  <bruno@clisp.org>
50151         ffsl, ffsll: Avoid unportable behaviour.
50152         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
50154 2011-07-15  Bruno Haible  <bruno@clisp.org>
50156         ffs: More tests.
50157         * tests/test-ffs.c (NBITS): New macro.
50158         (main): Add more tests.
50159         * tests/test-ffsl.c (NBITS): New macro.
50160         (main): Add more tests.
50161         * tests/test-ffsll.c (NBITS): New macro.
50162         (main): Add more tests.
50164 2011-07-15  Eric Blake  <eblake@redhat.com>
50166         ffsl, ffsll: new modules
50167         * modules/ffsl: New file.
50168         * modules/ffsll: Likewise.
50169         * m4/ffsl.m4: Likewise.
50170         * m4/ffsll.m4: Likewise.
50171         * lib/ffsl.c: Likewise.
50172         * lib/ffsl.h: Likewise.
50173         * lib/ffsll.c: Likewise.
50174         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
50175         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
50176         * modules/string (Makefile.am): Substitute witnesses.
50177         * lib/strings.in.h (ffsl, ffsll): Declare.
50178         * modules/ffsl-tests: New test file.
50179         * modules/ffsll-tests: Likewise.
50180         * tests/test-ffsl.c: Likewise.
50181         * tests/test-ffsll.c: Likewise.
50182         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50183         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
50184         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
50186         ffs: fix m4 prerequisite
50187         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
50189         ffs: avoid undefined behavior
50190         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
50191         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50192         Reported by Bruno Haible.
50194 2011-07-12  Bruno Haible  <bruno@clisp.org>
50196         pthread_sigmask: Rely on module 'threadlib'.
50197         * modules/pthread_sigmask (Depends-on): Add threadlib.
50198         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
50199         is defined.
50201 2011-07-12  Bruno Haible  <bruno@clisp.org>
50203         regex: Depend on module 'strcase'.
50204         * modules/regex (Depends-on): Add strcase, for strcasecmp().
50206 2011-07-12  Jim Meyering  <meyering@redhat.com>
50208         warn-on-use: fix typo in file name
50209         * modules/snippet/warn-on-use (Files): Correct file name:
50210         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
50212 2011-07-12  Bruno Haible  <bruno@clisp.org>
50214         strings: Document module.
50215         * doc/posix-headers/strings.texi: Mention module 'strings'.
50217 2011-07-12  Bruno Haible  <bruno@clisp.org>
50219         Rename module '_Noreturn' to 'snippet/_Noreturn'.
50220         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
50221         (Files, Makefile.am): Update.
50222         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
50223         * modules/stdlib (Depends-on): Update.
50225 2011-07-12  Bruno Haible  <bruno@clisp.org>
50227         * NEWS: Mention the changes.
50229         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
50230         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
50231         (Files, Makefile.am): Update.
50232         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50233         * modules/arpa_inet (Depends-on): Update.
50234         * modules/ctype (Depends-on): Update.
50235         * modules/dirent (Depends-on): Update.
50236         * modules/fcntl-h (Depends-on): Update.
50237         * modules/glob (Depends-on): Update.
50238         * modules/iconv-h (Depends-on): Update.
50239         * modules/inttypes-incomplete (Depends-on): Update.
50240         * modules/langinfo (Depends-on): Update.
50241         * modules/locale (Depends-on): Update.
50242         * modules/math (Depends-on): Update.
50243         * modules/netdb (Depends-on): Update.
50244         * modules/poll-h (Depends-on): Update.
50245         * modules/pty (Depends-on): Update.
50246         * modules/search (Depends-on): Update.
50247         * modules/signal (Depends-on): Update.
50248         * modules/spawn (Depends-on): Update.
50249         * modules/stdio (Depends-on): Update.
50250         * modules/stdlib (Depends-on): Update.
50251         * modules/string (Depends-on): Update.
50252         * modules/strings (Depends-on): Update.
50253         * modules/sys_file (Depends-on): Update.
50254         * modules/sys_ioctl (Depends-on): Update.
50255         * modules/sys_select (Depends-on): Update.
50256         * modules/sys_socket (Depends-on): Update.
50257         * modules/sys_stat (Depends-on): Update.
50258         * modules/sys_time (Depends-on): Update.
50259         * modules/sys_times (Depends-on): Update.
50260         * modules/sys_utsname (Depends-on): Update.
50261         * modules/sys_wait (Depends-on): Update.
50262         * modules/termios (Depends-on): Update.
50263         * modules/time (Depends-on): Update.
50264         * modules/unistd (Depends-on): Update.
50265         * modules/wchar (Depends-on): Update.
50266         * modules/wctype-h (Depends-on): Update.
50267         * MODULES.html.sh (Support for building libraries and executables):
50268         Update.
50270         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
50271         * modules/snippet/unused-parameter: Renamed from
50272         modules/unused-parameter.
50273         (Files, Makefile.am): Update.
50274         * build-aux/snippet/unused-parameter.h: Renamed from
50275         build-aux/unused-parameter.h.
50276         * modules/selinux-h (Depends-on): Update.
50277         * modules/unistr/base (Depends-on): Update.
50278         * MODULES.html.sh (Core language properties): Update.
50280         Rename module 'link-warning' to 'snippet/link-warning'.
50281         * modules/snippet/link-warning: Renamed from modules/link-warning.
50282         (Files, Makefile.am): Update.
50283         * build-aux/snippet/link-warning.h: Renamed from
50284         build-aux/link-warning.h.
50285         * MODULES.html.sh (Support for building libraries and executables):
50286         Update.
50288         Rename module 'c++defs' to 'snippet/c++defs'.
50289         * modules/snippet/c++defs: Renamed from modules/c++defs.
50290         (Files, Makefile.am): Update.
50291         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
50292         * modules/arpa_inet (Depends-on): Update.
50293         * modules/ctype (Depends-on): Update.
50294         * modules/dirent (Depends-on): Update.
50295         * modules/fcntl-h (Depends-on): Update.
50296         * modules/glob (Depends-on): Update.
50297         * modules/iconv-h (Depends-on): Update.
50298         * modules/langinfo (Depends-on): Update.
50299         * modules/locale (Depends-on): Update.
50300         * modules/math (Depends-on): Update.
50301         * modules/netdb (Depends-on): Update.
50302         * modules/poll-h (Depends-on): Update.
50303         * modules/pty (Depends-on): Update.
50304         * modules/search (Depends-on): Update.
50305         * modules/signal (Depends-on): Update.
50306         * modules/spawn (Depends-on): Update.
50307         * modules/stdio (Depends-on): Update.
50308         * modules/stdlib (Depends-on): Update.
50309         * modules/string (Depends-on): Update.
50310         * modules/strings (Depends-on): Update.
50311         * modules/sys_ioctl (Depends-on): Update.
50312         * modules/sys_select (Depends-on): Update.
50313         * modules/sys_socket (Depends-on): Update.
50314         * modules/sys_stat (Depends-on): Update.
50315         * modules/sys_time (Depends-on): Update.
50316         * modules/sys_wait (Depends-on): Update.
50317         * modules/termios (Depends-on): Update.
50318         * modules/time (Depends-on): Update.
50319         * modules/unistd (Depends-on): Update.
50320         * modules/wchar (Depends-on): Update.
50321         * modules/wctype-h (Depends-on): Update.
50323         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
50324         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
50325         (Files, Makefile.am): Update.
50326         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
50327         * modules/argv-iter (Depends-on): Update.
50328         * modules/arpa_inet (Depends-on): Update.
50329         * modules/dirent (Depends-on): Update.
50330         * modules/fcntl-h (Depends-on): Update.
50331         * modules/fnmatch (Depends-on): Update.
50332         * modules/getopt-posix (Depends-on): Update.
50333         * modules/glob (Depends-on): Update.
50334         * modules/iconv-h (Depends-on): Update.
50335         * modules/inttypes-incomplete (Depends-on): Update.
50336         * modules/locale (Depends-on): Update.
50337         * modules/math (Depends-on): Update.
50338         * modules/netdb (Depends-on): Update.
50339         * modules/search (Depends-on): Update.
50340         * modules/signal (Depends-on): Update.
50341         * modules/spawn (Depends-on): Update.
50342         * modules/stdio (Depends-on): Update.
50343         * modules/stdlib (Depends-on): Update.
50344         * modules/string (Depends-on): Update.
50345         * modules/strings (Depends-on): Update.
50346         * modules/sys_socket (Depends-on): Update.
50347         * modules/sys_stat (Depends-on): Update.
50348         * modules/sys_time (Depends-on): Update.
50349         * modules/sys_times (Depends-on): Update.
50350         * modules/sys_utsname (Depends-on): Update.
50351         * modules/time (Depends-on): Update.
50352         * modules/unistd (Depends-on): Update.
50353         * modules/wchar (Depends-on): Update.
50354         * MODULES.html.sh (Support for building libraries and executables):
50355         Update.
50357 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50359         Improvements on _Noreturn and related modules.
50361         modules/_Exit-tests: test _Noreturn too
50362         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50363         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50364         (main): Use them.
50366         stdnoreturn, stdnoreturn-tests: remove modules
50367         They're not needed here and a bit premature for use elsewhere.  See
50368         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50369         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50370         * tests/test-stdnoreturn.c: Remove files.
50371         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50372         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50373         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50374         and using noreturn.
50375         * modules/openat, modules/sigpipe-die, modules/xalloc:
50376         * modules/xmemdup0, modules/xstrtol:
50377         Remove dependency on stdnoreturn.
50379         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50380         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50381         Reparenthesize to avoid GCC warning.
50382         Support Microsoft's syntax.
50383         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50385         _Noreturn-tests: remove module
50386         * modules/_Noreturn-tests: Remove.
50387         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50388         * tests/test-_Noreturn.c: Remove.
50389         * tests/test-stdnoreturn.c: Merge from the old
50390         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50392 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50394         _Noreturn, stdnoreturn, and related modules.
50396         * top/maint.mk: Adjust to new noreturn support.
50397         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50398         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50400         xalloc: use stdnoreturn.h
50401         * lib/xalloc.h: Include <stdnoreturn.h>.
50402         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50403         * modules/xalloc (Depends-on): Add stdnoreturn.
50405         xstrtol: use stdnoreturn.h
50406         * lib/xstrtol.h: Include <stdnoreturn.h>.
50407         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50408         * modules/xstrtol (Depends-on): Add stdnoreturn.
50410         xmemdup0: use stdnoreturn.h
50411         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50412         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50413         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50415         sigpipe-die: use stdnoreturn.h
50416         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50417         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50418         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50420         openat: use stdnoreturn.h
50421         * lib/openat.h: Include <stdnoreturn.h>.
50422         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50423         * modules/openat (Depends-on): Add stdnoreturn.
50425         * lib/openat-die.c (openat_save_fail): Modernize comment.
50427         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50429         * lib/glthread/thread.h: Modernize comment.
50431         obstack: use _Noreturn
50432         * lib/obstack.c (__attribute__): Remove macro.
50433         (print_and_abort): Use _Noreturn.
50435         c-stack: use _Noreturn
50436         * lib/c-stack.c (die, overflow_handler, segv_handler):
50437         Use _Noreturn rather than __attribute__((noreturn)).
50439         argmatch-tests, exclude_tests: use _Noreturn
50440         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50441         Remove.
50442         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50444         stdlib: use _Noreturn
50445         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50446         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50447         * modules/stdlib (Depends-on): Add _Noreturn.
50448         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50450         stdnoreturn-tests: new module
50451         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50453         stdnoreturn: new module
50454         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50455         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50457         _Noreturn-tests: new module
50458         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50460         _Noreturn: new module
50461         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50462         New section, mentioning it.
50463         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50465         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50467 2011-07-11  Eric Blake  <eblake@redhat.com>
50469         ffs: new module
50470         * modules/ffs: New file.
50471         * m4/ffs.m4: Likewise.
50472         * lib/ffs.c: Likewise.
50473         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
50474         * modules/strings (Makefile.am): Substitute witness.
50475         (Depends-on): Add c++defs.
50476         * lib/strings.in.h (ffs): Declare.
50477         * modules/ffs-tests: New test file.
50478         * tests/test-ffs.c: Test new module.
50479         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50480         * doc/posix-functions/ffs.texi (ffs): Likewise.
50482         regex: avoid compiler warning
50483         * lib/regex.c (includes): Include <strings.h>, for use of
50484         strcasecmp in regcomp.c.
50485         Reported by Joachim Schmitz.
50487 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50489         stdint: respect system's intmax_t if INTMAX_MAX
50490         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
50491         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
50492         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
50493         long but int64_t is long long, and where we will clash with the
50494         system intmax_t if we override it.  See
50495         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
50496         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
50497         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
50498         similarly for UINTMAX_C.
50500 2011-07-08  Bruno Haible  <bruno@clisp.org>
50502         pthread_sigmask tests: Avoid a compiler warning.
50503         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
50504         non-zero.
50506         sigprocmask tests: A better way to avoid a compiler warning.
50507         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
50508         (main): Complain if system() returns non-zero.
50509         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
50511 2011-07-08  Bruno Haible  <bruno@clisp.org>
50513         pthread_sigmask: Work around IRIX bug.
50514         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
50515         bug.
50516         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
50517         there may be unblocked pending signals.
50518         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
50520 2011-07-08  Bruno Haible  <bruno@clisp.org>
50522         pthread_sigmask: Work around Cygwin bug.
50523         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
50524         bug.
50525         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
50526         the system's pthread_sigmask function.
50527         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
50529 2011-07-08  Bruno Haible  <bruno@clisp.org>
50531         pthread_sigmask: Work around bug in single-threaded implementation.
50532         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
50533         FreeBSD, HP-UX, Solaris bug.
50534         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
50535         * lib/pthread_sigmask.c: Include <stddef.h>.
50536         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
50537         the system's pthread_sigmask function.
50538         * modules/pthread_sigmask (configure.ac): Invoke
50539         gl_PREREQ_PTHREAD_SIGMASK.
50540         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
50541         HP-UX, Solaris.
50543 2011-07-08  Eric Blake  <eblake@redhat.com>
50545         test-sigprocmask: avoid compiler warning
50546         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
50547         * tests/test-sigprocmask.c (main): Use it to silence warning.
50548         Reported by Jim Meyering.
50550         test-snprintf: avoid compiler warning
50551         * tests/test-snprintf.c (main): Avoid shadowed declaration.
50552         * tests/test-vsnprintf.c (main): Likewise.
50553         Reported by Jim Meyering.
50555 2011-07-08  Bruno Haible  <bruno@clisp.org>
50557         Tests for module 'pthread_sigmask'.
50558         * modules/pthread_sigmask-tests: New file.
50559         * tests/test-pthread_sigmask1.c: New file, based on
50560         tests/test-sigprocmask.c.
50561         * tests/test-pthread_sigmask2.c: New file.
50563 2011-07-08  Jim Meyering  <meyering@redhat.com>
50565         test-getopt.h: avoid warning about an unused variable
50566         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
50568 2011-07-07  Jim Meyering  <meyering@redhat.com>
50570         maint: reduce list of files exempt from sc_prohibit_leading_TABs
50571         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
50572         now that it no longer contains leading TABs.
50573         Remove unused "url=FIXME" statement.
50575 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50577         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
50578         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50579         When gl_THREADLIB is not in use, assume that the POSIX sematics
50580         are desired.  This is better for Emacs, which uses POSIX semantics
50581         on GNUish and/or POSIXish platforms, and does not use threads at
50582         all otherwise.
50584         pthread_sigmask: fix typo when testing for libraries
50585         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50586         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
50588 2011-07-08  Eric Blake  <eblake@redhat.com>
50590         fts: introduce FTS_NOATIME
50591         * lib/fts_.h (FTS_NOATIME): New bit flag.
50592         (FTS_OPTIONMASK): Adjust.
50593         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
50594         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
50596 2011-07-08  Bruno Haible  <bruno@clisp.org>
50598         Tests for module 'thread'.
50599         * modules/thread-tests: New file.
50600         * tests/test-thread_self.c: New file.
50601         * tests/test-thread_create.cc: New file.
50603 2011-07-08  Bruno Haible  <bruno@clisp.org>
50605         thread: Avoid gcc warnings when using gl_thread_self().
50606         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
50607         'void *'.
50608         (gl_thread_self_pointer): Update.
50610 2011-07-07  Bruno Haible  <bruno@clisp.org>
50612         signal-c++-tests: Check declaration of pthread_sigmask.
50613         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50614         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50615         $(LIB_PTHREAD_SIGMASK).
50617 2011-07-07  Bruno Haible  <bruno@clisp.org>
50619         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
50620         * lib/signal.in.h (pthread_sigmask): Override if
50621         REPLACE_PTHREAD_SIGMASK is 1.
50622         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50623         REPLACE_PTHREAD_SIGMASK.
50624         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
50625         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
50626         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
50627         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50628         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
50630 2011-07-07  Bruno Haible  <bruno@clisp.org>
50632         pthread_sigmask: Ensure declaration in <signal.h>.
50633         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
50634         include <pthread.h>.
50635         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
50636         problem.
50638 2011-07-07  Bruno Haible  <bruno@clisp.org>
50640         pthread_sigmask: Document the module.
50641         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
50643 2011-07-07  Bruno Haible  <bruno@clisp.org>
50645         pthread_sigmask: Follow gnulib conventions.
50646         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
50647         gl_PTHREAD_SIGMASK.
50648         * modules/pthread_sigmask (configure.ac): Update.
50650 2011-07-07  Bruno Haible  <bruno@clisp.org>
50652         pthread_sigmask: Make declaration C++ safe.
50653         * lib/signal.in.h: In two special conditions, just do an #include_next.
50654         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50655         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
50656         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50657         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50658         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
50659         not REPLACE_PTHREAD_MASK.
50660         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
50661         not REPLACE_PTHREAD_MASK.
50662         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50664 2011-07-07  Bruno Haible  <bruno@clisp.org>
50666         pthread_sigmask: Fix return value.
50667         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
50668         * lib/pthread_sigmask.c: New file.
50669         * modules/pthread_sigmask (Files): Add it.
50670         (configure.ac): Invoke AC_LIBOBJ.
50672 2011-07-07  Eric Blake  <eblake@redhat.com>
50674         getopt: more portable argv creation
50675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
50676         const, use char arrays rather than strings.
50677         Suggested by Paul Eggert.
50679 2011-07-07  Bruno Haible  <bruno@clisp.org>
50681         Tests for module 'sigprocmask'.
50682         * modules/sigprocmask-tests: New file.
50683         * tests/test-sigprocmask.c: New file.
50685 2011-07-07  Bruno Haible  <bruno@clisp.org>
50687         float tests: Tweak.
50688         * tests/test-float.c (main): Tweak skip message.
50690 2011-07-07  Eric Blake  <eblake@redhat.com>
50692         getopt: avoid compiler warning during configure
50693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50694         assigning string literals to non-const pointer.
50696         getopt-gnu: avoid crash in glibc getopt
50697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50698         * tests/test-getopt.h (test_getopt): Enhance test.
50699         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50700         * doc/posix-functions/getopt.texi (getopt): Document it.
50701         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50702         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50703         Likewise.
50705 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50707         getopt: handle W; without long options in getopt [BZ #12922]
50708         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50709         but no long options are defined, just return 'W'.
50711 2011-07-07  Bruno Haible  <bruno@clisp.org>
50713         Avoid literal tabs.
50714         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50715         variable containing a tab instead of a literal tab.
50716         Reported by Jim Meyering.
50718 2011-07-07  Bruno Haible  <bruno@clisp.org>
50720         Comments.
50721         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50723 2011-07-06  Bruno Haible  <bruno@clisp.org>
50725         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50726         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50727         <winsock2.h>.
50728         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50729         lib/sys_socket.in.h.
50730         (close, gethostname): Hide declarations from <winsock2.h>.
50731         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50732         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50733         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50734         (select): Don't override if gnulib's <sys/select.h> was already
50735         included.
50736         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50737         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50738         setsockopt, shutdown, select): Tweak indentation.
50740 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50742         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50743         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50744         in an application that does not use the sys_select module.
50746 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50748         poll: do not return 0 on timeout=-1
50749         * lib/poll.c: Loop with yield if no events occurred.
50751 2011-07-06  Eric Blake  <eblake@redhat.com>
50753         pthread_sigmask: always replace when not using pthread
50754         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50755         replacement when using some threading other than pthread.  Fix
50756         logic bug.
50758 2011-07-06  Bruno Haible  <bruno@clisp.org>
50760         Comments.
50761         * m4/printf.m4: Update comments about mingw.
50763 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50765         sys_select: define sigset_t more portably
50766         * lib/sys_select.in.h: Always include <sys/types.h>, since
50767         we now need sigset_t and mingw defines it there.
50768         Include <signal.h> before split inclusion guard, to avoid
50769         mishaps on Solaris, whose <signal.h> eventually includes us.
50770         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50771         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50772         which come from ...
50773         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50774         gl_CHECK_TYPE_SIGSET_T.
50775         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50776         does the real work.
50777         * modules/sys_select (Depends-on): Add 'signal'.
50779         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50780         Suggested by Bruno Haible.
50782         pselect: Use pthread_sigmask, not sigprocmask.
50783         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50784         multithreaded apps better than sigprocmask does.
50785         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50786         sigprocmask directly.
50788 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50790         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50791         Don't #undef,  since we don't need any underlying pselect.
50792         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50793         (Depends-on): Add select.
50794         (Link): Add $(LIBSOCKET).
50795         These changes suggested by Bruno Haible.
50797         pselect: document better
50798         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50799         * doc/posix-functions/pselect.texi (pselect): Document new module.
50801         pthread_sigmask: new module
50802         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50803         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50804         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50805         This is done only as a macro; I don't know how well that'll
50806         work for C++.  Move <sys/types.h> include before the include_next,
50807         to avoid mishap on Solaris.
50808         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50809         * modules/signal (Makefile.am): Substitute the check's results.
50810         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50812         test-pselect: new module
50813         * modules/pselect-tests, tests/test-pselect.c: New files.
50814         * tests/test-select.c, tests/test-sys_select-c++.cc:
50815         If TEST_PSELECT is defined, test pselect instead of testing select.
50817         * tests/test-sys_select.c (sigset_t): Test for it, too.
50818         Suggested by Bruno Haible.
50820 2011-07-05  Eric Blake  <eblake@redhat.com>
50822         snprintf: guarantee %1$d, for libintl
50823         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50824         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50825         * doc/posix-functions/snprintf.texi (snprintf): Update.
50826         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50827         * tests/test-snprintf.c (main): Enhance test.
50828         * tests/test-vsnprintf.c (main): Likewise.
50830 2011-07-05  Jim Meyering  <meyering@redhat.com>
50832         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50833         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50834         per Bruno's request, to accommodate this idiom (no space after "#")
50835         even when the function is inside an #if block:
50836         char *
50837         gets (char *s)
50838         #undef gets
50839         {
50840           ...
50841         }
50843 2011-07-04  Jim Meyering  <meyering@redhat.com>
50845         maint: indent with spaces, not TABs, and add a rule to check this
50846         * tests/test-userspec.c: Indent with spaces, not TABs.
50847         * tests/test-argp.c: Likewise.
50848         * tests/test-c-stack2.sh: Likewise.
50849         * tests/test-parse-duration.sh: Likewise
50850         * m4/strtod.m4: Likewise.
50851         * m4/alloca.m4: Likewise.
50852         * m4/pselect.m4: Likewise.
50853         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50855 2011-07-03  Jim Meyering  <meyering@redhat.com>
50857         maint.mk: correct omissions in prohibit_argmatch_without_use check
50858         This rule would mistakenly report that argmatch.h is included without
50859         use even when both the argmatch and invalid_arg macro were used.
50860         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50861         of argmatch and invalid_arg.
50863 2011-07-03  Bruno Haible  <bruno@clisp.org>
50865         Comments about EINTR.
50866         * lib/safe-read.h: Explain the purpose of this module.
50867         * lib/safe-write.h: Likewise.
50868         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50869         module.
50870         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50871         module.
50872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50874 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50876         xnanosleep: Rewrite to use new dtotimespec module.
50877         It has the conversion code that used to be in xnanosleep.
50878         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50879         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50880         (TIME_T_MAX): Remove.
50881         (xnanosleep): Rewrite in terms of dtotimespec.
50882         * modules/xnanosleep (Depends-on): Add dtotimespec.
50883         Remove intprops, stdbool.
50885         timespec-add, timespec-sub: new modules
50886         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50887         * lib/timespec-add.c, lib/timespec-sub.c:
50888         * modules/timespec-add, modules/timespec-sub: New files.
50890         dtotimespec: new module
50891         * lib/timespec.h (dtotimespec): New decl.
50892         * lib/dtotimespec.c, modules/dtotimespec: New files.
50894         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50896         pselect: new module
50897         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50898         (pselect): New decls.
50899         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50900         since the standard pselect decl uses 'restrict'.
50901         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50902         HAVE_PSELECT, REPLACE_PSELECT.
50903         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50904         HAVE_PSELECT, REPLACE_PSELECT.
50905         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50907         sys_select: don't depend on sys_socket
50908         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50909         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50910         This fix works on GNU and GNU-like platforms, but has not been tested
50911         on native Windows.
50912         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50913         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50914         gl_HEADER_SYS_SOCKET.
50915         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50916         gl_PREREQ_SYS_H_WINSOCK2.
50918 2011-06-29  Eric Blake  <eblake@redhat.com>
50920         pipe2: fix C89 compile problem
50921         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50922         Reported by Bruno Haible.
50924         pipe, pipe2: don't corrupt fd on error
50925         * lib/pipe.c (pipe): Leave fd unchanged on error.
50926         * lib/pipe2.c (pipe2): Likewise.
50927         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50928         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50930 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50932         mmap-anon: do not use regular expressions inadvertently
50933         * m4/mmap-anon.m4: Remove trailing period from strings sought
50934         in the output.
50936 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50938         nanosleep: fix integer overflow problem
50939         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50940         arithmetic wraps around on overflow.
50942         nanosleep: simplify carrying
50943         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50944         first call to the underyling nanosleep, not for the last one.
50945         This doesn't fix any bugs, but it simplifies the computation of
50946         the remaining delay.  Found while auditing integer overflow issues.
50948         dup2: remove test for existence of fcntl
50949         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50950         "#if HAVE_FCNTL", in the configure-time test program.
50951         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50952         and therefore speeds up "configure" a bit.  Found while
50953         adding the dup2 module to Emacs.
50955 2011-06-24  Eric Blake  <eblake@redhat.com>
50957         maint.mk: enhance useless header checks
50958         * top/maint.mk (_sc_header_without_use): Check both include
50959         styles.
50960         (sc_prohibit_assert_without_use)
50961         (sc_prohibit_close_stream_without_use)
50962         (sc_prohibit_getopt_without_use)
50963         (sc_prohibit_quotearg_without_use)
50964         (sc_prohibit_quote_without_use)
50965         (sc_prohibit_long_options_without_use)
50966         (sc_prohibit_inttostr_without_use)
50967         (sc_prohibit_ignore_value_without_use)
50968         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50969         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50970         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50971         (sc_prohibit_hash_pjw_without_use)
50972         (sc_prohibit_safe_read_without_use)
50973         (sc_prohibit_argmatch_without_use)
50974         (sc_prohibit_canonicalize_without_use)
50975         (sc_prohibit_root_dev_ino_without_use)
50976         (sc_prohibit_openat_without_use)
50977         (sc_prohibit_c_ctype_without_use)
50978         (sc_prohibit_signal_without_use)
50979         (sc_prohibit_stdio--_without_use)
50980         (sc_prohibit_stdio-safer_without_use)
50981         (sc_prohibit_strings_without_use)
50982         (sc_prohibit_intprops_without_use)
50983         (sc_prohibit_stddef_without_use)
50984         (sc_prohibit_xfreopen_without_use): Update clients.
50986 2011-06-24  Jim Meyering  <meyering@redhat.com>
50988         syntax-check: keep one maint.mk rule in sync with its header
50989         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50990         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50991         I prefer to avoid temporary files here, so use <(...), but that
50992         is not supported by /bin/sh, so...
50993         (SHELL): Define to /bin/bash.
50995 2011-06-24  Eric Blake  <eblake@redhat.com>
50997         maint.mk: update sc_prohibit_intprops_without_use
50998         * top/maint.mk (_intprops_names): Match recent changes.
51000 2011-06-24  Bruno Haible  <bruno@clisp.org>
51002         strerror-override: No-op tweak.
51003         * lib/strerror-override.h (strerror_override): Reorder conditions,
51004         for consistency with lib/strerror-override.c.
51006 2011-06-23  Eric Blake  <eblake@redhat.com>
51008         maint.mk: test further PATH_MAX issues
51009         * top/maint.mk (sc_prohibit_path_max_array): Rename...
51010         (sc_prohibit_path_max_allocation): ...and also test alloca.
51011         Suggested by Jim Meyering.
51013 2011-06-22  Eric Blake  <eblake@redhat.com>
51015         maint.mk: add syntax-check to avoid char[PATH_MAX]
51016         * top/maint.mk (sc_prohibit_path_max_array): New rule.
51018         stat: be robust to PATH_MAX definition
51019         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
51020         * modules/stat (Depends-on): Add verify.
51022         link: work around IRIX bug
51023         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
51024         * lib/link.c (rpl_link): Work around it.
51025         * tests/test-link.h (test_link): Enhance test.
51026         * doc/posix-functions/link.texi (link): Document the bug.
51028         getopt: silence clang warning
51029         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
51030         dereference.
51031         Reported by Gustavo Martin Domato.
51033 2011-06-22  Jim Meyering  <meyering@redhat.com>
51035         bootstrap: do not insert a blank line into each .gitignore file
51036         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
51038 2011-06-21  Eric Blake  <eblake@redhat.com>
51040         perror: test for output mismatch
51041         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
51042         perror on IRIX.
51044         strerror_r: fix OpenBSD behavior on out-of-range
51045         * lib/strerror_r.c (strerror_r): Always use maximal string.
51046         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51048         strerror_r: fix OpenBSD behavior on 0
51049         * lib/strerror-override.c (strerror_override): Also override 0
51050         when needed.
51051         * lib/strerror-override.h (strerror_override): Likewise.
51052         * lib/strerror.c (strerror): Simplify, now that 0 override is done
51053         earlier.
51054         * lib/strerror_r.c (strerror_r): Likewise.
51055         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
51056         behavior...
51057         (gl_FUNC_STRERROR_0): ...into new macro.
51058         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
51059         is overridden.
51060         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
51061         * modules/strerror-override (Files): Add strerror.m4.
51062         (configure.ac): Also provide override for 0 when needed.
51063         * doc/posix-functions/strerror.texi (strerror): Document this.
51064         * doc/posix-functions/perror.texi (perror): Likewise.
51066         perror: adjust array size
51067         * modules/perror (Depends-on): Add strerror-override.
51068         * lib/perror.c (perror): Use it to avoid magic number.
51070         strerror-override: reduce size
51071         * lib/strerror-override.c (strerror_override): Use fewer lines.
51073 2011-06-20  Bruno Haible  <bruno@clisp.org>
51075         pathmax: Ensure correct value for PATH_MAX on HP-UX.
51076         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
51078 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51080         alloca: port to compilers that can optimize like GCC 4.6.0
51081         * lib/alloca.c (find_stack_direction): New signature, taken from
51082         Autoconf git.  This works with GCC 4.6.0.  This code should never
51083         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
51084         be used with other compilers that optimize as well as GCC 4.6.0 does.
51085         (alloca): Adjust to new signature.
51086         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
51087         New macro, which patches Autoconf in a similar way.
51089         c-stack: stop worrying about stack direction
51090         * lib/c-stack.c (find_stack_direction): Remove.
51091         (segv_handler): Don't worry about stack direction growth, as it's
51092         too much of a pain to configure this correctly, given how compilers
51093         are optimizing-away our stack-growth detection code.  Instead, assume
51094         that any access to just before or just after the stack is OK.
51095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51096         Don't require AC_FUNC_ALLOCA; no longer needed.
51098 2011-06-20  Eric Blake  <eblake@redhat.com>
51100         test-stat: don't allocate PATH_MAX bytes
51101         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
51102         PATH_MAX-sized buffer.
51103         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
51104         * modules/stat-tests (Depends-on): Likewise.
51105         * tests/test-fstatat.c (includes): Drop pathmax.h.
51106         * tests/test-stat.c (includes): Likewise.
51107         Reported by Bruno Haible.
51109 2011-06-20  Bruno Haible  <bruno@clisp.org>
51111         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
51112         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
51113         * lib/float.c: New file.
51114         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
51115         REPLACE_FLOAT_LDBL.
51116         * modules/float (Files): Add lib/float.c.
51117         (configure.ac): Invoke AC_LIBOBJ.
51118         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
51120 2011-06-20  Bruno Haible  <bruno@clisp.org>
51122         Tests for module 'float'.
51123         * modules/float-tests: New file.
51124         * tests/test-float.c: New file.
51126 2011-06-19  Bruno Haible  <bruno@clisp.org>
51128         isinf: Coding style.
51129         * lib/isinf.c: Use GNU coding style.
51131 2011-06-19  Bruno Haible  <bruno@clisp.org>
51133         linkat test: Avoid test failure on AIX 7.1.
51134         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
51135         * tests/test-link.h (test_link): Likewise.
51137 2011-06-19  Bruno Haible  <bruno@clisp.org>
51139         pread test: Avoid test failure on OpenBSD 4.9.
51140         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
51142 2011-06-19  Bruno Haible  <bruno@clisp.org>
51144         sprintf-posix: Fix test failure on AIX 7.1.
51145         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
51146         * doc/posix-functions/dprintf.texi: Mention limited precision problem
51147         on AIX.
51148         * doc/posix-functions/fprintf.texi: Likewise.
51149         * doc/posix-functions/printf.texi: Likewise.
51150         * doc/posix-functions/snprintf.texi: Likewise.
51151         * doc/posix-functions/sprintf.texi: Likewise.
51152         * doc/posix-functions/vdprintf.texi: Likewise.
51153         * doc/posix-functions/vfprintf.texi: Likewise.
51154         * doc/posix-functions/vprintf.texi: Likewise.
51155         * doc/posix-functions/vsnprintf.texi: Likewise.
51156         * doc/posix-functions/vsprintf.texi: Likewise.
51158 2011-06-19  Bruno Haible  <bruno@clisp.org>
51160         roundl-ieee: Fix test failure on AIX 7.1.
51161         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
51162         * doc/posix-functions/roundl.texi: Mention problem with negative
51163         arguments.
51165 2011-06-19  Bruno Haible  <bruno@clisp.org>
51167         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51168         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
51169         * doc/posix-functions/round.texi: Mention problem with negative
51170         arguments.
51171         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
51173 2011-06-19  Bruno Haible  <bruno@clisp.org>
51175         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51176         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
51177         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
51178         * doc/posix-functions/roundf.texi: Mention problem with negative
51179         arguments.
51180         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
51182 2011-06-19  Bruno Haible  <bruno@clisp.org>
51184         ceilf-ieee: Work around bug on MacOS X 10.5.
51185         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
51187         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
51188         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
51189         IEEE compliant, avoid compiler optimizations.
51190         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
51191         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51192         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51193         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51194         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51195         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51196         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
51198         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
51199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51201 2011-06-19  Bruno Haible  <bruno@clisp.org>
51203         ceilf-ieee: Work around bug on AIX 7.1.
51204         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
51205         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
51207 2011-06-19  Bruno Haible  <bruno@clisp.org>
51209         ceil-ieee: Work around bug on AIX 7.1.
51210         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
51211         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
51213 2011-06-18  Bruno Haible  <bruno@clisp.org>
51215         fsync test: Avoid test failure on MacOS X and AIX.
51216         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
51217         EINVAL.
51219 2011-06-18  Bruno Haible  <bruno@clisp.org>
51221         openat, fdopendir tests: Fix link errors.
51222         * modules/openat-tests (Depends-on): Add progname.
51223         * modules/fdopendir-tests (Depends-on): Likewise.
51224         * tests/test-fchownat.c: Include progname.h.
51225         (main): Call set_program_name.
51226         * tests/test-fstatat.c: Include progname.h.
51227         (main): Call set_program_name.
51228         * tests/test-mkdirat.c: Include progname.h.
51229         (main): Call set_program_name.
51230         * tests/test-openat.c: Include progname.h.
51231         (main): Call set_program_name.
51232         * tests/test-unlinkat.c: Include progname.h.
51233         (main): Call set_program_name.
51234         * tests/test-fdopendir.c: Include progname.h.
51235         (main): Call set_program_name.
51237 2011-06-18  Bruno Haible  <bruno@clisp.org>
51239         Doc update.
51240         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
51241         HP-UX.
51242         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
51244 2011-06-18  Bruno Haible  <bruno@clisp.org>
51246         getcwd tests: Avoid compilation error on HP-UX 11.31.
51247         * modules/getcwd-tests (Depends-on): Add pathmax.
51248         * tests/test-getcwd.c: Include pathmax.h.
51250 2011-06-18  Bruno Haible  <bruno@clisp.org>
51252         isfinite, isinf: Fix link error on AIX 6 and 7.
51253         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
51254         needed, also test the macro with a 'float' argument.
51255         * m4/isinf.m4 (gl_ISINF): Likewise.
51257 2011-06-18  Bruno Haible  <bruno@clisp.org>
51259         getloadavg: Don't clobber LIBS. Regression from previous commit.
51260         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
51261         AC_CHECK_LIB from here...
51262         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
51263         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
51264         gl_func_getloadavg_done.
51265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51267 2011-06-18  Bruno Haible  <bruno@clisp.org>
51269         clean-temp: Improve documentation.
51270         * lib/clean-temp.h: Explain better how to use this module.
51271         Reported by John Darrington <john@darrington.wattle.id.au>.
51273 2011-06-17  Bruno Haible  <bruno@clisp.org>
51275         pread, pwrite: Avoid cc warning on AIX.
51276         * lib/unistd.in.h (pread): Undefine before defining as a macro.
51277         (pwrite): Likewise.
51279 2011-06-17  Bruno Haible  <bruno@clisp.org>
51281         spawn-pipe tests: Fix link error.
51282         * tests/test-spawn-pipe-child.c: Undefine fprintf.
51283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51285 2011-06-17  Bruno Haible  <bruno@clisp.org>
51287         Tests: Remove unnecessary dependency.
51288         * modules/canonicalize-tests (Depends-on): Remove progname.
51289         * modules/chown-tests (Depends-on): Likewise.
51290         * modules/dirname-tests (Depends-on): Likewise.
51291         * modules/fdopendir-tests (Depends-on): Likewise.
51292         * modules/fdutimensat-tests (Depends-on): Likewise.
51293         * modules/hash-tests (Depends-on): Likewise.
51294         * modules/lchown-tests (Depends-on): Likewise.
51295         * modules/linkat-tests (Depends-on): Likewise.
51296         * modules/renameat-tests (Depends-on): Likewise.
51297         * modules/spawn-pipe-tests (Depends-on): Likewise.
51298         * modules/utimensat-tests (Depends-on): Likewise.
51300 2011-06-17  Bruno Haible  <bruno@clisp.org>
51302         spawn-pipe tests: Fix link error.
51303         * tests/test-spawn-pipe-child.c: Undefine fflush.
51305 2011-06-17  Bruno Haible  <bruno@clisp.org>
51307         Fix tests link errors.
51308         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
51309         * modules/chown-tests (Makefile.am): Don't link test-chown with
51310         LIBINTL.
51311         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
51312         LIBINTL.
51313         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
51314         LIBINTL.
51315         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
51316         LIBINTL.
51318 2011-06-16  Bruno Haible  <bruno@clisp.org>
51320         crypto/gc-sha1: Fix recent regression.
51321         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
51322         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
51324         crypto/gc-md5: Fix recent regression.
51325         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
51327         crypto/gc-md4: Fix recent regression.
51328         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
51329         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
51331         crypto/gc-arctwo: Fix recent regression.
51332         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
51333         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
51335         crypto/gc-rijndael: Fix recent regression.
51336         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
51337         (configure.ac): Invoke AC_LIBOBJ here.
51338         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
51339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51341         crypto/gc-hmac-sha1: Fix recent regression.
51342         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
51343         (configure.ac): Invoke AC_LIBOBJ here.
51344         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
51345         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51347         crypto/gc-hmac-md5: Fix recent regression.
51348         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
51349         (configure.ac): Invoke AC_LIBOBJ here.
51350         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
51351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51353         crypto/gc-des: Fix recent regression.
51354         * modules/crypto/gc-des (Files): Remove m4/des.m4.
51355         (configure.ac): Invoke AC_LIBOBJ here.
51356         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
51357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51359         crypto/gc-arcfour: Fix recent regression.
51360         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
51361         (configure.ac): Invoke AC_LIBOBJ here.
51362         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51365 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51367         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51368         After the 2011-05-21 change, this macro requires
51369         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51370         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51372 2011-06-16  Bruno Haible  <bruno@clisp.org>
51374         fprintftime: Move AC_LIBOBJ invocations to module description.
51375         * m4/fprintftime.m4: Remove file.
51376         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51377         (configure.ac): Remove gl_FPRINTFTIME call.
51378         (Makefile.am): Augment lib_SOURCES.
51379         Reported by Jim Meyering.
51381 2011-06-16  Bruno Haible  <bruno@clisp.org>
51383         tmpfile-safer: Finish 2011-05-23 commit.
51384         * m4/stdio-safer.m4: Really remove file.
51385         Reported by Jim Meyering.
51387 2011-06-16  Bruno Haible  <bruno@clisp.org>
51389         syntax-check: Fix typo.
51390         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51391         printf-posix.m4.
51392         Reported by Jim Meyering.
51394 2011-06-13  Jim Meyering  <meyering@redhat.com>
51396         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51397         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51399 2011-05-23  Bruno Haible  <bruno@clisp.org>
51401         yesno: Move AC_LIBOBJ invocations to module description.
51402         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51403         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51405 2011-05-23  Bruno Haible  <bruno@clisp.org>
51407         xstrtol: Move AC_LIBOBJ invocations to module description.
51408         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51409         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51411 2011-05-23  Bruno Haible  <bruno@clisp.org>
51413         xstrtold: Move AC_LIBOBJ invocations to module description.
51414         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51415         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51417 2011-05-23  Bruno Haible  <bruno@clisp.org>
51419         xstrtod: Move AC_LIBOBJ invocations to module description.
51420         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51421         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51423 2011-05-23  Bruno Haible  <bruno@clisp.org>
51425         xnanosleep: Move AC_LIBOBJ invocations to module description.
51426         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51427         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51429 2011-05-23  Bruno Haible  <bruno@clisp.org>
51431         xgetcwd: Move AC_LIBOBJ invocations to module description.
51432         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51433         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51435 2011-05-23  Bruno Haible  <bruno@clisp.org>
51437         xalloc: Move AC_LIBOBJ invocations to module description.
51438         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51439         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51441 2011-05-23  Bruno Haible  <bruno@clisp.org>
51443         write-any-file: Move AC_LIBOBJ invocations to module description.
51444         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51445         invocation.
51446         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51448 2011-05-23  Bruno Haible  <bruno@clisp.org>
51450         utimens: Move AC_LIBOBJ invocations to module description.
51451         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51452         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51454 2011-05-23  Bruno Haible  <bruno@clisp.org>
51456         utimecmp: Move AC_LIBOBJ invocations to module description.
51457         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51458         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51460 2011-05-23  Bruno Haible  <bruno@clisp.org>
51462         userspec: Move AC_LIBOBJ invocations to module description.
51463         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51464         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51466 2011-05-23  Bruno Haible  <bruno@clisp.org>
51468         unlinkdir: Move AC_LIBOBJ invocations to module description.
51469         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51470         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51472 2011-05-23  Bruno Haible  <bruno@clisp.org>
51474         unistd-safer: Move AC_LIBOBJ invocations to module description.
51475         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
51476         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
51478 2011-05-23  Bruno Haible  <bruno@clisp.org>
51480         tempname: Move AC_LIBOBJ invocations to module description.
51481         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
51482         * modules/tempname (Makefile.am): Augment lib_SOURCES.
51484 2011-05-23  Bruno Haible  <bruno@clisp.org>
51486         strftime: Move AC_LIBOBJ invocations to module description.
51487         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
51488         * modules/strftime (Makefile.am): Augment lib_SOURCES.
51490 2011-05-23  Bruno Haible  <bruno@clisp.org>
51492         stdlib-safer: Move AC_LIBOBJ invocations to module description.
51493         * m4/stdlib-safer.m4: Remove file.
51494         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
51495         (configure.ac): Remove gl_STDLIB_SAFER call.
51496         (Makefile.am): Augment lib_SOURCES.
51498 2011-05-23  Bruno Haible  <bruno@clisp.org>
51500         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
51501         * m4/stdio-safer.m4: Remove file.
51502         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
51503         (configure.ac): Remove gl_TMPFILE_SAFER call.
51504         (Makefile.am): Augment lib_SOURCES.
51506 2011-05-23  Bruno Haible  <bruno@clisp.org>
51508         popen-safer: Move AC_LIBOBJ invocations to module description.
51509         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51510         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
51511         (configure.ac): Remove gl_POPEN_SAFER call.
51512         (Makefile.am): Augment lib_SOURCES.
51514 2011-05-23  Bruno Haible  <bruno@clisp.org>
51516         freopen-safer: Move AC_LIBOBJ invocations to module description.
51517         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
51518         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
51519         (configure.ac): Remove gl_FREOPEN_SAFER call.
51520         (Makefile.am): Augment lib_SOURCES.
51522 2011-05-23  Bruno Haible  <bruno@clisp.org>
51524         fopen-safer: Move AC_LIBOBJ invocations to module description.
51525         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
51526         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
51527         (configure.ac): Remove gl_FOPEN_SAFER call.
51528         (Makefile.am): Augment lib_SOURCES.
51530 2011-05-23  Bruno Haible  <bruno@clisp.org>
51532         crypto/sha512: Move AC_LIBOBJ invocations to module description.
51533         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
51534         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
51536 2011-05-23  Bruno Haible  <bruno@clisp.org>
51538         crypto/sha256: Move AC_LIBOBJ invocations to module description.
51539         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
51540         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
51542 2011-05-23  Bruno Haible  <bruno@clisp.org>
51544         crypto/sha1: Move AC_LIBOBJ invocations to module description.
51545         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
51546         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
51548 2011-05-23  Bruno Haible  <bruno@clisp.org>
51550         settime: Move AC_LIBOBJ invocations to module description.
51551         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
51552         * modules/settime (Makefile.am): Augment lib_SOURCES.
51554 2011-05-23  Bruno Haible  <bruno@clisp.org>
51556         savedir: Move AC_LIBOBJ invocations to module description.
51557         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
51558         * modules/savedir (Makefile.am): Augment lib_SOURCES.
51560 2011-05-23  Bruno Haible  <bruno@clisp.org>
51562         save-cwd: Move AC_LIBOBJ invocations to module description.
51563         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
51564         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
51566 2011-05-23  Bruno Haible  <bruno@clisp.org>
51568         same: Move AC_LIBOBJ invocations to module description.
51569         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
51570         * modules/same (Makefile.am): Augment lib_SOURCES.
51572 2011-05-23  Bruno Haible  <bruno@clisp.org>
51574         safe-write: Move AC_LIBOBJ invocations to module description.
51575         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
51576         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
51577         instead of gl_SAFE_WRITE.
51578         (Makefile.am): Augment lib_SOURCES.
51580 2011-05-23  Bruno Haible  <bruno@clisp.org>
51582         safe-read: Move AC_LIBOBJ invocations to module description.
51583         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
51584         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
51585         of gl_SAFE_READ.
51586         (Makefile.am): Augment lib_SOURCES.
51588 2011-05-23  Bruno Haible  <bruno@clisp.org>
51590         safe-alloc: Move AC_LIBOBJ invocations to module description.
51591         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
51592         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
51594 2011-05-23  Bruno Haible  <bruno@clisp.org>
51596         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
51597         * m4/rijndael.m4: Remove file.
51598         * modules/crypto/rijndael (Files): Remove it.
51599         (configure.ac): Remove gl_RIJNDAEL call.
51600         (Makefile.am): Augment lib_SOURCES.
51602 2011-05-23  Bruno Haible  <bruno@clisp.org>
51604         readtokens: Move AC_LIBOBJ invocations to module description.
51605         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
51606         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
51608 2011-05-23  Bruno Haible  <bruno@clisp.org>
51610         read-file: Move AC_LIBOBJ invocations to module description.
51611         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51612         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51613         of gl_FUNC_READ_FILE.
51614         (Makefile.am): Augment lib_SOURCES.
51616 2011-05-23  Bruno Haible  <bruno@clisp.org>
51618         quotearg: Move AC_LIBOBJ invocations to module description.
51619         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
51620         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
51622 2011-05-23  Bruno Haible  <bruno@clisp.org>
51624         quote: Move AC_LIBOBJ invocations to module description.
51625         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
51626         * modules/quote (Makefile.am): Augment lib_SOURCES.
51628 2011-05-23  Bruno Haible  <bruno@clisp.org>
51630         posixver: Move AC_LIBOBJ invocations to module description.
51631         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
51632         * modules/posixver (Makefile.am): Augment lib_SOURCES.
51634 2011-05-23  Bruno Haible  <bruno@clisp.org>
51636         posixtm: Move AC_LIBOBJ invocations to module description.
51637         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
51638         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
51640 2011-05-23  Bruno Haible  <bruno@clisp.org>
51642         physmem: Move AC_LIBOBJ invocations to module description.
51643         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
51644         * modules/physmem (Makefile.am): Augment lib_SOURCES.
51646 2011-05-23  Bruno Haible  <bruno@clisp.org>
51648         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
51649         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
51650         invocation.
51651         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
51653 2011-05-23  Bruno Haible  <bruno@clisp.org>
51655         mpsort: Move AC_LIBOBJ invocations to module description.
51656         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
51657         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
51659 2011-05-23  Bruno Haible  <bruno@clisp.org>
51661         modechange: Move AC_LIBOBJ invocations to module description.
51662         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
51663         * modules/modechange (Makefile.am): Augment lib_SOURCES.
51665 2011-05-23  Bruno Haible  <bruno@clisp.org>
51667         mkdir-p: Move AC_LIBOBJ invocations to module description.
51668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
51669         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
51671 2011-05-23  Bruno Haible  <bruno@clisp.org>
51673         mkancesdirs: Move AC_LIBOBJ invocations to module description.
51674         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
51675         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
51677 2011-05-23  Bruno Haible  <bruno@clisp.org>
51679         mgetgroups: Move AC_LIBOBJ invocations to module description.
51680         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51681         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51683 2011-05-23  Bruno Haible  <bruno@clisp.org>
51685         memxor: Move AC_LIBOBJ invocations to module description.
51686         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51687         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51689 2011-05-23  Bruno Haible  <bruno@clisp.org>
51691         memcoll: Move AC_LIBOBJ invocations to module description.
51692         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51693         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51695 2011-05-23  Bruno Haible  <bruno@clisp.org>
51697         memcasecmp: Move AC_LIBOBJ invocations to module description.
51698         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51699         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51701 2011-05-23  Bruno Haible  <bruno@clisp.org>
51703         crypto/md5: Move AC_LIBOBJ invocations to module description.
51704         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51705         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51707 2011-05-23  Bruno Haible  <bruno@clisp.org>
51709         crypto/md4: Move AC_LIBOBJ invocations to module description.
51710         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51711         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51713 2011-05-23  Bruno Haible  <bruno@clisp.org>
51715         crypto/md2: Move AC_LIBOBJ invocations to module description.
51716         * m4/md2.m4: Remove file.
51717         * modules/crypto/md2 (Files): Remove it.
51718         (configure.ac): Remove gl_MD2 call.
51719         (Makefile.am): Augment lib_SOURCES.
51721 2011-05-23  Bruno Haible  <bruno@clisp.org>
51723         long-options: Move AC_LIBOBJ invocations to module description.
51724         * m4/long-options.m4: Remove file.
51725         * modules/long-options (Files): Remove it.
51726         (configure.ac): Remove gl_LONG_OPTIONS call.
51727         (Makefile.am): Augment lib_SOURCES.
51729 2011-05-23  Bruno Haible  <bruno@clisp.org>
51731         i-ring: Move AC_LIBOBJ invocations to module description.
51732         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51733         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51735 2011-05-23  Bruno Haible  <bruno@clisp.org>
51737         idcache: Move AC_LIBOBJ invocations to module description.
51738         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51739         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51741 2011-05-23  Bruno Haible  <bruno@clisp.org>
51743         human: Move AC_LIBOBJ invocations to module description.
51744         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51745         * modules/human (Makefile.am): Augment lib_SOURCES.
51747 2011-05-23  Bruno Haible  <bruno@clisp.org>
51749         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51750         * m4/hmac-sha1.m4: Remove file.
51751         * modules/crypto/hmac-sha1 (Files): Remove it.
51752         (configure.ac): Remove gl_HMAC_SHA1 call.
51753         (Makefile.am): Augment lib_SOURCES.
51755 2011-05-23  Bruno Haible  <bruno@clisp.org>
51757         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51758         * m4/hmac-md5.m4: Remove file.
51759         * modules/crypto/hmac-md5 (Files): Remove it.
51760         (configure.ac): Remove gl_HMAC_MD5 call.
51761         (Makefile.am): Augment lib_SOURCES.
51763 2011-05-23  Bruno Haible  <bruno@clisp.org>
51765         hash: Move AC_LIBOBJ invocations to module description.
51766         * m4/hash.m4: Remove file.
51767         * modules/hash (Files): Remove it.
51768         (configure.ac): Remove gl_HASH call.
51769         (Makefile.am): Augment lib_SOURCES.
51771 2011-05-23  Bruno Haible  <bruno@clisp.org>
51773         hard-locale: Move AC_LIBOBJ invocations to module description.
51774         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51775         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51777 2011-05-23  Bruno Haible  <bruno@clisp.org>
51779         getugroups: Move AC_LIBOBJ invocations to module description.
51780         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51781         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51783 2011-05-23  Bruno Haible  <bruno@clisp.org>
51785         gettime: Move AC_LIBOBJ invocations to module description.
51786         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51787         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51789 2011-05-23  Bruno Haible  <bruno@clisp.org>
51791         getndelim2: Move AC_LIBOBJ invocations to module description.
51792         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51793         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51795 2011-05-23  Bruno Haible  <bruno@clisp.org>
51797         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51798         * m4/gc-pbkdf2-sha1.m4: Remove file.
51799         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51800         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51801         (Makefile.am): Augment lib_SOURCES.
51803 2011-05-23  Bruno Haible  <bruno@clisp.org>
51805         fts: Move AC_LIBOBJ invocations to module description.
51806         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51807         * modules/fts (configure.ac): ... to here.
51809 2011-05-23  Bruno Haible  <bruno@clisp.org>
51811         file-type: Move AC_LIBOBJ invocations to module description.
51812         * m4/file-type.m4: Remove file.
51813         * modules/file-type (Files): Remove it.
51814         (configure.ac): Remove gl_FILE_TYPE call.
51815         (Makefile.am): Augment lib_SOURCES.
51817 2011-05-23  Bruno Haible  <bruno@clisp.org>
51819         filenamecat*: Respect rules for use of AC_LIBOBJ.
51820         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51821         Remove AC_LIBOBJ invocation.
51822         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51823         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51825 2011-05-23  Bruno Haible  <bruno@clisp.org>
51827         filemode: Move AC_LIBOBJ invocations to module description.
51828         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51829         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51831 2011-05-23  Bruno Haible  <bruno@clisp.org>
51833         openat-safer: Move AC_LIBOBJ invocations to module description.
51834         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51835         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51837 2011-05-23  Bruno Haible  <bruno@clisp.org>
51839         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51840         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51841         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51843 2011-05-23  Bruno Haible  <bruno@clisp.org>
51845         exclude: Move AC_LIBOBJ invocations to module description.
51846         * m4/exclude.m4: Remove file.
51847         * modules/exclude (Files): Remove it.
51848         (configure.ac): Remove gl_EXCLUDE call.
51849         (Makefile.am): Augment lib_SOURCES.
51851 2011-05-23  Bruno Haible  <bruno@clisp.org>
51853         dirname*: Respect rules for use of AC_LIBOBJ.
51854         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51855         invocations.
51856         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51857         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51859 2011-05-23  Bruno Haible  <bruno@clisp.org>
51861         dirent-safer: Move AC_LIBOBJ invocations to module description.
51862         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51863         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51865 2011-05-23  Bruno Haible  <bruno@clisp.org>
51867         crypto/des: Move AC_LIBOBJ invocations to module description.
51868         * m4/des.m4: Remove file.
51869         * modules/crypto/des (Files): Remove it.
51870         (configure.ac): Remove gl_DES call.
51871         (Makefile.am): Augment lib_SOURCES.
51873 2011-05-23  Bruno Haible  <bruno@clisp.org>
51875         cycle-check: Move AC_LIBOBJ invocations to module description.
51876         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51877         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51879 2011-05-23  Bruno Haible  <bruno@clisp.org>
51881         c-strtold: Move AC_LIBOBJ invocations to module description.
51882         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51883         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51885 2011-05-23  Bruno Haible  <bruno@clisp.org>
51887         c-strtod: Move AC_LIBOBJ invocations to module description.
51888         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51889         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51891 2011-05-23  Bruno Haible  <bruno@clisp.org>
51893         crc: Move AC_LIBOBJ invocations to module description.
51894         * m4/crc.m4: Remove file.
51895         * modules/crc (Files): Remove it.
51896         (configure.ac): Remove gl_CRC call.
51897         (Makefile.am): Augment lib_SOURCES.
51899 2011-05-23  Bruno Haible  <bruno@clisp.org>
51901         close-stream: Move AC_LIBOBJ invocations to module description.
51902         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51903         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51905 2011-05-23  Bruno Haible  <bruno@clisp.org>
51907         closeout: Move AC_LIBOBJ invocations to module description.
51908         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51909         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51911 2011-05-23  Bruno Haible  <bruno@clisp.org>
51913         closein: Move AC_LIBOBJ invocations to module description.
51914         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51915         * modules/closein (Makefile.am): Augment lib_SOURCES.
51917 2011-05-23  Bruno Haible  <bruno@clisp.org>
51919         cloexec: Move AC_LIBOBJ invocations to module description.
51920         * m4/cloexec.m4: Remove file.
51921         * modules/cloexec (Files): Remove it.
51922         (configure.ac): Remove gl_CLOEXEC call.
51923         (Makefile.am): Augment lib_SOURCES.
51925 2011-05-23  Bruno Haible  <bruno@clisp.org>
51927         check-version: Move AC_LIBOBJ invocations to module description.
51928         * m4/check-version.m4: Remove file.
51929         * modules/check-version (Files): Remove it.
51930         (configure.ac): Remove gl_CHECK_VERSION call.
51931         (Makefile.am): Augment lib_SOURCES.
51933 2011-05-23  Bruno Haible  <bruno@clisp.org>
51935         chdir-safer: Move AC_LIBOBJ invocations to module description.
51936         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51937         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51939 2011-05-23  Bruno Haible  <bruno@clisp.org>
51941         canonicalize: Move AC_LIBOBJ invocations to module description.
51942         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51943         AC_LIBOBJ invocation.
51944         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51946 2011-05-23  Bruno Haible  <bruno@clisp.org>
51948         canon-host: Move AC_LIBOBJ invocations to module description.
51949         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51950         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51951         instead of gl_CANON_HOST.
51952         (Makefile.am): Augment lib_SOURCES.
51954 2011-05-23  Bruno Haible  <bruno@clisp.org>
51956         backupfile: Move AC_LIBOBJ invocations to module description.
51957         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51958         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51960 2011-05-23  Bruno Haible  <bruno@clisp.org>
51962         argmatch: Move AC_LIBOBJ invocations to module description.
51963         * m4/argmatch.m4: Remove file.
51964         * modules/argmatch (Files): Remove it.
51965         (configure.ac): Remove gl_ARGMATCH call.
51966         (Makefile.am): Augment lib_SOURCES.
51968 2011-05-23  Bruno Haible  <bruno@clisp.org>
51970         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51971         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51972         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51974 2011-05-23  Bruno Haible  <bruno@clisp.org>
51976         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51977         * m4/arcfour.m4: Remove file.
51978         * modules/crypto/arcfour (Files): Remove it.
51979         (configure.ac): Remove gl_ARCFOUR call.
51980         (Makefile.am): Augment lib_SOURCES.
51982 2011-05-22  Bruno Haible  <bruno@clisp.org>
51984         write: Move AC_LIBOBJ invocations to module description.
51985         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51986         * modules/write (configure.ac): ... to here.
51988 2011-05-22  Bruno Haible  <bruno@clisp.org>
51990         wmemset: Move AC_LIBOBJ invocations to module description.
51991         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51992         here...
51993         * modules/wmemset (configure.ac): ... to here.
51995 2011-05-22  Bruno Haible  <bruno@clisp.org>
51997         wmemmove: Move AC_LIBOBJ invocations to module description.
51998         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51999         here...
52000         * modules/wmemmove (configure.ac): ... to here.
52002 2011-05-22  Bruno Haible  <bruno@clisp.org>
52004         wmemcpy: Move AC_LIBOBJ invocations to module description.
52005         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
52006         here...
52007         * modules/wmemcpy (configure.ac): ... to here.
52009 2011-05-22  Bruno Haible  <bruno@clisp.org>
52011         wmemcmp: Move AC_LIBOBJ invocations to module description.
52012         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
52013         here...
52014         * modules/wmemcmp (configure.ac): ... to here.
52016 2011-05-22  Bruno Haible  <bruno@clisp.org>
52018         wmemchr: Move AC_LIBOBJ invocations to module description.
52019         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
52020         here...
52021         * modules/wmemchr (configure.ac): ... to here.
52023 2011-05-22  Bruno Haible  <bruno@clisp.org>
52025         wcswidth: Move AC_LIBOBJ invocations to module description.
52026         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
52027         here...
52028         * modules/wcswidth (configure.ac): ... to here.
52030 2011-05-22  Bruno Haible  <bruno@clisp.org>
52032         wcwidth: Respect rules for use of AC_LIBOBJ.
52033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
52034         invocation from here...
52035         * modules/wcwidth (configure.ac): ... to here.
52036         (Depends-on): Update conditions.
52038 2011-05-22  Bruno Haible  <bruno@clisp.org>
52040         wctype: Move AC_LIBOBJ invocations to module description.
52041         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
52042         invocation from here...
52043         * modules/wctype (configure.ac): ... to here.
52044         (Depends-on): Update conditions.
52046 2011-05-22  Bruno Haible  <bruno@clisp.org>
52048         wctrans: Move AC_LIBOBJ invocations to module description.
52049         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
52050         invocation from here...
52051         * modules/wctrans (configure.ac): ... to here.
52053 2011-05-22  Bruno Haible  <bruno@clisp.org>
52055         wctomb: Move AC_LIBOBJ invocations to module description.
52056         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
52057         invocations from here...
52058         * modules/wctomb (configure.ac): ... to here.
52060 2011-05-22  Bruno Haible  <bruno@clisp.org>
52062         wctob: Move AC_LIBOBJ invocations to module description.
52063         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
52064         gl_PREREQ_WCTOB invocations from here...
52065         * modules/wctob (configure.ac): ... to here.
52066         (Depends-on): Update conditions.
52068 2011-05-22  Bruno Haible  <bruno@clisp.org>
52070         wcsxfrm: Move AC_LIBOBJ invocations to module description.
52071         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
52072         here...
52073         * modules/wcsxfrm (configure.ac): ... to here.
52075 2011-05-22  Bruno Haible  <bruno@clisp.org>
52077         wcstok: Move AC_LIBOBJ invocations to module description.
52078         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
52079         * modules/wcstok (configure.ac): ... to here.
52081 2011-05-22  Bruno Haible  <bruno@clisp.org>
52083         wcsstr: Move AC_LIBOBJ invocations to module description.
52084         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
52085         * modules/wcsstr (configure.ac): ... to here.
52087 2011-05-22  Bruno Haible  <bruno@clisp.org>
52089         wcsspn: Move AC_LIBOBJ invocations to module description.
52090         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
52091         * modules/wcsspn (configure.ac): ... to here.
52093 2011-05-22  Bruno Haible  <bruno@clisp.org>
52095         wcsrtombs: Move AC_LIBOBJ invocations to module description.
52096         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
52097         gl_PREREQ_WCSRTOMBS invocations from here...
52098         * modules/wcsrtombs (configure.ac): ... to here.
52100 2011-05-22  Bruno Haible  <bruno@clisp.org>
52102         wcsrchr: Move AC_LIBOBJ invocations to module description.
52103         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
52104         here...
52105         * modules/wcsrchr (configure.ac): ... to here.
52107 2011-05-22  Bruno Haible  <bruno@clisp.org>
52109         wcspbrk: Move AC_LIBOBJ invocations to module description.
52110         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
52111         here...
52112         * modules/wcspbrk (configure.ac): ... to here.
52114 2011-05-22  Bruno Haible  <bruno@clisp.org>
52116         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
52117         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
52118         gl_PREREQ_WCSNRTOMBS invocations from here...
52119         * modules/wcsnrtombs (configure.ac): ... to here.
52121 2011-05-22  Bruno Haible  <bruno@clisp.org>
52123         wcsnlen: Move AC_LIBOBJ invocations to module description.
52124         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
52125         here...
52126         * modules/wcsnlen (configure.ac): ... to here.
52128 2011-05-22  Bruno Haible  <bruno@clisp.org>
52130         wcsncpy: Move AC_LIBOBJ invocations to module description.
52131         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
52132         here...
52133         * modules/wcsncpy (configure.ac): ... to here.
52135 2011-05-22  Bruno Haible  <bruno@clisp.org>
52137         wcsncmp: Move AC_LIBOBJ invocations to module description.
52138         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
52139         here...
52140         * modules/wcsncmp (configure.ac): ... to here.
52142 2011-05-22  Bruno Haible  <bruno@clisp.org>
52144         wcsncat: Move AC_LIBOBJ invocations to module description.
52145         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
52146         here...
52147         * modules/wcsncat (configure.ac): ... to here.
52149 2011-05-22  Bruno Haible  <bruno@clisp.org>
52151         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
52152         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
52153         from here...
52154         * modules/wcsncasecmp (configure.ac): ... to here.
52156 2011-05-22  Bruno Haible  <bruno@clisp.org>
52158         wcslen: Move AC_LIBOBJ invocations to module description.
52159         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
52160         * modules/wcslen (configure.ac): ... to here.
52162 2011-05-22  Bruno Haible  <bruno@clisp.org>
52164         wcsdup: Move AC_LIBOBJ invocations to module description.
52165         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
52166         * modules/wcsdup (configure.ac): ... to here.
52168 2011-05-22  Bruno Haible  <bruno@clisp.org>
52170         wcscspn: Move AC_LIBOBJ invocations to module description.
52171         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
52172         here...
52173         * modules/wcscspn (configure.ac): ... to here.
52175 2011-05-22  Bruno Haible  <bruno@clisp.org>
52177         wcscpy: Move AC_LIBOBJ invocations to module description.
52178         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
52179         * modules/wcscpy (configure.ac): ... to here.
52181 2011-05-22  Bruno Haible  <bruno@clisp.org>
52183         wcscoll: Move AC_LIBOBJ invocations to module description.
52184         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
52185         here...
52186         * modules/wcscoll (configure.ac): ... to here.
52188 2011-05-22  Bruno Haible  <bruno@clisp.org>
52190         wcscmp: Move AC_LIBOBJ invocations to module description.
52191         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52192         * modules/wcscmp (configure.ac): ... to here.
52194 2011-05-22  Bruno Haible  <bruno@clisp.org>
52196         wcschr: Move AC_LIBOBJ invocations to module description.
52197         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
52198         * modules/wcschr (configure.ac): ... to here.
52200 2011-05-22  Bruno Haible  <bruno@clisp.org>
52202         wcscat: Move AC_LIBOBJ invocations to module description.
52203         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
52204         * modules/wcscat (configure.ac): ... to here.
52206 2011-05-22  Bruno Haible  <bruno@clisp.org>
52208         wcscasecmp: Move AC_LIBOBJ invocations to module description.
52209         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
52210         here...
52211         * modules/wcscasecmp (configure.ac): ... to here.
52213 2011-05-22  Bruno Haible  <bruno@clisp.org>
52215         wcrtomb: Move AC_LIBOBJ invocations to module description.
52216         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
52217         invocations from here...
52218         * modules/wcrtomb (configure.ac): ... to here.
52220 2011-05-22  Bruno Haible  <bruno@clisp.org>
52222         wcpncpy: Move AC_LIBOBJ invocations to module description.
52223         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
52224         here...
52225         * modules/wcpncpy (configure.ac): ... to here.
52227 2011-05-22  Bruno Haible  <bruno@clisp.org>
52229         wcpcpy: Move AC_LIBOBJ invocations to module description.
52230         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
52231         * modules/wcpcpy (configure.ac): ... to here.
52233 2011-05-22  Bruno Haible  <bruno@clisp.org>
52235         waitpid: Move AC_LIBOBJ invocations to module description.
52236         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
52237         invocation from here...
52238         * modules/waitpid (configure.ac): ... to here.
52240 2011-05-22  Bruno Haible  <bruno@clisp.org>
52242         utimensat: Move AC_LIBOBJ invocations to module description.
52243         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
52244         here...
52245         * modules/utimensat (configure.ac): ... to here.
52247 2011-05-22  Bruno Haible  <bruno@clisp.org>
52249         usleep: Move AC_LIBOBJ invocations to module description.
52250         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
52251         here...
52252         * modules/usleep (configure.ac): ... to here.
52254 2011-05-22  Bruno Haible  <bruno@clisp.org>
52256         unlockpt: Move AC_LIBOBJ invocations to module description.
52257         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
52258         gl_PREREQ_UNLOCKPT invocations from here...
52259         * modules/unlockpt (configure.ac): ... to here.
52261 2011-05-22  Bruno Haible  <bruno@clisp.org>
52263         unlink: Respect rules for use of AC_LIBOBJ.
52264         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
52265         * modules/unlink (configure.ac): ... to here.
52267 2011-05-22  Bruno Haible  <bruno@clisp.org>
52269         uname: Move AC_LIBOBJ invocations to module description.
52270         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
52271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
52272         here...
52273         * modules/uname (configure.ac): ... to here.
52275 2011-05-22  Bruno Haible  <bruno@clisp.org>
52277         ttyname_r: Move AC_LIBOBJ invocations to module description.
52278         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
52279         gl_PREREQ_TTYNAME_R invocations from here...
52280         * modules/ttyname_r (configure.ac): ... to here.
52282 2011-05-22  Bruno Haible  <bruno@clisp.org>
52284         tsearch: Move AC_LIBOBJ invocations to module description.
52285         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
52286         invocations from here...
52287         * modules/tsearch (configure.ac): ... to here.
52289 2011-05-22  Bruno Haible  <bruno@clisp.org>
52291         towctrans: Move AC_LIBOBJ invocations to module description.
52292         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
52293         AC_LIBOBJ invocation from here...
52294         * modules/towctrans (configure.ac): ... to here.
52296 2011-05-22  Bruno Haible  <bruno@clisp.org>
52298         tmpfile: Move AC_LIBOBJ invocations to module description.
52299         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
52300         invocations from here...
52301         * modules/tmpfile (configure.ac): ... to here.
52303 2011-05-22  Bruno Haible  <bruno@clisp.org>
52305         times: Move AC_LIBOBJ invocations to module description.
52306         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
52307         * modules/times (configure.ac): ... to here.
52309 2011-05-22  Bruno Haible  <bruno@clisp.org>
52311         time_r: Move AC_LIBOBJ invocations to module description.
52312         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
52313         invocations from here...
52314         * modules/time_r (configure.ac): ... to here.
52316 2011-05-22  Bruno Haible  <bruno@clisp.org>
52318         timegm: Move AC_LIBOBJ invocations to module description.
52319         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
52320         invocations from here...
52321         * modules/timegm (configure.ac): ... to here.
52323 2011-05-22  Bruno Haible  <bruno@clisp.org>
52325         tcgetsid: Move AC_LIBOBJ invocations to module description.
52326         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
52327         and gl_PREREQ_TCGETSID invocations from here...
52328         * modules/tcgetsid (configure.ac): ... to here.
52329         (Depends-on): Update conditions.
52331 2011-05-22  Bruno Haible  <bruno@clisp.org>
52333         symlinkat: Move AC_LIBOBJ invocations to module description.
52334         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
52335         here...
52336         * modules/symlinkat (configure.ac): ... to here.
52338 2011-05-22  Bruno Haible  <bruno@clisp.org>
52340         symlink: Move AC_LIBOBJ invocations to module description.
52341         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
52342         here...
52343         * modules/symlink (configure.ac): ... to here.
52345 2011-05-22  Bruno Haible  <bruno@clisp.org>
52347         strverscmp: Move AC_LIBOBJ invocations to module description.
52348         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
52349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
52350         from here...
52351         * modules/strverscmp (configure.ac): ... to here.
52353 2011-05-22  Bruno Haible  <bruno@clisp.org>
52355         strtok_r: Move AC_LIBOBJ invocations to module description.
52356         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
52357         and gl_PREREQ_STRTOK_R invocations from here...
52358         * modules/strtok_r (configure.ac): ... to here.
52359         (Depends-on): Update conditions.
52361 2011-05-22  Bruno Haible  <bruno@clisp.org>
52363         strtoumax: Move AC_LIBOBJ invocations to module description.
52364         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52365         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52366         from here...
52367         * modules/strtoumax (configure.ac): ... to here.
52369 2011-05-22  Bruno Haible  <bruno@clisp.org>
52371         strtoimax: Move AC_LIBOBJ invocations to module description.
52372         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52373         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52374         from here...
52375         * modules/strtoimax (configure.ac): ... to here.
52377 2011-05-22  Bruno Haible  <bruno@clisp.org>
52379         strtoull: Move AC_LIBOBJ invocations to module description.
52380         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52381         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52382         from here...
52383         * modules/strtoull (configure.ac): ... to here.
52385 2011-05-22  Bruno Haible  <bruno@clisp.org>
52387         strtoll: Move AC_LIBOBJ invocations to module description.
52388         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52390         here...
52391         * modules/strtoll (configure.ac): ... to here.
52393 2011-05-22  Bruno Haible  <bruno@clisp.org>
52395         strtoul: Move AC_LIBOBJ invocations to module description.
52396         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52397         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52398         * modules/strtoul (configure.ac): ... to here.
52400 2011-05-22  Bruno Haible  <bruno@clisp.org>
52402         strtol: Move AC_LIBOBJ invocations to module description.
52403         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52404         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52405         * modules/strtol (configure.ac): ... to here.
52407 2011-05-22  Bruno Haible  <bruno@clisp.org>
52409         strtod: Move AC_LIBOBJ invocations to module description.
52410         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52411         invocations from here...
52412         * modules/strtod (configure.ac): ... to here.
52414 2011-05-22  Bruno Haible  <bruno@clisp.org>
52416         strstr*: Move AC_LIBOBJ invocations to module description.
52417         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52418         invocations from here...
52419         * modules/strstr-simple (configure.ac): ... to here.
52420         * modules/strstr (configure.ac): ... and here.
52422 2011-05-22  Bruno Haible  <bruno@clisp.org>
52424         strsignal: Move AC_LIBOBJ invocations to module description.
52425         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52426         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52427         * modules/strsignal (configure.ac): ... to here.
52428         (Depends-on): Update conditions.
52430 2011-05-22  Bruno Haible  <bruno@clisp.org>
52432         strsep: Move AC_LIBOBJ invocations to module description.
52433         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52434         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52435         here...
52436         * modules/strsep (configure.ac): ... to here.
52438 2011-05-22  Bruno Haible  <bruno@clisp.org>
52440         strptime: Move AC_LIBOBJ invocations to module description.
52441         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52442         gl_PREREQ_STRPTIME invocations from here...
52443         * modules/strptime (configure.ac): ... to here.
52445 2011-05-22  Bruno Haible  <bruno@clisp.org>
52447         strpbrk: Move AC_LIBOBJ invocations to module description.
52448         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52449         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52450         here...
52451         * modules/strpbrk (configure.ac): ... to here.
52453 2011-05-22  Bruno Haible  <bruno@clisp.org>
52455         strnlen: Move AC_LIBOBJ invocations to module description.
52456         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52457         invocations from here...
52458         * modules/strnlen (configure.ac): ... to here.
52460 2011-05-22  Bruno Haible  <bruno@clisp.org>
52462         strndup: Move AC_LIBOBJ invocations to module description.
52463         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52464         invocations from here...
52465         * modules/strndup (configure.ac): ... to here.
52466         (Depends-on): Update conditions.
52468 2011-05-22  Bruno Haible  <bruno@clisp.org>
52470         strncat: Move AC_LIBOBJ invocations to module description.
52471         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52472         invocations from here...
52473         * modules/strncat (configure.ac): ... to here.
52475 2011-05-22  Bruno Haible  <bruno@clisp.org>
52477         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
52478         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
52479         invocations from here...
52480         * modules/strdup (configure.ac): ... to here.
52481         * modules/strdup-posix (configure.ac): ... and here.
52483 2011-05-22  Bruno Haible  <bruno@clisp.org>
52485         strcspn: Move AC_LIBOBJ invocations to module description.
52486         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
52487         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
52488         here...
52489         * modules/strcspn (configure.ac): ... to here.
52491 2011-05-22  Bruno Haible  <bruno@clisp.org>
52493         strchrnul: Move AC_LIBOBJ invocations to module description.
52494         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
52495         gl_PREREQ_STRCHRNUL invocations from here...
52496         * modules/strchrnul (configure.ac): ... to here.
52498 2011-05-22  Bruno Haible  <bruno@clisp.org>
52500         strcasestr*: Move AC_LIBOBJ invocations to module description.
52501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52502         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
52503         * modules/strcasestr-simple (configure.ac): ... to here.
52504         * modules/strcasestr (configure.ac): ... and here.
52506 2011-05-22  Bruno Haible  <bruno@clisp.org>
52508         strcase: Move AC_LIBOBJ invocations to module description.
52509         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
52510         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
52511         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
52512         gl_PREREQ_STRNCASECMP invocations from here...
52513         * modules/strcase (configure.ac): ... to here.
52515 2011-05-22  Bruno Haible  <bruno@clisp.org>
52517         stpncpy: Move AC_LIBOBJ invocations to module description.
52518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52519         here...
52520         * modules/stpncpy (configure.ac): ... to here.
52522 2011-05-22  Bruno Haible  <bruno@clisp.org>
52524         stpcpy: Move AC_LIBOBJ invocations to module description.
52525         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
52526         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
52527         here...
52528         * modules/stpcpy (configure.ac): ... to here.
52530 2011-05-21  Bruno Haible  <bruno@clisp.org>
52532         stat: Move AC_LIBOBJ invocations to module description.
52533         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
52534         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
52535         here...
52536         * modules/stat (configure.ac): ... to here.
52538 2011-05-21  Bruno Haible  <bruno@clisp.org>
52540         sleep: Move AC_LIBOBJ invocations to module description.
52541         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
52542         * modules/sleep (configure.ac): ... to here.
52544 2011-05-21  Bruno Haible  <bruno@clisp.org>
52546         signbit: Move AC_LIBOBJ invocations to module description.
52547         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
52548         * modules/signbit (configure.ac): ... to here.
52550 2011-05-21  Bruno Haible  <bruno@clisp.org>
52552         sigprocmask: Move AC_LIBOBJ invocations to module description.
52553         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
52554         gl_PREREQ_SIGPROMASK invocations from here...
52555         * modules/sigprocmask (configure.ac): ... to here.
52557 2011-05-21  Bruno Haible  <bruno@clisp.org>
52559         sigaction: Move AC_LIBOBJ invocations to module description.
52560         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
52561         gl_PREREQ_SIGACTION invocations from here...
52562         * modules/sigaction (configure.ac): ... to here.
52564 2011-05-21  Bruno Haible  <bruno@clisp.org>
52566         sig2str: Move AC_LIBOBJ invocations to module description.
52567         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
52568         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
52569         here...
52570         * modules/sig2str (configure.ac): ... to here.
52572 2011-05-21  Bruno Haible  <bruno@clisp.org>
52574         setlocale: Move AC_LIBOBJ invocations to module description.
52575         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
52576         gl_PREREQ_SETLOCALE invocations from here...
52577         * modules/setlocale (configure.ac): ... to here.
52579 2011-05-21  Bruno Haible  <bruno@clisp.org>
52581         unsetenv: Move AC_LIBOBJ invocations to module description.
52582         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
52583         and gl_PREREQ_UNSETENV invocations from here...
52584         * modules/unsetenv (configure.ac): ... to here.
52585         (Depends-on): Update.
52587 2011-05-21  Bruno Haible  <bruno@clisp.org>
52589         setenv: Move AC_LIBOBJ invocations to module description.
52590         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
52591         here...
52592         * modules/setenv (configure.ac): ... to here.
52594 2011-05-21  Bruno Haible  <bruno@clisp.org>
52596         selinux-h: Move AC_LIBOBJ invocations to module description.
52597         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
52598         AC_LIBOBJ invocation from here...
52599         * modules/selinux-h (configure.ac): ... to here.
52601 2011-05-21  Bruno Haible  <bruno@clisp.org>
52603         select: Respect rules for use of AC_LIBOBJ.
52604         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
52605         here...
52606         * modules/select (configure.ac): ... to here.
52608 2011-05-21  Bruno Haible  <bruno@clisp.org>
52610         scandir: Move AC_LIBOBJ invocations to module description.
52611         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52612         invocations from here...
52613         * modules/scandir (configure.ac): ... to here.
52615 2011-05-21  Bruno Haible  <bruno@clisp.org>
52617         rpmatch: Move AC_LIBOBJ invocations to module description.
52618         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
52619         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
52620         here...
52621         * modules/rpmatch (configure.ac): ... to here.
52623 2011-05-21  Bruno Haible  <bruno@clisp.org>
52625         rmdir: Respect rules for use of AC_LIBOBJ.
52626         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
52627         * modules/rmdir (configure.ac): ... to here.
52629 2011-05-21  Bruno Haible  <bruno@clisp.org>
52631         renameat: Move AC_LIBOBJ invocations to module description.
52632         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
52633         here...
52634         * modules/renameat (configure.ac): ... to here.
52636 2011-05-21  Bruno Haible  <bruno@clisp.org>
52638         rename: Respect rules for use of AC_LIBOBJ.
52639         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
52640         here...
52641         * modules/rename (configure.ac): ... to here.
52643 2011-05-21  Bruno Haible  <bruno@clisp.org>
52645         remove: Move AC_LIBOBJ invocations to module description.
52646         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
52647         here...
52648         * modules/remove (configure.ac): ... to here.
52650 2011-05-21  Bruno Haible  <bruno@clisp.org>
52652         relocatable-lib: Move AC_LIBOBJ invocations to module description.
52653         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
52654         macro.
52655         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
52656         * modules/relocatable-lib (configure.ac): ... to here.
52657         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52658         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
52660 2011-05-21  Bruno Haible  <bruno@clisp.org>
52662         relocatable-prog: Move AC_LIBOBJ invocations to module description.
52663         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
52664         here...
52665         * modules/relocatable-prog (configure.ac): ... to here.
52667 2011-05-21  Bruno Haible  <bruno@clisp.org>
52669         regex: Move AC_LIBOBJ invocations to module description.
52670         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
52671         invocations from here...
52672         * modules/regex (configure.ac): ... to here.
52674 2011-05-21  Bruno Haible  <bruno@clisp.org>
52676         realloc-*: Move AC_LIBOBJ invocations to module description.
52677         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
52678         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
52679         AC_LIBOBJ invocations from here...
52680         * modules/realloc-gnu (configure.ac): ... to here.
52681         * modules/realloc-posix (configure.ac): ... and here.
52683 2011-05-21  Bruno Haible  <bruno@clisp.org>
52685         readutmp: Move AC_LIBOBJ invocations to module description.
52686         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52687         * modules/readutmp (configure.ac): ... to here.
52689 2011-05-21  Bruno Haible  <bruno@clisp.org>
52691         readlinkat: Move AC_LIBOBJ invocations to module description.
52692         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52693         here...
52694         * modules/readlinkat (configure.ac): ... to here.
52696 2011-05-21  Bruno Haible  <bruno@clisp.org>
52698         readlink: Move AC_LIBOBJ invocations to module description.
52699         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52700         gl_PREREQ_READLINK invocations from here...
52701         * modules/readlink (configure.ac): ... to here.
52703 2011-05-21  Bruno Haible  <bruno@clisp.org>
52705         readline: Move AC_LIBOBJ invocations to module description.
52706         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52707         gl_PREREQ_READLINE invocations from here...
52708         * modules/readline (configure.ac): ... to here.
52710 2011-05-21  Bruno Haible  <bruno@clisp.org>
52712         read: Move AC_LIBOBJ invocations to module description.
52713         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52714         * modules/read (configure.ac): ... to here.
52716 2011-05-21  Bruno Haible  <bruno@clisp.org>
52718         rawmemchr: Move AC_LIBOBJ invocations to module description.
52719         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52721         from here...
52722         * modules/rawmemchr (configure.ac): ... to here.
52724 2011-05-21  Bruno Haible  <bruno@clisp.org>
52726         random_r: Move AC_LIBOBJ invocations to module description.
52727         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52728         gl_PREREQ_RANDOM_R invocations from here...
52729         * modules/random_r (configure.ac): ... to here.
52731 2011-05-21  Bruno Haible  <bruno@clisp.org>
52733         pwrite: Move AC_LIBOBJ invocations to module description.
52734         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52735         * modules/pwrite (configure.ac): ... to here.
52737 2011-05-21  Bruno Haible  <bruno@clisp.org>
52739         putenv: Move AC_LIBOBJ invocations to module description.
52740         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52741         * modules/putenv (configure.ac): ... to here.
52743 2011-05-21  Bruno Haible  <bruno@clisp.org>
52745         login_tty: Move AC_LIBOBJ invocations to module description.
52746         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52747         * modules/login_tty (configure.ac): ... to here.
52749 2011-05-21  Bruno Haible  <bruno@clisp.org>
52751         openpty: Move AC_LIBOBJ invocations to module description.
52752         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52753         * modules/openpty (configure.ac): ... to here.
52755 2011-05-21  Bruno Haible  <bruno@clisp.org>
52757         forkpty: Move AC_LIBOBJ invocations to module description.
52758         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52759         * modules/forkpty (configure.ac): ... to here.
52761 2011-05-21  Bruno Haible  <bruno@clisp.org>
52763         ptsname: Move AC_LIBOBJ invocations to module description.
52764         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52765         invocations from here...
52766         * modules/ptsname (configure.ac): ... to here.
52768 2011-05-21  Bruno Haible  <bruno@clisp.org>
52770         pread: Move AC_LIBOBJ invocations to module description.
52771         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52772         * modules/pread (configure.ac): ... to here.
52774 2011-05-21  Bruno Haible  <bruno@clisp.org>
52776         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52777         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52778         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52779         * modules/posix_spawn (configure.ac): ... to here.
52780         * modules/posix_spawnp (configure.ac): ... and here.
52782 2011-05-21  Bruno Haible  <bruno@clisp.org>
52784         popen: Move AC_LIBOBJ invocations to module description.
52785         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52786         invocations from here...
52787         * modules/popen (configure.ac): ... to here.
52789 2011-05-21  Bruno Haible  <bruno@clisp.org>
52791         poll: Move AC_LIBOBJ invocations to module description.
52792         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52793         invocations from here...
52794         * modules/poll (configure.ac): ... to here.
52796 2011-05-21  Bruno Haible  <bruno@clisp.org>
52798         pipe-posix: Move AC_LIBOBJ invocations to module description.
52799         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52800         * modules/pipe-posix (configure.ac): ... to here.
52802 2011-05-21  Bruno Haible  <bruno@clisp.org>
52804         openat: Respect rules for use of AC_LIBOBJ.
52805         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52806         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52807         * modules/openat (configure.ac): ... to here.
52809 2011-05-21  Bruno Haible  <bruno@clisp.org>
52811         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52812         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52813         invocation from here...
52814         * modules/obstack-printf (configure.ac): ... to here.
52815         * modules/obstack-printf-posix (configure.ac): ... and here.
52817 2011-05-21  Bruno Haible  <bruno@clisp.org>
52819         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52820         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52821         from here...
52822         * modules/nl_langinfo (configure.ac): ... to here.
52824 2011-05-21  Bruno Haible  <bruno@clisp.org>
52826         nanosleep: Move AC_LIBOBJ invocations to module description.
52827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52828         gl_PREREQ_NANOSLEEP invocations from here...
52829         * modules/nanosleep (configure.ac): ... to here.
52831 2011-05-21  Bruno Haible  <bruno@clisp.org>
52833         mountlist: Move AC_LIBOBJ invocations to module description.
52834         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52835         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52836         * modules/mountlist (configure.ac): ... to here.
52838 2011-05-21  Bruno Haible  <bruno@clisp.org>
52840         mktime: Respect rules for use of AC_LIBOBJ.
52841         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52842         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52843         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52844         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52845         * modules/mktime (configure.ac): ... to here.
52846         * modules/mktime-internal (configure.ac): ... and here.
52847         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52849 2011-05-21  Bruno Haible  <bruno@clisp.org>
52851         mkstemps: Move AC_LIBOBJ invocations to module description.
52852         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52853         here...
52854         * modules/mkstemps (configure.ac): ... to here.
52856 2011-05-21  Bruno Haible  <bruno@clisp.org>
52858         mkstemp: Move AC_LIBOBJ invocations to module description.
52859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52860         gl_PREREQ_MKSTEMP invocations from here...
52861         * modules/mkstemp (configure.ac): ... to here.
52863 2011-05-21  Bruno Haible  <bruno@clisp.org>
52865         mkostemps: Move AC_LIBOBJ invocations to module description.
52866         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52867         here...
52868         * modules/mkostemps (configure.ac): ... to here.
52870 2011-05-21  Bruno Haible  <bruno@clisp.org>
52872         mkostemp: Move AC_LIBOBJ invocations to module description.
52873         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52874         gl_PREREQ_MKOSTEMP invocations from here...
52875         * modules/mkostemp (configure.ac): ... to here.
52877 2011-05-21  Bruno Haible  <bruno@clisp.org>
52879         mknod: Move AC_LIBOBJ invocations to module description.
52880         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52881         * modules/mknod (configure.ac): ... to here.
52883 2011-05-21  Bruno Haible  <bruno@clisp.org>
52885         mkfifoat: Move AC_LIBOBJ invocations to module description.
52886         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52887         here...
52888         * modules/mkfifoat (configure.ac): ... to here.
52890 2011-05-21  Bruno Haible  <bruno@clisp.org>
52892         mkfifo: Respect rules for use of AC_LIBOBJ.
52893         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52894         here...
52895         * modules/mkfifo (configure.ac): ... to here.
52897 2011-05-21  Bruno Haible  <bruno@clisp.org>
52899         mkdtemp: Move AC_LIBOBJ invocations to module description.
52900         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52901         invocations from here...
52902         * modules/mkdtemp (configure.ac): ... to here.
52904 2011-05-21  Bruno Haible  <bruno@clisp.org>
52906         mkdir: Move AC_LIBOBJ invocations to module description.
52907         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52908         * modules/mkdir (configure.ac): ... to here.
52910 2011-05-21  Bruno Haible  <bruno@clisp.org>
52912         memset: Move AC_LIBOBJ invocations to module description.
52913         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52915         here...
52916         * modules/memset (configure.ac): ... to here.
52918 2011-05-21  Bruno Haible  <bruno@clisp.org>
52920         memrchr: Move AC_LIBOBJ invocations to module description.
52921         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52922         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52923         here...
52924         * modules/memrchr (configure.ac): ... to here.
52926 2011-05-21  Bruno Haible  <bruno@clisp.org>
52928         mempcpy: Move AC_LIBOBJ invocations to module description.
52929         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52930         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52931         here...
52932         * modules/mempcpy (configure.ac): ... to here.
52934 2011-05-21  Bruno Haible  <bruno@clisp.org>
52936         memmove: Move AC_LIBOBJ invocations to module description.
52937         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52938         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52939         here...
52940         * modules/memmove (configure.ac): ... to here.
52942 2011-05-21  Bruno Haible  <bruno@clisp.org>
52944         memmem*: Move AC_LIBOBJ invocations to module description.
52945         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52946         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52947         here...
52948         (gl_FUNC_MEMMEM): ... and here...
52949         * modules/memmem-simple (configure.ac): ... to here.
52950         * modules/memmem (configure.ac): ... and here.
52952 2011-05-21  Bruno Haible  <bruno@clisp.org>
52954         memcpy: Move AC_LIBOBJ invocations to module description.
52955         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52957         here...
52958         * modules/memcpy (configure.ac): ... to here.
52960 2011-05-21  Bruno Haible  <bruno@clisp.org>
52962         memcmp: Simplify autoconf macro.
52963         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52964         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52965         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52967 2011-05-21  Bruno Haible  <bruno@clisp.org>
52969         memcmp: Move AC_LIBOBJ invocations to module description.
52970         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52971         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52972         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52973         * modules/memcmp (configure.ac): ... to here.
52974         (Depends-on): Update conditions.
52976 2011-05-21  Bruno Haible  <bruno@clisp.org>
52978         memchr: Respect rules for use of AC_LIBOBJ.
52979         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52980         invocations from here...
52981         * modules/memchr (configure.ac): ... to here.
52983 2011-05-21  Bruno Haible  <bruno@clisp.org>
52985         mbtowc: Move AC_LIBOBJ invocations to module description.
52986         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52987         invocations from here...
52988         * modules/mbtowc (configure.ac): ... to here.
52990 2011-05-21  Bruno Haible  <bruno@clisp.org>
52992         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52993         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52994         gl_PREREQ_MBSRTOWCS invocations from here...
52995         * modules/mbsrtowcs (configure.ac): ... to here.
52997 2011-05-21  Bruno Haible  <bruno@clisp.org>
52999         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
53000         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
53001         gl_PREREQ_MBSNRTOWCS invocations from here...
53002         * modules/mbsnrtowcs (configure.ac): ... to here.
53004 2011-05-21  Bruno Haible  <bruno@clisp.org>
53006         mbsinit: Move AC_LIBOBJ invocations to module description.
53007         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
53008         invocations from here...
53009         * modules/mbsinit (configure.ac): ... to here.
53011 2011-05-21  Bruno Haible  <bruno@clisp.org>
53013         mbrlen: Move AC_LIBOBJ invocations to module description.
53014         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
53015         invocations from here...
53016         * modules/mbrlen (configure.ac): ... to here.
53018 2011-05-21  Bruno Haible  <bruno@clisp.org>
53020         mbrtowc: Respect rules for use of AC_LIBOBJ.
53021         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
53022         invocations from here...
53023         * modules/mbrtowc (configure.ac): ... to here.
53025 2011-05-21  Bruno Haible  <bruno@clisp.org>
53027         malloc-*: Move AC_LIBOBJ invocations to module description.
53028         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
53029         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
53030         AC_LIBOBJ invocations from here...
53031         * modules/malloc-gnu (configure.ac): ... to here.
53032         * modules/malloc-posix (configure.ac): ... and here.
53034 2011-05-21  Bruno Haible  <bruno@clisp.org>
53036         lstat, openat: Respect rules for use of AC_LIBOBJ.
53037         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
53038         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
53039         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
53040         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
53041         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
53042         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
53043         here.
53044         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
53046 2011-05-21  Bruno Haible  <bruno@clisp.org>
53048         lseek: Move AC_LIBOBJ invocations to module description.
53049         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
53050         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53051         * modules/lseek (configure.ac): ... to here.
53053 2011-05-21  Bruno Haible  <bruno@clisp.org>
53055         linkat: Move AC_LIBOBJ invocations to module description.
53056         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
53057         here...
53058         * modules/linkat (configure.ac): ... to here.
53060 2011-05-21  Bruno Haible  <bruno@clisp.org>
53062         link: Respect rules for use of AC_LIBOBJ.
53063         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
53064         * modules/link (configure.ac): ... to here.
53066 2011-05-21  Bruno Haible  <bruno@clisp.org>
53068         lchown: Move AC_LIBOBJ invocations to module description.
53069         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53070         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53071         * modules/lchown (configure.ac): ... to here.
53073 2011-05-21  Bruno Haible  <bruno@clisp.org>
53075         iswctype: Move AC_LIBOBJ invocations to module description.
53076         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
53077         here...
53078         * modules/iswctype (configure.ac): ... to here.
53080 2011-05-21  Bruno Haible  <bruno@clisp.org>
53082         iswblank: Move AC_LIBOBJ invocations to module description.
53083         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
53084         here...
53085         * modules/iswblank (configure.ac): ... to here.
53087 2011-05-21  Bruno Haible  <bruno@clisp.org>
53089         atanl: Move AC_LIBOBJ invocations to module description.
53090         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
53091         * modules/atanl (configure.ac): ... to here.
53093 2011-05-21  Bruno Haible  <bruno@clisp.org>
53095         acosl: Move AC_LIBOBJ invocations to module description.
53096         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
53097         * modules/acosl (configure.ac): ... to here.
53099 2011-05-21  Bruno Haible  <bruno@clisp.org>
53101         asinl: Respect rules for use of AC_LIBOBJ.
53102         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
53103         * modules/asinl (configure.ac): ... to here.
53105 2011-05-21  Bruno Haible  <bruno@clisp.org>
53107         tanl: Move AC_LIBOBJ invocations to module description.
53108         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
53109         * modules/tanl (configure.ac): ... to here.
53111 2011-05-21  Bruno Haible  <bruno@clisp.org>
53113         cosl: Move AC_LIBOBJ invocations to module description.
53114         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
53115         * modules/cosl (configure.ac): ... to here.
53117 2011-05-21  Bruno Haible  <bruno@clisp.org>
53119         sinl: Move AC_LIBOBJ invocations to module description.
53120         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
53121         * modules/sinl (configure.ac): ... to here.
53123 2011-05-21  Bruno Haible  <bruno@clisp.org>
53125         logl: Move AC_LIBOBJ invocations to module description.
53126         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
53127         * modules/logl (configure.ac): ... to here.
53129 2011-05-21  Bruno Haible  <bruno@clisp.org>
53131         expl: Move AC_LIBOBJ invocations to module description.
53132         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
53133         * modules/expl (configure.ac): ... to here.
53135 2011-05-21  Bruno Haible  <bruno@clisp.org>
53137         roundl: Move AC_LIBOBJ invocations to module description.
53138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
53139         * modules/roundl (configure.ac): ... to here.
53141 2011-05-21  Bruno Haible  <bruno@clisp.org>
53143         round: Move AC_LIBOBJ invocations to module description.
53144         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
53145         * modules/round (configure.ac): ... to here.
53147 2011-05-21  Bruno Haible  <bruno@clisp.org>
53149         roundf: Move AC_LIBOBJ invocations to module description.
53150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
53151         * modules/roundf (configure.ac): ... to here.
53153 2011-05-21  Bruno Haible  <bruno@clisp.org>
53155         truncl: Move AC_LIBOBJ invocations to module description.
53156         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53157         * modules/truncl (configure.ac): ... to here.
53159 2011-05-21  Bruno Haible  <bruno@clisp.org>
53161         trunc: Move AC_LIBOBJ invocations to module description.
53162         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
53163         * modules/trunc (configure.ac): ... to here.
53165 2011-05-21  Bruno Haible  <bruno@clisp.org>
53167         truncf: Move AC_LIBOBJ invocations to module description.
53168         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
53169         * modules/truncf (configure.ac): ... to here.
53171 2011-05-21  Bruno Haible  <bruno@clisp.org>
53173         ceill: Move AC_LIBOBJ invocations to module description.
53174         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
53175         * modules/ceill (configure.ac): ... to here.
53177 2011-05-21  Bruno Haible  <bruno@clisp.org>
53179         ceil: Move AC_LIBOBJ invocations to module description.
53180         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
53181         * modules/ceil (configure.ac): ... to here.
53183 2011-05-21  Bruno Haible  <bruno@clisp.org>
53185         ceilf: Move AC_LIBOBJ invocations to module description.
53186         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
53187         * modules/ceilf (configure.ac): ... to here.
53189 2011-05-21  Bruno Haible  <bruno@clisp.org>
53191         floorl: Respect rules for use of AC_LIBOBJ.
53192         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53193         * modules/floorl (configure.ac): ... to here.
53195 2011-05-21  Bruno Haible  <bruno@clisp.org>
53197         floor: Respect rules for use of AC_LIBOBJ.
53198         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
53199         * modules/floor (configure.ac): ... to here.
53201 2011-05-21  Bruno Haible  <bruno@clisp.org>
53203         floorf: Move AC_LIBOBJ invocations to module description.
53204         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53205         * modules/floorf (configure.ac): ... to here.
53207 2011-05-20  Bruno Haible  <bruno@clisp.org>
53209         sqrtl: Respect rules for use of AC_LIBOBJ.
53210         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
53211         * modules/sqrtl (configure.ac): ... to here.
53213 2011-05-20  Bruno Haible  <bruno@clisp.org>
53215         ldexpl: Respect rules for use of AC_LIBOBJ.
53216         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
53217         * modules/ldexpl (configure.ac): ... to here.
53219 2011-05-20  Bruno Haible  <bruno@clisp.org>
53221         frexpl*: Respect rules for use of AC_LIBOBJ.
53222         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
53223         invocation from here...
53224         * modules/frexpl (configure.ac): ... to here.
53225         * modules/frexpl-nolibm (configure.ac): ... and here.
53227 2011-05-20  Bruno Haible  <bruno@clisp.org>
53229         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
53230         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
53231         invocation from here...
53232         * modules/frexp (configure.ac): ... to here.
53233         * modules/frexp-nolibm (configure.ac): ... and here.
53235 2011-05-20  Bruno Haible  <bruno@clisp.org>
53237         isnan: Respect rules for use of AC_LIBOBJ.
53238         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
53239         invocations here.
53240         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53241         REPLACE_ISNAN.
53242         * modules/isnand (configure.ac): Likewise.
53243         * modules/isnanl (configure.ac): Likewise.
53245 2011-05-20  Bruno Haible  <bruno@clisp.org>
53247         isnanl*: Respect rules for use of AC_LIBOBJ.
53248         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
53249         invocation from here...
53250         * modules/isnanl (configure.ac): ... to here.
53251         * modules/isnanl-nolibm (configure.ac): ... and here.
53253 2011-05-20  Bruno Haible  <bruno@clisp.org>
53255         isnand*: Move AC_LIBOBJ invocations to module description.
53256         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
53257         invocation from here...
53258         * modules/isnand (configure.ac): ... to here.
53259         * modules/isnand-nolibm (configure.ac): ... and here.
53261 2011-05-20  Bruno Haible  <bruno@clisp.org>
53263         isnanf*: Move AC_LIBOBJ invocations to module description.
53264         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
53265         invocation from here...
53266         * modules/isnanf (configure.ac): ... to here.
53267         * modules/isnanf-nolibm (configure.ac): ... and here.
53269 2011-05-20  Bruno Haible  <bruno@clisp.org>
53271         isnan*: Separate the AC_LIBOBJ invocations.
53272         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
53273         AC_LIBOBJ invocation.
53274         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
53275         here.
53276         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
53277         AC_LIBOBJ invocation.
53278         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
53279         here.
53280         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
53281         AC_LIBOBJ invocation.
53282         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
53283         here.
53284         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
53286 2011-05-08  Bruno Haible  <bruno@clisp.org>
53288         isinf: Move AC_LIBOBJ invocations to module description.
53289         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
53290         * modules/isinf (configure.ac): ... to here.
53292 2011-05-08  Bruno Haible  <bruno@clisp.org>
53294         isfinite: Move AC_LIBOBJ invocations to module description.
53295         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
53296         * modules/isfinite (configure.ac): ... to here.
53298 2011-05-08  Bruno Haible  <bruno@clisp.org>
53300         isblank: Move AC_LIBOBJ invocations to module description.
53301         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
53302         here...
53303         * modules/isblank (configure.ac): ... to here.
53305 2011-05-08  Bruno Haible  <bruno@clisp.org>
53307         isapipe: Move AC_LIBOBJ invocations to module description.
53308         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
53309         gl_PREREQ_ISAPIPE invocations from here...
53310         * modules/isapipe (configure.ac): ... to here.
53311         (Depends-on): Update condition.
53313 2011-05-08  Bruno Haible  <bruno@clisp.org>
53315         ioctl: Move AC_LIBOBJ invocations to module description.
53316         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
53317         invocations from here...
53318         * modules/ioctl (configure.ac): ... to here.
53319         (Depends-on): Update condition.
53321 2011-05-08  Bruno Haible  <bruno@clisp.org>
53323         imaxdiv: Move AC_LIBOBJ invocations to module description.
53324         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
53325         invocations from here...
53326         * modules/imaxdiv (configure.ac): ... to here.
53328 2011-05-08  Bruno Haible  <bruno@clisp.org>
53330         imaxabs: Move AC_LIBOBJ invocations to module description.
53331         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
53332         invocations from here...
53333         * modules/imaxabs (configure.ac): ... to here.
53335 2011-05-08  Bruno Haible  <bruno@clisp.org>
53337         getaddrinfo: Move AC_LIBOBJ invocations to module description.
53338         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
53339         AC_LIBOBJ invocations from here...
53340         * modules/getaddrinfo (configure.ac): ... to here.
53341         (Depends-on): Add conditions.
53343 2011-05-08  Bruno Haible  <bruno@clisp.org>
53345         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53346         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
53347         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53348         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
53349         (gl_PREREQ_INET_PTON): ... from here.
53350         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
53351         gl_PREREQ_INET_PTON here.
53352         (Depends-on): Update condition.
53354 2011-05-08  Bruno Haible  <bruno@clisp.org>
53356         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53357         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
53358         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53359         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
53360         (gl_PREREQ_INET_NTOP): ... from here.
53361         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53362         gl_PREREQ_INET_NTOP here.
53363         (Depends-on): Update condition.
53365 2011-05-08  Bruno Haible  <bruno@clisp.org>
53367         iconv_open: Move AC_LIBOBJ invocations to module description.
53368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53369         AC_LIBOBJ invocations from here...
53370         * modules/iconv_open (configure.ac): ... to here.
53372 2011-05-08  Bruno Haible  <bruno@clisp.org>
53374         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53375         If module 'iconv_open' is among the main modules and module
53376         'iconv_open-utf' is among the tests dependencies, then
53377         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53378         return the special iconv_t values. Therefore iconv() and iconv_close()
53379         must support these special iconv_t values, already in lib, not only in
53380         tests.
53381         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53382         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53383         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53384         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53385         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53386         (Depends-on): Add the dependencies of iconv_open-utf.
53387         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53388         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53389         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53391 2011-05-08  Bruno Haible  <bruno@clisp.org>
53393         group-member: Move AC_LIBOBJ invocations to module description.
53394         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53395         gl_PREREQ_GROUP_MEMBER invocations from here...
53396         * modules/group-member (configure.ac): ... to here.
53398 2011-05-08  Bruno Haible  <bruno@clisp.org>
53400         grantpt: Move AC_LIBOBJ invocations to module description.
53401         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53402         invocations from here...
53403         * modules/grantpt (configure.ac): ... to here.
53405 2011-05-08  Bruno Haible  <bruno@clisp.org>
53407         glob: Move AC_LIBOBJ invocations to module description.
53408         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53409         from here...
53410         * modules/glob (configure.ac): ... to here.
53412 2011-05-08  Bruno Haible  <bruno@clisp.org>
53414         getusershell: Move AC_LIBOBJ invocations to module description.
53415         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53416         Move AC_LIBOBJ invocation from here...
53417         * modules/getusershell (configure.ac): ... to here.
53418         (Depends-on): Update condition.
53420 2011-05-08  Bruno Haible  <bruno@clisp.org>
53422         gettimeofday: Move AC_LIBOBJ invocations to module description.
53423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53424         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53425         gl_PREREQ_GETTIMEOFDAY invocations from here...
53426         * modules/gettimeofday (configure.ac): ... to here.
53428 2011-05-08  Bruno Haible  <bruno@clisp.org>
53430         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53431         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53432         just gl_FUNC_TZSET.
53433         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53434         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53436         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53438 2011-05-08  Bruno Haible  <bruno@clisp.org>
53440         getsubopt: Move AC_LIBOBJ invocations to module description.
53441         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53442         gl_PREREQ_GETSUBOPT invocations from here...
53443         * modules/getsubopt (configure.ac): ... to here.
53445 2011-05-08  Bruno Haible  <bruno@clisp.org>
53447         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53448         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53449         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53450         * modules/getpass-gnu (configure.ac): ... to here.
53452 2011-05-08  Bruno Haible  <bruno@clisp.org>
53454         getpass: Move AC_LIBOBJ invocations to module description.
53455         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53456         gl_PREREQ_GETPASS invocations from here...
53457         * modules/getpass (configure.ac): ... to here.
53459 2011-05-08  Bruno Haible  <bruno@clisp.org>
53461         getpagesize: Move AC_LIBOBJ invocations to module description.
53462         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53463         from here...
53464         * modules/getpagesize (configure.ac): ... to here.
53466 2011-05-08  Bruno Haible  <bruno@clisp.org>
53468         getopt: Move AC_LIBOBJ invocations to module description.
53469         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53470         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53471         invocations from here...
53472         * modules/getopt-gnu (configure.ac): ... to here.
53473         * modules/getopt-posix (configure.ac): ... and here.
53474         (Depends-on): Update condition.
53476 2011-05-08  Bruno Haible  <bruno@clisp.org>
53478         getopt, argp: Respect rules for use of AC_LIBOBJ.
53479         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
53480         (gl_REPLACE_GETOPT_ALWAYS): New macro.
53481         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
53482         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
53484 2011-05-08  Bruno Haible  <bruno@clisp.org>
53486         getlogin_r: Move AC_LIBOBJ invocations to module description.
53487         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
53488         gl_PREREQ_GETLOGIN_R invocations from here...
53489         * modules/getlogin_r (configure.ac): ... to here.
53491 2011-05-08  Bruno Haible  <bruno@clisp.org>
53493         getlogin: Move AC_LIBOBJ invocations to module description.
53494         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
53495         here...
53496         * modules/getlogin (configure.ac): ... to here.
53498 2011-05-08  Bruno Haible  <bruno@clisp.org>
53500         getloadavg: Move AC_LIBOBJ invocations to module description.
53501         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
53502         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
53503         * modules/getloadavg (configure.ac): ... to here.
53505 2011-05-08  Bruno Haible  <bruno@clisp.org>
53507         gethrxtime: Move AC_LIBOBJ invocations to module description.
53508         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
53509         LIB_GETHRXTIME from here...
53510         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
53511         invocations from here...
53512         * modules/gethrxtime (configure.ac): ... to here.
53514 2011-05-08  Bruno Haible  <bruno@clisp.org>
53516         gethostname: Move AC_LIBOBJ invocations to module description.
53517         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
53518         gl_PREREQ_GETHOSTNAME invocations from here...
53519         * modules/gethostname (configure.ac): ... to here.
53521 2011-05-08  Bruno Haible  <bruno@clisp.org>
53523         getgroups: Move AC_LIBOBJ invocations to module description.
53524         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
53525         here...
53526         * modules/getgroups (configure.ac): ... to here.
53528 2011-05-08  Bruno Haible  <bruno@clisp.org>
53530         getdtablesize: Move AC_LIBOBJ invocations to module description.
53531         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
53532         invocation from here...
53533         * modules/getdtablesize (configure.ac): ... to here.
53535 2011-05-08  Bruno Haible  <bruno@clisp.org>
53537         getdomainname: Move AC_LIBOBJ invocations to module description.
53538         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
53539         gl_PREREQ_GETDOMAINNAME invocations from here...
53540         * modules/getdomainname (configure.ac): ... to here.
53542 2011-05-08  Bruno Haible  <bruno@clisp.org>
53544         getline: Move AC_LIBOBJ invocations to module description.
53545         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
53546         invocations from here...
53547         * modules/getline (configure.ac): ... to here.
53549 2011-05-08  Bruno Haible  <bruno@clisp.org>
53551         getline: Simplify.
53552         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
53553         It's already handled through the module dependency.
53555 2011-05-08  Bruno Haible  <bruno@clisp.org>
53557         getdelim: Move AC_LIBOBJ invocations to module description.
53558         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
53559         and gl_PREREQ_GETDELIM invocations from here...
53560         * modules/getdelim (configure.ac): ... to here.
53561         (Depends-on): Fix condition.
53563 2011-05-08  Bruno Haible  <bruno@clisp.org>
53565         getcwd: Move AC_LIBOBJ invocations to module description.
53566         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
53567         invocations from here...
53568         * modules/getcwd (configure.ac): ... to here.
53570 2011-05-08  Bruno Haible  <bruno@clisp.org>
53572         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
53573         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
53574         here...
53575         * modules/getcwd-lgpl (configure.ac): ... to here.
53577 2011-05-07  Bruno Haible  <bruno@clisp.org>
53579         crypto/gc: Move AC_LIBOBJ invocations to module description.
53580         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
53581         * modules/crypto/gc (configure.ac): ... to here.
53583 2011-05-07  Bruno Haible  <bruno@clisp.org>
53585         fwriting: Move AC_LIBOBJ invocations to module description.
53586         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
53587         here...
53588         * modules/fwriting (configure.ac): ... to here.
53590 2011-05-07  Bruno Haible  <bruno@clisp.org>
53592         fwritable: Move AC_LIBOBJ invocations to module description.
53593         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53594         here...
53595         * modules/fwritable (configure.ac): ... to here.
53597 2011-05-07  Bruno Haible  <bruno@clisp.org>
53599         futimens: Move AC_LIBOBJ invocations to module description.
53600         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
53601         here...
53602         * modules/futimens (configure.ac): ... to here.
53604 2011-05-07  Bruno Haible  <bruno@clisp.org>
53606         ftruncate: Move AC_LIBOBJ invocations to module description.
53607         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
53608         gl_PREREQ_FTRUNCATE invocations from here...
53609         * modules/ftruncate (configure.ac): ... to here.
53611 2011-05-07  Bruno Haible  <bruno@clisp.org>
53613         fsync: Move AC_LIBOBJ invocations to module description.
53614         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53615         invocations from here...
53616         * modules/fsync (configure.ac): ... to here.
53618 2011-05-07  Bruno Haible  <bruno@clisp.org>
53620         fsusage: Move AC_LIBOBJ invocations to module description.
53621         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
53622         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
53623         * modules/fsusage (configure.ac): ... to here.
53625 2011-05-07  Bruno Haible  <bruno@clisp.org>
53627         freopen: Move AC_LIBOBJ invocations to module description.
53628         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
53629         invocations from here...
53630         * modules/freopen (configure.ac): ... to here.
53632 2011-05-07  Bruno Haible  <bruno@clisp.org>
53634         free: Move AC_LIBOBJ invocations to module description.
53635         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
53636         invocations from here...
53637         * modules/free (configure.ac): ... to here.
53639 2011-05-07  Bruno Haible  <bruno@clisp.org>
53641         freadable: Move AC_LIBOBJ invocations to module description.
53642         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
53643         here...
53644         * modules/freadable (configure.ac): ... to here.
53646 2011-05-07  Bruno Haible  <bruno@clisp.org>
53648         fpurge: Move AC_LIBOBJ invocations to module description.
53649         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
53650         invocations from here...
53651         * modules/fpurge (configure.ac): ... to here.
53653 2011-05-07  Bruno Haible  <bruno@clisp.org>
53655         fpending: Move AC_LIBOBJ invocations to module description.
53656         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
53657         gl_FUNC_FPENDING.
53658         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
53659         invocations from here...
53660         * modules/fpending (configure.ac): ... to here.
53662 2011-05-07  Bruno Haible  <bruno@clisp.org>
53664         fopen: Move AC_LIBOBJ invocations to module description.
53665         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
53666         invocations from here...
53667         * modules/fopen (configure.ac): ... to here.
53669 2011-05-07  Bruno Haible  <bruno@clisp.org>
53671         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
53672         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
53673         gl_FUNC_FNMATCH_POSIX.
53674         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
53675         invocations from here...
53676         * modules/fnmatch (configure.ac): ... to here.
53677         * modules/fnmatch-gnu (configure.ac): ... and here.
53679 2011-05-07  Bruno Haible  <bruno@clisp.org>
53681         flock: Move AC_LIBOBJ invocations to module description.
53682         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53683         invocations from here...
53684         * modules/flock (configure.ac): ... to here.
53686 2011-05-07  Bruno Haible  <bruno@clisp.org>
53688         fileblocks: Move AC_LIBOBJ invocations to module description.
53689         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53690         gl_PREREQ_FILEBLOCKS invocations from here...
53691         * modules/fileblocks (configure.ac): ... to here.
53693 2011-05-06  Bruno Haible  <bruno@clisp.org>
53695         fflush: Move AC_LIBOBJ invocations to module description.
53696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53697         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53698         invocations from here...
53699         * modules/fflush (configure.ac): ... to here.
53701 2011-05-06  Bruno Haible  <bruno@clisp.org>
53703         fdopendir: Move AC_LIBOBJ invocations to module description.
53704         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53705         here...
53706         * modules/fdopendir (configure.ac): ... to here.
53707         (Depends-on): Improve conditions.
53709 2011-05-06  Bruno Haible  <bruno@clisp.org>
53711         _Exit: Move AC_LIBOBJ invocations to module description.
53712         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53713         invocations from here...
53714         * modules/_Exit (configure.ac): ... to here.
53716 2011-05-21  Bruno Haible  <bruno@clisp.org>
53718         euidaccess: Respect rules for use of AC_LIBOBJ.
53719         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53721         from here...
53722         * modules/euidaccess (configure.ac): ... to here.
53724 2011-05-06  Bruno Haible  <bruno@clisp.org>
53726         error: Move AC_LIBOBJ invocations to module description.
53727         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53728         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53729         invocations from here...
53730         * modules/error (configure.ac): ... to here.
53732 2011-05-06  Bruno Haible  <bruno@clisp.org>
53734         duplocale: Move AC_LIBOBJ invocations to module description.
53735         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53736         gl_PREREQ_DUPLOCALE invocations from here...
53737         * modules/duplocale (configure.ac): ... to here.
53739 2011-05-05  Bruno Haible  <bruno@clisp.org>
53741         dirfd: Move AC_LIBOBJ invocations to module description.
53742         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53743         gl_FUNC_DIRFD.
53744         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53745         here...
53746         * modules/dirfd (configure.ac): ... to here.
53747         (Depends-on): Fix condition.
53749 2011-05-05  Bruno Haible  <bruno@clisp.org>
53751         chown: Respect rules for use of AC_LIBOBJ.
53752         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53753         * modules/chown (configure.ac): ... to here.
53755 2011-05-05  Bruno Haible  <bruno@clisp.org>
53757         chdir-long: Move AC_LIBOBJ invocations to module description.
53758         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53759         gl_PREREQ_CHDIR_LONG invocations from here...
53760         * modules/chdir-long (configure.ac): ... to here.
53762 2011-05-05  Bruno Haible  <bruno@clisp.org>
53764         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53765         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53766         from here...
53767         * modules/canonicalize-lgpl (configure.ac): ... to here.
53769 2011-05-05  Bruno Haible  <bruno@clisp.org>
53771         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53772         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53773         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53774         REPLACE_CALLOC.
53775         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53776         * modules/calloc-gnu (configure.ac): Likewise.
53778 2011-05-05  Bruno Haible  <bruno@clisp.org>
53780         btowc: Move AC_LIBOBJ invocations to module description.
53781         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53782         invocations from here...
53783         * modules/btowc (configure.ac): ... to here.
53785 2011-05-21  Bruno Haible  <bruno@clisp.org>
53787         atexit: Move AC_LIBOBJ invocations to module description.
53788         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53789         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53790         here...
53791         * modules/atexit (configure.ac): ... to here.
53793 2011-05-05  Bruno Haible  <bruno@clisp.org>
53795         atoll: Move AC_LIBOBJ invocations to module description.
53796         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53797         invocations from here...
53798         * modules/atoll (configure.ac): ... to here.
53800 2011-05-05  Bruno Haible  <bruno@clisp.org>
53802         argz: Move AC_LIBOBJ invocations to module description.
53803         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53804         * modules/argz (configure.ac): ... to here.
53806 2011-05-05  Bruno Haible  <bruno@clisp.org>
53808         alphasort: Move AC_LIBOBJ invocations to module description.
53809         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53810         gl_PREREQ_ALPHASORT invocations from here...
53811         * modules/alphasort (configure.ac): ... to here.
53813 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53815         verify: new macro verify_expr; verify_true deprecated
53816         * NEWS: Mention this.
53817         * doc/verify.texi (Compile-time Assertions): Document this.
53818         * lib/verify.h (verify_true): Deprecate.
53819         (verify_expr): New macro.
53820         * tests/test-verify.c (function): Test verify_expr.
53822 2011-06-14  Jim Meyering  <meyering@redhat.com>
53824         init.sh: give more portable redirection-related advice in a comment
53825         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53826         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53827         for lots of discussion.  Stefano Lattarini suggested the solution
53828         of putting "9>&2" after the command.  Reported by Bruno Haible.
53830 2011-06-13  Bruno Haible  <bruno@clisp.org>
53832         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53833         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53834         'none'.
53836 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53838         ftoastr: use strtof only if HAVE_STRTOF
53839         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53840         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53841         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53842         * modules/ftoastr (configure.ac): Check for strtof.
53844 2011-06-13  Bruno Haible  <bruno@clisp.org>
53846         gnulib-tool: Addendum to 2011-06-08 commit.
53847         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53848         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53850 2011-06-13  Bruno Haible  <bruno@clisp.org>
53852         fseeko: Provide a non-inline replacement of fseek().
53853         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53854         * modules/fseeko (Depends-on): Add fseek.
53855         * modules/fseek (License): Change to LGPLv2+.
53857 2011-06-13  Bruno Haible  <bruno@clisp.org>
53859         ftello: Provide a non-inline replacement of ftell().
53860         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53861         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53862         not have ftello() (such as on mingw).
53863         * modules/ftello (Depends-on): Add ftell.
53864         * modules/ftell (License): Change to LGPLv2+.
53866 2011-05-07  Bruno Haible  <bruno@clisp.org>
53868         ftell: Move AC_LIBOBJ invocations to module description.
53869         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53870         * modules/ftell (configure.ac): ... to here.
53872 2011-05-07  Bruno Haible  <bruno@clisp.org>
53874         ftello: Respect rules for use of AC_LIBOBJ.
53875         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53876         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53877         here...
53878         * modules/ftello (configure.ac): ... to here.
53880 2011-05-07  Bruno Haible  <bruno@clisp.org>
53882         fseeko: Simplify.
53883         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53884         (gl_FUNC_FSEEKO): Inline it here.
53886 2011-05-07  Bruno Haible  <bruno@clisp.org>
53888         fseek: Move AC_LIBOBJ invocations to module description.
53889         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53890         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53891         * modules/fseek (configure.ac): ... to here.
53893 2011-05-07  Bruno Haible  <bruno@clisp.org>
53895         fseek: Respect rules for use of AC_LIBOBJ.
53896         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53897         here...
53898         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53900 2011-05-07  Bruno Haible  <bruno@clisp.org>
53902         fseeko: Respect rules for use of AC_LIBOBJ.
53903         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53904         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53905         here...
53906         * modules/fseeko (configure.ac): ... to here.
53908 2011-06-13  Bruno Haible  <bruno@clisp.org>
53910         gnulib-tool: Allow comments in the 'Depends-on' section.
53911         * doc/gnulib.texi (Module description): Mention comment syntax in the
53912         Depends-on section.
53913         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53915 2011-06-13  Bruno Haible  <bruno@clisp.org>
53917         file-set.h: guard __attibute__ use, now that it's not always defined
53918         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53919         versions that support it.  This fixes a coreutils build failure with
53920         the vendor cc on HP-UX 11.31.
53922 2011-06-12  Bruno Haible  <bruno@clisp.org>
53924         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53925         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53926         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53927         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53928         (acl, aclsort): New declarations.
53929         (aclv_nontrivial): New declaration.
53930         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53931         (file_has_acl): Read also the second kind of HP-UX ACLs.
53932         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53933         kind of HP-UX ACLs if the first kind fails.
53934         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53935         second kind of HP-UX ACLs.
53936         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53937         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53938         agree.
53939         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53940         hpuxjfs.
53941         Handle hpuxjfs.
53942         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53943         hpuxjfs.
53944         Handle hpuxjfs.
53945         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53946         (func_test_same_acls): Use both lsacl and getacl.
53947         Handle hpuxjfs.
53948         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53949         (func_test_same_acls): Use both lsacl and getacl.
53950         Handle hpuxjfs.
53952 2011-06-12  Bruno Haible  <bruno@clisp.org>
53954         acl: Complete the 2010-08-10 fix.
53955         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53956         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53957         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53958         explicitly.
53959         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53960         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53962 2011-06-12  Bruno Haible  <bruno@clisp.org>
53964         spawn-pipe tests: Comments.
53965         * tests/test-spawn-pipe-child.c (main): Update comment.
53966         Reported by James Youngman <jay@gnu.org>.
53968 2011-06-11  James Youngman  <jay@gnu.org>
53970         New module 'stat-size'.
53971         * modules/stat-size: New module.  Provides macros for accessing
53972         file size information in instances of struct stat.  Depends on the
53973         fileblocks module because it calls st_blocks.
53974         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53975         * doc/gnulib.texi: Include stat-size.texi.
53976         * doc/stat-size.texi: Documentation for this module.
53977         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53978         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53979         AC_STRUCT_ST_BLOCKS.
53981 2011-06-09  Bruno Haible  <bruno@clisp.org>
53983         thread: Support pthreads-win32.
53984         * lib/glthread/thread.h (gl_thread_self): Define differently on
53985         pthreads-win32.
53986         (gl_null_thread): New declaration.
53987         (gl_thread_self_pointer): New macro.
53988         * lib/glthread/thread.c (gl_null_thread): New constant.
53989         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53990         gl_thread_self.
53991         * tests/test-tls.c: Likewise.
53992         Suggested by Paul Eggert. Reported by Eric Blake.
53994 2011-06-09  Bruno Haible  <bruno@clisp.org>
53996         thread: Fix confusion between NULL and 0.
53997         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53998         Reported by Paul Eggert.
54000 2011-06-09  Bruno Haible  <bruno@clisp.org>
54002         spawn-pipe tests: Avoid test failure on HP-UX 11.
54003         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
54004         is closed.
54006 2011-06-09  Bruno Haible  <bruno@clisp.org>
54008         acl tests: Fix compilation error on HP-UX 11.
54009         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
54011 2011-06-09  Bruno Haible  <bruno@clisp.org>
54013         rmdir: Avoid test failure on HP-UX 10.20.
54014         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
54015         EEXIST.
54017 2011-06-08  Eric Blake  <eblake@redhat.com>
54019         perror: fix test on mingw
54020         * modules/perror-tests (Depends-on): Add dup2.
54022         strerror_r-posix: fix on MacOS
54023         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
54024         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
54025         logic bug.
54026         * lib/strerror_r.c (strerror_r): Fix the bug.
54027         * lib/strerror.c (strerror): Likewise.
54028         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54029         problem.
54030         * doc/posix-functions/strerror.texi (strerror): Likewise.
54031         * doc/posix-functions/perror.texi (perror): Likewise.
54032         * tests/test-strerror.c (main): Enhance test.
54033         * tests/test-strerror_r.c (main): Likewise.
54035 2011-06-08  Bruno Haible  <bruno@clisp.org>
54037         gnulib-tool: Better isolation between different gnulib-tool invocations.
54038         * gnulib-tool: New option --witness-c-macro.
54039         (witness_c_macro): New variable.
54040         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
54041         AM_CPPFLAGS define it as a C macro.
54042         (func_emit_tests_Makefile_am): Likewise.
54043         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
54044         read it from there.
54045         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
54046         m4_define, not AC_DEFUN.
54047         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
54048         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
54049         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
54050         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
54051         s|...|...|, to substitute the values of the GNULIB_* module indicator
54052         variables.
54053         * modules/dirent (Makefile.am): Likewise.
54054         * modules/fcntl-h (Makefile.am): Likewise.
54055         * modules/iconv-h (Makefile.am): Likewise.
54056         * modules/langinfo (Makefile.am): Likewise.
54057         * modules/locale (Makefile.am): Likewise.
54058         * modules/math (Makefile.am): Likewise.
54059         * modules/netdb (Makefile.am): Likewise.
54060         * modules/poll-h (Makefile.am): Likewise.
54061         * modules/pty (Makefile.am): Likewise.
54062         * modules/search (Makefile.am): Likewise.
54063         * modules/signal (Makefile.am): Likewise.
54064         * modules/spawn (Makefile.am): Likewise.
54065         * modules/stdio (Makefile.am): Likewise.
54066         * modules/stdlib (Makefile.am): Likewise.
54067         * modules/string (Makefile.am): Likewise.
54068         * modules/sys_ioctl (Makefile.am): Likewise.
54069         * modules/sys_select (Makefile.am): Likewise.
54070         * modules/sys_socket (Makefile.am): Likewise.
54071         * modules/sys_stat (Makefile.am): Likewise.
54072         * modules/sys_times (Makefile.am): Likewise.
54073         * modules/sys_utsname (Makefile.am): Likewise.
54074         * modules/sys_wait (Makefile.am): Likewise.
54075         * modules/termios (Makefile.am): Likewise.
54076         * modules/time (Makefile.am): Likewise.
54077         * modules/unistd (Makefile.am): Likewise.
54078         * modules/wchar (Makefile.am): Likewise.
54080 2011-06-08  Eric Blake  <eblake@redhat.com>
54082         strerror: simplify replacement
54083         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
54084         * modules/strerror (configure.ac): No prereqs needed here...
54085         * modules/strerror-override (configure.ac): ...but this needs it.
54086         (Files): Add file for needed prereq macro.
54088 2011-06-08  Bruno Haible  <bruno@clisp.org>
54090         strerror_r-posix: Tweaks.
54091         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
54092         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
54093         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
54094         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
54095         (gl_FUNC_STRERROR_R): ... to here.
54096         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
54098 2011-06-07  Eric Blake  <eblake@redhat.com>
54100         perror: document fixed bugs
54101         * doc/posix-functions/perror.texi (perror): Document recent
54102         patches.
54104 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
54106         stat-time: get_stat_birthtime failure is better-defined
54107         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
54108         return a timestamp whose tv_sec and tv_nsec values are both -1.
54109         Previously, the spec said only that the tv_nsec value was negative.
54110         This upward-compatible change simplifies GNU tar a bit.
54112 2011-06-07  Eric Blake  <eblake@redhat.com>
54114         strerror_r-posix: work around cygwin 1.7.9
54115         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
54116         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
54117         bug without replacing strerror_r.
54118         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
54119         strerror_r is buggy, but without requiring strerror_r compilation.
54120         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
54122         test-perror: relax test to ignore cygwin bug
54123         * tests/test-perror2.c (main): Relax test on requiring detection
54124         of stream errors, and use unbuffered stream.
54125         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
54126         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
54127         * doc/posix-functions/fputc.texi (fputc): Likewise.
54128         * doc/posix-functions/fputs.texi (fputs): Likewise.
54129         * doc/posix-functions/fputws.texi (fputws): Likewise.
54130         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
54131         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
54132         * doc/posix-functions/getopt.texi (getopt): Likewise.
54133         * doc/posix-functions/perror.texi (perror): Likewise.
54134         * doc/posix-functions/printf.texi (printf): Likewise.
54135         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
54136         * doc/posix-functions/psignal.texi (psignal): Likewise.
54137         * doc/posix-functions/putc.texi (putc): Likewise.
54138         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
54139         Likewise.
54140         * doc/posix-functions/putchar.texi (putchar): Likewise.
54141         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
54142         Likewise.
54143         * doc/posix-functions/puts.texi (puts): Likewise.
54144         * doc/posix-functions/putwc.texi (putwc): Likewise.
54145         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
54146         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
54147         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54148         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
54149         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54150         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
54151         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
54152         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
54154 2011-05-22  Bruno Haible  <bruno@clisp.org>
54156         strerror: Move AC_LIBOBJ invocations to module description.
54157         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
54158         gl_PREREQ_STRERROR invocations from here...
54159         * modules/strerror (configure.ac): ... to here.
54161 2011-05-21  Bruno Haible  <bruno@clisp.org>
54163         perror: Use common idiom.
54164         * modules/perror (configure.ac): Reorder statements.
54166 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54168         tests: fix usage message in 'mktempd_'
54169         * tests/init.sh (mktempd_): In the usage message, use literal
54170         'mktempd_', not '$ME' (which is even undefined), as the name of
54171         the subroutine.
54173 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54175         tests init: new function 'fatal_', for hard errors
54176         Before this patch, the only way offered by tests/init.sh to
54177         properly signal a hard error was the `framework_failure_'
54178         function.  But the error message issued by that function,
54179         as its name would suggest, refers to a set-up failure in the
54180         testsuite, while hard errors can obviously also be due to
54181         other reasons.  The best way to fix this inconsistency is to
54182         introduce a new function with a more general error message.
54183         * tests/init.sh (fatal_): New function.
54185 2011-06-06  Eric Blake  <eblake@redhat.com>
54187         canonicalize-lgpl: use common idiom
54188         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
54189         over newer POSIX -Rf.
54190         Reported by Bruno Haible.
54192         canonicalize-lgpl: work around AIX realpath bug
54193         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54194         * doc/posix-functions/realpath.texi (realpath): Document it.
54195         Reported by Bruno Haible.
54197         strerror: work around FreeBSD bug
54198         * lib/strerror.c (strerror): Special case 0.
54199         Reported by Bruno Haible.
54201         strerror-override: avoid bloating errno module
54202         * modules/errno (Files, configure.ac): Move replacement strings...
54203         * modules/strerror-override: ...to new module.
54204         * modules/strerror (Depends-on): Add strerror-override.
54205         * modules/strerror_r-posix (Depends-on): Likewise.
54206         * MODULES.html.sh: Document new module.
54207         Reported by Bruno Haible.
54209 2011-06-06  Bruno Haible  <bruno@clisp.org>
54211         spawn-pipe tests: Rename program.
54212         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
54213         * tests/test-spawn-pipe-child.c: Update comment.
54214         * tests/test-spawn-pipe.sh: Update.
54215         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
54217         spawn-pipe tests: Link the child program only against libc.
54218         * tests/test-spawn-pipe-child.c: New file, extracted from
54219         tests/test-spawn-pipe.c.
54220         (main): Expect only one argument.
54221         (is_open): New function, copied from tests/test-pipe.c.
54222         * tests/test-spawn-pipe.c: Don't include <errno.h>.
54223         (child_main): Remove function.
54224         (test_pipe): Pass only one argument to the child program.
54225         (main): Remove child process code. Expect the child program's name as
54226         first argument.
54227         * tests/test-spawn-pipe.sh: Pass the child program's name as first
54228         argument.
54229         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
54230         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
54231         test-spawn-pipe-child against no libraries.
54233 2011-06-06  Bruno Haible  <bruno@clisp.org>
54235         careadlinkat: Avoid mismatch between ssize_t and int.
54236         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
54237         * lib/careadlinkat.c (careadlinkatcwd): Define always.
54239 2011-06-06  Jim Meyering  <meyering@redhat.com>
54241         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
54242         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
54243         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
54245 2011-06-05  Bruno Haible  <bruno@clisp.org>
54247         ansi-c++-opt: Interoperability with libtool.
54248         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
54249         set the variable to "no", not to ":".
54250         * NEWS: Mention the change.
54252 2011-06-05  Bruno Haible  <bruno@clisp.org>
54254         acl: Fix test failure on AIX 7.
54255         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54256         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
54258 2011-06-05  Bruno Haible  <bruno@clisp.org>
54260         pipe-filter-ii: Fix test failure on AIX and IRIX.
54261         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
54262         with EAGAIN, retry with a smaller buffer size.
54264 2011-06-05  Bruno Haible  <bruno@clisp.org>
54266         localename: Fix link dependencies.
54267         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
54268         * modules/localename-tests (Makefile.am): Link test-localename with
54269         $(LIBTHREAD).
54271 2011-06-05  Bruno Haible  <bruno@clisp.org>
54273         error: Avoid gcc warning.
54274         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
54276 2011-06-05  Bruno Haible  <bruno@clisp.org>
54278         unsetenv: Avoid gcc warning.
54279         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
54281 2011-06-05  Bruno Haible  <bruno@clisp.org>
54283         setenv: Avoid gcc warning.
54284         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54286 2011-06-05  Bruno Haible  <bruno@clisp.org>
54288         sys_select: Ensure memset is declared also on AIX 7.
54289         * lib/sys_select.in.h: Include <string.h> also on AIX.
54290         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
54291         self-contained also on AIX 7.1.
54293 2011-06-04  Jim Meyering  <meyering@redhat.com>
54295         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
54296         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
54297         function name, "error".
54298         (_gl_translatable_diag_func_re): New configurable variable.
54300 2011-06-04  Bruno Haible  <bruno@clisp.org>
54302         getopt: Avoid gcc warning.
54303         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
54305 2011-06-04  Bruno Haible  <bruno@clisp.org>
54307         strerror_r: Fix comments.
54308         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
54309         commit.
54311 2011-06-04  Bruno Haible  <bruno@clisp.org>
54313         perror: Fix compilation error.
54314         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
54315         Undefine fprintf, not sprintf.
54316         * modules/perror (Depends-on): Remove intprops, verify.
54318 2011-06-04  Bruno Haible  <bruno@clisp.org>
54320         setlocale: Enable replacement on Cygwin 1.5.
54321         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
54322         Cygwin 1.5.x.
54323         * doc/posix-functions/setlocale.texi: Mention that the problem with the
54324         LC_CTYPE category also exists on Cygwin 1.5.x.
54326 2011-06-04  Bruno Haible  <bruno@clisp.org>
54328         strerror-override: Don't disable symbol renamings.
54329         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
54330         * lib/strerror-override.c: Include config.h.
54331         (strerror_override): Don't undefine.
54333 2011-06-03  Bruno Haible  <bruno@clisp.org>
54335         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
54336         * lib/localename.h: Update copyright header.
54337         * lib/localename.c: Likewise.
54338         * lib/relocatable.h: Likewise.
54339         * lib/relocatable.c: Likewise.
54341 2011-06-02  Bruno Haible  <bruno@clisp.org>
54343         doc: Fix a module name.
54344         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
54346 2011-06-02  Bruno Haible  <bruno@clisp.org>
54348         pipe2: Remove dependency on 'nonblocking' module.
54349         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
54350         O_NONBLOCK is defined by gnulib.
54351         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
54352         is zero.
54353         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
54354         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
54355         defined by gnulib.
54356         (get_nonblocking_flag): New function.
54357         (main): Test O_NONBLOCK flag only if it is nonzero.
54358         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
54360 2011-06-03  Jim Meyering  <meyering@redhat.com>
54362         maint: three new prohibit-header-without-use rules
54363         Prohibit use of cloexec.h, posixver.h, same.h without use.
54364         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54365         (sc_prohibit_posixver_without_use): Likewise.
54366         (sc_prohibit_same_without_use): Likewise.
54368 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54370         allocator: 'die' routine is now given requested size
54371         * lib/allocator.h (struct allocator.die): New size arg.
54372         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54373         If the actual problem is an ssize_t limitation, not a size_t or
54374         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54376 2011-06-01  Eric Blake  <eblake@redhat.com>
54378         strerror: drop strerror_r dependency
54379         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54380         * lib/strerror-override.c (strerror_override): ...to new file.
54381         * lib/strerror-override.h: Add prototype.
54382         * lib/strerror-impl.h: Delete.
54383         * lib/strerror.c (strerror): New implementation.
54384         * modules/errno (Files): Add new files.
54385         (configure.ac): Compile new file as appropriate.
54386         * modules/strerror (Files): Drop unused file.
54387         (Depends-on): Drop strerror_r-posix.
54388         * MODULES.html.sh: Document strerror_r-posix.
54389         Requested by Sam Steingold.
54391         perror: call strerror_r directly
54392         * modules/perror (Files): Drop strerror-impl.h.
54393         * lib/perror.c (perror): Use our own stack buffer, rather than
54394         calling a wrapper that uses static storage.
54395         * doc/posix-functions/perror.texi (perror): Document a limitation
54396         of our replacement.
54398         strerror_r: fix includes for FreeBSD
54399         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54400         since we use abort on some platforms.
54401         Reported by Matthias Bolte.
54403 2011-05-31  Bruno Haible  <bruno@clisp.org>
54405         Fix link errors in tests: openat-die uses gettext-h.
54406         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54407         against $(LIBINTL).
54408         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54409         against $(LIBINTL).
54410         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54411         $(LIBINTL).
54412         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54413         against $(LIBINTL).
54414         * modules/linkat-tests (Makefile.am): Link test-linkat against
54415         $(LIBINTL).
54416         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54417         $(LIBINTL).
54418         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54419         against $(LIBINTL).
54420         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54421         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54422         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54423         $(LIBINTL).
54424         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54425         $(LIBINTL).
54426         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54427         $(LIBINTL).
54428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54430 2011-05-31  Bruno Haible  <bruno@clisp.org>
54432         Fix link errors in tests: wait-process uses gettext-h.
54433         * modules/nonblocking-pipe-tests (Makefile.am): Set
54434         test_nonblocking_pipe_main_LDADD.
54435         * modules/nonblocking-socket-tests (Makefile.am): Link
54436         test-nonblocking-socket-main against $(LIBINTL).
54437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54439 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54441         assert-h: work around 'verify' incompatibility
54442         * lib/verify.h: Use @...@ directives, not ifdef.
54443         * modules/assert-h (assert.h): Implement the directives.
54444         (assert.h): Substitute the symbol-prefix more consistently.
54446 2011-05-29  Jim Meyering  <meyering@redhat.com>
54448         trim: remove three superfluous assignments
54449         * lib/trim.c (trim2): Remove three superfluous assignments
54450         and correct brace positioning.
54452 2011-05-29  Bruno Haible  <bruno@clisp.org>
54454         wctype-h: Avoid namespace pollution on Solaris 2.6.
54455         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54456         identifiers.
54457         * doc/posix-headers/wctype.texi: Mention the problem.
54458         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54460 2011-05-28  Jim Meyering  <meyering@redhat.com>
54462         parse-datetime.y: accommodate -Wstrict-overflow
54463         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54464         placate -Wstrict-overflow.
54466         trim: avoid a warning from -O2 -Wstrict-overflow
54467         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54469 2011-05-29  Bruno Haible  <bruno@clisp.org>
54471         gnulib-tool: Fix bug in yesterday's commit.
54472         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
54473         twice.
54475 2011-05-29  Bruno Haible  <bruno@clisp.org>
54477         Allow multiple gnulib generated include files to be combined.
54478         * gnulib-tool (func_compute_include_guard_prefix): New function.
54479         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
54480         ${gl_include_guard_prefix} references.
54481         (func_import, func_create_testdir): Invoke
54482         func_compute_include_guard_prefix.
54483         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
54484         * lib/ctype.in.h: Likewise.
54485         * lib/dirent.in.h: Likewise.
54486         * lib/errno.in.h: Likewise.
54487         * lib/fcntl.in.h: Likewise.
54488         * lib/float.in.h: Likewise.
54489         * lib/getopt.in.h: Likewise.
54490         * lib/iconv.in.h: Likewise.
54491         * lib/langinfo.in.h: Likewise.
54492         * lib/locale.in.h: Likewise.
54493         * lib/math.in.h: Likewise.
54494         * lib/netdb.in.h: Likewise.
54495         * lib/netinet_in.in.h: Likewise.
54496         * lib/poll.in.h: Likewise.
54497         * lib/pthread.in.h: Likewise.
54498         * lib/pty.in.h: Likewise.
54499         * lib/sched.in.h: Likewise.
54500         * lib/se-selinux.in.h: Likewise.
54501         * lib/search.in.h: Likewise.
54502         * lib/signal.in.h: Likewise.
54503         * lib/spawn.in.h: Likewise.
54504         * lib/stdarg.in.h: Likewise.
54505         * lib/stddef.in.h: Likewise.
54506         * lib/stdint.in.h: Likewise.
54507         * lib/stdio.in.h: Likewise.
54508         * lib/stdlib.in.h: Likewise.
54509         * lib/string.in.h: Likewise.
54510         * lib/strings.in.h: Likewise.
54511         * lib/sys_file.in.h: Likewise.
54512         * lib/sys_ioctl.in.h: Likewise.
54513         * lib/sys_select.in.h: Likewise.
54514         * lib/sys_socket.in.h: Likewise.
54515         * lib/sys_stat.in.h: Likewise.
54516         * lib/sys_time.in.h: Likewise.
54517         * lib/sys_times.in.h: Likewise.
54518         * lib/sys_uio.in.h: Likewise.
54519         * lib/sys_utsname.in.h: Likewise.
54520         * lib/sys_wait.in.h: Likewise.
54521         * lib/sysexits.in.h: Likewise.
54522         * lib/termios.in.h: Likewise.
54523         * lib/time.in.h: Likewise.
54524         * lib/unistd.in.h: Likewise.
54525         * lib/wchar.in.h: Likewise.
54526         * lib/wctype.in.h: Likewise.
54527         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
54528         * modules/ctype (Makefile.am): Likewise.
54529         * modules/dirent (Makefile.am): Likewise.
54530         * modules/errno (Makefile.am): Likewise.
54531         * modules/fcntl-h (Makefile.am): Likewise.
54532         * modules/float (Makefile.am): Likewise.
54533         * modules/getopt-posix (Makefile.am): Likewise.
54534         * modules/iconv-h (Makefile.am): Likewise.
54535         * modules/langinfo (Makefile.am): Likewise.
54536         * modules/locale (Makefile.am): Likewise.
54537         * modules/math (Makefile.am): Likewise.
54538         * modules/netdb (Makefile.am): Likewise.
54539         * modules/netinet_in (Makefile.am): Likewise.
54540         * modules/poll-h (Makefile.am): Likewise.
54541         * modules/pthread (Makefile.am): Likewise.
54542         * modules/pty (Makefile.am): Likewise.
54543         * modules/sched (Makefile.am): Likewise.
54544         * modules/search (Makefile.am): Likewise.
54545         * modules/selinux-h (Makefile.am): Likewise.
54546         * modules/signal (Makefile.am): Likewise.
54547         * modules/spawn (Makefile.am): Likewise.
54548         * modules/stdarg (Makefile.am): Likewise.
54549         * modules/stddef (Makefile.am): Likewise.
54550         * modules/stdint (Makefile.am): Likewise.
54551         * modules/stdio (Makefile.am): Likewise.
54552         * modules/stdlib (Makefile.am): Likewise.
54553         * modules/string (Makefile.am): Likewise.
54554         * modules/strings (Makefile.am): Likewise.
54555         * modules/sys_file (Makefile.am): Likewise.
54556         * modules/sys_ioctl (Makefile.am): Likewise.
54557         * modules/sys_select (Makefile.am): Likewise.
54558         * modules/sys_socket (Makefile.am): Likewise.
54559         * modules/sys_stat (Makefile.am): Likewise.
54560         * modules/sys_time (Makefile.am): Likewise.
54561         * modules/sys_times (Makefile.am): Likewise.
54562         * modules/sys_uio (Makefile.am): Likewise.
54563         * modules/sys_utsname (Makefile.am): Likewise.
54564         * modules/sys_wait (Makefile.am): Likewise.
54565         * modules/sysexits (Makefile.am): Likewise.
54566         * modules/termios (Makefile.am): Likewise.
54567         * modules/time (Makefile.am): Likewise.
54568         * modules/unistd (Makefile.am): Likewise.
54569         * modules/wchar (Makefile.am): Likewise.
54570         * modules/wctype-h (Makefile.am): Likewise.
54571         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
54573 2011-05-29  Bruno Haible  <bruno@clisp.org>
54575         assert-h: Allow multiple gnulib generated replacements to coexist.
54576         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
54578 2011-05-29  Bruno Haible  <bruno@clisp.org>
54580         argp: Allow coexistence with strerror_r-posix module.
54581         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
54582         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
54583         by gnulib's <string.h> replacement), assume it has the POSIX signature,
54584         not the glibc signature.
54586 2011-05-28  Bruno Haible  <bruno@clisp.org>
54588         gnulib-tool: Alternative structure of testdirs, similar to --import.
54589         * gnulib-tool: New option --single-configure.
54590         (func_usage): Document it.
54591         (single_configure): New variable.
54592         (func_modules_transitive_closure_separately,
54593         func_modules_transitive_closure_separately,
54594         func_determine_use_libtests, func_modules_add_dummy_separately,
54595         func_modules_to_filelist_separately): New functions, extracted from
54596         func_import.
54597         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
54598         (func_import): Use the new functions.
54599         (func_create_testdir): Set final_modules. Handle $single_configure =
54600         true case.
54602 2011-05-28  Bruno Haible  <bruno@clisp.org>
54604         getloadavg: Remove an unreliable safety check.
54605         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
54606         getloadavg.c is in place.
54607         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
54608         Reported by Sam Steingold <sds@gnu.org>.
54610 2011-05-28  Bruno Haible  <bruno@clisp.org>
54612         doc: Cleanup yet another file produced by texinfo.tex.
54613         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54615 2011-05-28  Bruno Haible  <bruno@clisp.org>
54617         Finish the conditional dependencies mechanism.
54618         * gnulib-tool: New option --no-conditional-dependencies.
54619         (func_usage): Document it. Don't mark --conditional-dependencies as
54620         experimental.
54621         (cond_dependencies): The possible values can now be true, false, empty.
54622         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
54623         (func_import): Store setting in gnulib-cache.m4 and read it from there.
54624         * doc/gnulib-tool.texi (Conditional dependencies): New section.
54626 2011-05-28  Bruno Haible  <bruno@clisp.org>
54628         doc: Use a recent texinfo.tex.
54629         * doc/Makefile (tex_opts): New variable.
54630         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
54632 2011-05-28  Jim Meyering  <meyering@redhat.com>
54634         intprops.h: adjust comment to match code change
54635         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
54636         only once, it *may* have side effects.  Also fix an unrelated typo.
54637         (_GL_INT_SIGNED): Likewise.
54639 2011-05-26  Simon Josefsson  <simon@josefsson.org>
54641         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
54643 2011-05-26  Bruno Haible  <bruno@clisp.org>
54645         mbsrchr: Avoid collision with system function on Interix.
54646         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
54647         Reported by Markus Duft <mduft@gentoo.org>.
54649 2011-05-15  James Youngman  <jay@gnu.org>
54651         getopt: for ambiguous options, enumerate the possibilities.
54652         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
54653         the ambiguous options when an ambiguous prefix is given. This was
54654         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
54655         glibc change was
54656         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
54658 2011-05-25  Eric Blake  <eblake@redhat.com>
54660         getcwd: work around mingw bug
54661         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
54662         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54663         Reported by Matthias Bolte.
54665 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
54667         test-intprops: disable -Wtype-limits diagnostics
54668         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
54669         diagnostics.  Otherwise, the integer overflow macros generate many
54670         diagnostics.  Reported by Jim Meyering in
54671         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54673         intprops: shorten, to pacify gcc -Woverlength-strings
54674         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
54675         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
54676         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
54677         likely to run afoul of C compiler limits for string constant lengths.
54678         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54680 2011-05-24  Eric Blake  <eblake@redhat.com>
54682         docs: document recently fixed glibc printf bug
54683         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54684         * doc/posix-functions/printf.texi (printf): Likewise.
54685         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54686         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54688         closein-tests: convert to init.sh
54689         * modules/closein-tests (Files): Add init.sh
54690         * tests/test-closein.sh Use it.
54692         yesno-tests: convert to init.sh
54693         * modules/yesno-tests (Files): Add init.sh.
54694         * tests/test-yesno.sh: Use it.
54696         atexit-tests: ensure reliable exit status
54697         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54698         Reported by Bruno Haible.
54700 2011-05-24  Bruno Haible  <bruno@clisp.org>
54702         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54704         gl_PREREQ_STRERROR_R invocations from here...
54705         * modules/strerror_r-posix (configure.ac): ... to here.
54707 2011-05-24  Eric Blake  <eblake@redhat.com>
54709         strerror_r: fix missing header
54710         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54712         strerror_r: fix AIX test failures
54713         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54714         ERANGE failure.
54716         strerror_r: fix Solaris test failures
54717         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54718         failures.
54719         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54721         strerror_r: enforce POSIX recommendations
54722         * lib/strerror_r.c (safe_copy): New helper method.
54723         (strerror_r): Guarantee a non-empty string.
54724         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54725         recent POSIX rulings and to match our strerror guarantees.
54726         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54728 2011-05-24  Jim Meyering  <meyering@redhat.com>
54730         test-perror2.c: avoid warning about unused variable
54731         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54733 2011-05-24  Eric Blake  <eblake@redhat.com>
54735         perror: avoid spurious test failure on HP-UX
54736         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54738         tests: fix logic bug in init.sh
54739         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54740         shell.
54742 2011-05-24  Jim Meyering  <meyering@redhat.com>
54744         utimensat: do not reference an out-of-scope buffer
54745         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54746         declared in an inner scope, yet "times" would be dereferenced outside
54747         the scope in which "ts" was valid.
54748         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54749         of ts[2] "out/up", so that the use of aliased "times" (via
54750         "times = ts;") does not end up referencing an out-of-scope "ts"
54752         opendir-safer.c: don't clobber errno; don't close negative FD
54753         * lib/opendir-safer.c (opendir_safer):
54754         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54755         file descriptor, and more importantly, don't clobber the
54756         offending errno value with EINVAL.  Before, upon failure
54757         of dup_safer, we would pass the negative file descriptor to
54758         fdopendir, which would clobber errno.
54760 2011-05-23  Bruno Haible  <bruno@clisp.org>
54762         idcache: Fix module description.
54763         * modules/idcache (Include): Set to "idcache.h".
54765 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54767         gnulib-tool: fix portability problem with MacOS sed
54768         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54769         before the "}".  Problem reported by Leo in
54770         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54771         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54772         sed_extract_condition1, sed_extract_condition2.
54774 2011-05-23  Bruno Haible  <bruno@clisp.org>
54776         hash: Simplify autoconf macro.
54777         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54779 2011-05-23  Bruno Haible  <bruno@clisp.org>
54781         getugroups: Fix module description.
54782         * modules/getugroups (Include): Set to "getugroups.h".
54784 2011-05-23  Bruno Haible  <bruno@clisp.org>
54786         linkat: Simplify autoconf macro.
54787         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54789 2011-05-23  Bruno Haible  <bruno@clisp.org>
54790             Eric Blake  <eblake@redhat.com>
54792         linkat, renameat: Update dependencies.
54793         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54794         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54795         symlinkat.
54797 2011-05-23  Jim Meyering  <meyering@redhat.com>
54799         maint.mk: more tight_scope improvements
54800         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54801         (_gl_TS_headers): Define only in if-0'd block.
54802         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54803         sometimes we must *not* use it.  Adjust uses accordingly.
54804         (sc_tight_scope): Use much simpler grep-based test to determine
54805         whether we skip this rule.
54807         maint.mk: generalize/improve the tight-scope rule
54808         * top/maint.mk: Emit a warning when the test is skipped.
54809         (_gl_TS_dir): Add $(srcdir)/ prefix.
54810         (_gl_TS_function_match): Simplify, rather than trying
54811         to enumerate common types.  Otherwise, it would fail to match an
54812         "extern unsigned char const *" declaration in idutils.
54813         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54814         a way to support use of that type of macro.
54815         (_gl_TS_var_match): Simplify regexp.
54816         (_gl_TS_obj_files): New configurable variable.
54817         (_gl_TS_headers): Likewise.
54819 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54821         verify: fix bug when gnulib <assert.h> is also included
54822         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54823         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54824         Perhaps there's a better way, but this fixes the immediate problem.
54825         Problem reported by Bruno Haible in
54826         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54828 2011-05-22  Bruno Haible  <bruno@clisp.org>
54830         xgetcwd: Simplify autoconf macro.
54831         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54833 2011-05-22  Bruno Haible  <bruno@clisp.org>
54835         New module 'mktime-internal'.
54836         * modules/mktime-internal: New file.
54837         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54838         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54839         mktime_internal as a C macro if libc has __mktime_internal.
54840         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54841         conditions.
54842         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54844 2011-05-22  Bruno Haible  <bruno@clisp.org>
54846         timegm: Correct mktime replacement statements.
54847         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54848         defining mktime as a C macro. This completes a 2009-07-28 commit.
54850 2011-05-22  Bruno Haible  <bruno@clisp.org>
54852         timegm: Simplify autoconf macro.
54853         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54855 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54857         clock-time: change to LGPLv2+.
54858         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54859         BSD-like but we have no mark for that; this is good enough for now.
54861 2011-05-21  Bruno Haible  <bruno@clisp.org>
54863         strerror_r: Fix comments.
54864         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54866 2011-05-21  Bruno Haible  <bruno@clisp.org>
54868         relocatable-prog-wrapper: Fix possible link error.
54869         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54870         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54871         (gl_FUNC_SETENV): ... to here.
54872         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54873         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54875 2011-05-21  Bruno Haible  <bruno@clisp.org>
54877         relocatable-prog-wrapper: Assume strerror() exists.
54878         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54879         m4/strerror.m4.
54880         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54881         * lib/relocwrapper.c: Remove mention of strerror module.
54882         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54883         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54884         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54885         C macro.
54887 2011-05-21  Bruno Haible  <bruno@clisp.org>
54889         select: Simplify replacement idiom.
54890         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54891         Win32 platforms.
54892         * lib/sys_select.in.h (select): Simplify accordingly.
54893         * modules/select (Depends-on): Likewise.
54895 2011-05-21  Bruno Haible  <bruno@clisp.org>
54897         mkdir-p: Simplify autoconf macro.
54898         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54899         gl_FUNC_LCHOWN.
54901 2011-05-21  Eric Blake  <eblake@redhat.com>
54903         strerror_r: avoid clobbering strerror on cygwin
54904         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54905         fall back instead to sys_errlist.
54906         * modules/strerror (configure.ac): Add witness.
54907         * tests/test-strerror_r.c (main): Enhance test.
54908         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54909         * tests/test-perror2.c (main): Free memory before exit.
54911 2011-05-21  Bruno Haible  <bruno@clisp.org>
54913         mkdtemp: Use gnulib naming conventions.
54914         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54915         * modules/mkdtemp (configure.ac): Update.
54917 2011-05-20  Eric Blake  <eblake@redhat.com>
54919         strerror_r: avoid corrupting errno on Solaris
54920         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54921         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54923         strerror_r: avoid compiler warning
54924         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54926         strerror_r: simplify AIX code
54927         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54929         test-perror: avoid spurious failure on FreeBSD
54930         * modules/perror-tests (Depends-on): Add strerror, now that
54931         strerror_r no longer pulls it in.
54933 2011-05-20  Bruno Haible  <bruno@clisp.org>
54935         strerror_r-posix: Remove unused dependencies.
54936         * modules/strerror_r-posix (Depends-on): Remove strerror.
54937         Reported by Eric Blake.
54939 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54941         intprops: remove assumption about A|B representation
54942         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54943         is a valid integer if both A and B are.  Although this is true for
54944         all known practical hosts, the C standard doesn't guarantee it,
54945         and the code need not assume it.  Also, this change may work around
54946         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54947         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54949 2011-05-20  Eric Blake  <eblake@redhat.com>
54951         perror: work around FreeBSD bug
54952         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54953         is broken.  Move AC_LIBOBJ...
54954         * modules/perror (configure.ac): Here.
54955         * doc/posix-functions/perror.texi (perror): Document this.
54956         * tests/test-perror2.c (main): Enhance test.
54958         test-perror: check for strerror interactions
54959         * tests/macros.h (STREQ): Add macro.
54960         * modules/perror-tests (Files): Add second test.
54961         * tests/test-perror2.c (main): New file.
54962         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54964         test-perror: rewrite to use init script
54965         * modules/perror-tests (Files): Add init.sh.
54966         * tests/test-perror.sh: Use temporary directory.
54968 2011-05-20  Jim Meyering  <meyering@redhat.com>
54970         maint: replace misused "a" with "an"
54971         * doc/intprops.texi: "a integer"
54972         * doc/regex.texi: "a explanation"
54973         * lib/alignof.h: "a object"
54974         * lib/argmatch.h: "a explanation"
54975         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54976         * lib/stdint.in.h: "a integer"
54977         * lib/userspec.c: "a owner"
54978         * doc/gnulib.texi: Fix "a idea", and reword.
54980 2011-05-19  Jim Meyering  <meyering@redhat.com>
54982         maint: correct misuse of "a" and "an"
54983         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54984         * lib/argp-help.c: "an docum...": s/an/a/
54985         * lib/argp-parse.c: "An vector": s/An/A/
54986         * lib/execute.c: "an native": s/an/a/
54987         * lib/spawn-pipe.c: Likewise.
54988         * lib/gc.h: "an Gc_rc": s/an/a/
54989         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54990         * lib/fts.c: "an stat.st_dev": s/an/a/
54992 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54994         intprops-tests: work around HP-UX 11.23 cc bug with constants
54995         * tests/test-intprops.c (VERIFY): New macro.
54996         (main): Use it, instead of verify, to work around the compiler bug; see
54997         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54999         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
55000         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
55001         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
55002         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
55003         (_GL_REMAINDER_OVERFLOW): Use it.
55005         intprops-tests: revert unsigned part of previous change
55006         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
55007         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
55008         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
55009         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
55011 2011-05-19  Bruno Haible  <bruno@clisp.org>
55013         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
55014         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
55015         strerror_r() returned without filling the buffer.
55016         Reported by Eric Blake.
55018 2011-05-19  Eric Blake  <eblake@redhat.com>
55020         strerror_r: guarantee unchanged errno
55021         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
55022         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
55023         failure.
55024         * tests/test-strerror_r.c (main): Enhance test.
55026 2011-05-19  Bruno Haible  <bruno@clisp.org>
55028         strerror_r: Reorder #if blocks.
55029         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
55030         for consistency with the previous commit.
55032 2011-05-19  Bruno Haible  <bruno@clisp.org>
55034         perror: Avoid clobbering the strerror buffer when possible.
55035         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
55036         * lib/strerror.c: Include it.
55037         * modules/strerror (Files): Add lib/strerror-impl.h.
55038         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
55039         (my_strerror): New function, defined through lib/strerror-impl.h.
55040         (perror): Use it instead of strerror.
55041         * modules/perror (Files): Add lib/strerror-impl.h.
55042         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
55044 2011-05-19  Eric Blake  <eblake@redhat.com>
55046         strerror_r: fix on newer cygwin
55047         * lib/strerror_r.c (strerror_r): Cygwin now has
55048         __xpg_strerror_r, use it.
55050 2011-05-19  Bruno Haible  <bruno@clisp.org>
55052         strerror_r: Avoid clobbering the strerror buffer when possible.
55053         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
55054         (sys_nerr, sys_errlist): New declarations.
55055         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
55056         HP-UX, native Win32, IRIX, and 32-bit Solaris.
55057         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
55059 2011-05-19  Bruno Haible  <bruno@clisp.org>
55061         strerror_r: Fix test failure on mingw.
55062         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
55063         EXTEND_STRERROR_R.
55064         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
55065         macros from errno.in.h instead.
55067 2011-05-19  Eric Blake  <eblake@redhat.com>
55069         strerror: relax test for Solaris
55070         * tests/test-strerror.c (main): Permit Solaris behavior.
55071         * tests/test-strerror_r.c (main): Likewise.
55073         strerror: enforce POSIX ruling on strerror(0)
55074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
55075         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
55076         * lib/strerror_r.c (rpl_strerror_r): Work around it.
55077         * doc/posix-functions/strerror.texi (strerror): Document it.
55078         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
55079         * tests/test-strerror.c (main): Strengthen test.
55080         * tests/test-strerror_r.c (main): Likewise.
55082 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55084         intprop-tests: port to older and more-pedantic compilers
55085         * modules/intprops-tests (Files): Add tests/macros.h.
55086         * tests/test-intprops.c: Include macros.h.
55087         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
55088         it's no longer documented to expand to an integer constant expression.
55089         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
55090         argument is floating point, as it's no longer documented to expand
55091         to an integer constant expression in that case.
55092         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
55093         compiler bugs reported by Bruno Haible.  See
55094         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55095         (U0, U1): New constants, to work around the same bugs.  Also,
55096         in tests, use e.g., "(unsigned int) 39" rather than "39u".
55098         intprops: work around C compiler bugs
55099         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
55100         bug in Sun C 5.11 2010/08/13 and other compilers; see
55101         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55103         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
55104         * doc/intprops.texi (Integer Type Determination): Fix
55105         documentation for TYPE_IS_INTEGER: it returns an constant
55106         expression, not an integer constant expression.  Fix doc for
55107         TYPE_SIGNED: it returns an integer constant expression only if its
55108         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
55109         hardly worth documented that way....)
55111 2011-05-18  Bruno Haible  <bruno@clisp.org>
55113         strerror_r: Avoid clobbering the strerror buffer when possible.
55114         * lib/strerror_r.c (strerror_r): Merge the three implementations.
55115         Handle gnulib defined errno values here. When strerror() returns NULL
55116         or an empty string, return EINVAL.
55117         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
55118         gnulib defined errno values here.
55119         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
55121 2011-05-18  Eric Blake  <eblake@redhat.com>
55123         fnmatch: avoid compiler warning
55124         * lib/fnmatch_loop.c (FCT): Use correct type.
55125         Reported by Matthias Bolte.
55127 2011-05-13  Jim Meyering  <meyering@redhat.com>
55129         maint.mk: three new prohibit_<HDR>_without_use rules
55130         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
55131         (sc_prohibit_stdio-safer_without_use): Likewise.
55132         (sc_prohibit_xfreopen_without_use): Likewise.
55134 2011-05-17  Jim Meyering  <meyering@redhat.com>
55136         announce-gen: fail if the NEWS delta is empty
55137         If there's nothing noteworthy in NEWS, then either you forgot
55138         or you shouldn't be releasing.
55139         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
55141 2011-05-17  Pádraig Brady  <P@draigBrady.com>
55143         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
55144         reserved symbols starting with double underscore from the check.
55146 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55148         intprops: add doc
55149         * doc/intprops.texi: New file, documenting intprops.
55150         * doc/gnulib.texi (Particular Modules): Include it.
55152         verify: add doc to gnulib manual and fix example
55153         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
55154         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
55155         (Compile-time Assertions): Fix example so it can't overflow.
55157 2011-05-17  Jim Meyering  <meyering@redhat.com>
55159         warnings.m4: don't usurp save_CPPFLAGS variable name
55160         * m4/warnings.m4: Prefix local temporary variable name with gl_.
55162         doc: fix typo
55163         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
55165 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55166             Bruno Haible  <bruno@clisp.org>
55168         doc: Tweak recent change.
55169         * README (Portability guidelines): Tweak new text.
55170         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
55171         Interix 6.1.
55173 2011-05-16  Eric Blake  <eblake@redhat.com>
55175         inttypes: avoid autoconf warning
55176         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
55177         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55179 2011-05-16  Sam Steingold  <sds@gnu.org>
55180         and Eric Blake  <eblake@redhat.com>
55182         vc-list-files: accept multiple directory operands
55183         * build-aux/vc-list-files: Iterate over all remaining operands.
55185 2011-05-16  Bruno Haible  <bruno@clisp.org>
55187         Fix confusion regarding deprecated modules.
55188         * modules/calloc (Status, Notice): Mark module as deprecated, not
55189         obsolete.
55190         * modules/fnmatch-posix (Status, Notice): Likewise.
55191         * modules/getdate (Status, Notice): Likewise.
55192         * modules/getopt (Status, Notice): Likewise.
55193         * modules/malloc (Status, Notice): Likewise.
55194         * modules/pipe (Status, Notice): Likewise.
55195         * modules/realloc (Status, Notice): Likewise.
55196         * modules/rename-dest-slash (Status, Notice): Likewise.
55197         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
55198         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
55199         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
55200         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
55201         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
55203 2011-05-16  Bruno Haible  <bruno@clisp.org>
55205         doc: List the target platforms.
55206         * doc/gnulib-intro.texi (Target Platforms): New section.
55207         * doc/gnulib.texi (Introduction): Update menu.
55208         * README (Portability guidelines): Refer to the new section. Update
55209         statement about oldest supported environment. Remove rationale why
55210         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
55211         unportable C89 function.
55212         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
55213         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
55215 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55217         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
55219 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55221         intprops-tests: new module
55222         * modules/intprops-tests, tests/test-intprops.c: New files.
55224         intprops: add safe, portable integer overflow checking
55225         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
55226         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
55227         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
55228         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
55229         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
55230         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
55231         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
55232         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
55233         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
55234         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
55235         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
55237 2011-05-12  James Youngman  <jay@gnu.org>
55239         Add a test for glibc's Bugzilla bug #12378.
55240         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
55241         doesn't allow the literal matching of a lone "[" (which is
55242         required by POSIX).
55243         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
55245 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
55247         Sync glibc change fixing Bugzilla bug #12378.
55248         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
55249         beginning and fall back to matching as normal character if the
55250         string ends before the matching ']' is found.  This is what POSIX
55251         requires.
55253 2011-05-13  Eric Blake  <eblake@redhat.com>
55255         getcwd-lgpl: relax test for FreeBSD
55256         * doc/posix-functions/getcwd.texi (getcwd): Document portability
55257         issue.
55258         * tests/test-getcwd-lgpl.c (main): Relax test.
55259         Reported by Matthias Bolte.
55261 2011-05-11  Eric Blake  <eblake@redhat.com>
55263         test-fflush: silence compiler warning
55264         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
55266 2011-05-11  Bruno Haible  <bruno@clisp.org>
55268         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
55269         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
55270         * modules/canonicalize (Depends-on): Add 'nocrash'.
55271         * modules/canonicalize-lgpl (Depends-on): Likewise.
55272         * doc/posix-functions/realpath.texi: Update platforms list.
55273         Reported by Ryan Schmidt <ryandesign@macports.org>.
55275 2011-05-11  Bruno Haible  <bruno@clisp.org>
55277         group-member: Declare function in <unistd.h>.
55278         * lib/unistd.in.h (group_member): New declaration.
55279         * lib/group-member.h: Remove file.
55280         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
55281         * tests/test-unistd-c++.cc: Check signature of group_member.
55282         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
55283         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
55284         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
55285         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
55286         HAVE_GROUP_MEMBER.
55287         * modules/group-member (Files): Remove lib/group-member.h.
55288         (Depends-on): Add unistd. Specify conditions.
55289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55290         (Include): Change to <unistd.h>.
55291         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
55292         HAVE_GROUP_MEMBER.
55293         * NEWS: Mention the change.
55294         * lib/euidaccess.c: Don't include group-member.h.
55296 2011-05-11  Bruno Haible  <bruno@clisp.org>
55298         group-member: Document module.
55299         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
55300         module.
55302 2011-05-11  Bruno Haible  <bruno@clisp.org>
55304         fclose: Fix mistake earlier today.
55305         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
55307 2011-05-11  Eric Blake  <eblake@redhat.com>
55309         fclose: preserve fflush errors
55310         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
55311         Reported by Jim Meyering.
55313         bootstrap: support a prereq of 'rpcgen -' on RHEL5
55314         * build-aux/bootstrap (check_versions): When no specific version
55315         is required, merely check that the app produces an exit status
55316         that indicates its existence.
55318         maint.mk: drop redundant check
55319         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
55320         the same but better.
55322 2011-05-11  Bruno Haible  <bruno@clisp.org>
55324         fclose: Fix possible link error.
55325         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
55326         unregister_shadow_fd. Improve comments.
55327         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
55328         Eric Blake.
55330 2011-05-11  Jim Meyering  <meyering@redhat.com>
55332         maint.mk: improve "can not" detection and generalize rule name
55333         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
55334         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
55335         Use the same technique as in sc_prohibit_doubled_word, so that
55336         we recognize "can not" also when the words are separated by a newline.
55337         Suggested by Eric Blake.
55338         (perl_filename_lineno_text_): Define.  Factored out of...
55339         (prohibit_doubled_word_): ...here.  Use the new definition.
55340         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
55341         (prohibit_undesirable_word_seq_RE_): New overridable variable.
55342         (ignore_undesirable_word_sequence_RE_): New overridable variable.
55344 2011-05-10  Eric Blake  <eblake@redhat.com>
55346         fclose: avoid double close race when possible
55347         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
55348         all but WINDOWS_SOCKETS.
55350 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
55352         openat: correct new comment
55353         * lib/openat-proc.c (openat_proc_name): Correct the comment.
55355 2011-05-10  Jim Meyering  <meyering@redhat.com>
55357         openat: add comments
55358         * lib/openat-proc.c (openat_proc_name): Add comments,
55359         mostly from Eric Blake.
55361 2011-05-09  Eric Blake  <eblake@redhat.com>
55363         openat: reduce syscalls in first probe of /proc
55364         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55365         be a directory.  Simplify the probe for .. bugs.
55366         * modules/openat (Depends-on): Drop same-inode.
55367         Reported by Bastien ROUCARIES.
55369 2011-05-09  Jim Meyering  <meyering@redhat.com>
55371         maint.mk: change semantics/name of tight_scope variables
55372         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55373         Rename variables to align with semantics that make them more useful.
55375         maint.mk: tweak new rule's name not to impinge
55376         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55377         (sc_tight_scope): Use new rule name rather than $@-0.
55379         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55380         * top/maint.mk (sc_tight_scope): New rule.
55381         (sc_tight_scope-0): New rule, ifdef'd out.
55382         (_gl_TS_dir): Default.
55383         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55384         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55386 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55388         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55389         Haible <bruno@clisp.org>.
55391 2011-05-08  Bruno Haible  <bruno@clisp.org>
55393         Comments.
55394         * m4/isnanf.m4: Add comment.
55395         * m4/isnanl.m4: Likewise.
55397 2011-05-08  Bruno Haible  <bruno@clisp.org>
55399         glob: Remove obsolete macro.
55400         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55402 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55404         intprops: Sun C 5.11 supports __typeof__
55405         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55406         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55407         which is new.
55408         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55410         intprops: switch to usual gnulib indenting and naming
55411         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55412         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55414         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55416 2011-05-08  Jim Meyering  <meyering@redhat.com>
55418         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55419         * top/maint.mk (release-prep): Use make's --no-print-directory
55420         option when generating the announcement.  This eliminates the
55421         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55422         generated announcement template.
55424 2011-05-08  Bruno Haible  <bruno@clisp.org>
55426         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55427         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55428         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55430 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55432         ignore-value, verify: Omit include files from lib_SOURCES.
55433         * modules/ignore-value, modules/verify (Makefile.am):
55434         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55435         that leads Automake to duplicate use of am__objects_... variables
55436         in Makefile.in.  See
55437         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55439 2011-05-07  Bruno Haible  <bruno@clisp.org>
55441         fclose: Simplify autoconf macro.
55442         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55443         defined.
55445 2011-05-07  Bruno Haible  <bruno@clisp.org>
55447         canonicalize-lgpl: Fix autoconf macro ordering bug.
55448         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55449         gl_STDLIB_H_DEFAULTS.
55451 2011-05-06  Eric Blake  <eblake@redhat.com>
55453         maintainer-makefile: make sc_po_check easier to tune
55454         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55455         to probe for strings, such as an alternate location for gnulib.
55457         fclose: guarantee behavior on seekable stdin
55458         * modules/fclose (Depends-on): Add fflush.
55459         * doc/posix-functions/fclose.texi (fclose): Document this.
55460         * tests/test-fclose.c (main): Make test for this unconditional.
55462 2011-05-06  Bruno Haible  <bruno@clisp.org>
55464         fflush, fpurge: Relicense under LGPLv2+.
55465         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55466         * modules/fpurge (License): Likewise.
55467         With permission from Eric Blake and Jim Meyering.
55468         Suggested by Eric Blake.
55470 2011-05-06  Karl Berry  <karl@gnu.org>
55472         * MODULES.html.sh (func_all_modules): remove exit.
55474 2011-05-06  Jim Meyering  <meyering@redhat.com>
55476         maint.mk: use info-gnu@ as the default only for a stable release
55477         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
55478         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
55479         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
55480         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
55482 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55484         assert-h: new module, which supports C1X-style static_assert
55485         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
55486         * lib/verify.h: Revamp so that this can be copied into assert.h,
55487         while retaining the ability to use it standalone as before.
55488         Rename private identifiers so as not to encroach on the
55489         standard C namespace, since this is now used by assert.h.
55490         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
55491         the old verify_true.
55492         (_GL_VERIFY_TRUE): New macro, with much of the contents of
55493         the old verify_true.  Use _GL_VERIFY_TYPE.
55494         (_GL_VERIFY): New macro, with much of the contents of the old verify.
55495         (static_assert): New macro, if _GL_STATIC_ASSERT_H
55496         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
55497         defined when this file is copied into the replacement assert.h.
55498         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
55499         and _Static_assert is not built in.
55500         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
55501         defined, and use the new macros mentioned above.
55502         * doc/posix-headers/assert.texi: Document this.
55504 2011-05-05  Bruno Haible  <bruno@clisp.org>
55506         fclose, fflush: Respect rules for use of AC_LIBOBJ.
55507         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
55508         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
55509         gl_REPLACE_FCLOSE here.
55510         * modules/fflush (Depends-on): Remove fclose.
55511         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
55512         combination with module 'fclose'.
55514 2011-05-05  Bruno Haible  <bruno@clisp.org>
55516         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
55517         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
55518         gl_FUNC_FFLUSH.
55519         (gl_FUNC_FFLUSH): Use it.
55520         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
55521         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
55522         gl_REPLACE_FSEEKO here.
55524 2011-05-05  Bruno Haible  <bruno@clisp.org>
55526         tzset: Relicense under LGPL.
55527         * modules/tzset (License): Change to LGPL.
55528         No agreement needed; it's a no-op.
55530         strtoimax, strtoumax: Relicense under LGPL.
55531         * modules/strtoimax (License): Change to LGPL.
55532         * modules/strtoumax (License): Likewise.
55533         With permission from Jim Meyering, Paul Eggert:
55534         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
55535         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
55537         getgroups: Relicense under LGPL.
55538         * modules/getgroups (License): Change to LGPL.
55539         With permission from Jim Meyering, Paul Eggert, Eric Blake:
55540         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55541         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55542         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55544         nanosleep: Relicense under LGPL.
55545         * modules/nanosleep (License): Change to LGPL.
55546         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
55547         Haible:
55548         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55549         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55550         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55551         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55553         futimens: Relicense under LGPL.
55554         * modules/futimens (License): Change to LGPL.
55555         With permission from Eric Blake:
55556         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55558         fflush: Relicense under LGPL.
55559         * modules/fflush (License): Change to LGPL.
55560         With permission from Eric Blake, Bruno Haible, Jim Meyering:
55561         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55562         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55563         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
55565         tmpfile: Relicense under LGPL.
55566         * modules/tmpfile (License): Change to LGPL.
55567         With permission from Ben Pfaff:
55568         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55570         isfinite: Relicense under LGPL.
55571         * modules/isfinite (License): Change to LGPL.
55572         With permission from Ben Pfaff, Bruno Haible:
55573         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55574         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
55576         acosl..tanl: Relicense under LGPL.
55577         * modules/acosl (License): Change to LGPL.
55578         * modules/asinl (License): Likewise.
55579         * modules/atanl (License): Likewise.
55580         * modules/cosl (License): Likewise.
55581         * modules/expl (License): Likewise.
55582         * modules/logl (License): Likewise.
55583         * modules/sinl (License): Likewise.
55584         * modules/sqrtl (License): Likewise.
55585         * modules/tanl (License): Likewise.
55586         Source code originally from glibc and Paolo Bonzini. Agreements:
55587         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
55588         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
55590 2011-05-05  Bruno Haible  <bruno@clisp.org>
55592         signal: Define sighandler_t.
55593         * lib/signal.in.h (sighandler_t): New type.
55594         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
55595         whether sighandler_t is defined.
55596         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
55597         * modules/signal (Depends-on): Add extensions.
55598         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
55599         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
55600         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
55602 2011-05-05  Eric Blake  <eblake@redhat.com>
55604         maint: remove useless REPLACE_*_H macros
55605         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
55606         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55607         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55608         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55609         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55610         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55611         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55612         * m4/btowc.m4: Update callers.
55613         * m4/dirfd.m4: Likewise.
55614         * m4/duplocale.m4: Likewise.
55615         * m4/fchdir.m4: Likewise.
55616         * m4/fdopendir.m4: Likewise.
55617         * m4/inet_ntop.m4: Likewise.
55618         * m4/inet_pton.m4: Likewise.
55619         * m4/ioctl.m4: Likewise.
55620         * m4/mbrlen.m4: Likewise.
55621         * m4/mbrtowc.m4: Likewise.
55622         * m4/mbsinit.m4: Likewise.
55623         * m4/mbsnrtowcs.m4: Likewise.
55624         * m4/mbsrtowcs.m4: Likewise.
55625         * m4/poll.m4: Likewise.
55626         * m4/setlocale.m4: Likewise.
55627         * m4/wcrtomb.m4: Likewise.
55628         * m4/wcsnrtombs.m4: Likewise.
55629         * m4/wcsrtombs.m4: Likewise.
55630         * m4/wctob.m4: Likewise.
55631         * m4/wcwidth.m4: Likewise.
55632         * modules/posix_spawn: Likewise.
55633         * modules/posix_spawn_file_actions_addclose: Likewise.
55634         * modules/posix_spawn_file_actions_adddup2: Likewise.
55635         * modules/posix_spawn_file_actions_addopen: Likewise.
55636         * modules/posix_spawn_file_actions_destroy: Likewise.
55637         * modules/posix_spawn_file_actions_init: Likewise.
55638         * modules/posix_spawnattr_destroy: Likewise.
55639         * modules/posix_spawnattr_getflags: Likewise.
55640         * modules/posix_spawnattr_getpgroup: Likewise.
55641         * modules/posix_spawnattr_getschedparam: Likewise.
55642         * modules/posix_spawnattr_getschedpolicy: Likewise.
55643         * modules/posix_spawnattr_getsigdefault: Likewise.
55644         * modules/posix_spawnattr_getsigmask: Likewise.
55645         * modules/posix_spawnattr_init: Likewise.
55646         * modules/posix_spawnattr_setflags: Likewise.
55647         * modules/posix_spawnattr_setpgroup: Likewise.
55648         * modules/posix_spawnattr_setschedparam: Likewise.
55649         * modules/posix_spawnattr_setschedpolicy: Likewise.
55650         * modules/posix_spawnattr_setsigdefault: Likewise.
55651         * modules/posix_spawnattr_setsigmask: Likewise.
55652         * modules/posix_spawnp: Likewise.
55654 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
55656         Add option to do-release-commit-and-tag to specify branch.
55657         * build-aux/do-release-commit-and-tag: Add --branch.
55659 2011-05-03  Bruno Haible  <bruno@clisp.org>
55661         Avoid unnecessary compilation units, through conditional dependencies.
55662         * modules/accept (Depends-on): Add conditions to the dependencies.
55663         * modules/acosl (Depends-on): Likewise.
55664         * modules/argz (Depends-on): Likewise.
55665         * modules/asinl (Depends-on): Likewise.
55666         * modules/atanl (Depends-on): Likewise.
55667         * modules/atoll (Depends-on): Likewise.
55668         * modules/bind (Depends-on): Likewise.
55669         * modules/btowc (Depends-on): Likewise.
55670         * modules/canonicalize-lgpl (Depends-on): Likewise.
55671         * modules/ceil (Depends-on): Likewise.
55672         * modules/ceilf (Depends-on): Likewise.
55673         * modules/ceill (Depends-on): Likewise.
55674         * modules/chdir-long (Depends-on): Likewise.
55675         * modules/chown (Depends-on): Likewise.
55676         * modules/close (Depends-on): Likewise.
55677         * modules/connect (Depends-on): Likewise.
55678         * modules/cosl (Depends-on): Likewise.
55679         * modules/dirfd (Depends-on): Likewise.
55680         * modules/dprintf (Depends-on): Likewise.
55681         * modules/dprintf-posix (Depends-on): Likewise.
55682         * modules/error (Depends-on): Likewise.
55683         * modules/euidaccess (Depends-on): Likewise.
55684         * modules/expl (Depends-on): Likewise.
55685         * modules/faccessat (Depends-on): Likewise.
55686         * modules/fchdir (Depends-on): Likewise.
55687         * modules/fclose (Depends-on): Likewise.
55688         * modules/fcntl (Depends-on): Likewise.
55689         * modules/fdopendir (Depends-on): Likewise.
55690         * modules/fflush (Depends-on): Likewise.
55691         * modules/floor (Depends-on): Likewise.
55692         * modules/floorf (Depends-on): Likewise.
55693         * modules/floorl (Depends-on): Likewise.
55694         * modules/fnmatch (Depends-on): Likewise.
55695         * modules/fopen (Depends-on): Likewise.
55696         * modules/fprintf-posix (Depends-on): Likewise.
55697         * modules/frexp (Depends-on): Likewise.
55698         * modules/frexp-nolibm (Depends-on): Likewise.
55699         * modules/frexpl (Depends-on): Likewise.
55700         * modules/frexpl-nolibm (Depends-on): Likewise.
55701         * modules/fseek (Depends-on): Likewise.
55702         * modules/fsusage (Depends-on): Likewise.
55703         * modules/ftell (Depends-on): Likewise.
55704         * modules/ftello (Depends-on): Likewise.
55705         * modules/futimens (Depends-on): Likewise.
55706         * modules/getcwd (Depends-on): Likewise.
55707         * modules/getcwd-lgpl (Depends-on): Likewise.
55708         * modules/getdelim (Depends-on): Likewise.
55709         * modules/getdomainname (Depends-on): Likewise.
55710         * modules/getgroups (Depends-on): Likewise.
55711         * modules/gethostname (Depends-on): Likewise.
55712         * modules/getline (Depends-on): Likewise.
55713         * modules/getlogin_r (Depends-on): Likewise.
55714         * modules/getopt-posix (Depends-on): Likewise.
55715         * modules/getpeername (Depends-on): Likewise.
55716         * modules/getsockname (Depends-on): Likewise.
55717         * modules/getsockopt (Depends-on): Likewise.
55718         * modules/getsubopt (Depends-on): Likewise.
55719         * modules/getusershell (Depends-on): Likewise.
55720         * modules/glob (Depends-on): Likewise.
55721         * modules/grantpt (Depends-on): Likewise.
55722         * modules/iconv_open (Depends-on): Likewise.
55723         * modules/iconv_open-utf (Depends-on): Likewise.
55724         * modules/inet_ntop (Depends-on): Likewise.
55725         * modules/inet_pton (Depends-on): Likewise.
55726         * modules/ioctl (Depends-on): Likewise.
55727         * modules/isapipe (Depends-on): Likewise.
55728         * modules/isfinite (Depends-on): Likewise.
55729         * modules/isinf (Depends-on): Likewise.
55730         * modules/lchown (Depends-on): Likewise.
55731         * modules/ldexpl (Depends-on): Likewise.
55732         * modules/link (Depends-on): Likewise.
55733         * modules/linkat (Depends-on): Likewise.
55734         * modules/listen (Depends-on): Likewise.
55735         * modules/logl (Depends-on): Likewise.
55736         * modules/lstat (Depends-on): Likewise.
55737         * modules/mbrlen (Depends-on): Likewise.
55738         * modules/mbrtowc (Depends-on): Likewise.
55739         * modules/mbsinit (Depends-on): Likewise.
55740         * modules/mbsnrtowcs (Depends-on): Likewise.
55741         * modules/mbsrtowcs (Depends-on): Likewise.
55742         * modules/mbtowc (Depends-on): Likewise.
55743         * modules/memcmp (Depends-on): Likewise.
55744         * modules/mkdir (Depends-on): Likewise.
55745         * modules/mkdtemp (Depends-on): Likewise.
55746         * modules/mkfifo (Depends-on): Likewise.
55747         * modules/mkfifoat (Depends-on): Likewise.
55748         * modules/mknod (Depends-on): Likewise.
55749         * modules/mkostemp (Depends-on): Likewise.
55750         * modules/mkostemps (Depends-on): Likewise.
55751         * modules/mkstemp (Depends-on): Likewise.
55752         * modules/mkstemps (Depends-on): Likewise.
55753         * modules/mktime (Depends-on): Likewise.
55754         * modules/nanosleep (Depends-on): Likewise.
55755         * modules/open (Depends-on): Likewise.
55756         * modules/openat (Depends-on): Likewise.
55757         * modules/perror (Depends-on): Likewise.
55758         * modules/poll (Depends-on): Likewise.
55759         * modules/popen (Depends-on): Likewise.
55760         * modules/posix_spawn (Depends-on): Likewise.
55761         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55762         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55763         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55764         * modules/posix_spawnp (Depends-on): Likewise.
55765         * modules/pread (Depends-on): Likewise.
55766         * modules/printf-posix (Depends-on): Likewise.
55767         * modules/ptsname (Depends-on): Likewise.
55768         * modules/putenv (Depends-on): Likewise.
55769         * modules/pwrite (Depends-on): Likewise.
55770         * modules/readline (Depends-on): Likewise.
55771         * modules/readlink (Depends-on): Likewise.
55772         * modules/readlinkat (Depends-on): Likewise.
55773         * modules/recv (Depends-on): Likewise.
55774         * modules/recvfrom (Depends-on): Likewise.
55775         * modules/regex (Depends-on): Likewise.
55776         * modules/remove (Depends-on): Likewise.
55777         * modules/rename (Depends-on): Likewise.
55778         * modules/renameat (Depends-on): Likewise.
55779         * modules/rmdir (Depends-on): Likewise.
55780         * modules/round (Depends-on): Likewise.
55781         * modules/roundf (Depends-on): Likewise.
55782         * modules/roundl (Depends-on): Likewise.
55783         * modules/rpmatch (Depends-on): Likewise.
55784         * modules/select (Depends-on): Likewise.
55785         * modules/send (Depends-on): Likewise.
55786         * modules/sendto (Depends-on): Likewise.
55787         * modules/setenv (Depends-on): Likewise.
55788         * modules/setlocale (Depends-on): Likewise.
55789         * modules/setsockopt (Depends-on): Likewise.
55790         * modules/shutdown (Depends-on): Likewise.
55791         * modules/sigaction (Depends-on): Likewise.
55792         * modules/signbit (Depends-on): Likewise.
55793         * modules/sigprocmask (Depends-on): Likewise.
55794         * modules/sinl (Depends-on): Likewise.
55795         * modules/sleep (Depends-on): Likewise.
55796         * modules/snprintf (Depends-on): Likewise.
55797         * modules/snprintf-posix (Depends-on): Likewise.
55798         * modules/socket (Depends-on): Likewise.
55799         * modules/sprintf-posix (Depends-on): Likewise.
55800         * modules/sqrtl (Depends-on): Likewise.
55801         * modules/stat (Depends-on): Likewise.
55802         * modules/strchrnul (Depends-on): Likewise.
55803         * modules/strdup-posix (Depends-on): Likewise.
55804         * modules/strerror (Depends-on): Likewise.
55805         * modules/strerror_r-posix (Depends-on): Likewise.
55806         * modules/strndup (Depends-on): Likewise.
55807         * modules/strnlen (Depends-on): Likewise.
55808         * modules/strptime (Depends-on): Likewise.
55809         * modules/strsep (Depends-on): Likewise.
55810         * modules/strsignal (Depends-on): Likewise.
55811         * modules/strstr-simple (Depends-on): Likewise.
55812         * modules/strtod (Depends-on): Likewise.
55813         * modules/strtoimax (Depends-on): Likewise.
55814         * modules/strtok_r (Depends-on): Likewise.
55815         * modules/strtoumax (Depends-on): Likewise.
55816         * modules/symlink (Depends-on): Likewise.
55817         * modules/symlinkat (Depends-on): Likewise.
55818         * modules/tanl (Depends-on): Likewise.
55819         * modules/tcgetsid (Depends-on): Likewise.
55820         * modules/tmpfile (Depends-on): Likewise.
55821         * modules/trunc (Depends-on): Likewise.
55822         * modules/truncf (Depends-on): Likewise.
55823         * modules/truncl (Depends-on): Likewise.
55824         * modules/uname (Depends-on): Likewise.
55825         * modules/unlink (Depends-on): Likewise.
55826         * modules/unlockpt (Depends-on): Likewise.
55827         * modules/unsetenv (Depends-on): Likewise.
55828         * modules/usleep (Depends-on): Likewise.
55829         * modules/utimensat (Depends-on): Likewise.
55830         * modules/vasprintf (Depends-on): Likewise.
55831         * modules/vdprintf (Depends-on): Likewise.
55832         * modules/vdprintf-posix (Depends-on): Likewise.
55833         * modules/vfprintf-posix (Depends-on): Likewise.
55834         * modules/vprintf-posix (Depends-on): Likewise.
55835         * modules/vsnprintf (Depends-on): Likewise.
55836         * modules/vsnprintf-posix (Depends-on): Likewise.
55837         * modules/vsprintf-posix (Depends-on): Likewise.
55838         * modules/wcrtomb (Depends-on): Likewise.
55839         * modules/wcscasecmp (Depends-on): Likewise.
55840         * modules/wcscspn (Depends-on): Likewise.
55841         * modules/wcsdup (Depends-on): Likewise.
55842         * modules/wcsncasecmp (Depends-on): Likewise.
55843         * modules/wcsnrtombs (Depends-on): Likewise.
55844         * modules/wcspbrk (Depends-on): Likewise.
55845         * modules/wcsrtombs (Depends-on): Likewise.
55846         * modules/wcsspn (Depends-on): Likewise.
55847         * modules/wcsstr (Depends-on): Likewise.
55848         * modules/wcstok (Depends-on): Likewise.
55849         * modules/wcswidth (Depends-on): Likewise.
55850         * modules/wctob (Depends-on): Likewise.
55851         * modules/wctomb (Depends-on): Likewise.
55852         * modules/wctype (Depends-on): Likewise.
55853         * modules/wcwidth (Depends-on): Likewise.
55854         * modules/write (Depends-on): Likewise.
55856 2011-05-03  Bruno Haible  <bruno@clisp.org>
55858         Support for conditional dependencies.
55859         * doc/gnulib.texi (Module description): Document the syntax of
55860         conditional dependencies.
55861         * gnulib-tool: New option --conditional-dependencies.
55862         (func_usage): Document it.
55863         (cond_dependencies): New variable.
55864         (func_get_automake_snippet_conditional,
55865         func_get_automake_snippet_unconditional): New functions, extracted from
55866         func_get_automake_snippet.
55867         (func_get_automake_snippet): Use them.
55868         (sed_first_32_chars): New variable.
55869         (func_module_shellfunc_name): New function.
55870         (func_module_shellvar_name): New function.
55871         (func_module_conditional_name): New function.
55872         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55873         func_cond_module_condition): New functions.
55874         (func_modules_transitive_closure): Add support for conditional
55875         dependencies.
55876         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55877         conditional automake snippet in an automake conditional.
55878         (func_emit_autoconf_snippets): Emit shell functions that contain the
55879         code for conditional modules.
55880         (func_import, func_create_testdir): Update specification.
55882 2011-05-03  Eric Blake  <eblake@redhat.com>
55884         test-getaddrinfo: report error information
55885         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55887 2011-05-03  Jim Meyering  <meyering@redhat.com>
55889         bootstrap: avoid build failure when $GZIP is set
55890         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55891         program name.  If defined at all, it is supposed to list gzip options.
55892         Reported by Alan Curry in http://debbugs.gnu.org/8609
55894 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55896         readme-release: new module with release instructions
55897         * modules/readme-release: New module.
55898         * top/README-release: New file, from coreutils, grep, diffutils.
55899         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55901 2011-05-02  Eric Blake  <eblake@redhat.com>
55903         fflush: also replace fclose when fixing fflush
55904         * modules/fflush (Depends-on): Add fclose.
55905         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55906         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55907         memstreams with no backing fd.
55908         * doc/posix-functions/fclose.texi (fclose): Document the use of
55909         fflush module to fix the bug.
55910         * tests/test-fclose.c (main): Relax test when fclose is used in
55911         isolation.
55913         fclose: add some tests
55914         * modules/fclose-tests: New test module.
55915         * tests/test-fclose.c: New file.
55916         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55918         fclose: reduced dependencies
55919         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55920         simpler lseek.
55921         * lib/fclose.c (rpl_fclose): Likewise.
55922         Reported by Simon Josefsson.
55924         exit: drop remaining clients
55925         * modules/argmatch (Depends-on): Replace exit with stdlib.
55926         * modules/copy-file (Depends-on): Likewise.
55927         * modules/execute (Depends-on): Likewise.
55928         * modules/exitfail (Depends-on): Likewise.
55929         * modules/obstack (Depends-on): Likewise.
55930         * modules/pagealign_alloc (Depends-on): Likewise.
55931         * modules/pipe-filter-gi (Depends-on): Likewise.
55932         * modules/pipe-filter-ii (Depends-on): Likewise.
55933         * modules/savewd (Depends-on): Likewise.
55934         * modules/spawn-pipe (Depends-on): Likewise.
55935         * modules/wait-process (Depends-on): Likewise.
55936         * modules/xsetenv (Depends-on): Likewise.
55937         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55938         * modules/git-merge-changelog (Depends-on): Likewise.
55939         * modules/long-options (Depends-on): Likewise.
55940         * modules/pt_chown (Depends-on): Likewise.
55941         * modules/sysexits (Depends-on): Likewise.
55943         freading: relax license from LGPLv3+ to LGPLv2+
55944         * modules/freading (License): Relax LGPL version.
55946 2011-05-02  Bruno Haible  <bruno@clisp.org>
55948         fchdir: Remove unused dependencies.
55949         * modules/fchdir (Depends-on): Remove include_next.
55951 2011-05-02  Bruno Haible  <bruno@clisp.org>
55953         gnulib-tool: Refactor.
55954         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55955         from func_emit_autoconf_snippets.
55956         (func_emit_autoconf_snippets): Use it.
55958 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55960         * NEWS: Document removal of 'exit'.
55961         * modules/exit: Remove file.
55963 2011-05-01  Bruno Haible  <bruno@clisp.org>
55965         Update DEPENDENCIES.
55966         * DEPENDENCIES (gettext): Recommend the newest release.
55967         Reported by Simon Josefsson.
55969 2011-05-01  Bruno Haible  <bruno@clisp.org>
55971         gnulib-tool: Reduce code duplication.
55972         * gnulib-tool (func_emit_autoconf_snippets): New function.
55973         (func_import, func_create_testdir): Use it.
55975 2011-04-30  Eric Blake  <eblake@redhat.com>
55977         fclose: don't fail on non-seekable input stream
55978         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55979         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55980         since fflush is allowed to fail in that case.
55982 2011-04-30  Bruno Haible  <bruno@clisp.org>
55984         dup3: cleanup
55985         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55987 2011-04-30  Bruno Haible  <bruno@clisp.org>
55989         netdb: Make it work in C++ mode.
55990         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55991         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55992         module.
55993         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55994         gl_MODULE_INDICATOR_FOR_TESTS.
55995         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55996         * modules/netdb-c++-tests: New file.
55997         * tests/test-netdb-c++.cc: New file.
55999 2011-04-30  Bruno Haible  <bruno@clisp.org>
56001         New modules 'vfscanf', 'vscanf'.
56002         * modules/vfscanf: New file.
56003         * modules/vscanf: New file.
56004         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
56005         here.
56006         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
56007         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
56009 2011-04-30  Bruno Haible  <bruno@clisp.org>
56011         passfd: Add comments.
56012         * lib/passfd.c: Add comments about platforms.
56014 2011-04-30  Bruno Haible  <bruno@clisp.org>
56016         sys_uio: Make <sys/uio.h> self-contained.
56017         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
56018         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
56020 2011-04-30  Bruno Haible  <bruno@clisp.org>
56022         sys_socket: Ensure 'struct iovec' definition.
56023         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
56024         <sys/socket.h>.
56025         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
56027 2011-04-30  Bruno Haible  <bruno@clisp.org>
56029         sys_uio: Protect definition of 'struct iovec'.
56030         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
56031         it as a C struct.
56033 2011-04-30  Bruno Haible  <bruno@clisp.org>
56035         manywarnings: fix indentation
56036         * m4/manywarnings.m4: Indent by 2 spaces consistently.
56038 2011-04-30  Pádraig Brady  <P@draigBrady.com>
56040         manywarnings: add -Wno-missing-field-initializers if needed.
56041         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
56042         option if it's needed to allow initialization with { 0, }
56044 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
56046         announce-gen: cosmetic improvement
56047         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
56049 2011-04-29  Jim Meyering  <meyering@redhat.com>
56051         vc-list-files: indent with spaces, not TABs
56052         * build-aux/vc-list-files: Convert leading TABs to spaces,
56053         to match the style of most other files in gnulib.
56055         announce-gen: indent with spaces, not TABs
56056         * build-aux/announce-gen: Convert all TABs to spaces, to match
56057         the style of most other files in gnulib.
56059 2011-04-29  Eric Blake  <eblake@redhat.com>
56061         quotearg: avoid uninitialized variable use
56062         * lib/quotearg.c (quoting_options_from_style): Initialize
56063         remaining fields, and ensure that custom styles are only used via
56064         quoting_options rather than quoting_style.
56066 2011-04-29  Jim Meyering  <meyering@redhat.com>
56068         maint.mk: remove unused VC-tag variable
56069         * top/maint.mk (VC-tag): Remove unused variable.
56071 2011-04-29  Bruno Haible  <bruno@clisp.org>
56073         netdb: fix gai_strerror replacements
56074         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
56075         * modules/netdb: Substitute it.
56077 2011-04-29  Jim Meyering  <meyering@redhat.com>
56079         test-getcwd.c: avoid new set-but-not-used warning
56080         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
56081         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
56082         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
56083         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
56085         test-hash.c: avoid a new shadowing warning
56086         * tests/test-hash.c (main): Don't shadow "dup".
56088 2011-04-28  Eric Blake  <eblake@redhat.com>
56090         getaddrinfo: fix gai_strerror signature
56091         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
56092         and work around mingw with UNICODE defined.
56093         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
56094         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
56095         * modules/netdb (Makefile.am): Substitute it.
56096         * lib/netdb.in.h (gai_strerror): Declare replacement.
56097         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
56098         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
56099         the fix.
56101         getsockopt: avoid compiler warning
56102         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
56103         Reported by Matthias Bolte.
56105         tests: drop unused link dependency
56106         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
56107         * modules/dirent-safer-tests (Makefile.am): Likewise.
56108         * modules/fdopendir-tests (Makefile.am): Likewise.
56109         * modules/mkfifoat-tests (Makefile.am): Likewise.
56110         * modules/openat-safer-tests (Makefile.am): Likewise.
56111         * modules/openat-tests (Makefile.am): Likewise.
56112         * modules/readlinkat-tests (Makefile.am): Likewise.
56113         * modules/symlinkat-tests (Makefile.am): Likewise.
56114         * modules/linkat-tests (Makefile.am): Likewise.
56115         (Depends-on): Switch to filenamecat-lgpl.
56116         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
56117         LIBINTL.
56118         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
56119         * tests/test-linkat.c (main): Don't require xalloc.
56121         hash, mgetgroups: drop xalloc dependency
56122         * lib/hash.c (includes): Adjust includes.
56123         * lib/mgetgroups.c (includes): Likewise.
56124         (xgetgroups): Move...
56125         * lib/xgetgroups.c: ...to new file.
56126         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
56127         * modules/xgetgroups: New file, split from...
56128         * modules/mgetgroups: ...here.
56129         (Depends-on): Add xalloc-oversized.
56130         * modules/hash (Depends-on): Likewise.
56131         * modules/hash-tests (Depends-on): Drop xalloc.
56132         (test_hash_LDADD): Drop unused library.
56133         * tests/test-hash.c (main): Break xalloc dependency.
56134         (includes): Drop unused include.
56136         xalloc-oversized: new module
56137         * modules/xalloc-oversized: New module.
56138         * modules/xalloc (Depends-on): Add it.
56139         * lib/xalloc.h (xalloc_oversized): Move...
56140         * lib/xalloc-oversized.h: ...into new file.
56142         utimecmp: drop dependency on xmalloc
56143         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
56144         due to memory pressure.
56145         * modules/utimecmp (Depends-on): Drop xalloc.
56147 2011-04-27  Eric Blake  <eblake@redhat.com>
56149         getcwd: fix mingw bugs
56150         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
56151         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
56152         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
56154 2011-04-27  Bruno Haible  <bruno@clisp.org>
56156         mkstemps: Ensure declaration on MacOS X 10.5.
56157         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
56158         * doc/glibc-functions/mkstemps.texi: Document header file problem on
56159         MacOS X.
56161 2011-04-27  Bruno Haible  <bruno@clisp.org>
56163         mkstemp: More documentation.
56164         * doc/posix-functions/mkstemp.texi: Document header file problem on
56165         MacOS X.
56167 2011-04-27  Bruno Haible  <bruno@clisp.org>
56169         mkstemp: Tweak configure message when cross-compiling.
56170         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
56171         result as a guess.
56173 2011-04-27  Bruno Haible  <bruno@clisp.org>
56175         clean-temp: Clarify what it does.
56176         * lib/clean-temp.h: Add more comments.
56177         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
56178         module.
56179         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
56180         * doc/glibc-functions/mkstemps.texi: Likewise.
56181         * doc/glibc-functions/mkostemps.texi: Likewise.
56183 2011-04-27  Eric Blake  <eblake@redhat.com>
56185         fchdir: avoid extra chdir and fix test
56186         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
56187         getcwd-lgpl.
56188         * lib/fchdir.c (get_name): Any absolute name will do; it does not
56189         have to be canonical.
56190         (canonicalize_file_name): Drop unused macro.
56191         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56193         filenamecat-lgpl: fix licence
56194         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56195         when it was first created.
56197         linkat, renameat: add missing dependency
56198         * modules/linkat (Depends-on): Require getcwd-lgpl.
56199         * modules/renameat (Depends-on): Likewise.
56201         tests: reduce dependencies
56202         * tests/test-linkat.c (main): Use lighter-weight getcwd.
56203         * tests/test-renameat.c (main): Likewise.
56204         * modules/linkat-tests (Depends-on): Relax dependency.
56205         * modules/renameat-tests (Depends-on): Likewise.
56206         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
56207         dependency explicit.
56209         save-cwd: reduce default dependency
56210         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
56211         * lib/save-cwd.c: Update comments.
56212         * NEWS: Document the semantic change.
56214         getcwd: enhance tests
56215         * tests/test-getcwd-lgpl.c: New file, taken from...
56216         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
56217         repeat long path stress tests from m4 probe.
56218         * modules/getcwd-lgpl-tests: New module.
56219         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
56220         * m4/getcwd-abort-bug.m4: Update comment.
56221         * m4/getcwd-path-max.m4: Likewise.
56223         getcwd-lgpl: new module
56224         * modules/getcwd-lgpl: New module.
56225         * lib/getcwd-lgpl.c: New file.
56226         * doc/posix-functions/getcwd.texi (getcwd): Document it.
56227         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56228         * modules/getcwd (configure.ac): Set C witness.
56229         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
56231         getcwd: tweak comments
56232         * m4/getcwd-abort-bug.m4: Fix comments.
56233         * m4/getcwd-path-max.m4: Likewise.
56234         * m4/getcwd.m4: Likewise.
56236 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56237         and Eric Blake  <eblake@redhat.com>
56239         mkstemp: replace if system version uses wrong permissions
56240         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
56241         read/write mode bits set in file created by mkstemp.
56242         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
56244 2011-04-27  Eric Blake  <eblake@redhat.com>
56246         passfd: avoid compiler warning
56247         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
56248         Reported by Laine Stump.
56250 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
56252         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
56253         required by the NetBSD (and perhaps other 4.4BSD derived) join.
56255 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56256         and Eric Blake  <eblake@redhat.com>
56258         mkstemp: mention clean-temp module
56259         * lib/mkstemp.c: Add comment.
56260         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
56262 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
56264         inttypes: also provide default values for 32-bit tests
56265         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
56266         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
56268 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56270         strtoumax: remove dependency on strtoimax
56271         This is like the strtoull change of yesterday.
56272         * modules/strtoumax (Files): Add lib/strtoimax.c.
56273         (Depends-on): Remove strtoimax and add verify.
56275         inttypes-incomplete: new module
56276         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
56277         all but the PRI* and SCN* parts of gl_INTTYPES_H.
56278         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
56279         of gl_INTTYPES_H.
56280         (gl_INTTYPES_H): Rewrite in terms of these new macros.
56281         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
56282         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
56283         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
56284         * modules/strtoumax, modules/xstrtol (Depends-on):
56285         Depend on inttypes-incomplete, not inttypes.
56286         * modules/inttypes-incomplete: New module, containing the contents
56287         of the old modules/inttypes module, except that the Files: section
56288         omits m4/inttypes-pri.m4, and the configure.ac section invokes
56289         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
56290         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56291         (Depends-on): Depend only on inttypes-incomplete.
56292         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
56294         inttypes: omit now-redundant strtoimax and strtoumax work
56295         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
56296         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
56298         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
56299         This supports apps that need pointers to strtoimax and strtoumax,
56300         and ports to HP-UX 11.00 64.bit, which has macros that expand to
56301         nonexistent functions.  See
56302         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
56303         et seq.
56304         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
56305         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
56306         a macro.
56307         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56309 2011-04-25  Simon Josefsson  <simon@josefsson.org>
56311         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
56313 2011-04-25  Bruno Haible  <bruno@clisp.org>
56315         strtol, strtoul: Mark modules as obsolete.
56316         * modules/strtol (Status, Notice): New sections.
56317         * modules/strtoul (Status, Notice): New sections.
56319 2011-04-25  Bruno Haible  <bruno@clisp.org>
56321         strtod: Remove check for strtod, unless supporting old platforms.
56322         * modules/strtod-obsolete: New file.
56323         * m4/strtod-obsolete.m4: New file.
56324         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
56325         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
56326         * modules/strtod (Depends-on): Add strtod-obsolete.
56327         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
56329 2011-04-25  Bruno Haible  <bruno@clisp.org>
56331         strcase: Make module obsolete.
56332         * modules/strcase (Status, Notice): New sections.
56334 2011-04-25  Bruno Haible  <bruno@clisp.org>
56336         dup2: Remove check for dup2, unless supporting old obsolete platforms.
56337         * modules/dup2-obsolete: New file.
56338         * m4/dup2-obsolete.m4: New file.
56339         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
56340         gl_FUNC_DUP2_OBSOLETE is not also defined.
56341         * modules/dup2 (Depends-on): Add dup2-obsolete.
56342         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
56344 2011-04-25  Bruno Haible  <bruno@clisp.org>
56346         strnlen: Avoid memchr related link error on old obsolete platforms.
56347         * modules/memchr-obsolete: New file.
56348         * m4/memchr-obsolete.m4: New file.
56349         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
56350         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
56351         * modules/memchr (Depends-on): Add memchr-obsolete.
56352         * modules/strnlen (Depends-on): Likewise.
56353         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
56355 2011-04-25  Jim Meyering  <meyering@redhat.com>
56357         maint.mk: makefile_at_at_check extend and clean up
56358         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
56359         in addition to */Makefile.am.
56360         Exempt legitimate uses of @VAR@ notation, e.g.,
56361         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56362         Remove obsolete coreutils-specific comment.
56363         Prompted by discussion here:
56364         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56366 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56368         strtoul: remove dependency on strtol
56369         This is so that 'configure' need not check for strtol merely because
56370         the application needs strtoul.
56371         * modules/strtoul (Files): Add lib/strtol.c.
56372         (Depends-on): Remove strtol.
56374         strtoull: remove dependency on strtoul
56375         This is like the strtoll change.
56376         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56377         (Depends-on): Remove strtoul.
56379         strtoll: remove dependency on strtol
56380         This is so that 'configure' need not check for strtol merely because
56381         the application needs strtoll.
56382         * modules/strtoll (Files): Add lib/strtol.c.
56383         (Depends-on): Remove strtol.
56385 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56387         inttypes: Move some configure check to module 'imaxdiv'.
56388         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56389         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56390         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56392 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56394         inttypes: Move some configure check to module 'imaxabs'.
56395         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56396         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56397         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56399 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56401         inttypes: Remove configure tests that are not needed since 2009-12-31.
56402         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56403         gl_cv_header_working_inttypes_h.
56405 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56407         * modules/strnlen (Depends-on): Remove memchr.
56408         The strnlen implementation doesn't need the memchr module's fixes; see
56409         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56411         strtol: remove dependency on wchar
56412         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56413         * modules/strtol (Depends-on): Remove wchar.
56415 2011-04-21  Eric Blake  <eblake@redhat.com>
56417         passfd: fix test regression on Linux
56418         * modules/passfd-tests (configure.ac): Correct socketpair check.
56420         passfd: speed up configure and drop unused code
56421         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56422         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56423         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56424         Instead of probing at configure for unix_scm_rights_bsd44_way,
56425         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56426         check to a struct member probe.
56427         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56428         (sendfd, recvfd): Update preprocessor checks.
56429         * modules/passfd (Files): Reflect rename, and drop unused file.
56430         (Depends-on): Drop unused dependency.
56432         passfd: allow compilation on mingw
56433         * modules/sys_socket (Depends-on): Add sys_uio.
56434         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56435         iovec and a minimal struct msghdr.
56436         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56437         * tests/test-sys_socket.c (main): Enhance test.
56438         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56439         guaranteed to provide what we need.
56440         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56441         * modules/passfd-tests (Depends-on): Add sys_wait.
56442         * tests/test-passfd.c (main): Skip test on mingw, for now.
56443         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56444         partial 'struct msghdr' implementation.
56446         sys_uio: new module
56447         * modules/sys_uio: New module.
56448         * modules/sys_uio-tests: Likewise.
56449         * lib/sys_uio.in.h: New file.
56450         * m4/sys_uio_h.m4: Likewise.
56451         * tests/test-sys_uio.c: Likewise.
56452         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56453         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56455 2011-04-20  Jim Meyering  <meyering@redhat.com>
56457         useless-if-before-free: avoid false-positive
56458         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56459         disjunct so that it too requires a terminating ";".  Without that,
56460         this script would identify as useless one statement from gcc that
56461         was not:
56462           if (aligned_ptr)
56463             free (((void **) aligned_ptr) [-1]);
56465 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56467         doc: update users.txt.
56468         * users.txt: Add barcode.
56470 2011-04-19  Bruno Haible  <bruno@clisp.org>
56472         ioctl: Remove link dependency on native Windows.
56473         * lib/fd-hook.h: Renamed from lib/close-hook.h.
56474         (gl_close_fn, gl_ioctl_fn): New types.
56475         (struct fd_hook): Renamed from struct close_hook. Change type of
56476         private_close_fn field. Add private_ioctl_fn field.
56477         (close_hook_fn): Add parameter for primary close method.
56478         (execute_close_hooks, execute_all_close_hooks): Likewise.
56479         (ioctl_hook_fn): New type.
56480         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
56481         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56482         argument.
56483         (unregister_fd_hook): Renamed from unregister_close_hook.
56484         * lib/fd-hook.c: Renamed from lib/close-hook.c.
56485         Don't include <unistd.h>.
56486         (close): Remove undef.
56487         (anchor): Update.
56488         (execute_close_hooks): Add argument for primary close method.
56489         (execute_all_close_hooks): Likewise.
56490         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
56491         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56492         argument. Allow each argument to be NULL.
56493         (unregister_fd_hook): Renamed from unregister_close_hook.
56494         * lib/close.c (rpl_close): Pass 'close' function pointer to
56495         execute_all_close_hooks.
56496         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
56497         (primary_ioctl): New function.
56498         (ioctl): Don't call ioctlsocket here. Instead, call
56499         execute_all_ioctl_hooks.
56500         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
56501         close method.
56502         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
56503         (fd_sockets_hook): Renamed from close_sockets_hook.
56504         (gl_sockets_startup, gl_sockets_cleanup): Update.
56505         * modules/fd-hook: Renamed from modules/close-hook. Update.
56506         * modules/close (Depends-on): Add fd-hook, remove close-hook.
56507         * modules/sockets (Depends-on): Likewise.
56508         * modules/ioctl (Depends-on): Add fd-hook.
56509         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
56510         GNULIB_SOCKET.
56512 2011-04-19  Bruno Haible  <bruno@clisp.org>
56514         Move the support of O_NONBLOCK in open() to the 'open' module.
56515         * modules/nonblocking (Depends-on): Remove 'open'.
56516         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
56517         gl_cv_have_open_O_NONBLOCK.
56518         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
56519         O_NONBLOCK support.
56520         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
56522 2011-04-17  Bruno Haible  <bruno@clisp.org>
56524         pipe2: Simplify code.
56525         * lib/pipe2.c (pipe2): Reduce code duplication.
56527 2011-04-17  Bruno Haible  <bruno@clisp.org>
56529         nonblocking: Add comment.
56530         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
56532 2011-04-17  Bruno Haible  <bruno@clisp.org>
56534         nonblocking: Add tests for sockets.
56535         * tests/test-nonblocking-socket.sh: New file.
56536         * tests/test-nonblocking-socket-main.c: New file.
56537         * tests/test-nonblocking-socket-child.c: New file.
56538         * tests/test-nonblocking-socket.h: New file.
56539         * tests/socket-server.h: New file.
56540         * tests/socket-client.h: New file.
56541         * modules/nonblocking-socket-tests: New file.
56542         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
56544 2011-04-17  Bruno Haible  <bruno@clisp.org>
56546         nonblocking: Add tests for pipes.
56547         * tests/test-nonblocking-pipe.sh: New file.
56548         * tests/test-nonblocking-pipe-main.c: New file.
56549         * tests/test-nonblocking-pipe-child.c: New file.
56550         * tests/test-nonblocking-pipe.h: New file.
56551         * tests/test-nonblocking-writer.h: New file.
56552         * tests/test-nonblocking-reader.h: New file.
56553         * tests/test-nonblocking-misc.h: New file.
56554         * modules/nonblocking-pipe-tests: New file.
56555         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
56557 2011-04-16  Bruno Haible  <bruno@clisp.org>
56559         gettext: Clarify the needed programmer actions.
56560         * modules/gettext (Notice): New field.
56561         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56563 2011-04-16  Bruno Haible  <bruno@clisp.org>
56565         strchrnul: Tweak last commit.
56566         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
56567         bug.
56568         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
56569         as in _GL_FUNCDECL_SYS.
56570         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
56571         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
56573 2011-04-15  Eric Blake  <eblake@redhat.com>
56575         strchrnul: work around cygwin bug
56576         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
56577         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
56578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
56579         * modules/string (Makefile.am): Substitute it.
56580         * lib/string.in.h (strchrnul): Use it.
56582 2011-04-15  Bruno Haible  <bruno@clisp.org>
56584         Don't require lib/stdio-write.c when only module 'stdio' is used.
56585         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
56586         invocation.
56587         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
56589 2011-04-14  Bruno Haible  <bruno@clisp.org>
56591         Support non-blocking pipe I/O in read() on native Windows.
56592         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
56593         (read): New declaration.
56594         * lib/read.c: New file.
56595         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
56596         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
56597         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
56598         vscanf): New declarations.
56599         * lib/stdio-read.c: New file.
56600         * m4/read.m4: New file.
56601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
56602         REPLACE_READ.
56603         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
56604         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56605         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
56606         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
56607         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
56608         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56609         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56610         * modules/read: New file.
56611         * modules/nonblocking (Files): Add lib/stdio-read.c.
56612         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56613         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56614         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56615         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56616         * modules/pread (Depends-on): Add read.
56617         * modules/safe-read (Depends-on): Likewise.
56618         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
56619         gets, scanf, vfscanf, vscanf): Verify signatures.
56620         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
56621         problem with non-blocking pipes.
56622         * doc/posix-functions/fgetc.texi: Likewise.
56623         * doc/posix-functions/fgets.texi: Likewise.
56624         * doc/posix-functions/fread.texi: Likewise.
56625         * doc/posix-functions/fscanf.texi: Likewise.
56626         * doc/posix-functions/getc.texi: Likewise.
56627         * doc/posix-functions/getchar.texi: Likewise.
56628         * doc/posix-functions/gets.texi: Likewise.
56629         * doc/posix-functions/scanf.texi: Likewise.
56630         * doc/posix-functions/vfscanf.texi: Likewise.
56631         * doc/posix-functions/vscanf.texi: Likewise.
56633 2011-04-14  Bruno Haible  <bruno@clisp.org>
56635         Support non-blocking pipe I/O in write() on native Windows.
56636         * lib/write.c (rpl_write): Split a write request that failed merely
56637         because the byte count was larger than the pipe buffer's size.
56638         * doc/posix-functions/write.texi: Mention the problem with large byte
56639         counts.
56641 2011-04-14  Bruno Haible  <bruno@clisp.org>
56643         wchar: Ensure that wchar_t gets defined on uClibc.
56644         * lib/wchar.in.h: On uClibc, include <stddef.h>.
56645         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
56647 2011-04-13  Bruno Haible  <bruno@clisp.org>
56649         safe-write, full-read: Avoid unnecessary compilation units.
56650         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
56651         (Depends-on): Remove safe-read. Add ssize_t.
56652         * modules/full-read (Files): Add lib/full-write.c.
56653         (Depends-on): Add full-write.
56655 2011-04-13  Bruno Haible  <bruno@clisp.org>
56657         Support non-blocking pipe I/O and SIGPIPE in pwrite().
56658         * modules/pwrite (Depends-on): Add 'write'.
56660 2011-04-13  Bruno Haible  <bruno@clisp.org>
56662         Support non-blocking pipe I/O in write() on native Windows.
56663         * lib/unistd.in.h (write): Enable replacement also if
56664         GNULIB_UNISTD_H_NONBLOCKING is 1.
56665         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
56666         (rpl_write): When failing to write on a non-blocking pipe, change
56667         errno from ENOSPC to EAGAIN.
56668         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
56669         putchar, puts, vfprintf, vprintf): Enable replacement also if
56670         GNULIB_STDIO_H_NONBLOCKING is 1.
56671         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
56672         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
56673         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
56674         CALL_WITH_SIGPIPE_EMULATION.
56675         (CALL_WITH_SIGPIPE_EMULATION): Use them.
56676         * m4/nonblocking.m4: New file.
56677         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
56678         for non-blocking I/O support.
56679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56680         GNULIB_UNISTD_H_NONBLOCKING.
56681         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56682         required for non-blocking I/O support.
56683         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56684         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56685         lib/stdio-write.c, m4/asm-underscore.m4.
56686         (Depends-on): Add stdio, unistd.
56687         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56688         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56689         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56690         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56691         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56692         problem with non-blocking pipes.
56693         * doc/posix-functions/fputc.texi: Likewise.
56694         * doc/posix-functions/fputs.texi: Likewise.
56695         * doc/posix-functions/fwrite.texi: Likewise.
56696         * doc/posix-functions/printf.texi: Likewise.
56697         * doc/posix-functions/putc.texi: Likewise.
56698         * doc/posix-functions/putchar.texi: Likewise.
56699         * doc/posix-functions/puts.texi: Likewise.
56700         * doc/posix-functions/vfprintf.texi: Likewise.
56701         * doc/posix-functions/vprintf.texi: Likewise.
56702         * doc/posix-functions/write.texi: Likewise.
56704 2011-04-10  Jim Meyering  <meyering@redhat.com>
56706         maint.mk: prohibit doubled words
56707         Detect them also when they're separated by a newline.
56708         There are 3 ways to customize it:
56709           - disable the test on a per file basis, as usual with rules using
56710             $(VC_LIST_EXCEPT)
56711           - replace the default doubled-word-selecting regexp (affects all files)
56712           - ignore a particular file-vs-doubled-word match
56713         I nearly used that last one to ignore the "is is" match in
56714         coreutils' NEWS file, since the text was "ls -is is ..."
56715         To do that, I would have added this line to cfg.mk:
56716           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56717         but it would have ignored any "is is" match in NEWS.
56718         Low probability, but still...
56719         Instead, I changed the text, slightly:
56720           -  ls -is is now consistent with ls -lis in ignoring values returned
56721           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56722         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56723         (prohibit_doubled_word_): Define.
56724         (sc_prohibit_doubled_word): New rule.
56725         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56727 2011-04-10  Jim Meyering  <meyering@redhat.com>
56729         maint: fix doubled-word typo in comment
56730         * m4/gethostname.m4: s/is is/it is/
56731         * m4/getdomainname.m4: Likewise.
56733 2011-04-10  Jim Meyering  <meyering@redhat.com>
56735         maint: remove doubled word: s/it it/it/
56736         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56738 2011-04-10  Jim Meyering  <meyering@redhat.com>
56740         maint.mk: remove useless semicolon and backslash
56741         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56742         semicolon and backslash.
56744 2011-04-10  Bruno Haible  <bruno@clisp.org>
56746         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56747         * modules/stdint-tests (Depends-on): Add wchar.
56749 2011-04-10  Jim Meyering  <meyering@redhat.com>
56751         maint: remove doubled words in comments, e.g., s/a a/a/
56752         * lib/strptime.c (day_of_the_week): s/the the/the/
56753         * tests/test-chown.h (test_chown): s/a a/a/
56755         test-chown.h: correct a cast
56756         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56757         when the destination is a stat.st_gid.
56759 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56761         getaddrinfo: Fix test for sa_len member.
56762         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56763         include <sys/types.h> before <sys/socket.h>.
56765 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56767         maint: change "can not" to "cannot"
56768         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56769         boundaries.
56771 2011-04-09  Jim Meyering  <meyering@redhat.com>
56773         maint: change "a a" to "a"
56774         * tests/test-lchown.h (test_lchown): s/a a/a/
56776         maint.mk: prohibit \<the the\>
56777         * top/maint.mk (sc_prohibit_the_the): New rule.
56779         maint: fix "the the" in comment
56780         * lib/count-one-bits.h: s/the the/the/
56782         maint: change "can not" to "cannot"
56783         But do not change the occurrences in maintain.texi or in
56784         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56785         * doc/gnulib-tool.texi: s/can not/cannot/
56786         * doc/posix-functions/accept.texi (accept): Likewise.
56787         * doc/posix-functions/socket.texi (socket): Likewise.
56788         * lib/mbrtowc.c: Likewise.
56790         maint.mk: prohibit use of "can not"
56791         * top/maint.mk (sc_prohibit_can_not): New rule.
56792         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56794 2011-04-09  Bruno Haible  <bruno@clisp.org>
56796         careadlinkat: Guard against misuse of careadlinkatcwd.
56797         * lib/careadlinkat.c: Include <stdlib.h>.
56798         (careadlinkatcwd): Check that the fd argument is as expected.
56800 2011-04-09  Bruno Haible  <bruno@clisp.org>
56802         careadlinkat: Use common coding style.
56803         * lib/careadlinkat.c: Move gnulib includes after system includes.
56805 2011-04-09  Bruno Haible  <bruno@clisp.org>
56807         careadlinkat: Clarify specification.
56808         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56809         (careadlinkatcwd): Add comment.
56810         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56812 2011-04-09  Bruno Haible  <bruno@clisp.org>
56814         areadlinkat: Avoid link error on many platforms.
56815         * modules/areadlinkat (Depends-on): Add areadlink.
56817 2011-04-09  Bruno Haible  <bruno@clisp.org>
56819         allocator, careadlinkat: Fix double-inclusion guard.
56820         * lib/allocator.h: Fix double-inclusion guard.
56821         * lib/careadlinkat.h: Likewise.
56823 2011-04-09  Bruno Haible  <bruno@clisp.org>
56825         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56826         * lib/relocwrapper.c: Update dependencies hierarchy.
56827         * build-aux/install-reloc: Update list of files to be compiled.
56828         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56829         lib/allocator.[hc].
56831 2011-04-08  Eric Blake  <eblake@redhat.com>
56833         strftime: silence gnulib-tool warning
56834         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56836 2011-04-08  Bruno Haible  <bruno@clisp.org>
56838         verify: Fix syntax error with GCC 4.6 in C++ mode.
56839         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56840         (HAVE_STATIC_ASSERT): New macro.
56841         (verify_true, verify): Use 'static_assert' if it is supported and
56842         '_Static_assert' is not supported.
56844 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56846         allocator: New module.
56847         * modules/allocator, lib/allocator.c: New files.
56848         * lib/allocator.h (stdlib_allocator): New decl.
56849         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56850         Remove.  Do not include <stdlib.h>.
56851         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56852         * modules/careadlinkat (Files): Remove lib/allocator.h.
56853         (Depends-on): Add allocator.
56855         stdlib: let modules use system malloc, realloc
56856         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56857         if !_GL_USE_STDLIB_ALLOC.
56858         (malloc, realloc): Limit this change to a smaller scope.
56860         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56861         (malloc, realloc): Don't #undef; no longer needed.
56862         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56863         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56864         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56865         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56866         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56867         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56868         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56869         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56871         careadlinkat: rename members to avoid problem
56872         * lib/allocator.h (struct allocator): Rename members from
56873         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56874         and realloc are #define'd.  Reported by Eric Blake in
56875         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56876         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56878 2011-04-08  Eric Blake  <eblake@redhat.com>
56880         nonblocking: reduce dependency
56881         * tests/test-nonblocking.c: Only test sockets when in use.
56882         * modules/nonblocking-tests (Depends-on): Drop socket.
56883         (Makefile.am): Link even if sockets are not present.
56884         * modules/pipe2-tests (Makefile.am): Likewise.
56885         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56887         pipe2: fix O_NONBLOCK support on mingw
56888         * modules/pipe2 (Depends-on): Add nonblocking.
56889         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56890         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56891         * tests/test-nonblocking.c (main): Likewise.
56892         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56894         fcntl-h: fix O_ACCMODE on cygwin
56895         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56896         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56898         pipe-filter: drop O_NONBLOCK workarounds
56899         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56900         * modules/pipe-filter-ii (Depends-on): Likewise.
56901         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56903         nonblocking: provide O_NONBLOCK for mingw
56904         * modules/nonblocking (Depends-on): Add open.
56905         (configure.ac): Set new witness macro.
56906         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56907         * modules/fcntl-h (Makefile.am): Substitute it.
56908         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56909         nonblocking module is in use.
56910         * lib/nonblocking.c: Adjust portability test.
56911         * lib/open.c (open): Don't let native open see gnulib flag.
56912         * tests/test-fcntl-h.c (main): Enhance test.
56913         * tests/test-open.h (test_open): Likewise.
56914         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56916         careadlinkat: fix compilation error on mingw
56917         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56918         within struct allocator.
56920 2011-04-06  Eric Blake  <eblake@redhat.com>
56922         binary-io: relicense under LGPLv2+
56923         * modules/binary-io (License): Relax to LGPLv2+.
56924         Requested for libvirt, and required by pipe2.
56926 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56928         verify: use _Static_assert if available
56929         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56930         (verify_true, verify): Use it if available.  This generates better
56931         diagnostics with GCC 4.6.0 and later.
56933 2011-04-05  Bruno Haible  <bruno@clisp.org>
56935         Remove leftover generated .h files after config.status changed.
56937         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56938         GL_GENERATE_ALLOCA_H.
56939         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56940         GL_GENERATE_ALLOCA_H evaluates to false.
56942         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56943         GL_GENERATE_ARGZ_H.
56944         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56945         evaluates to false.
56947         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56948         GL_GENERATE_BYTESWAP_H.
56949         * modules/byteswap (Makefile.am): Remove byteswap.h if
56950         GL_GENERATE_BYTESWAP_H evaluates to false.
56952         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56953         GL_GENERATE_ERRNO_H.
56954         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56955         evaluates to false.
56957         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56958         GL_GENERATE_FLOAT_H.
56959         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56960         evaluates to false.
56962         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56963         GL_GENERATE_FNMATCH_H.
56964         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56965         GL_GENERATE_FNMATCH_H evaluates to false.
56967         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56968         GL_GENERATE_GLOB_H.
56969         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56970         evaluates to false.
56972         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56973         automake conditional GL_GENERATE_ICONV_H.
56974         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56975         evaluates to false.
56977         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56978         GL_GENERATE_NETINET_IN_H.
56979         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56980         GL_GENERATE_NETINET_IN_H evaluates to false.
56982         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56983         conditional GL_GENERATE_PTHREAD_H.
56984         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56985         * modules/pthread (Makefile.am): Remove pthread.h if
56986         GL_GENERATE_PTHREAD_H evaluates to false.
56988         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56989         GL_GENERATE_SCHED_H.
56990         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56991         evaluates to false.
56993         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56994         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56995         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56996         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56998         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56999         GL_GENERATE_STDARG_H.
57000         * modules/stdarg (Makefile.am): Remove stdarg.h if
57001         GL_GENERATE_STDARG_H evaluates to false.
57003         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
57004         GL_GENERATE_STDBOOL_H.
57005         * modules/stdbool (Makefile.am): Remove stdbool.h if
57006         GL_GENERATE_STDBOOL_H evaluates to false.
57008         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
57009         conditional GL_GENERATE_STDDEF_H.
57010         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
57011         * modules/stddef (Makefile.am): Remove stddef.h if
57012         GL_GENERATE_STDDEF_H evaluates to false.
57014         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
57015         GL_GENERATE_STDINT_H.
57016         * modules/stdint (Makefile.am): Remove stdint.h if
57017         GL_GENERATE_STDINT_H evaluates to false.
57019         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
57020         GL_GENERATE_SYSEXITS_H.
57021         * modules/sysexits (Makefile.am): Remove sysexits.h if
57022         GL_GENERATE_SYSEXITS_H evaluates to false.
57024         Reported by Karl Berry and Ralf Wildenhues.
57026 2011-04-05  Bruno Haible  <bruno@clisp.org>
57028         Ensure to rebuild generated .h files when config.status has changed.
57029         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
57030         config.status.
57031         * modules/ctype (Makefile.am): Likewise.
57032         * modules/dirent (Makefile.am): Likewise.
57033         * modules/errno (Makefile.am): Likewise.
57034         * modules/fcntl-h (Makefile.am): Likewise.
57035         * modules/float (Makefile.am): Likewise.
57036         * modules/getopt-posix (Makefile.am): Likewise.
57037         * modules/glob (Makefile.am): Likewise.
57038         * modules/iconv-h (Makefile.am): Likewise.
57039         * modules/inttypes (Makefile.am): Likewise.
57040         * modules/langinfo (Makefile.am): Likewise.
57041         * modules/locale (Makefile.am): Likewise.
57042         * modules/math (Makefile.am): Likewise.
57043         * modules/netdb (Makefile.am): Likewise.
57044         * modules/netinet_in (Makefile.am): Likewise.
57045         * modules/poll-h (Makefile.am): Likewise.
57046         * modules/pthread (Makefile.am): Likewise.
57047         * modules/pty (Makefile.am): Likewise.
57048         * modules/sched (Makefile.am): Likewise.
57049         * modules/search (Makefile.am): Likewise.
57050         * modules/selinux-h (Makefile.am): Likewise.
57051         * modules/signal (Makefile.am): Likewise.
57052         * modules/spawn (Makefile.am): Likewise.
57053         * modules/stdarg (Makefile.am): Likewise.
57054         * modules/stdbool (Makefile.am): Likewise.
57055         * modules/stddef (Makefile.am): Likewise.
57056         * modules/stdint (Makefile.am): Likewise.
57057         * modules/stdio (Makefile.am): Likewise.
57058         * modules/stdlib (Makefile.am): Likewise.
57059         * modules/string (Makefile.am): Likewise.
57060         * modules/strings (Makefile.am): Likewise.
57061         * modules/sys_file (Makefile.am): Likewise.
57062         * modules/sys_ioctl (Makefile.am): Likewise.
57063         * modules/sys_select (Makefile.am): Likewise.
57064         * modules/sys_socket (Makefile.am): Likewise.
57065         * modules/sys_stat (Makefile.am): Likewise.
57066         * modules/sys_time (Makefile.am): Likewise.
57067         * modules/sys_times (Makefile.am): Likewise.
57068         * modules/sys_utsname (Makefile.am): Likewise.
57069         * modules/sys_wait (Makefile.am): Likewise.
57070         * modules/sysexits (Makefile.am): Likewise.
57071         * modules/termios (Makefile.am): Likewise.
57072         * modules/time (Makefile.am): Likewise.
57073         * modules/unistd (Makefile.am): Likewise.
57074         * modules/wchar (Makefile.am): Likewise.
57075         * modules/wctype-h (Makefile.am): Likewise.
57076         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
57078 2011-04-05  Bruno Haible  <bruno@clisp.org>
57080         pipe2: Relicense under LGPLv2+.
57081         * modules/pipe2 (License): Change to LGPLv2+.
57082         Requested by Eric Blake, for libvirt.
57084 2011-04-05  Bruce Korb  <bkorb@gnu.org>
57086         bootstrap: compute gnulib_extra_files after updating build_aux
57087         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
57088         change build_aux or also supply gnulib_extra_files.  Handle correctly.
57090 2011-04-05  Eric Blake  <eblake@redhat.com>
57092         bootstrap: preserve git whitelist item sorting
57093         * build-aux/bootstrap (sort_patterns): New function.
57094         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
57096 2011-04-05  Simon Josefsson  <simon@josefsson.org>
57098         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
57099         sc_space_tab check.
57101 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
57103         areadlink, areadlinkat: rewrite in terms of careadlinkat
57104         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
57105         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
57106         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
57107         (malloc, realloc): Remove #undefs.
57108         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
57109         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
57110         readlink, ssize_t, stdint, unistd.
57111         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
57112         areadlink, stdint.
57114         careadlinkat: new module
57115         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
57116         * modules/careadlinkat: New files, written by me with
57117         a review and feedback from Ben Pfaff in
57118         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
57120 2011-04-01  Bruno Haible  <bruno@clisp.org>
57122         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
57123         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
57124         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
57125         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
57126         Reported by Bruce Korb <bruce.korb@gmail.com>.
57128 2011-04-01  Bruno Haible  <bruno@clisp.org>
57130         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
57131         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
57132         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
57133         * modules/wcpcpy (Depends-on): Add extensions.
57134         * modules/wcpncpy (Depends-on): Likewise.
57135         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
57136         systems.
57137         * doc/posix-functions/wcpncpy.texi: Likewise.
57138         * doc/posix-functions/wcwidth.texi: Likewise.
57140 2011-03-31  Eric Blake  <eblake@redhat.com>
57142         nonblocking: fix mingw test failures
57143         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
57144         non-blocking flag on regular file.
57145         (get_nonblocking_flag): Set errno on invalid fd.
57146         * tests/test-nonblocking.c (main): Avoid test failure on
57147         directories if fchdir is not active.
57148         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
57150 2011-03-31  Bruno Haible  <bruno@clisp.org>
57152         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
57153         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
57154         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
57155         Reported by Simon Josefsson <simon@josefsson.org>.
57157 2011-03-31  Bruno Haible  <bruno@clisp.org>
57158         and Eric Blake  <eblake@redhat.com>
57160         nonblocking: new module
57161         * modules/nonblocking: New module.
57162         * modules/nonblocking-tests: Likewise.
57163         * lib/nonblocking.h: New file.
57164         * lib/nonblocking.c: Likewise.
57165         * tests/test-nonblocking.c: New test.
57166         * lib/ioctl.c (ioctl) [mingw]: Update comment.
57168 2011-03-30  Bruno Haible  <bruno@clisp.org>
57170         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
57171         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
57172         instead of 'printf' format for GCC >= 4.4.
57173         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
57174         (fprintf, printf, vfprintf, vprintf): Declare with
57175         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57176         the system's vfprintf() function.
57177         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
57179 2011-03-30  Eric Blake  <eblake@redhat.com>
57181         passfd: fix scoping bug
57182         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
57183         before sendmsg/recvmsg.
57185         passfd: standardize coding conventions
57186         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
57187         can be learned at compile time.
57188         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
57189         ifdefs.
57190         (sendfd, recvfd): Follow gnulib code conventions.
57192         passfd: fix incorrect sendmsg arguments
57193         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57194         incorrect msg_controllen value.
57195         * modules/passfd-tests (Depends-on): Check for alarm.
57196         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
57197         Reported by Bastien ROUCARIES.
57199 2011-03-30  Bruno Haible  <bruno@clisp.org>
57201         c-strcasestr: Relicense under LGPLv2+.
57202         * modules/c-strcasestr (License): Change to LGPLv2+.
57203         Requested by Eric Blake, for libvirt.
57205 2011-03-30  Simon Josefsson  <simon@josefsson.org>
57207         * users.txt: Add libidn2.  Fix libtasn1 link.
57209 2011-03-30  Jim Meyering  <meyering@redhat.com>
57211         tests: readlink* ("",... fails with EINVAL on newer kernels
57212         readlink and readlinkat have typically failed with ENOENT for
57213         the invalid, empty file name,  "".  However, with the advent
57214         of linux-2.6.39, they fail with EINVAL.
57215         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
57216         when operating on the empty file name.
57217         * tests/test-readlink.h (test_readlink): Likewise.
57219 2011-03-29  Bruno Haible  <bruno@clisp.org>
57221         Relicense some modules under LGPLv2+, for libidn2.
57222         * modules/array-mergesort (License): Change to LGPLv2+.
57223         * modules/c-strcaseeq (License): Likewise.
57224         * modules/striconveh (License): Likewise.
57225         * modules/striconveha (License): Likewise.
57226         * modules/uniconv/base (License): Likewise.
57227         * modules/uniconv/u8-conv-from-enc (License): Likewise.
57228         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
57229         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
57230         * modules/unictype/base (License): Likewise.
57231         * modules/unictype/bidiclass-of (License): Likewise.
57232         * modules/unictype/category-M (License): Likewise.
57233         * modules/unictype/category-none (License): Likewise.
57234         * modules/unictype/category-of (License): Likewise.
57235         * modules/unictype/category-test (License): Likewise.
57236         * modules/unictype/category-test-withtable (License): Likewise.
57237         * modules/unictype/combining-class (License): Likewise.
57238         * modules/unictype/joiningtype-of (License): Likewise.
57239         * modules/unictype/scripts (License): Likewise.
57240         * modules/uninorm/base (License): Likewise.
57241         * modules/uninorm/canonical-decomposition (License): Likewise.
57242         * modules/uninorm/composition (License): Likewise.
57243         * modules/uninorm/decompose-internal (License): Likewise.
57244         * modules/uninorm/decomposition-table (License): Likewise.
57245         * modules/uninorm/nfc (License): Likewise.
57246         * modules/uninorm/nfd (License): Likewise.
57247         * modules/uninorm/u32-normalize (License): Likewise.
57248         * modules/unistr/base (License): Likewise.
57249         * modules/unistr/u32-cpy (License): Likewise.
57250         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
57251         * modules/unistr/u32-to-u8 (License): Likewise.
57252         * modules/unistr/u32-uctomb (License): Likewise.
57253         * modules/unistr/u8-check (License): Likewise.
57254         * modules/unistr/u8-mblen (License): Likewise.
57255         * modules/unistr/u8-mbtouc (License): Likewise.
57256         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
57257         * modules/unistr/u8-mbtoucr (License): Likewise.
57258         * modules/unistr/u8-prev (License): Likewise.
57259         * modules/unistr/u8-strlen (License): Likewise.
57260         * modules/unistr/u8-to-u32 (License): Likewise.
57261         * modules/unistr/u8-uctomb (License): Likewise.
57262         * modules/unitypes (License): Likewise.
57263         Requested by Simon Josefsson.
57265 2011-03-29  Simon Josefsson  <simon@josefsson.org>
57267         lib-symbol-visibility: Add a notice.
57268         * modules/lib-symbol-visibility (Notice): New field.
57270 2011-03-29  Bruno Haible  <bruno@clisp.org>
57272         getaddrinfo: Doc fix.
57273         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
57274         section "fixed in Gnulib".
57276 2011-03-28  Simon Josefsson  <simon@josefsson.org>
57278         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
57279         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
57281 2011-03-26  Bruno Haible  <bruno@clisp.org>
57283         unictype/property-byname: Reduce the number of load-time relocations.
57284         * lib/unictype/pr_byname.c: Include <stdlib.h>.
57285         (UC_PROPERTY_INDEX_*): New enumeration values.
57286         (uc_property_byname): Convert an index from the lookup table to an
57287         uc_property_t.
57288         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
57289         values.
57291 2011-03-26  Bruno Haible  <bruno@clisp.org>
57293         unictype/property-byname: Allow omitted word separators and aliases.
57294         * lib/unictype/pr_byname.gperf: Add property names without word
57295         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
57296         for 'space'.
57298 2011-03-26  Bruno Haible  <bruno@clisp.org>
57300         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
57301         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
57302         also hyphens to space.
57303         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
57304         without spaces.
57305         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
57307 2011-03-26  Bruno Haible  <bruno@clisp.org>
57309         unictype/joiningtype-byname: Recognize long names as well.
57310         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
57311         a long name.
57312         * lib/unictype/joiningtype_byname.c: Include <string.h>,
57313         unictype/joiningtype_byname.h.
57314         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
57315         * lib/unictype/joiningtype_byname.gperf: New file.
57316         * modules/unictype/joiningtype-byname (Files): Add
57317         lib/unictype/joiningtype_byname.gperf.
57318         (Depends-on): Add gperf.
57319         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
57320         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
57321         long names.
57323         Tests for module 'unictype/joiningtype-longname'.
57324         * modules/unictype/joiningtype-longname-tests: New file.
57325         * tests/unictype/test-joiningtype_longname.c: New file.
57327         New module 'unictype/joiningtype-longname'.
57328         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
57329         * lib/unictype/joiningtype_longname.c: New file.
57330         * modules/unictype/joiningtype-longname: New file.
57331         * modules/unictype/joiningtype-all (Depends-on): Add
57332         unictype/joiningtype-longname.
57334 2011-03-26  Bruno Haible  <bruno@clisp.org>
57336         unictype/bidiclass-byname: Recognize long names as well.
57337         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
57338         name.
57339         * lib/unictype/bidi_byname.c: Include <string.h>,
57340         unictype/bidi_byname.h.
57341         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
57342         * lib/unictype/bidi_byname.gperf: New file.
57343         * modules/unictype/bidiclass-byname (Files): Add
57344         lib/unictype/bidi_byname.gperf.
57345         (Depends-on): Add gperf.
57346         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
57347         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
57348         long names.
57350         Tests for module 'unictype/bidiclass-longname'.
57351         * modules/unictype/bidiclass-longname-tests: New file.
57352         * tests/unictype/test-bidi_longname.c: New file.
57354         New module 'unictype/bidiclass-longname'.
57355         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
57356         * lib/unictype/bidi_longname.c: New file.
57357         * modules/unictype/bidiclass-longname: New file.
57358         * modules/unictype/bidiclass-all (Depends-on): Add
57359         unictype/bidiclass-longname.
57361 2011-03-26  Bruno Haible  <bruno@clisp.org>
57363         unictype/bidi*: Rename modules.
57364         * modules/unictype/bidiclass-all: Renamed from
57365         modules/unictype/bidicategory-all.
57366         * modules/unictype/bidiclass-name: Renamed from
57367         modules/unictype/bidiclass-name.
57368         (Description): Update.
57369         * modules/unictype/bidiclass-name-tests: Renamed from
57370         modules/unictype/bidicategory-name-tests.
57371         * modules/unictype/bidiclass-byname: Renamed from
57372         modules/unictype/bidicategory-byname.
57373         (Description): Update.
57374         * modules/unictype/bidiclass-byname-tests: Renamed from
57375         modules/unictype/bidicategory-byname-tests.
57376         * modules/unictype/bidiclass-of: Renamed from
57377         modules/unictype/bidicategory-of.
57378         (Description): Update.
57379         * modules/unictype/bidiclass-of-tests: Renamed from
57380         modules/unictype/bidicategory-of-tests.
57381         * modules/unictype/bidiclass-test: Renamed from
57382         modules/unictype/bidicategory-test.
57383         (Description): Update.
57384         * modules/unictype/bidiclass-test-tests: Renamed from
57385         modules/unictype/bidicategory-test-tests.
57386         * modules/unictype/bidicategory-all: New file, a simple redirection.
57387         * modules/unictype/bidicategory-name: Likewise.
57388         * modules/unictype/bidicategory-byname: Likewise.
57389         * modules/unictype/bidicategory-of: Likewise.
57390         * modules/unictype/bidicategory-test: Likewise.
57391         * modules/unictype/property-bidi-* (Dependencies): Update.
57392         * lib/unictype/bidi_*.c: Update comment.
57394 2011-03-26  Bruno Haible  <bruno@clisp.org>
57396         unictype/bidi*: Rename functions, part 2.
57397         * modules/unictype/bidicategory-name (configure.ac): Update required
57398         libunistring version.
57399         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57401 2011-03-25  Bruno Haible  <bruno@clisp.org>
57403         New module 'unictype/combining-class-all'.
57404         * modules/unictype/combining-class-all: New file.
57406         Tests for module 'unictype/combining-class-byname'.
57407         * modules/unictype/combining-class-byname-tests: New file.
57408         * tests/unictype/test-combiningclass_byname.c: New file.
57410         New module 'unictype/combining-class-byname'.
57411         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57412         * lib/unictype/combiningclass_byname.c: New file.
57413         * lib/unictype/combiningclass_byname.gperf: New file.
57414         * modules/unictype/combining-class-byname: New file.
57416         Tests for module 'unictype/combining-class-longname'.
57417         * modules/unictype/combining-class-longname-tests: New file.
57418         * tests/unictype/test-combiningclass_longname.c: New file.
57420         New module 'unictype/combining-class-longname'.
57421         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57422         * lib/unictype/combiningclass_longname.c: New file.
57423         * modules/unictype/combining-class-longname: New file.
57425         Tests for module 'unictype/combining-class-name'.
57426         * modules/unictype/combining-class-name-tests: New file.
57427         * tests/unictype/test-combiningclass_name.c: New file.
57429         New module 'unictype/combining-class-name'.
57430         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57431         * lib/unictype/combiningclass_name.c: New file.
57432         * modules/unictype/combining-class-name: New file.
57434 2011-03-25  Bruno Haible  <bruno@clisp.org>
57436         unictype/combining-class: Rename source files.
57437         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57438         of unictype/combining.h.
57439         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57440         Update.
57441         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57442         * modules/unictype/combining-class (Description): Fix.
57443         (Files, Makefile.am): Update.
57444         * tests/unictype/test-combiningclass.c: Renamed from
57445         tests/unictype/test-combining.c.
57446         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57448 2011-03-25  Bruno Haible  <bruno@clisp.org>
57450         unictype: Update list of canonical combining classes.
57451         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57453 2011-03-25  Bruno Haible  <bruno@clisp.org>
57455         unictype/category-byname: Recognize long names as well.
57456         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57457         a long name.
57458         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57459         unictype/categ_byname.h.
57460         (UC_CATEGORY_INDEX_*): New enumeration values.
57461         (uc_general_category_byname): Use uc_general_category_lookup and
57462         convert from index to value.
57463         * lib/unictype/categ_byname.gperf: New file.
57464         * modules/unictype/category-byname (Files): Add
57465         lib/unictype/categ_byname.gperf.
57466         (Depends-on): Add gperf.
57467         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57468         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57469         long names.
57471         Tests for module 'unictype/category-longname'.
57472         * modules/unictype/category-longname-tests: New file.
57473         * tests/unictype/test-categ_longname.c: New file.
57475         New module 'unictype/category-longname'.
57476         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
57477         * lib/unictype/categ_longname.c: New file.
57478         * modules/unictype/category-longname: New file.
57479         * modules/unictype/category-all (Depends-on): Add it.
57481 2011-03-25  Bruno Haible  <bruno@clisp.org>
57483         Tests for module 'unictype/category-LC'.
57484         * modules/unictype/category-LC-tests: New file.
57485         * tests/unictype/test-categ_LC.c: New file, automatically generated.
57487         New module 'unictype/category-LC'.
57488         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
57489         (UC_CATEGORY_LC): New declaration.
57490         (UC_CASED_LETTER): New macro.
57491         * lib/gen-uni-tables.c (is_category_LC): New function.
57492         (output_categories): Also handle category LC.
57493         (UC_CATEGORY_MASK_LC): New enumeration value.
57494         (general_category_byname): Also handle category LC.
57495         * lib/unictype/categ_LC.c: New file.
57496         * lib/unictype/categ_LC.h: New file, automatically generated.
57497         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
57498         category LC.
57499         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
57500         * modules/unictype/category-LC: New file.
57501         * modules/unictype/category-byname (Depends-on): Add
57502         unictype/category-LC.
57503         * modules/unictype/category-all (Depends-on): Likewise.
57505 2011-03-25  Eric Blake  <eblake@redhat.com>
57507         xmalloc: revert yesterday's regression
57508         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
57509         realloc's underlying behavior (allowing allocation of zero-size
57510         objects, especially if malloc-gnu is also in use).
57512 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
57514         maint.mk: add missing version to VC-tag
57515         * top/maint.mk: git tag was missing actual tag name; add it.
57517         valgrind: do leak checking, and exit with code 1 on error (not 0)
57518         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
57519         to VALGRIND.
57521 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
57523         posix-modules: say what it does.
57524         * posix-modules: Add a line to the --help output saying what it does.
57526 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
57528         xmalloc: Do not leak if underlying realloc is C99 compatible.
57529         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
57530         This avoids a leak on C99-based systems.  See
57531         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
57533 2011-03-24  Eric Blake  <eblake@redhat.com>
57535         realloc: document portability problem
57536         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
57537         passing 0 size to realloc.
57539 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
57541         doc: update users.txt
57542         * users.txt: Add cvsps, tmpwatch
57544 2011-03-23  Matt Rice  <ratmice@gmail.com>
57546         doc: update users.txt
57547         * users.txt: Add gdb.
57549 2011-03-23  Jim Meyering  <meyering@redhat.com>
57551         doc: update users.txt
57552         Looking through matches up to the following URL (there are still
57553         several more pages), I found several projects that use gnulib:
57554         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
57555         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
57556         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
57558 2011-03-22  Bruno Haible  <bruno@clisp.org>
57560         unictype/bidi*: Rename functions.
57561         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
57562         uc_bidi_class, uc_is_bidi_class): New declarations.
57563         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
57564         uc_bidi_category_byname.
57565         (uc_bidi_category_byname): New function.
57566         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
57567         u_bidi_category_name.
57568         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
57569         (uc_bidi_category_name): New function.
57570         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57571         uc_bidi_category.
57572         (uc_bidi_category): New function.
57573         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
57574         uc_is_bidi_category. Invoke uc_bidi_class.
57575         (uc_is_bidi_category): New function.
57576         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
57577         instead of uc_bidi_category_byname.
57578         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
57579         instead of uc_bidi_category_name.
57580         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
57581         uc_bidi_category.
57582         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
57583         instead of uc_is_bidi_category.
57585 2011-03-21  Bruno Haible  <bruno@clisp.org>
57587         New module 'unictype/joininggroup-all'.
57588         * modules/unictype/joininggroup-all: New file.
57590         Tests for module 'unictype/joininggroup-of'.
57591         * modules/unictype/joininggroup-of-tests: New file.
57592         * tests/unictype/test-joininggroup_of.c: New file.
57593         * tests/unictype/test-joininggroup_of.h: New file, automatically
57594         generated by gen-uni-tables.
57596         New module 'unictype/joininggroup-of'.
57597         * modules/unictype/joininggroup-of: New file.
57598         * lib/unictype/joininggroup_of.c: New file.
57599         * lib/unictype/joininggroup_of.h: New file, automatically generated by
57600         gen-uni-tables.
57602         Tests for module 'unictype/joininggroup-byname'.
57603         * modules/unictype/joininggroup-byname-tests: New file.
57604         * tests/unictype/test-joininggroup_byname.c: New file.
57606         New module 'unictype/joininggroup-byname'.
57607         * modules/unictype/joininggroup-byname: New file.
57608         * lib/unictype/joininggroup_byname.c: New file.
57609         * lib/unictype/joininggroup_byname.gperf: New file.
57611         Tests for module 'unictype/joininggroup-name'.
57612         * modules/unictype/joininggroup-name-tests: New file.
57613         * tests/unictype/test-joininggroup_name.c: New file.
57615         New module 'unictype/joininggroup-name'.
57616         * modules/unictype/joininggroup-name: New file.
57617         * lib/unictype/joininggroup_name.c: New file.
57618         * lib/unictype/joininggroup_name.h: New file.
57620         New module 'unictype/joiningtype-all'.
57621         * modules/unictype/joiningtype-all: New file.
57623         Tests for module 'unictype/joiningtype-of'.
57624         * modules/unictype/joiningtype-of-tests: New file.
57625         * tests/unictype/test-joiningtype_of.c: New file.
57626         * tests/unictype/test-joiningtype_of.h: New file, automatically
57627         generated by gen-uni-tables.
57629         New module 'unictype/joiningtype-of'.
57630         * modules/unictype/joiningtype-of: New file.
57631         * lib/unictype/joiningtype_of.c: New file.
57632         * lib/unictype/joiningtype_of.h: New file, automatically generated by
57633         gen-uni-tables.
57635         Tests for module 'unictype/joiningtype-byname'.
57636         * modules/unictype/joiningtype-byname-tests: New file.
57637         * tests/unictype/test-joiningtype_byname.c: New file.
57639         New module 'unictype/joiningtype-byname'.
57640         * modules/unictype/joiningtype-byname: New file.
57641         * lib/unictype/joiningtype_byname.c: New file.
57643         Tests for module 'unictype/joiningtype-name'.
57644         * modules/unictype/joiningtype-name-tests: New file.
57645         * tests/unictype/test-joiningtype_name.c: New file.
57647         New module 'unictype/joiningtype-name'.
57648         * modules/unictype/joiningtype-name: New file.
57649         * lib/unictype/joiningtype_name.c: New file.
57651         unictype: Add support for Arabic shaping properties.
57652         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
57653         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
57654         declarations.
57655         (UC_JOINING_GROUP_*): New enumeration values.
57656         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
57657         declarations.
57658         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
57659         (unicode_joining_type): New variable.
57660         (UC_JOINING_GROUP_*): New enumeration values.
57661         (unicode_joining_group): New variable.
57662         (fill_arabicshaping, joining_type_as_c_identifier,
57663         output_joining_type_test, output_joining_type,
57664         joining_group_as_c_identifier, output_joining_group_test,
57665         output_joining_group): New functions.
57666         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
57667         fill_arabicshaping and output_joining_type_test, output_joining_type,
57668         output_joining_group_test, output_joining_group.
57669         Reported by Simon Josefsson.
57671 2011-03-21  Jim Meyering  <meyering@redhat.com>
57673         strftime: fix a bug in yesterday's change
57674         * lib/strftime.c (add): Accommodate width's initial value of -1.
57675         Otherwise, nstrftime would copy uninitialized data into
57676         the result buffer.
57678 2011-03-21  Jim Meyering  <meyering@redhat.com>
57680         tests: add strftime-tests module
57681         * tests/test-strftime.c: New file.
57682         * modules/strftime-tests: New module.
57684 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57686         strftime: don't assume a byte count fits in 'int'
57687         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57688         found this problem by static analysis, using gcc -Wstrict-overflow
57689         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57690         on an integer overflow having undefined behavior, but it turns out
57691         that the argument is a size, which might not fit in 'int' anyway,
57693 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57695         stdio: don't require ignore_value around fwrite
57697         This patch works around libc bug 11959
57698         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57699         Without this patch, applications must often write
57700         ignore_value (fwrite (...)) even though the ignore_value is
57701         not helpful here.  It's common to write many objects, using
57702         fwrite/printf/etc., and then use ferror to detect output error.
57704         I considered making this patch optional, but decided against it,
57705         because libc is obviously being inconsistent here: there is no
57706         reason libc should insist that user code must inspect fwrite
57707         return's value without also insisting that it inspect printf's,
57708         putchar's, etc.  If user code wants to have a strict style where
57709         all these functions' values are checked (so that ferror need not
57710         be checked), we could add support for that style in a new gnulib
57711         module, but in the meantime it's better to be consistent and to
57712         support common usage.
57714         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57715         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57716         that we are compiling in checking mode, and if not C++, and
57717         if not already wrapping fwrite for some other reason.
57718         (fwrite): #define to rpl_fwrite if the latter is defined.
57720 2011-03-20  Bruno Haible  <bruno@clisp.org>
57722         verror: Fix compilation error introduced on 2011-02-13.
57723         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57724         instead of __attribute__.
57725         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57727 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57728             Bruno Haible  <bruno@clisp.org>
57730         socklen: do not depend on sys_socket
57731         While trying to modify Emacs to use gnulib's socklen module,
57732         I discovered a circular dependency: socklen depends on sys_socket
57733         and vice versa.  Emacs can use socklen, but it does not need
57734         sys_socket because it has its own substitute for sys/socket.h.
57735         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57736         gl_TYPE_SOCKLEN_T.
57737         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57738         gl_PREREQ_SYS_H_SOCKET.
57739         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57740         gl_PREREQ_SYS_H_SOCKET.
57741         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57742         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57743         * modules/socklen (Depends-on): Do not depend on sys_socket.
57744         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57746 2011-03-20  Jim Meyering  <meyering@redhat.com>
57748         maint.mk: sort file names *after* new transformation
57749         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57750         prefix would have led to an unwarranted failure in GNU parted.
57751         Sort after that transformation.
57753 2011-03-19  Jim Meyering  <meyering@redhat.com>
57755         maint.mk: fix po-file syntax-check rule
57756         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57757         Patch by Bruno Haible.
57759 2011-03-19  Bruno Haible  <bruno@clisp.org>
57761         socklen: Update comment.
57762         * m4/socklen.m4: Update comment about platforms.
57764 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57765             Bruno Haible  <bruno@clisp.org>
57767         inet_ntop, inet_pton: Simplify.
57768         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57769         documented to provide socklen_t and we already depend on sys_socket.
57770         * modules/inet_pton (Depends-on): Likewise.
57771         * lib/arpa_inet.in.h: Adjust comment.
57773 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57774             Bruno Haible  <bruno@clisp.org>
57776         netdb: Simplify.
57777         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57778         documented to provide socklen_t and we already depend on sys_socket.
57779         * lib/netdb.in.h: Adjust comment.
57781 2011-03-19  Bruno Haible  <bruno@clisp.org>
57783         sys_socket, netdb: Document problem with socklen_t.
57784         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57785         platforms.
57786         * doc/posix-headers/netdb.texi: Likewise.
57788 2011-03-18  Eric Blake  <eblake@redhat.com>
57790         maint.mk: let po check work in VPATH build
57791         * top/maint.mk (po_file): Allow cfg.mk override.
57792         (sc_po_check): Allow VPATH use.
57793         Reported by Jiri Denemark.
57795 2011-03-16  Jim Meyering  <meyering@redhat.com>
57797         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57798         Before, you would have had to create one .x-sc_ file per rule in order
57799         to exempt offending files.  Now, you may instead use a Make variable --
57800         usually defined in cfg.mk -- whose name identifies the affected rule.
57801         * top/maint.mk (_sc_excl): Define.
57802         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57803         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57805 2011-03-13  Bruno Haible  <bruno@clisp.org>
57807         ignore-value tests: Avoid warnings.
57808         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57809         empty for gcc < 3.4.
57811 2011-03-13  Bruno Haible  <bruno@clisp.org>
57813         passfd: Fix link error on Solaris.
57814         * modules/passfd (Description): Correct.
57815         (Depends-on): Add socketlib.
57816         (Link): New section.
57817         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57819 2011-03-13  Bruno Haible  <bruno@clisp.org>
57821         passfd: Fix link error on AIX 5.2.
57822         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57824 2011-03-13  Bruno Haible  <bruno@clisp.org>
57826         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57827         * lib/sys_socket.in.h: Include <stddef.h>.
57828         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57829         CMSG_FIRSTHDR. Remove unused variable.
57831 2011-03-13  Bruno Haible  <bruno@clisp.org>
57833         passfd: Fix compilation error on OpenBSD.
57834         * lib/passfd.c: Include <sys/uio.h>.
57836 2011-03-13  Bruno Haible  <bruno@clisp.org>
57838         passfd test: Fix warnings.
57839         * tests/test-passfd.c: Include <sys/wait.h>.
57840         (main): Fix typo.
57842 2011-03-13  Bruno Haible  <bruno@clisp.org>
57844         passfd module, part 4, tweaks.
57845         * tests/test-passfd.c: Reorder includes.
57846         (main): Fix perror and printf calls.
57848 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57850         passfd module, part 4.
57851         * modules/passfd-tests: New file.
57852         * tests/test-passfd.c: New file.
57854 2011-03-13  Jim Meyering  <meyering@redhat.com>
57856         Makefile: rely on GNU make; derive syntax-check rule names
57857         Rather than requiring that each sc_ rule be listed as a dependent
57858         of "check", use features of GNU make to derive the list.
57859         * Makefile (syntax-check-rules): Define.
57860         (check): Depend on the new variable, not the hard-coded list.
57862 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57863             Bruno Haible  <bruno@clisp.org>
57865         passfd module, part 3.
57866         * lib/passfd.h (recvfd): Add a flags argument.
57867         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57868         (recvfd): Add a flags argument.
57869         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57870         exists.
57871         * modules/passfd (Depends-on): Add cloexec.
57872         Suggested by Eric Blake.
57874 2011-03-13  Bruno Haible  <bruno@clisp.org>
57876         passfd module, part 2, tweaks.
57877         * modules/passfd (Files): Reorder.
57878         (Depends-on): Remove errno.
57879         (Include): Remove <sys/socket.h>, <sys/un.h>.
57880         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57881         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57882         specification header. Include <sys/socket.h> always. Don't include
57883         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57884         (sendfd): Clarify that it sets errno when it fails.
57885         (recvfd): Fix specification.
57887 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57889         passfd module, part 2.
57890         * modules/passfd: New file.
57891         * lib/passfd.h: New file.
57892         * lib/passfd.c: New file.
57894 2011-03-12  Bruno Haible  <bruno@clisp.org>
57896         wcswidth, mbswidth: Avoid integer overflow.
57897         * lib/wcswidth.c: Include <limits.h>.
57898         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57899         * lib/mbswidth.c: Include <limits.h>.
57900         (mbsnwidth): Avoid 'int' overflow.
57901         Reported by Jim Meyering.
57903 2011-03-12  Bruno Haible  <bruno@clisp.org>
57905         futimens, utimensat: Avoid endless recursion on Solaris 10.
57906         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57907         Solaris.
57908         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57909         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57911 2011-03-11  Jim Meyering  <meyering@redhat.com>
57913         maint.mk: relax a regexp to accommodate other formatting styles
57914         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57915         between "ngettext" and the following "(".
57917 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57919         maint.mk: suppress a false positive warning
57920         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57921         diagnostics are marked with ngettext.
57923 2011-03-10  Eric Blake  <eblake@redhat.com>
57925         wchar: add explicit dependencies, for Tru64
57926         * modules/mbmemcasecoll (Depends-on): Add wchar.
57927         * modules/mbtowc (Depends-on): Likewise.
57928         * modules/vasnprintf (Depends-on): Likewise.
57929         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57930         * modules/wctomb (Depends-on): Likewise.
57931         Reported by Peter O'Gorman.
57933 2011-03-08  Bruno Haible  <bruno@clisp.org>
57935         passfd module, part 1, tweaks.
57936         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57937         Improve indentation. Improve AC_MSG_CHECKING messages.
57938         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57939         gl_SOCKET_FAMILIES.
57941 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57943         passfd module, part 1.
57944         * m4/afunix.m4: New file.
57945         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57946         sockets.
57948 2011-03-08  Bruno Haible  <bruno@clisp.org>
57950         regex-quote: New API.
57951         * lib/regex-quote.h: Include <stdbool.h>.
57952         (struct regex_quote_spec): New type.
57953         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57954         New declarations.
57955         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57956         'const struct regex_quote_spec *' argument.
57957         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57958         (pcre_special): New constant.
57959         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57960         New functions.
57961         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57962         'const struct regex_quote_spec *' argument.
57963         * modules/regex-quote (Depends-on): Add stdbool.
57964         * tests/test-regex-quote.c (check): Update for new API. Add test for
57965         anchored results.
57966         * NEWS: Mention the API change.
57967         Reported by Reuben Thomas and Eric Blake.
57969 2011-03-06  Bruno Haible  <bruno@clisp.org>
57971         regex-quote: Fix creation of POSIX extended regular expressions.
57972         * lib/regex-quote.c (ere_special): Add grouping and alternation
57973         operators.
57975 2011-03-05  Bruno Haible  <bruno@clisp.org>
57977         doc: Improve doc regarding autopoint vs. gnulib.
57978         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57979         disable autopoint while running autoreconf.
57980         Suggested by Ralf Wildenhues.
57982 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57984         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57985         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57987 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57989         parse-duration: remove xalloc.h dependency
57990         * lib/parse-duration.c (parse_period): handle NULL return from
57991         strdup instead of calling xstrdup().
57992         * modules/parse-duration: remove "xalloc" dependency
57994 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57996         bootstrap: honor m4_base when running aclocal
57997         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57999 2011-03-02  Jim Meyering  <meyering@redhat.com>
58001         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
58002         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
58003         on request from Matt Booth.
58005 2011-03-01  Eric Blake  <eblake@redhat.com>
58007         test-link: work on Hurd
58008         * tests/test-link.h (test_link): Hurd rejects linking directories
58009         with EISDIR instead of the POSIX-mandated EPERM.
58011 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
58013         stdio: simplify by moving files to printf-posix, sigpipe
58014         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
58015         since this symbol is needed only if printf is replaced.
58016         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
58017         Require gl_ASM_SYMBOL_PREFIX.
58018         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
58019         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
58020         (Depends-on): Add 'raise'.
58021         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
58022         * modules/stdio (Files): Remove lib/stdio-write.c,
58023         m4/asm-underscore.m4.
58024         (Depends-on): Remove 'raise'.
58026         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
58027         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
58028         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
58029         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
58031 2011-02-28  Bruno Haible  <bruno@clisp.org>
58033         localcharset: Assume ANSI C behaviour of free().
58034         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
58035         calling free().
58036         Suggested by Simon Josefsson <simon@josefsson.org>.
58038 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
58039             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
58040             Bruno Haible  <bruno@clisp.org>  (tiny change)
58042         On Cygwin, use /proc file system instead of win32 API.
58043         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
58044         Win32 file names.
58045         (DllMain): Simplify by removing Cygwin specific code.
58046         (find_shared_library_fullname): Use Linux specific implementation also
58047         for Cygwin.
58048         (get_shared_library_fullname): Update accordingly.
58049         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
58050         Win32 file names.
58051         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
58052         Cygwin specific code.
58054 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
58055             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
58057         Fix OpenMP flag detection for various Fortran compilers.
58058         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
58059         OpenMP-conditional compilation construct, to force compile
58060         failure with missing OpenMP flag.
58061         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
58063 2011-02-25  Eric Blake  <eblake@redhat.com>
58065         strstr: expand test coverage
58066         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
58067         compilation.
58068         * tests/test-memmem.c (main): Duplicate tests.
58069         * tests/test-strcasestr.c (main): Likewise.
58070         * tests/test-c-strcasestr.c (main): Likewise.
58072 2011-02-25  Jim Meyering  <meyering@redhat.com>
58074         maint.mk: detect missing-NL-at-EOF, too
58075         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
58076         it also detects when a file lacks a newline at EOF.
58077         (require_exactly_one_NL_at_EOF_): Renamed from
58078         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
58079         since people may well have .x-sc_... file names tied to the
58080         existing name.  Suggested by Eric Blake.
58082 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58084         dirname: move m4/dos.m4 functionality into lib/dosname.h
58086         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
58087         extracts symbols from it, puts them into config.h; but it's much
58088         easier to use the symbols directly.  filename.h already does this,
58089         but it disagrees with dos.m4 in some respects.  This patch
58090         introduces a different include file dosname.h that packages up
58091         dos.m4, and then later we can work on merging filename.h and
58092         dosname.h.  Applications that need only the easy-to-configure
58093         symbols should consider including dosname.h rather than dirname.h.
58094         * NEWS: Mention incompatible changes.
58095         * m4/dos.m4: Remove.
58096         * lib/dosname.h, modules/dosname: New files.
58097         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
58098         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
58099         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
58100         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
58101         Include dosname.h, not dirname.h.
58102         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
58103         Include dosname.h, for definitions of symbols like ISSLASH
58104         that used to be in config.h.
58105         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
58106         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58107         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58108         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58109         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
58110         * modules/rmdir (Files): Likewise.
58111         * modules/stat (Files): Likewise.
58112         * modules/unlink (Files): Likewise.
58113         * modules/dirname-lgpl (Depends-on): Add dosname.
58114         * modules/lstat (Depends-on): Likewise.
58115         * modules/openat (Depends-on): Likewise.
58116         * modules/rmdir (Depends-on): Likewise.
58117         * modules/savewd (Depends-on): Likewise.
58118         * modules/stat (Depends-on): Likewise.
58119         * modules/unlink (Depends-on): Likewise.
58120         * modules/openat (Depends-on): Remove dirname-lgpl.
58121         * modules/savewd (Depends-on): Likewise.
58122         * tests/test-dirname.c: Do not use removed symbols like
58123         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
58124         the remaining symbols, e.g., ISSLASH ('\\').
58126 2011-02-25  Eric Blake  <eblake@redhat.com>
58128         strstr: revert patches that introduced bug and pessimization
58129         * lib/str-two-way.h: Add another reference.
58130         (two_way_short_needle, two_way_long_needle): Revert changes from
58131         2011-02-24; they pessimize search speed.
58132         (critical_factorization): Partially revert changes from
58133         2010-06-22; they violate the requirement that the left half of the
58134         needle be smaller than the period of the needle.
58136 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58138         filenamecat: remove unnecessary dependency on dirname-lgpl
58139         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
58140         is no direct dependency, just an indirect one via filenamecat-lgpl.
58142         remove: remove unnecessary use of m4/dos.m4
58143         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
58144         * modules/remove (FILES): Remove m4/dos.m4.
58146         * lib/openat-proc.c: Don't include dirname.h; not needed.
58148         backupfile: remove unnecessary use of m4/dos.m4
58149         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
58150         of its symbols are used by the backupfile code.  backupfile.c does
58151         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
58152         for the rare case of programs that want all their backup file
58153         names to live within 8+3 limits, and dos.m4 doesn't address that.
58154         * modules/backupfile (Files): Remove m4/dos.m4.
58156 2011-02-24  Jim Meyering  <meyering@redhat.com>
58158         strstr: fix a bug whereby strstr would mistakenly return NULL
58159         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
58160         in period calculation.
58161         (two_way_long_needle): Likewise.
58162         The original problem was reported by Mike Stump in
58163         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
58164         Ralf Wildenhues provided the short needle and haystack.
58165         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
58166         Add a more involved test to trigger the bug in two_way_long_needle.
58168 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58170         gnulib-tool: remove use of bold display in help screen
58171         * gnulib-tool (func_usage): Do not use bold display anymore in the
58172         help screen.  That was just meant to be a temporary emphasis for a
58173         backward-incompatible change.
58175 2011-02-23  Bruno Haible  <bruno@clisp.org>
58177         Fix misindentation of preprocessor directives.
58178         * lib/argp-namefrob.h: Reindent preprocessor directives.
58179         * lib/getopt_int.h (struct _getopt_data): Likewise.
58180         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
58181         * lib/vasnprintf.c (decode_long_double): Likewise.
58182         * tests/test-argmatch.c: Insert blank lines, for clarity.
58183         * tests/test-exclude.c: Likewise.
58185 2011-02-22  Bruno Haible  <bruno@clisp.org>
58187         ioctl: Fix for MacOS X in 64-bit mode.
58188         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
58189         value.
58190         Suggested by Eric Blake.
58191         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58193 2011-02-22  Jim Meyering  <meyering@redhat.com>
58195         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58196         * Makefile (sc_cpp_indent_check): Don't limit the check to files
58197         in lib/.
58199 2011-02-22  Eric Blake  <eblake@redhat.com>
58201         maint: avoid any CDPATH issue
58202         * Makefile (sc_cpp_indent_check): Anchor cd argument.
58204         maint: adjust cpp indentation for my modules, as well
58205         * Makefile (sc_cpp_indent_check): Add my name.
58206         * lib/fbufmode.c: Filter through cppi.
58207         * lib/fpurge.c: Likewise.
58208         * lib/freadable.c: Likewise.
58209         * lib/freading.c: Likewise.
58210         * lib/fwritable.c: Likewise.
58211         * lib/fwriting.c: Likewise.
58212         * lib/sigaction.c: Likewise.
58214 2011-02-22  Jim Meyering  <meyering@redhat.com>
58216         maint: adjust cpp indentation to reflect nesting depth
58217         I.e., in a block of code that begins with an unnested "#if",
58218         put one space between the "#" in column 1 and following token.
58219         For example,
58220         -#include <sys/vfs.h>
58221         +# include <sys/vfs.h>
58222         Do this only in .c files that are part of a module I maintain.
58223         * lib/linkat.c: Filter through cppi.
58224         * lib/nanosleep.c: Likewise.
58225         * lib/openat.c: Likewise.
58226         * lib/openat-die.c: Likewise.
58227         * lib/dup3.c: Likewise.
58228         * lib/fchownat.c: Likewise.
58229         * lib/flock.c: Likewise.
58230         * lib/fsync.c: Likewise.
58231         * lib/fts.c: Likewise.
58232         * lib/getpass.c: Likewise.
58233         * lib/gettimeofday.c: Likewise.
58234         * lib/userspec.c: Likewise.
58235         * Makefile (sc_cpp_indent_check): New rule, to check this.
58237 2011-02-22  Bruno Haible  <bruno@clisp.org>
58239         New module 'wctomb'.
58240         * lib/stdlib.in.h (wctomb): New declaration.
58241         * lib/wctomb.c: New file.
58242         * lib/wctomb-impl.h: New file.
58243         * m4/wctomb.m4: New file.
58244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
58245         REPLACE_WCTOMB.
58246         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
58247         REPLACE_WCTOMB.
58248         * modules/wctomb: New file.
58249         * tests/test-stdlib-c++.cc: Test signature of wctomb.
58250         * doc/posix-functions/wctomb.texi: Mention the new module.
58251         * modules/wctob (Depends-on): Add wctomb.
58253 2011-02-22  Bruno Haible  <bruno@clisp.org>
58255         New module 'mbtowc'.
58256         * lib/stdlib.in.h (mbtowc): New declaration.
58257         * lib/mbtowc.c: New file.
58258         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
58259         * m4/mbtowc.m4: New file.
58260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
58261         REPLACE_MBTOWC.
58262         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
58263         REPLACE_MBTOWC.
58264         * modules/mbtowc: New file.
58265         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
58266         * doc/posix-functions/mbtowc.texi: Mention the new module.
58267         * modules/btowc (Depends-on): Add mbtowc.
58269 2011-02-22  Bruno Haible  <bruno@clisp.org>
58271         wcrtomb: Add more tests for native Windows platforms.
58272         * tests/test-wcrtomb-w32-1.sh: New file.
58273         * tests/test-wcrtomb-w32-2.sh: New file.
58274         * tests/test-wcrtomb-w32-3.sh: New file.
58275         * tests/test-wcrtomb-w32-4.sh: New file.
58276         * tests/test-wcrtomb-w32-5.sh: New file.
58277         * tests/test-wcrtomb-w32.c: New file.
58278         * modules/wcrtomb-tests (Files): Add them.
58279         (Makefile.am): Arrange to run these tests.
58280         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
58281         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
58283 2011-02-20  Bruno Haible  <bruno@clisp.org>
58285         wcrtomb: Enhance test.
58286         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
58288 2011-02-20  Bruno Haible  <bruno@clisp.org>
58290         mbrtowc: Tiny optimization.
58291         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
58293 2011-02-20  Jim Meyering  <meyering@redhat.com>
58295         test-exclude.c: remove unmatched #endif
58296         * tests/test-exclude.c: Remove stray #endif, left over from
58297         the change of a week ago.
58299 2011-02-19  Jim Meyering  <meyering@redhat.com>
58301         git-version-gen: skip "-dirty" check when appropriate
58302         * build-aux/git-version-gen: Don't run any git commands when the
58303         version string comes from .tarball-version.  Prior to this, we
58304         would run git update-index --refresh even from a just-unpacked
58305         tarball directory, and that could affect a .git/ directory in a
58306         parent of the build directory.  Reported by Mike Frysinger.
58308 2011-02-19  Bruno Haible  <bruno@clisp.org>
58310         unictype/property-byname: Reduce the size of the 'data' segment.
58311         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
58313 2011-02-19  Bruno Haible  <bruno@clisp.org>
58315         unictype/scripts: Reduce the size of the 'data' segment.
58316         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
58317         '%pic'.
58318         * lib/unictype/scripts_byname.gperf: Regenerated.
58320 2011-02-19  Bruno Haible  <bruno@clisp.org>
58322         stdint: Update documentation.
58323         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
58325 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
58327         stdint: omit redundant check for wchar.h
58328         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
58329         always tests whether wchar.h exists, so remove the now-redundant test.
58331 2011-02-18  Bruno Haible  <bruno@clisp.org>
58333         stdint: Cut dependency to module 'wchar'.
58334         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
58335         include the necessary prerequisites.
58336         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
58337         * modules/stdint (Depends-on): Remove wchar.
58338         (Makefile.am): Substitute HAVE_WCHAR_H.
58339         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
58341 2011-02-18  Eric Blake  <eblake@redhat.com>
58343         longlong: skip, rather than fail, on cross-compilation
58344         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
58345         when cross-compiling; regression from 2011-02-16.
58347 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58349         * NEWS: Mention 2011-02-08 change to stdlib.
58351 2011-02-17  Bruno Haible  <bruno@clisp.org>
58353         getloadavg: Add comments about platforms.
58354         * m4/getloadavg.m4: Add comment.
58355         * lib/getloadavg.c: Likewise.
58357 2011-02-17  Bruno Haible  <bruno@clisp.org>
58359         getloadavg: Fix link error on Solaris 2.6.
58360         * modules/getloadavg (Link): New section.
58361         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58362         linking test-getloadavg.
58363         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58364         getloadavg.
58366 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58368         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58369         It was 'int', but this doesn't match the IRIX 6.5 manual.
58370         Suggested by Bruno Haible in
58371         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58373 2011-02-17  Bruno Haible  <bruno@clisp.org>
58375         havelib: Fix comments.
58376         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58377         change.
58379 2011-02-17  Bruno Haible  <bruno@clisp.org>
58381         havelib: Update config.rpath.
58382         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58384 2011-02-17  Bruno Haible  <bruno@clisp.org>
58386         getloadavg test: Add some plausibility checks.
58387         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58388         is improbable.
58390 2011-02-16  Eric Blake  <eblake@redhat.com>
58392         maintainer-makefile: make syntax-check a no-op from tarballs
58393         * top/maint.mk (no-vc-detected): New rule.
58394         (local-checks-available): Use it to avoid hanging if someone tries
58395         'make syntax-check' from a tarball.  Also append to any non-syntax
58396         checks already defined in cfg.mk.
58398 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58400         longlong: tune, particularly for common case of c99
58402         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58403         or running anything if c99, or if unsigned long long int does not
58404         work.  In either case, we know the answer without further tests.
58405         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58406         it at most once, and use its results for both long long int and
58407         unsigned long long int.  This is more likely to be efficient in
58408         the common case where the program wants to check for both long
58409         long int and unsigned long long int.
58410         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58411         since the answer is already known.
58413 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58415         getloadavg: set errno
58416         * lib/getloadavg.c: Set errno when returning -1.  If no other
58417         error number looks appropriate, set it to ENOSYS if the getloadavg
58418         looks like it can't possibly ever work, ENOTSUP otherwise.
58419         Suggested by Bruno Haible in
58420         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58422         getloadavg: trim unused parts and speed up 'configure'
58423         * NEWS: Document this.
58424         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58425         always compiled if getloadavg is absent.
58426         Move test code to ...
58427         * tests/test-getloadavg.c: New file, containing previous
58428         contents of test from lib/getloadavg.c.  It also contains
58429         suggestions by Bruno Haible in
58430         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58431         * modules/getloadavg-tests: New file.
58432         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58433         Do tests in the same order as they're needed for getloadavg.c.
58434         Omit setgid-related tests that generate symbols KMEM_GROUP,
58435         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58436         Do only the tests that are needed to see whether the system has
58437         getloadavg, moving the other tests into ...
58438         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58439         NLIST_NAME_UNION; nobody should be using it.  Do not define
58440         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58441         relevant, as the user of this module shouldn't care how getloadavg
58442         is implemented.
58444         getloadavg: omit unused var
58445         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58447 2011-02-15  Jim Meyering  <meyering@redhat.com>
58449         doc: update users.txt
58450         * users.txt: Update iwhd's URL.
58452 2011-02-13  Bruno Haible  <bruno@clisp.org>
58454         Consistent macro naming for macros that use GCC __attribute__.
58455         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58456         _ATTRIBUTE_NONNULL_.
58457         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58458         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58459         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58460         ATTRIBUTE_DEPRECATED.
58461         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58462         ATTRIBUTE_NORETURN.
58463         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58464         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58465         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58466         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58467         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58468         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58469         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58470         ATTRIBUTE_SENTINEL.
58471         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58472         ATTRIBUTE_RETURN_CHECK.
58473         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
58474         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
58475         ATTRIBUTE_NORETURN.
58476         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
58477         Reported by Paul Eggert.
58479 2011-02-13  Bruno Haible  <bruno@clisp.org>
58481         Don't interfere with a program's definition of __attribute__.
58482         * lib/argp.h (__attribute__): Remove definition.
58483         (_GL_ATTRIBUTE_FORMAT): New macro.
58484         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
58485         * lib/argp-fmtstream.h (__attribute__): Remove definition.
58486         (_GL_ATTRIBUTE_FORMAT): New macro.
58487         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
58488         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
58489         GCC 3 or newer.
58490         * lib/error.h (__attribute__): Remove definition.
58491         (_GL_ATTRIBUTE_FORMAT): New macro.
58492         (error, error_at_line): Use it.
58493         * lib/hash.h (__attribute__): Remove definition.
58494         (ATTRIBUTE_WUR): Update definition. Define always.
58495         * lib/openat.h (__attribute__): Remove definition.
58496         (ATTRIBUTE_NORETURN): Update definition. Define always.
58497         * lib/sigpipe-die.h (__attribute__): Remove definition.
58498         (ATTRIBUTE_NORETURN): Update definition. Define always.
58499         * lib/vasnprintf.h (__attribute__): Remove definition.
58500         (_GL_ATTRIBUTE_FORMAT): New macro.
58501         (asnprintf, vasnprintf): Use it.
58502         * lib/xalloc.h (__attribute__): Remove definition.
58503         (ATTRIBUTE_NORETURN): Update definition. Define always.
58504         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
58505         * lib/xmemdup0.h (__attribute__): Remove definition.
58506         (ATTRIBUTE_NORETURN): Update definition. Define always.
58507         * lib/xprintf.h (__attribute__): Remove definition.
58508         (_GL_ATTRIBUTE_FORMAT): New macro.
58509         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
58510         * lib/xstrtol.h (__attribute__): Remove definition.
58511         (ATTRIBUTE_NORETURN): Update definition. Define always.
58512         * lib/xvasprintf.h (__attribute__): Remove definition.
58513         (_GL_ATTRIBUTE_FORMAT): New macro.
58514         (xasprintf, xvasprintf): Use it.
58515         * tests/test-argmatch.c (__attribute__): Remove definition.
58516         (ATTRIBUTE_NORETURN): Update definition. Define always.
58517         * tests/test-exclude.c (__attribute__): Remove definition.
58518         (ATTRIBUTE_NORETURN): Update definition. Define always.
58519         Reported by Paul Eggert.
58521 2011-02-13  Bruno Haible  <bruno@clisp.org>
58523         mbrtowc: Add more tests for native Windows platforms.
58524         * tests/test-mbrtowc-w32-1.sh: New file.
58525         * tests/test-mbrtowc-w32-2.sh: New file.
58526         * tests/test-mbrtowc-w32-3.sh: New file.
58527         * tests/test-mbrtowc-w32-4.sh: New file.
58528         * tests/test-mbrtowc-w32-5.sh: New file.
58529         * tests/test-mbrtowc-w32.c: New file.
58530         * modules/mbrtowc-tests (Files): Add them.
58531         (Makefile.am): Arrange to run these tests.
58532         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
58533         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
58535 2011-02-13  Bruno Haible  <bruno@clisp.org>
58537         mbrtowc: Work around native Windows bug.
58538         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
58539         guess when no suitable locale for testing was found.
58540         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
58542 2011-02-13  Bruno Haible  <bruno@clisp.org>
58544         mbsinit: Work around mingw bug.
58545         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
58546         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
58547         Windows.
58548         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
58550 2011-02-13  Bruno Haible  <bruno@clisp.org>
58552         mbsinit: Don't crash for a NULL argument.
58553         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
58554         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
58556 2011-02-13  Bruno Haible  <bruno@clisp.org>
58558         Don't interfere with a program's definition of __attribute__.
58559         * lib/stdio.in.h (__attribute__): Remove definition.
58560         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
58561         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
58562         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
58563         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
58564         * lib/string.in.h (__attribute__): Remove definition.
58565         Reported by Paul Eggert.
58567 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58569         stdlib: don't get in the way of non-GCC __attribute__
58570         See thread starting at
58571         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
58572         Revert previous stdlib change, installing the following instead:
58573         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
58574         to get in the way of a non-GCC compiler that supports __attribute__.
58575         (_GL_ATTRIBUTE_RETURN): New macro.
58576         (_Exit): Use it instead of __attribute__.
58578 2011-02-12  Bruno Haible  <bruno@clisp.org>
58580         quotearg test: Avoid test failure on mingw.
58581         * tests/test-quotearg.sh: Convert the locale identifier from native
58582         Windows syntax to Unix syntax.
58584 2011-02-12  Bruno Haible  <bruno@clisp.org>
58586         setlocale: Prefer gnulib's override over libintl's override.
58587         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
58588         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
58589         GNULIB_defined_setlocale is set.
58591 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58593         stdlib: support non-GCC __attribute__
58595         Fix a serious and tricky problem encountered when attempting to
58596         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
58597         5.5, but it crashed due to memory corruption on Solaris 10 with
58598         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
58599         bits that are otherwise zero.  This tagging is optional inside
58600         Emacs but is preferred and is used when __attribute__ ((__aligned
58601         (8))) works, as it does with both recent-enough GCC and with Sun C
58602         5.11.  However, Sun C 5.11 is not GCC and does not #define
58603         __GNUC__ and __GNUC_MINOR__.
58605         When I added the getloadavg module to Emacs, it brought in
58606         stdlib.in.h, which contained this fragment:
58608            #ifndef __attribute__
58609            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58610            #  define __attribute__(Spec)   /* empty */
58611            # endif
58612            #endif
58614         When files that include <stdlib.h> were compiled with Sun C 5.11,
58615         the above code disabled __attribute__ ((__aligned (8))), which
58616         caused variables to not be properly aligned, which eventually led
58617         to the pointer corruption mentioned above.  (This was a bit hard
58618         to diagnose, unfortunately.)
58620         Several "#define __attribute__(X) /* empty */" code snippets need
58621         to be eradicated from Gnulib to work with non-GCC compilers that
58622         support __attribute__.  The Autoconf way to do this is to test for
58623         each kind of attribute that we want support for, and selectively
58624         enable that in source code.
58626         Fix this problem just for stdlib.h, by adding a test for the
58627         __noreturn__ attribute, and change stdlib.in.h to use that test
58628         when needed.  This technique can be easily generalized to the
58629         other *.in.h files and attributes, and a similar technique can be
58630         used for *.h and *.c files.  This patch is enough to solve the
58631         problem for Emacs + getloadavg, and I thought I'd publish it for
58632         feedback before undertaking further, similar fixes in other
58633         modules.
58635         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
58636         because it's not needed for stdlib.h.  It merely substitutes the
58637         value directly into stdlib.h.  We may well need to #define it, or
58638         similar symbols, for other modules, but it's nice to also have an
58639         option to not #define it for applications like Emacs that do not
58640         need it.
58642         * lib/stdlib.in.h (__attribute__): Do not #define.
58643         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
58644         be defined only if the _Exit module is also used.
58645         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
58646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
58647         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
58648         platforms.
58649         * modules/_Exit (Files): Add m4/attribute.m4.
58650         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
58651         * m4/attribute.m4: New file.
58653 2011-02-12  Bruno Haible  <bruno@clisp.org>
58655         wcsrtombs: Work around bug on native Windows.
58656         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
58657         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
58658         instead of len.
58659         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
58661 2011-02-12  Bruno Haible  <bruno@clisp.org>
58663         mbsrtowcs: Work around bug on native Windows.
58664         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
58665         against mingw bug.
58666         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
58668 2011-02-12  Bruno Haible  <bruno@clisp.org>
58670         Avoid setlocale bugs in tests.
58671         * modules/btowc (Dependencies): Add setlocale.
58672         * modules/c-strcase (Dependencies): Likewise.
58673         * modules/mbmemcasecmp (Dependencies): Likewise.
58674         * modules/mbmemcasecoll (Dependencies): Likewise.
58675         * modules/mbrtowc (Dependencies): Likewise.
58676         * modules/mbscasecmp (Dependencies): Likewise.
58677         * modules/mbscasestr (Dependencies): Likewise.
58678         * modules/mbschr (Dependencies): Likewise.
58679         * modules/mbscspn (Dependencies): Likewise.
58680         * modules/mbsinit (Dependencies): Likewise.
58681         * modules/mbsncasecmp (Dependencies): Likewise.
58682         * modules/mbsnrtowcs (Dependencies): Likewise.
58683         * modules/mbspbrk (Dependencies): Likewise.
58684         * modules/mbspcasecmp (Dependencies): Likewise.
58685         * modules/mbsrchr (Dependencies): Likewise.
58686         * modules/mbsrtowcs (Dependencies): Likewise.
58687         * modules/mbsspn (Dependencies): Likewise.
58688         * modules/mbsstr (Dependencies): Likewise.
58689         * modules/nl_langinfo (Dependencies): Likewise.
58690         * modules/quotearg (Dependencies): Likewise.
58691         * modules/unicase/locale-language (Dependencies): Likewise.
58692         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58693         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58694         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58695         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58696         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58697         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58698         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58699         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58700         * modules/vasnprintf-posix (Dependencies): Likewise.
58701         * modules/wcrtomb (Dependencies): Likewise.
58702         * modules/wcsnrtombs (Dependencies): Likewise.
58703         * modules/wcsrtombs (Dependencies): Likewise.
58705 2011-02-12  Bruno Haible  <bruno@clisp.org>
58707         setlocale: Workaround native Windows bug.
58708         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58709         succeeds but sets LC_CTYPE to "C", report a failure.
58710         * tests/test-setlocale2.sh: New file.
58711         * tests/test-setlocale2.c: New file.
58712         * modules/setlocale-tests (Files): Add the new files.
58713         (Makefile.am): Enable test-setlocale2.sh test.
58714         * doc/posix-functions/setlocale.texi: Mention workaround.
58716 2011-02-11  Bruno Haible  <bruno@clisp.org>
58718         Tests for module 'setlocale'.
58719         * modules/setlocale-tests: New file.
58720         * tests/test-setlocale1.sh: New file.
58721         * tests/test-setlocale1.c: New file.
58723         New module 'setlocale'.
58724         * lib/locale.in.h (setlocale): New declaration.
58725         * lib/setlocale.c: New file, based on
58726         gettext/gettext-runtime/intl/setlocale.c.
58727         * m4/setlocale.m4: New file.
58728         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58729         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58730         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58731         REPLACE_SETLOCALE.
58732         * modules/setlocale: New file.
58733         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58734         * doc/posix-functions/setlocale.texi: Mention the new module.
58736 2011-02-11  Bruno Haible  <bruno@clisp.org>
58738         Prepare for locale dependent tests on mingw.
58739         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58740         because it has the wrong locale encoding.
58741         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58742         French_France.1252 instead of "fr".
58743         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58744         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58745         because it has the wrong locale encoding.
58746         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58747         native Windows, try Turkish_Turkey.65001.
58748         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58749         Chinese_China.54936.
58751         Prepare for locale dependent tests on mingw.
58752         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58753         differently.
58754         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58755         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58756         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58757         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58759 2011-02-11  Eric Blake  <eblake@redhat.com>
58761         strptime: avoid compiler warnings
58762         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58763         compiler warnings about dead code.
58764         Reported by Daniel P. Berrange.
58766 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58768         doc: update users.txt
58769         * users.txt: Add rcs.
58771 2011-02-10  John W. Eaton  <jwe@gnu.org>
58773         doc: update users.txt
58774         * users.txt: Add octave.
58776 2011-02-10  Jim Meyering  <meyering@redhat.com>
58778         doc: update users.txt
58779         * users.txt: Add iwhd.
58781 2011-02-09  Bruno Haible  <bruno@clisp.org>
58783         gnulib-tool: Make copyright notice adjustment more robust.
58784         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58785         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58786         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58787         License".
58788         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58790 2011-02-06  Bruno Haible  <bruno@clisp.org>
58792         New module 'towctrans'.
58793         * modules/towctrans: New file.
58794         * lib/wctype.in.h (towctrans): New declaration.
58795         * lib/towctrans.c: New file.
58796         * lib/towctrans-impl.h: New file.
58797         * m4/towctrans.m4: New file.
58798         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58799         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58800         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58801         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58802         * doc/posix-functions/towctrans.texi: Mention the new module.
58804 2011-02-06  Bruno Haible  <bruno@clisp.org>
58806         New module 'wctrans'.
58807         * modules/wctrans: New file.
58808         * lib/wctype.in.h (wctrans): New declaration.
58809         * lib/wctrans.c: New file.
58810         * lib/wctrans-impl.h: New file.
58811         * m4/wctrans.m4: New file.
58812         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58813         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58814         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58815         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58816         * doc/posix-functions/wctrans.texi: Mention the new module.
58818 2011-02-06  Bruno Haible  <bruno@clisp.org>
58820         New module 'iswctype'.
58821         * modules/iswctype: New file.
58822         * lib/wctype.in.h (iswctype): New declaration.
58823         * lib/iswctype.c: New file.
58824         * lib/iswctype-impl.h: New file.
58825         * m4/iswctype.m4: New file.
58826         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58827         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58828         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58829         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58830         * doc/posix-functions/iswctype.texi: Mention the new module and the
58831         HP-UX 11.00 problem.
58833 2011-02-06  Bruno Haible  <bruno@clisp.org>
58835         New module 'wctype'.
58836         * modules/wctype: Change to represent the wctype() substitute.
58837         * lib/wctype.in.h (wctype): New declaration.
58838         * lib/wctype.c: New file.
58839         * lib/wctype-impl.h: New file.
58840         * m4/wctype.m4: New file.
58841         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58842         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58843         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58844         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58845         * doc/posix-functions/wctype.texi: Mention the new module and the
58846         HP-UX 11.00 problem.
58848 2011-02-06  Bruno Haible  <bruno@clisp.org>
58850         wctype-h: Ensure wctype_t and wctrans_t are defined.
58851         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58852         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58853         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58854         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58855         HAVE_WCTRANS_T.
58856         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58858 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58860         flock: fix license typo
58862         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58863         omitted.
58865 2011-02-08  Bruno Haible  <bruno@clisp.org>
58867         Split large sed scripts, for HP-UX sed.
58868         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58869         to avoid HP-UX limit of 99 commands, in the near future.
58870         * modules/stdlib (Makefile.am): Likewise.
58871         * modules/unistd (Makefile.am): Likewise.
58872         * modules/wchar (Makefile.am): Likewise.
58873         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58874         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58875         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58877 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58878             Bruno Haible  <bruno@clisp.org>
58880         stdlib: improve random_r modularization
58881         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58882         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58883         you also need the random_r module to get this material right.
58884         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58885         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58886         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58888 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58890         stdlib: don't depend on stdint
58891         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58892         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58893         be independent of whether stdint.h is needed.
58894         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58895         here, instead of ...
58896         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58897         struct random_data should be using the random_r module, not just
58898         the stdlib module (which wouldn't make sense: what package needs
58899         just struct random_data without also needing random_r?).
58900         * modules/stdlib (Depends-on): Remove stdint.
58902         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58903         See the thread rooted at
58904         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58905         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58906         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58907         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58908         __VMS)); previously it was always included (via fcntl--.h).
58909         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58910         hand; this is good enough for load averages.  Also, do not use
58911         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58912         flags directly if available and don't bother otherwise.  (Packages
58913         that need the extra reliability should use the modules that define
58914         these flags on older platforms that lack them.)
58915         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58916         fcntl-safer.
58918 2011-02-08  Jim Meyering  <meyering@redhat.com>
58920         di-set.h, ino-map.h: add multiple-inclusion guard
58921         Technically, the guard is required only for ino-map.h, due to its
58922         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58923         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58924         * lib/ino-map.h: Likewise.
58926 2011-02-06  Bruno Haible  <bruno@clisp.org>
58928         iswblank: Ensure declaration on glibc systems.
58929         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58930         * modules/iswblank (Dependencies): Add 'extensions'.
58931         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58933 2011-02-06  Bruno Haible  <bruno@clisp.org>
58935         New module 'iswblank'.
58936         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58937         * modules/iswblank: New file.
58938         * modules/wctype-h (Files): Remove lib/iswblank.c.
58939         (Makefile.am): Substitute GNULIB_ISWBLANK.
58940         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58941         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58942         (gl_WCTYPE_H_DEFAULTS): New macro.
58943         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58944         * modules/iswblank-tests: New file.
58945         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58946         * tests/test-wctype-h.c (main): Remove iswblank tests.
58947         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58948         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58949         of 'wctype-h'.
58950         * NEWS: Mention the change.
58951         * modules/mbchar (Depends-on): Add iswblank.
58953 2011-02-08  Bruno Haible  <bruno@clisp.org>
58955         di-set tests: Refactor.
58956         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58957         unnecessary includes.
58958         (ASSERT): Remove macro.
58959         (main): Make C90 compliant by avoiding variable declaration after
58960         statement.
58961         * modules/di-set-tests (Files): Add tests/macros.h.
58963 2011-02-08  Bruno Haible  <bruno@clisp.org>
58965         ino-map tests: Refactor.
58966         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58967         unnecessary includes.
58968         (ASSERT): Remove macro.
58969         (main): Make C90 compliant by avoiding variable declaration after
58970         statement.
58971         * modules/ino-map-tests (Files): Add tests/macros.h.
58973 2011-02-08  Jim Meyering  <meyering@redhat.com>
58975         di-set: add "const" to a cast
58976         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58977         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58979 2011-02-06  Bruno Haible  <bruno@clisp.org>
58981         Rename module 'wctype' to 'wctype-h'.
58982         * modules/wctype-h: Renamed from modules/wctype.
58983         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58984         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58985         (Files, Depends-on, Makefile.am): Update.
58986         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58987         (Files, Makefile.am): Update.
58988         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58989         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58990         * doc/posix-headers/wctype.texi: Update.
58991         * doc/posix-functions/iswalnum.texi: Update.
58992         * doc/posix-functions/iswalpha.texi: Update.
58993         * doc/posix-functions/iswblank.texi: Update.
58994         * doc/posix-functions/iswcntrl.texi: Update.
58995         * doc/posix-functions/iswdigit.texi: Update.
58996         * doc/posix-functions/iswgraph.texi: Update.
58997         * doc/posix-functions/iswlower.texi: Update.
58998         * doc/posix-functions/iswprint.texi: Update.
58999         * doc/posix-functions/iswpunct.texi: Update.
59000         * doc/posix-functions/iswspace.texi: Update.
59001         * doc/posix-functions/iswupper.texi: Update.
59002         * doc/posix-functions/iswxdigit.texi: Update.
59003         * doc/posix-functions/towlower.texi: Update.
59004         * doc/posix-functions/towupper.texi: Update.
59005         * NEWS: Mention the change.
59006         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
59007         * modules/mbchar (Dependencies): Likewise.
59008         * modules/mbswidth (Dependencies): Likewise.
59009         * modules/quotearg (Dependencies): Likewise.
59010         * modules/regex (Dependencies): Likewise.
59011         * modules/wcscasecmp (Dependencies): Likewise.
59012         * modules/wcsncasecmp (Dependencies): Likewise.
59013         * modules/wcwidth (Dependencies): Likewise.
59015 2011-02-06  Bruno Haible  <bruno@clisp.org>
59017         New module 'wcswidth'.
59018         * modules/wcswidth: New file.
59019         * lib/wchar.in.h (wcswidth): New declaration.
59020         * lib/wcswidth.c: New file.
59021         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
59022         * m4/wcswidth.m4: New file.
59023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
59024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
59025         REPLACE_WCSWIDTH.
59026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
59027         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
59028         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
59029         * doc/posix-functions/wcswidth.texi: Mention the new module.
59031 2011-02-06  Bruno Haible  <bruno@clisp.org>
59033         New module 'wcstok'.
59034         * modules/wcstok: New file.
59035         * lib/wchar.in.h (wcstok): New declaration.
59036         * lib/wcstok.c: New file.
59037         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
59038         * m4/wcstok.m4: New file.
59039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
59040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
59041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
59042         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
59043         * doc/posix-functions/wcstok.texi: Mention the new module.
59045 2011-02-06  Bruno Haible  <bruno@clisp.org>
59047         New module 'wcsstr'.
59048         * modules/wcsstr: New file.
59049         * lib/wchar.in.h (wcsstr): New declaration.
59050         * lib/wcsstr.c: New file.
59051         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
59052         * m4/wcsstr.m4: New file.
59053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
59054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
59055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
59056         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
59057         * doc/posix-functions/wcsstr.texi: Mention the new module.
59059 2011-02-06  Bruno Haible  <bruno@clisp.org>
59061         New module 'wcspbrk'.
59062         * modules/wcspbrk: New file.
59063         * lib/wchar.in.h (wcspbrk): New declaration.
59064         * lib/wcspbrk.c: New file.
59065         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
59066         * m4/wcspbrk.m4: New file.
59067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
59068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
59069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
59070         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
59071         * doc/posix-functions/wcspbrk.texi: Mention the new module.
59073 2011-02-06  Bruno Haible  <bruno@clisp.org>
59075         New module 'wcsspn'.
59076         * modules/wcsspn: New file.
59077         * lib/wchar.in.h (wcsspn): New declaration.
59078         * lib/wcsspn.c: New file.
59079         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
59080         * m4/wcsspn.m4: New file.
59081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
59082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
59083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
59084         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
59085         * doc/posix-functions/wcsspn.texi: Mention the new module.
59087 2011-02-06  Bruno Haible  <bruno@clisp.org>
59089         New module 'wcscspn'.
59090         * modules/wcscspn: New file.
59091         * lib/wchar.in.h (wcscspn): New declaration.
59092         * lib/wcscspn.c: New file.
59093         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
59094         * m4/wcscspn.m4: New file.
59095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
59096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
59097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
59098         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
59099         * doc/posix-functions/wcscspn.texi: Mention the new module.
59101 2011-02-06  Bruno Haible  <bruno@clisp.org>
59103         New module 'wcsrchr'.
59104         * modules/wcsrchr: New file.
59105         * lib/wchar.in.h (wcsrchr): New declaration.
59106         * lib/wcsrchr.c: New file.
59107         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
59108         * m4/wcsrchr.m4: New file.
59109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
59110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
59111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
59112         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
59113         * doc/posix-functions/wcsrchr.texi: Mention the new module.
59115 2011-02-06  Bruno Haible  <bruno@clisp.org>
59117         New module 'wcschr'.
59118         * modules/wcschr: New file.
59119         * lib/wchar.in.h (wcschr): New declaration.
59120         * lib/wcschr.c: New file.
59121         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
59122         * m4/wcschr.m4: New file.
59123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
59124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
59125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
59126         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
59127         * doc/posix-functions/wcschr.texi: Mention the new module.
59129 2011-02-06  Bruno Haible  <bruno@clisp.org>
59131         New module 'wcsdup'.
59132         * modules/wcsdup: New file.
59133         * lib/wchar.in.h (wcsdup): New declaration.
59134         * lib/wcsdup.c: New file.
59135         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
59136         * m4/wcsdup.m4: New file.
59137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
59138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
59139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
59140         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
59141         * doc/posix-functions/wcsdup.texi: Mention the new module.
59143 2011-02-06  Bruno Haible  <bruno@clisp.org>
59145         New module 'wcsxfrm'.
59146         * modules/wcsxfrm: New file.
59147         * lib/wchar.in.h (wcsxfrm): New declaration.
59148         * lib/wcsxfrm.c: New file.
59149         * lib/wcsxfrm-impl.h: New file.
59150         * m4/wcsxfrm.m4: New file.
59151         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
59152         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
59153         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
59154         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
59155         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
59157 2011-02-06  Bruno Haible  <bruno@clisp.org>
59159         New module 'wcscoll'.
59160         * modules/wcscoll: New file.
59161         * lib/wchar.in.h (wcscoll): New declaration.
59162         * lib/wcscoll.c: New file.
59163         * lib/wcscoll-impl.h: New file.
59164         * m4/wcscoll.m4: New file.
59165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
59166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
59167         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
59168         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
59169         * doc/posix-functions/wcscoll.texi: Mention the new module.
59171 2011-02-06  Bruno Haible  <bruno@clisp.org>
59173         New module 'wcsncasecmp'.
59174         * modules/wcsncasecmp: New file.
59175         * lib/wchar.in.h (wcsncasecmp): New declaration.
59176         * lib/wcsncasecmp.c: New file.
59177         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
59178         * m4/wcsncasecmp.m4: New file.
59179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
59180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
59181         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
59182         HAVE_WCSNCASECMP.
59183         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
59184         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
59186 2011-02-06  Bruno Haible  <bruno@clisp.org>
59188         New module 'wcscasecmp'.
59189         * modules/wcscasecmp: New file.
59190         * lib/wchar.in.h (wcscasecmp): New declaration.
59191         * lib/wcscasecmp.c: New file.
59192         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59193         * m4/wcscasecmp.m4: New file.
59194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59196         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
59197         HAVE_WCSCASECMP.
59198         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
59199         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
59201 2011-02-05  Bruno Haible  <bruno@clisp.org>
59203         New module 'wcsncmp'.
59204         * modules/wcsncmp: New file.
59205         * lib/wchar.in.h (wcsncmp): New declaration.
59206         * lib/wcsncmp.c: New file.
59207         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
59208         * m4/wcsncmp.m4: New file.
59209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
59210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
59211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
59212         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
59213         * doc/posix-functions/wcsncmp.texi: Mention the new module.
59215 2011-02-05  Bruno Haible  <bruno@clisp.org>
59217         New module 'wcscmp'.
59218         * modules/wcscmp: New file.
59219         * lib/wchar.in.h (wcscmp): New declaration.
59220         * lib/wcscmp.c: New file.
59221         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
59222         * m4/wcscmp.m4: New file.
59223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
59224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
59225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
59226         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
59227         * doc/posix-functions/wcscmp.texi: Mention the new module.
59229 2011-02-05  Bruno Haible  <bruno@clisp.org>
59231         New module 'wcsncat'.
59232         * modules/wcsncat: New file.
59233         * lib/wchar.in.h (wcsncat): New declaration.
59234         * lib/wcsncat.c: New file.
59235         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
59236         * m4/wcsncat.m4: New file.
59237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
59238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
59239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
59240         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
59241         * doc/posix-functions/wcsncat.texi: Mention the new module.
59243 2011-02-05  Bruno Haible  <bruno@clisp.org>
59245         New module 'wcscat'.
59246         * modules/wcscat: New file.
59247         * lib/wchar.in.h (wcscat): New declaration.
59248         * lib/wcscat.c: New file.
59249         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
59250         * m4/wcscat.m4: New file.
59251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
59252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
59253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
59254         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
59255         * doc/posix-functions/wcscat.texi: Mention the new module.
59257 2011-02-05  Bruno Haible  <bruno@clisp.org>
59259         New module 'wcpncpy'.
59260         * modules/wcpncpy: New file.
59261         * lib/wchar.in.h (wcpncpy): New declaration.
59262         * lib/wcpncpy.c: New file.
59263         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
59264         * m4/wcpncpy.m4: New file.
59265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
59266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
59267         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
59268         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
59269         * doc/posix-functions/wcpncpy.texi: Mention the new module.
59271 2011-02-05  Bruno Haible  <bruno@clisp.org>
59273         New module 'wcsncpy'.
59274         * modules/wcsncpy: New file.
59275         * lib/wchar.in.h (wcsncpy): New declaration.
59276         * lib/wcsncpy.c: New file.
59277         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
59278         * m4/wcsncpy.m4: New file.
59279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
59280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
59281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
59282         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
59283         * doc/posix-functions/wcsncpy.texi: Mention the new module.
59285 2011-02-05  Bruno Haible  <bruno@clisp.org>
59287         New module 'wcpcpy'.
59288         * modules/wcpcpy: New file.
59289         * lib/wchar.in.h (wcpcpy): New declaration.
59290         * lib/wcpcpy.c: New file.
59291         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
59292         * m4/wcpcpy.m4: New file.
59293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
59294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
59295         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
59296         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
59297         * doc/posix-functions/wcpcpy.texi: Mention the new module.
59299 2011-02-05  Bruno Haible  <bruno@clisp.org>
59301         New module 'wcscpy'.
59302         * modules/wcscpy: New file.
59303         * lib/wchar.in.h (wcscpy): New declaration.
59304         * lib/wcscpy.c: New file.
59305         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
59306         * m4/wcscpy.m4: New file.
59307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
59308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
59309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
59310         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
59311         * doc/posix-functions/wcscpy.texi: Mention the new module.
59313 2011-02-05  Bruno Haible  <bruno@clisp.org>
59315         New module 'wcsnlen'.
59316         * modules/wcsnlen: New file.
59317         * lib/wchar.in.h (wcsnlen): New declaration.
59318         * lib/wcsnlen.c: New file.
59319         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
59320         * m4/wcsnlen.m4: New file.
59321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
59322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
59323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
59324         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
59325         * doc/posix-functions/wcsnlen.texi: Mention the new module.
59327 2011-02-05  Bruno Haible  <bruno@clisp.org>
59329         New module 'wcslen'.
59330         * modules/wcslen: New file.
59331         * lib/wchar.in.h (wcslen): New declaration.
59332         * lib/wcslen.c: New file.
59333         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
59334         * m4/wcslen.m4: New file.
59335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
59336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
59337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
59338         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
59339         * doc/posix-functions/wcslen.texi: Mention the new module.
59341 2011-02-05  Bruno Haible  <bruno@clisp.org>
59343         New module 'wmemset'.
59344         * modules/wmemset: New file.
59345         * lib/wchar.in.h (wmemset): New declaration.
59346         * lib/wmemset.c: New file.
59347         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
59348         * m4/wmemset.m4: New file.
59349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
59350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
59351         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
59352         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
59353         * doc/posix-functions/wmemset.texi: Mention the new module.
59355 2011-02-05  Bruno Haible  <bruno@clisp.org>
59357         New module 'wmemmove'.
59358         * modules/wmemmove: New file.
59359         * lib/wchar.in.h (wmemmove): New declaration.
59360         * lib/wmemmove.c: New file.
59361         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59362         * m4/wmemmove.m4: New file.
59363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59365         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59366         HAVE_WMEMMOVE.
59367         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59368         * doc/posix-functions/wmemmove.texi: Mention the new module.
59370 2011-02-05  Bruno Haible  <bruno@clisp.org>
59372         New module 'wmemcpy'.
59373         * modules/wmemcpy: New file.
59374         * lib/wchar.in.h (wmemcpy): New declaration.
59375         * lib/wmemcpy.c: New file.
59376         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59377         * m4/wmemcpy.m4: New file.
59378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59380         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59381         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59382         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59384 2011-02-05  Bruno Haible  <bruno@clisp.org>
59386         New module 'wmemcmp'.
59387         * modules/wmemcmp: New file.
59388         * lib/wchar.in.h (wmemcmp): New declaration.
59389         * lib/wmemcmp.c: New file.
59390         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59391         * m4/wmemcmp.m4: New file.
59392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59394         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59395         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59396         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59398 2011-02-07  Jim Meyering  <meyering@redhat.com>
59400         di-set, ino-map: new modules, from coreutils
59401         * lib/di-set.c: New file.
59402         * lib/di-set.h: Likewise.
59403         * lib/ino-map.c: Likewise.
59404         * lib/ino-map.h: Likewise.
59405         * modules/di-set: Likewise.
59406         * modules/di-set-tests: Likewise.
59407         * modules/ino-map: Likewise.
59408         * modules/ino-map-tests: Likewise.
59409         * tests/test-di-set.c: Likewise.
59410         * tests/test-ino-map.c: Likewise.
59412 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59414         getloadavg: merge minor changes from Emacs
59416         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59417         (getloadavg): Use memset, not bzero.
59419         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59420         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59421         clash (bug#86).
59423 2010-11-14  Bruno Haible  <bruno@clisp.org>
59425         Allow multiple gnulib generated replacements to coexist.
59426         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59427         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59428         * lib/langinfo.in.h (nl_item): Likewise.
59429         * lib/math.in.h (_NaN, NAN): Likewise.
59430         * lib/netdb.in.h (struct addrinfo): Likewise.
59431         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59432         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59433         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59434         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59435         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59436         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59437         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59438         pthread_mutexattr_init, pthread_mutexattr_settype,
59439         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59440         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59441         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59442         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59443         * lib/sched.in.h (struct sched_param): Likewise.
59444         * lib/se-selinux.in.h (security_class_t, security_context_t,
59445         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59446         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59447         lsetfilecon, fsetfilecon, security_check_context,
59448         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59449         Likewise.
59450         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59451         Likewise.
59452         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59453         _gl_function_taking_int_returning_void_t, union sigval,
59454         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59455         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59456         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59457         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59458         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59459         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59460         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59461         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59462         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59463         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59464         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59465         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59466         socklen_t, rpl_fd_isset): Likewise.
59467         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59468         * lib/sys_time.in.h (struct timeval): Likewise.
59469         * lib/sys_times.in.h (struct tms): Likewise.
59470         * lib/sys_utsname.in.h (struct utsname):
59471         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59472         * lib/unistd.in.h (getpagesize): Likewise.
59473         * lib/wchar.in.h (mbstate_t): Likewise.
59474         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59475         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
59476         towlower, towupper): Likewise.
59477         Reported by Sam Steingold <sds@gnu.org>.
59479 2011-02-05  Eric Blake  <eblake@redhat.com>
59481         unsetenv: work around Haiku issues
59482         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
59483         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
59485 2010-12-30  Bruce Korb  <bkorb@gnu.org>
59487         libposix: avoid calling error() within libposix
59488         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
59489         is defined.
59491 2011-02-05  Eric Blake  <eblake@redhat.com>
59493         strerror_r-posix: port to cygwin
59494         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
59495         implementation.
59496         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
59497         * tests/test-strerror_r.c (main): Fix test.
59498         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
59499         issue.
59501 2011-02-05  Bruno Haible  <bruno@clisp.org>
59503         New module 'wmemchr'.
59504         * modules/wmemchr: New file.
59505         * lib/wchar.in.h (wmemchr): New declaration.
59506         * lib/wmemchr.c: New file.
59507         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
59508         * m4/wmemchr.m4: New file.
59509         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
59510         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
59511         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
59512         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
59513         * doc/posix-functions/wmemchr.texi: Mention the new module.
59515 2011-02-04  Eric Blake  <eblake@redhat.com>
59517         fdopendir: detect FreeBSD bug
59518         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
59519         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
59521 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59523         stdbool: do not define HAVE_STDBOOL_H
59524         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
59525         AC_HEADER_STDBOOL.  All uses changed.  Do not define
59526         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
59527         imported from the latest Autoconf git.  It was motivated by Emacs,
59528         which uses gnulib but does not need HAVE_STDBOOL_H.
59530 2011-02-04  Bruno Haible  <bruno@clisp.org>
59532         wcsnrtombs: Prepare for new module wwcsnrtombs.
59533         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
59534         * lib/wcsnrtombs.c: Include it.
59535         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
59537         wcsrtombs: Prepare for new module wwcsrtombs.
59538         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
59539         * lib/wcsrtombs.c: Include it.
59540         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
59542         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
59543         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
59544         * lib/mbsnrtowcs.c: Include it.
59545         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
59547         mbsrtowcs: Prepare for new module mbsrtowwcs.
59548         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
59549         * lib/mbsrtowcs.c: Include it.
59550         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
59552 2011-02-04  Bruno Haible  <bruno@clisp.org>
59554         vasnprintf: Reduce use of malloc for small format strings.
59555         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
59556         (arguments): Add room for the first 7 arguments.
59557         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
59558         (char_directives, u8_directives, u16_directives, u32_directives): Add
59559         room for the first 7 directives.
59560         * lib/printf-parse.c: Include <string.h>.
59561         (PRINTF_PARSE): Change memory handling code so that it uses the first
59562         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
59563         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
59564         Reported by Pádraig Brady <P@draigbrady.com>.
59566 2011-01-31  Eric Blake  <eblake@redhat.com>
59568         dup2: work around Haiku bug
59569         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
59570         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
59571         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59572         * tests/test-dup2.c (main): Enhance test.
59574 2011-01-31  Simon Josefsson  <simon@josefsson.org>
59576         doc: off_t is not available in eglibc 2.11.2 stdio.h.
59577         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
59578         declared by eglibc 2.11.2.
59579         * lib/stdio.in.h: Likewise.
59581 2011-01-31  Eric Blake  <eblake@redhat.com>
59583         ignore-value: add missing test dependency
59584         * tests/test-ignore-value.c: Revert previous change; stdio.h
59585         provides off_t.
59586         * modules/ignore-value-tests (Depends-on): Add missing dependency.
59588 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
59590         mktime: clarify long_int width checking
59591         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
59592         the top level, to make it clearer that the assumption about
59593         long_int width is being checked.  See
59594         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
59596 2011-01-30  Simon Josefsson  <simon@josefsson.org>
59598         ignore-value: Fix self-test.
59599         * tests/test-ignore-value.c: Include sys/types.h for off_t.
59601 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59603         TYPE_MAXIMUM: avoid theoretically undefined behavior
59604         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
59605         negative number, which the C Standard says has undefined behavior.
59606         In practice this is not a problem, but might as well do it by the book.
59607         Reported by Rich Felker and Eric Blake; see
59608         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59609         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59610         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59612         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59613         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59614         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59616         mktime: #undef mktime before #defining it
59617         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
59619         mktime: systematically normalize tm_isdst comparisons
59620         * lib/mktime.c (isdst_differ): New function.
59621         (__mktime_internal): Use it systematically for all isdst comparisons.
59622         This completes the fix for libc BZ #6723, and removes the need for
59623         normalizing tm_isdst.  See
59624         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
59625         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
59627         mktime: fix some integer overflow issues and sidestep the rest
59629         This was prompted by a bug report by Benjamin Lindner for MinGW
59630         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
59631         His bug is due to signed integer overflow (0 - INT_MIN), and I
59632         I scanned through mktime.c looking for other integer overflow
59633         problems, fixing all the bugs I found.
59635         Although the C Standard says the resulting code is still not safe
59636         in the presence of integer overflow, in practice it should be good
59637         enough for all real-world two's-complement implementations, except
59638         for debugging environments that deliberately trap on integer
59639         overflow (e.g., gcc -ftrapv).
59641         * lib/mktime.c (WRAPV): New macro.
59642         (SHR): Also check that long_int and time_t shift right in the
59643         usual way, before using the fast-but-unportable method.
59644         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
59645         used.  The code already assumed two's complement, so there's
59646         no need to test for alternatives.  All uses removed.
59647         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
59648         the C standard.  Problem reported by Rich Felker in
59649         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
59650         (twos_complement_arithmetic): Also check long_int and time_t.
59651         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
59652         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
59653         (__mktime_internal): Avoid integer overflow with unary subtraction
59654         in two instances where -1 - X is an adequate replacement for -X,
59655         since the calculations are approximate.
59657 2011-01-29  Eric Blake  <eblake@redhat.com>
59659         mktime: avoid infinite loop
59660         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
59661         type; behavior is still undefined but portable to all known targets.
59662         Reported by Rich Felker.
59664 2011-01-29  Simon Josefsson  <simon@josefsson.org>
59666         rename, unlink, same-inode: Relicense.
59667         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
59668         * modules/unlink (License): Likewise.
59669         * modules/same-inode (License): Likewise.
59671 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59673         mktime: avoid problems on NetBSD 5 / i386
59674         * lib/mktime.c (long_int): New type.  This works around a problem
59675         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
59676         but time_t is 64 bits, and where I expect the existing code is
59677         wrong in some cases.
59678         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
59679         (ydhms_diff): Bring back the compile-time check for wide-enough
59680         year and yday.
59682         mktime: fix misspelling in comment
59683         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59684         This merges all recent glibc changes of importance.
59686 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59688         move-if-change: cope with concurrent mv of identical file.
59689         * build-aux/move-if-change (CMPPROG): Accept environment
59690         variable as an override for `cmp'.
59691         (usage): Document CMPPROG.
59692         Adjust comparison to drop stdout.  Cope with failure of mv if
59693         the target file exists and is identical to the source, for
59694         parallel builds.
59695         Report from H.J. Lu against binutils in PR binutils/12283.
59697 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59699         * users.txt: Mention sharutils.
59701 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59703         * users.txt: Mention OATH Toolkit.
59705 2011-01-27  Bruno Haible  <bruno@clisp.org>
59707         Prepare for supporting FreeBSD 10.
59708         * build-aux/config.libpath: Remove handling of freebsd1*.
59710 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59712         Prepare for supporting FreeBSD 10.
59713         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59714         match FreeBSD 10.0.
59716 2011-01-27  Bruno Haible  <bruno@clisp.org>
59718         vma-iter, get-rusage-as: Add OpenBSD support.
59719         * modules/vma-iter (configure.ac): Test for mquery.
59720         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59721         * lib/vma-iter.c: Include <sys/mman.h>.
59722         (vma_iterate): Add an implementation based on mquery().
59723         * lib/resource-ext.h (get_rusage_as): Update comments.
59724         * lib/get-rusage-as.c: Likewise.
59725         * lib/get-rusage-data.c: Likewise.
59727 2011-01-26  Karl Berry  <karl@gnu.org>
59729         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59730         variables to make it easier to override the makeinfo program used.
59732 2011-01-26  Eric Blake  <eblake@redhat.com>
59734         fcntl: work around Haiku F_DUPFD bugs
59735         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59736         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59737         cloexec bit on duplication.
59738         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59740 2011-01-26  Bruno Haible  <bruno@clisp.org>
59742         Enable memory leak tests on AIX.
59743         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59744         * tests/test-fprintf-posix3.c (main): Likewise.
59746 2011-01-26  Bruno Haible  <bruno@clisp.org>
59748         Tests for module 'get-rusage-data'.
59749         * modules/get-rusage-data-tests: New file.
59750         * tests/test-get-rusage-data.c: New file.
59752         New module 'get-rusage-data'.
59753         * lib/resource-ext.h (get_rusage_data): New declaration.
59754         * lib/get-rusage-data.c: New file.
59755         * modules/get-rusage-data: New file.
59757 2011-01-25  Bruno Haible  <bruno@clisp.org>
59759         get-rusage-as: Allow for easier testing.
59760         * lib/resource-ext.h (get_rusage_as): Add comment.
59761         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59762         (main): New function for interactive testing.
59764 2011-01-25  Bruno Haible  <bruno@clisp.org>
59766         vma-iter: Treat Haiku like BeOS.
59767         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59768         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59770 2011-01-25  Eric Blake  <eblake@redhat.com>
59772         c-stack: fix regression on cygwin when libsigsegv is present
59773         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59775 2011-01-24  Bruno Haible  <bruno@clisp.org>
59777         vma-iter: Avoid empty intervals.
59778         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59779         on an empty interval.
59781 2011-01-24  Jim Meyering  <meyering@redhat.com>
59783         u64: remove unnecessary #include
59784         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59786 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59788         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59789         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59791 2011-01-23  Bruno Haible  <bruno@clisp.org>
59793         New module 'vma-iter'.
59794         * lib/vma-iter.h: New file.
59795         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59796         * modules/vma-iter: New file.
59797         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59798         for get_rusage_as_via_iterator.
59799         (vma_iterate_callback): New function.
59800         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59801         * modules/get-rusage-as (Depends-on): Add vma-iter.
59803 2011-01-23  Bruno Haible  <bruno@clisp.org>
59805         uninorm: Tweak includes.
59806         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59807         Reported by Jim Meyering.
59809 2011-01-23  Bruno Haible  <bruno@clisp.org>
59811         get-rusage-as: Improve on NetBSD.
59812         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59813         /proc, like on FreeBSD.
59815 2011-01-23  Jim Meyering  <meyering@redhat.com>
59817         xreadlink.h: remove unnecessary #include
59818         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59820         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59821         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59823 2011-01-23  Bruno Haible  <bruno@clisp.org>
59825         get-rusage-as: Fix bug.
59826         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59827         original limit when aborting the first loop.
59829 2011-01-23  Bruno Haible  <bruno@clisp.org>
59831         wctype: Ensure valid C syntax.
59832         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59833         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59835 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59837         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59838         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59839         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59840         as they are needed only for configure's test case.
59841         This removes two unnecessary symbols from config.h.
59843         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59844         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59846         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59847         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59848         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59849         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59850         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59851         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59852         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59853         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59855         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59856         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59857         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59858         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59859         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59860         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59862 2011-01-21  Eric Blake  <eblake@redhat.com>
59864         maintainer-makefile: work with older git for submodule check
59865         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59866         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59867         Reported by Matthias Bolte.
59869         bootstrap: minor portability fixes
59870         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59871         (usage): Omit leading capital and trailing . on help phrases, per
59872         GNU Coding Standards.
59873         (check_versions, top level): Prefix messages with script name.
59875 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59877         bootstrap: support --no-git option
59878         * build-aux/bootstrap: Add --no-git option, to be used when
59879         --gnulib-srcdir points to the exact desired checkout.
59881 2011-01-21  Eric Blake  <eblake@redhat.com>
59883         strerror_r-posix: work with glibc 2.13
59884         * lib/strerror_r.c (strerror_r): Fix return type.
59886 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59887             Bruno Haible  <bruno@clisp.org>
59889         uN_strstr: New unit tests.
59890         * modules/unistr/u8-strstr-tests: New file.
59891         * modules/unistr/u16-strstr-tests: New file.
59892         * modules/unistr/u32-strstr-tests: New file.
59893         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59894         * tests/unistr/test-u8-strstr.c: New file.
59895         * tests/unistr/test-u16-strstr.c: New file.
59896         * tests/unistr/test-u32-strstr.c: New file.
59898 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59899             Bruno Haible  <bruno@clisp.org>
59901         Make uN_strstr functions O(n) worst-case.
59902         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59903         16-bit and 32-bit unit cases, use the unibyte algorithm from
59904         lib/mbsstr.c.
59905         * lib/unistr/u8-strstr.c: Include <string.h>.
59906         (UNIT_IS_UINT8_T): New macro.
59907         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59908         (U_STRLEN, U_STRNLEN): New macros.
59909         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59910         (U_STRLEN, U_STRNLEN): New macros.
59911         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59912         (configure.ac): Update required libunistring version.
59913         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59914         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59915         malloca.
59916         (configure.ac): Update required libunistring version.
59917         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59918         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59919         malloca.
59920         (configure.ac): Update required libunistring version.
59922 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59923             Bruno Haible  <bruno@clisp.org>
59925         Prepare for faster uN_strstr functions.
59926         * lib/str-kmp.h: Support definable UNITs.
59927         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59928         needle_len argument.
59929         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59930         * lib/mbscasestr.c (mbscasestr): Likewise.
59932 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59934         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59935         * tests/test-malloca.c (main): Unset the environment variable
59936         to greatly speed up the test.
59937         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59938         * modules/malloca-tests: Depend on unsetenv.
59940 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59942         ignore-value: remove stdint dependency
59943         * lib/ignore-value.h: Remove <stdint.h>
59944         * modules/ignore-value: Remove stdint dependency.
59946 2011-01-21  Jim Meyering  <meyering@redhat.com>
59948         maint.mk: adjust variable name to be consistent with other gl_ vars
59949         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59950         to be lower case.
59952 2011-01-20  Jim Meyering  <meyering@redhat.com>
59954         maint.mk: make "check" depend on public-submodule-commit by default
59955         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59957 2011-01-20  Bruno Haible  <bruno@clisp.org>
59959         mbfile, mbiter: Complete change from 2008-12-21.
59960         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59961         * m4/mbiter.m4 (gl_MBITER): Likewise.
59963 2011-01-20  Jim Meyering  <meyering@redhat.com>
59965         init.sh: insert space between each function name and "()"
59966         * tests/init.sh: Make it a little easier to see that a function's
59967         name is "warn_", and not "warn" when looking at the first part of
59968         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59970 2011-01-20  Jim Meyering  <meyering@redhat.com>
59972         mountlist: clean up code formatting
59973         * lib/mountlist.c (read_file_system_list): Split a long line,
59974         correct bracing style, use NULL in place of "(struct statfs *)0",
59975         don't parenthesize return value, add spaces around "=" and after
59976         ";-in-for-stmt".
59978 2011-01-14  Markus Duft  <mduft@gentoo.org>
59980         mountlist: add support for Interix
59981         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59982         Apply statvfs to all entries of /dev/fs.
59983         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59984         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59986 2011-01-20  Jim Meyering  <meyering@redhat.com>
59988         maint.mk: improve the public-submodule-commit rule
59989         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59990         to suppress printing of its commands... unless V=1.
59991         Add git submodule's --quiet option to suppress printing of e.g.,
59992         "Entering gnulib" output.
59993         "cd" into $(srcdir) before running git submodule.
59995 2011-01-20  Bruno Haible  <bruno@clisp.org>
59997         include_next: Fix bug introduced on 2011-01-18.
59998         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59999         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
60000         ac_cv_header_... variable if the second argument is not 'check'.
60001         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
60002         gl_NEXT_HEADERS_INTERNAL.
60004 2011-01-20  Bruno Haible  <bruno@clisp.org>
60006         Allow the user to avoid the GNULIB_TEST_* macros.
60007         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
60008         Suggested by Paul Eggert.
60010 2011-01-14  Jim Meyering  <meyering@redhat.com>
60012         bootstrap: avoid failure when there is no .gitmodules file
60013         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
60014         has been assigned to, even when its value is the empty string.
60015         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
60016         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
60017         Reported by John W. Eaton <jwe@gnu.org>.
60019 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60021         assume <ctype.h>, ..., <time.h> exist
60022         For years gnulib has been assuming the existence of the headers
60023         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
60024         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
60025         them, since they don't appear to be needed.
60026         * README (Portability guidelines): Document this.
60027         * lib/flock.c: Assume <fcntl.h> exists.
60028         * lib/regex_internal.h: Assume <locale.h> exists.
60029         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
60030         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
60031         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
60032         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
60033         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
60034         * m4/regex.m4 (gl_REGEX): Likewise.
60035         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
60036         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
60037         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
60038         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
60039         * tests/test-argp.c: Likewise.
60040         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
60042         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
60043         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
60044         AA_APPLE_UNIVERSAL_BUILD.  See
60045         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
60046         * NEWS: Document this.
60048 2011-01-19  Eric Blake  <eblake@redhat.com>
60050         c-stack: assume stack overflow if SA_SIGINFO unsupported
60051         * lib/c-stack.c (SIGACTION_WORKS): Rename...
60052         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
60053         sigaction will work.
60054         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
60055         behavior match Linux.
60056         * tests/test-c-stack.c (main): Prefer NULL for pointers.
60058         stdbool-tests: accommodate Haiku
60059         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
60061         binary-io: fix O_TEXT on Haiku
60062         * modules/binary-io (Depends-on): Add fcntl-h.
60063         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
60064         than blindly undefining O_TEXT.
60065         Reported by Scott McCreary.
60067 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60069         include_next: do not check for standard headers like stddef.h
60071         I found this problem when modifying Emacs to use gnulib.
60072         I noticed that it added HAVE_STDDEF_H to config.h, even though
60073         gnulib always assumes <stddef.h> exists as per README and this
60074         symbol is unnecessary.
60075         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
60076         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
60077         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
60078         faster for headers like stddef.h that are known to exist.
60079         (gl_CHECK_NEXT_HEADERS): Use it.
60080         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
60081         rather than gl_CHECK_NEXT_HEADERS.
60082         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
60083         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
60085 2011-01-18  Eric Blake  <eblake@redhat.com>
60087         ansi-c++-opt: skip C++ dependency style if C++ is unused
60088         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
60089         tests when we know C++ compilation is not desired.
60090         Reported by Scott McCreary.
60092 2011-01-18  Bruno Haible  <bruno@clisp.org>
60094         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
60095         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
60096         (main): Perform test also when getrlimit and setrlimit don't exist or
60097         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
60098         limiting the address space size using setrlimit, compare the address
60099         space size before and after the test.
60100         * tests/test-dprintf-posix2.c: Likewise.
60101         * tests/test-fprintf-posix3.sh: Update skip messages.
60102         * tests/test-dprintf-posix2.sh: Likewise.
60103         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
60104         * modules/dprintf-posix-tests (Depends-on): Likewise.
60105         Reported by Bruce Korb <bkorb@gnu.org> and
60106         Gary V. Vaughan <gary@gnu.org>.
60108 2011-01-18  Bruno Haible  <bruno@clisp.org>
60110         get-rusage-as: Improvement for Cygwin.
60111         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
60112         areas that are merely reserved.
60114 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60116         strftime: remove dependencies on multibyte modules
60118         strftime depended on mbrlen, mbsinit, and wchar, but these modules
60119         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
60120         only if __osf__ is defined, and I suspect OSF doesn't need these
60121         other modules.  If my guess is wrong, we'll need to come up with a
60122         variant of strftime that doesn't need the multibyte modules.
60124         I discovered this problem when attempting modify Emacs to use the
60125         strftime module.  With the previous gnulib, this caused Emacs to
60126         need 31 new files, ranging from lib/config.charset to
60127         m4/wint_t.m4.  This was overkill and I expect would be offputting
60128         to the Emacs maintainers.  After this change, only 6 new files are
60129         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
60130         stdbool.m4, and tm_gmtoff.m4.
60132         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
60133         Suggested by Bruno Haible in
60134         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
60135         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
60136         and do not check for wchar.h.
60137         * modules/strftime (Files): Remove m4/mbstate_t.m4.
60138         (Depends-on): Remove mbrlen, mbsinit, wchar.
60140 2011-01-18  Bruno Haible  <bruno@clisp.org>
60142         Tests for module 'get-rusage-as'.
60143         * modules/get-rusage-as-tests: New file.
60144         * tests/test-get-rusage-as.c: New file.
60146         New module 'get-rusage-as'.
60147         * modules/get-rusage-as: New file.
60148         * lib/resource-ext.h: New file.
60149         * lib/get-rusage-as.c: New file.
60151 2011-01-17  Eric Blake  <eblake@redhat.com>
60153         sigaction: relax license from LGPLv3+ to LGPLv2+
60154         * modules/sigaction (License): Relax to LGPLv2+.
60156 2011-01-14  Bruno Haible  <bruno@clisp.org>
60158         filemode: Make function declarations usable in C++ mode.
60159         * lib/filemode.h: Enclose function declarations in extern "C" block.
60160         Reported by John W. Eaton <jwe@gnu.org>.
60162 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
60164         save-cwd: no longer include "xgetcwd.h"
60165         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
60166         This avoids a compilation failure in projects that use save-cwd
60167         without also using the xgetcwd module.
60169 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60171         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
60172         This is so that a program like Emacs, which needs only dtoastr,
60173         does not have to bother with distributing and compiling ftoastr
60174         and ldtoastr.
60175         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
60176         * modules/dtoastr, modules/ldtoastr: New files.
60177         * modules/ftoastr: Now works just for 'float'.
60178         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
60179         (Makefile.am): Remove ftoastr.h (not needed and no effect),
60180         dtoastr.c, ldtoastr.c.
60182 2011-01-11  Jim Meyering  <meyering@redhat.com>
60184         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
60185         There is no need to work around the lack of the fchdir function,
60186         since gnulib can now provide a replacement when required.
60187         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
60188         * modules/save-cwd (Depends-on): Add fchdir.
60190 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60192         openat, save-cwd: avoid xmalloc
60194         This removes a direct (but undocumented) dependency of openat on
60195         xalloc, along with an indirect dependency via save-cwd.  It also
60196         removes a dependency of save-cwd on xgetcwd, and thereby
60197         indirectly on xalloc.  This change causes the openat substitute
60198         to fall back on save_cwd when memory is tight, and for save_cwd to
60199         fail instead of dying when memory is tight, but that's good enough.
60200         Problem and initial idea for fix reported by Bastien Roucaries in
60201         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
60203         * lib/openat-proc.c: Include stdlib.h (for malloc), not
60204         xalloc.h (for xmalloc).
60205         (openat_proc_name): Use malloc, not xmalloc.
60206         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
60207         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
60209         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
60210         This avoids heap allocation for file names whose lengths are in
60211         the range 512..1023, with the upper bound increasing to at most
60212         4031 depending on the platform's PATH_MAX.  (We do not want
60213         pathmax.h here as it might supply a non-constant PATH_MAX.)
60214         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
60215         Perhaps they should be moved to malloca.h?
60216         (OPENAT_BUFFER_SIZE): Use them.
60218 2011-01-10  Bruno Haible  <bruno@clisp.org>
60220         doc: Update users.txt.
60221         * users.txt: Add recutils.
60223 2011-01-09  Karl Berry  <karl@gnu.org>
60225         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
60227         * doc/configmake.texi: New file.
60228         * doc/gnulib.texi: Include it.
60229         * modules/configmake: Move documentation from here.
60231 2011-01-09  Bruno Haible  <bruno@clisp.org>
60233         Update to Unicode 6.0.0.
60234         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
60235         (get_lbp): Update for Unicode 6.0.0.
60236         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
60237         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
60238         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
60239         U+11001, U+11038..U+11046. Remove U+06DE.
60240         (uc_width): Fix bounds of planes.
60241         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60242         lib/uniwidth/width.c.
60243         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
60244         trailing whitespace removed.
60245         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
60246         without comments, but with the original copyright notice.
60247         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
60248         * lib/unicase/ignorable.h: Likewise.
60249         * lib/unicase/tocasefold.h: Likewise.
60250         * lib/unicase/tolower.h: Likewise.
60251         * lib/unicase/totitle.h: Likewise.
60252         * lib/unicase/toupper.h: Likewise.
60253         * lib/unictype/bidi_of.h: Likewise.
60254         * lib/unictype/blocks.h: Likewise.
60255         * lib/unictype/categ_C.h: Likewise.
60256         * lib/unictype/categ_Cn.h: Likewise.
60257         * lib/unictype/categ_L.h: Likewise.
60258         * lib/unictype/categ_Ll.h: Likewise.
60259         * lib/unictype/categ_Lm.h: Likewise.
60260         * lib/unictype/categ_Lo.h: Likewise.
60261         * lib/unictype/categ_Lu.h: Likewise.
60262         * lib/unictype/categ_M.h: Likewise.
60263         * lib/unictype/categ_Mc.h: Likewise.
60264         * lib/unictype/categ_Me.h: Likewise.
60265         * lib/unictype/categ_Mn.h: Likewise.
60266         * lib/unictype/categ_N.h: Likewise.
60267         * lib/unictype/categ_Nd.h: Likewise.
60268         * lib/unictype/categ_No.h: Likewise.
60269         * lib/unictype/categ_P.h: Likewise.
60270         * lib/unictype/categ_Po.h: Likewise.
60271         * lib/unictype/categ_S.h: Likewise.
60272         * lib/unictype/categ_Sc.h: Likewise.
60273         * lib/unictype/categ_Sk.h: Likewise.
60274         * lib/unictype/categ_Sm.h: Likewise.
60275         * lib/unictype/categ_So.h: Likewise.
60276         * lib/unictype/categ_of.h: Likewise.
60277         * lib/unictype/combining.h: Likewise.
60278         * lib/unictype/ctype_alnum.h: Likewise.
60279         * lib/unictype/ctype_alpha.h: Likewise.
60280         * lib/unictype/ctype_graph.h: Likewise.
60281         * lib/unictype/ctype_lower.h: Likewise.
60282         * lib/unictype/ctype_print.h: Likewise.
60283         * lib/unictype/ctype_punct.h: Likewise.
60284         * lib/unictype/ctype_upper.h: Likewise.
60285         * lib/unictype/decdigit.h: Likewise.
60286         * lib/unictype/digit.h: Likewise.
60287         * lib/unictype/numeric.h: Likewise.
60288         * lib/unictype/pr_alphabetic.h: Likewise.
60289         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60290         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60291         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60292         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60293         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60294         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60295         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60296         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60297         * lib/unictype/pr_case_ignorable.h: Likewise.
60298         * lib/unictype/pr_cased.h: Likewise.
60299         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
60300         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
60301         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
60302         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
60303         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
60304         * lib/unictype/pr_combining.h: Likewise.
60305         * lib/unictype/pr_composite.h: Likewise.
60306         * lib/unictype/pr_currency_symbol.h: Likewise.
60307         * lib/unictype/pr_decimal_digit.h: Likewise.
60308         * lib/unictype/pr_deprecated.h: Likewise.
60309         * lib/unictype/pr_format_control.h: Likewise.
60310         * lib/unictype/pr_grapheme_base.h: Likewise.
60311         * lib/unictype/pr_grapheme_extend.h: Likewise.
60312         * lib/unictype/pr_grapheme_link.h: Likewise.
60313         * lib/unictype/pr_id_continue.h: Likewise.
60314         * lib/unictype/pr_id_start.h: Likewise.
60315         * lib/unictype/pr_ideographic.h: Likewise.
60316         * lib/unictype/pr_lowercase.h: Likewise.
60317         * lib/unictype/pr_math.h: Likewise.
60318         * lib/unictype/pr_numeric.h: Likewise.
60319         * lib/unictype/pr_other_alphabetic.h: Likewise.
60320         * lib/unictype/pr_other_id_continue.h: Likewise.
60321         * lib/unictype/pr_other_math.h: Likewise.
60322         * lib/unictype/pr_punctuation.h: Likewise.
60323         * lib/unictype/pr_sentence_terminal.h: Likewise.
60324         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60325         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60326         * lib/unictype/pr_unified_ideograph.h: Likewise.
60327         * lib/unictype/pr_uppercase.h: Likewise.
60328         * lib/unictype/pr_xid_continue.h: Likewise.
60329         * lib/unictype/pr_xid_start.h: Likewise.
60330         * lib/unictype/scripts.h: Likewise.
60331         * lib/unictype/scripts_byname.gperf: Likewise.
60332         * lib/unictype/sy_java_ident.h: Likewise.
60333         * lib/unigbrk/gbrkprop.h: Likewise.
60334         * lib/unilbrk/lbrkprop1.h: Likewise.
60335         * lib/unilbrk/lbrkprop2.h: Likewise.
60336         * lib/uninorm/decomposition-table2.h: Likewise.
60337         * lib/uniwbrk/wbrkprop.h: Likewise.
60338         * tests/unicase/test-cased.c: Likewise.
60339         * tests/unicase/test-ignorable.c: Likewise.
60340         * tests/unicase/test-uc_tolower.c: Likewise.
60341         * tests/unicase/test-uc_totitle.c: Likewise.
60342         * tests/unicase/test-uc_toupper.c: Likewise.
60343         * tests/unictype/test-categ_C.c: Likewise.
60344         * tests/unictype/test-categ_Cn.c: Likewise.
60345         * tests/unictype/test-categ_L.c: Likewise.
60346         * tests/unictype/test-categ_Ll.c: Likewise.
60347         * tests/unictype/test-categ_Lm.c: Likewise.
60348         * tests/unictype/test-categ_Lo.c: Likewise.
60349         * tests/unictype/test-categ_Lu.c: Likewise.
60350         * tests/unictype/test-categ_M.c: Likewise.
60351         * tests/unictype/test-categ_Mc.c: Likewise.
60352         * tests/unictype/test-categ_Me.c: Likewise.
60353         * tests/unictype/test-categ_Mn.c: Likewise.
60354         * tests/unictype/test-categ_N.c: Likewise.
60355         * tests/unictype/test-categ_Nd.c: Likewise.
60356         * tests/unictype/test-categ_No.c: Likewise.
60357         * tests/unictype/test-categ_P.c: Likewise.
60358         * tests/unictype/test-categ_Po.c: Likewise.
60359         * tests/unictype/test-categ_S.c: Likewise.
60360         * tests/unictype/test-categ_Sc.c: Likewise.
60361         * tests/unictype/test-categ_Sk.c: Likewise.
60362         * tests/unictype/test-categ_Sm.c: Likewise.
60363         * tests/unictype/test-categ_So.c: Likewise.
60364         * tests/unictype/test-ctype_alnum.c: Likewise.
60365         * tests/unictype/test-ctype_alpha.c: Likewise.
60366         * tests/unictype/test-ctype_graph.c: Likewise.
60367         * tests/unictype/test-ctype_lower.c: Likewise.
60368         * tests/unictype/test-ctype_print.c: Likewise.
60369         * tests/unictype/test-ctype_punct.c: Likewise.
60370         * tests/unictype/test-ctype_upper.c: Likewise.
60371         * tests/unictype/test-decdigit.h: Likewise.
60372         * tests/unictype/test-digit.h: Likewise.
60373         * tests/unictype/test-numeric.h: Likewise.
60374         * tests/unictype/test-pr_alphabetic.c: Likewise.
60375         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60376         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60377         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60378         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60379         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60380         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60381         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60382         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60383         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60384         * tests/unictype/test-pr_cased.c: Likewise.
60385         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60386         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60387         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60388         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60389         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60390         * tests/unictype/test-pr_combining.c: Likewise.
60391         * tests/unictype/test-pr_composite.c: Likewise.
60392         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60393         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60394         * tests/unictype/test-pr_deprecated.c: Likewise.
60395         * tests/unictype/test-pr_format_control.c: Likewise.
60396         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60397         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60398         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60399         * tests/unictype/test-pr_id_continue.c: Likewise.
60400         * tests/unictype/test-pr_id_start.c: Likewise.
60401         * tests/unictype/test-pr_ideographic.c: Likewise.
60402         * tests/unictype/test-pr_lowercase.c: Likewise.
60403         * tests/unictype/test-pr_math.c: Likewise.
60404         * tests/unictype/test-pr_numeric.c: Likewise.
60405         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60406         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60407         * tests/unictype/test-pr_other_math.c: Likewise.
60408         * tests/unictype/test-pr_punctuation.c: Likewise.
60409         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60410         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60411         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60412         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60413         * tests/unictype/test-pr_uppercase.c: Likewise.
60414         * tests/unictype/test-pr_xid_continue.c: Likewise.
60415         * tests/unictype/test-pr_xid_start.c: Likewise.
60416         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60417         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60418         changes.
60419         * lib/unictype/categ_Cc.h: Likewise.
60420         * lib/unictype/categ_Cf.h: Likewise.
60421         * lib/unictype/categ_Co.h: Likewise.
60422         * lib/unictype/categ_Cs.h: Likewise.
60423         * lib/unictype/categ_Lt.h: Likewise.
60424         * lib/unictype/categ_Nl.h: Likewise.
60425         * lib/unictype/categ_Pc.h: Likewise.
60426         * lib/unictype/categ_Pd.h: Likewise.
60427         * lib/unictype/categ_Pe.h: Likewise.
60428         * lib/unictype/categ_Pf.h: Likewise.
60429         * lib/unictype/categ_Pi.h: Likewise.
60430         * lib/unictype/categ_Ps.h: Likewise.
60431         * lib/unictype/categ_Z.h: Likewise.
60432         * lib/unictype/categ_Zl.h: Likewise.
60433         * lib/unictype/categ_Zp.h: Likewise.
60434         * lib/unictype/categ_Zs.h: Likewise.
60435         * lib/unictype/ctype_blank.h: Likewise.
60436         * lib/unictype/ctype_cntrl.h: Likewise.
60437         * lib/unictype/ctype_digit.h: Likewise.
60438         * lib/unictype/ctype_space.h: Likewise.
60439         * lib/unictype/ctype_xdigit.h: Likewise.
60440         * lib/unictype/mirror.h: Likewise.
60441         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60442         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60443         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60444         * lib/unictype/pr_bidi_control.h: Likewise.
60445         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60446         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60447         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60448         * lib/unictype/pr_bidi_pdf.h: Likewise.
60449         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60450         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60451         * lib/unictype/pr_dash.h: Likewise.
60452         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60453         * lib/unictype/pr_diacritic.h: Likewise.
60454         * lib/unictype/pr_extender.h: Likewise.
60455         * lib/unictype/pr_hex_digit.h: Likewise.
60456         * lib/unictype/pr_hyphen.h: Likewise.
60457         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60458         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60459         * lib/unictype/pr_ignorable_control.h: Likewise.
60460         * lib/unictype/pr_iso_control.h: Likewise.
60461         * lib/unictype/pr_join_control.h: Likewise.
60462         * lib/unictype/pr_left_of_pair.h: Likewise.
60463         * lib/unictype/pr_line_separator.h: Likewise.
60464         * lib/unictype/pr_logical_order_exception.h: Likewise.
60465         * lib/unictype/pr_non_break.h: Likewise.
60466         * lib/unictype/pr_not_a_character.h: Likewise.
60467         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60468         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60469         * lib/unictype/pr_other_id_start.h: Likewise.
60470         * lib/unictype/pr_other_lowercase.h: Likewise.
60471         * lib/unictype/pr_other_uppercase.h: Likewise.
60472         * lib/unictype/pr_paired_punctuation.h: Likewise.
60473         * lib/unictype/pr_paragraph_separator.h: Likewise.
60474         * lib/unictype/pr_pattern_syntax.h: Likewise.
60475         * lib/unictype/pr_pattern_white_space.h: Likewise.
60476         * lib/unictype/pr_private_use.h: Likewise.
60477         * lib/unictype/pr_quotation_mark.h: Likewise.
60478         * lib/unictype/pr_radical.h: Likewise.
60479         * lib/unictype/pr_soft_dotted.h: Likewise.
60480         * lib/unictype/pr_space.h: Likewise.
60481         * lib/unictype/pr_titlecase.h: Likewise.
60482         * lib/unictype/pr_variation_selector.h: Likewise.
60483         * lib/unictype/pr_white_space.h: Likewise.
60484         * lib/unictype/pr_zero_width.h: Likewise.
60485         * lib/unictype/sy_c_ident.h: Likewise.
60486         * lib/unictype/sy_c_whitespace.h: Likewise.
60487         * lib/unictype/sy_java_whitespace.h: Likewise.
60488         * lib/uninorm/composition-table.gperf: Likewise.
60489         * lib/uninorm/decomposition-table1.h: Likewise.
60490         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
60491         LB8.
60492         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60493         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60494         * modules/unictype/*: Bump version number of expected libunistring
60495         version.
60497 2011-01-09  Bruno Haible  <bruno@clisp.org>
60499         Update to Unicode 5.2.0.
60500         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
60501         trailing whitespace removed.
60503 2011-01-09  Bruno Haible  <bruno@clisp.org>
60505         New Unicode character properties, from Unicode 5.2.0.
60506         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
60507         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
60508         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
60509         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
60510         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
60511         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
60512         uc_is_property_cased, uc_is_property_case_ignorable,
60513         uc_is_property_changes_when_lowercased,
60514         uc_is_property_changes_when_uppercased,
60515         uc_is_property_changes_when_titlecased,
60516         uc_is_property_changes_when_casefolded,
60517         uc_is_property_changes_when_casemapped): New declarations.
60518         * lib/unictype/pr_byname.gperf: Add the new properties.
60519         * modules/unictype/property-byname (Depends-on): Depend on the new
60520         properties modules.
60521         * modules/unictype/property-all (Depends-on): Likewise.
60522         * MODULES.html.sh (Unicode string functions): Add
60523         unictype/property-case-ignorable, unictype/property-cased,
60524         unictype/property-changes-when-casefolded,
60525         unictype/property-changes-when-casemapped,
60526         unictype/property-changes-when-lowercased,
60527         unictype/property-changes-when-titlecased,
60528         unictype/property-changes-when-uppercased.
60530         New module 'unictype/property-changes-when-casemapped'.
60531         * modules/unictype/property-changes-when-casemapped: New file.
60532         * lib/unictype/pr_changes_when_casemapped.c: New file.
60533         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
60534         generated by gen-uni-tables.
60535         * modules/unictype/property-changes-when-casemapped-tests: New file.
60536         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
60537         automatically generated by gen-uni-tables.
60539         New module 'unictype/property-changes-when-casefolded'.
60540         * modules/unictype/property-changes-when-casefolded: New file.
60541         * lib/unictype/pr_changes_when_casefolded.c: New file.
60542         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
60543         generated by gen-uni-tables.
60544         * modules/unictype/property-changes-when-casefolded-tests: New file.
60545         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
60546         automatically generated by gen-uni-tables.
60548         New module 'unictype/property-changes-when-titlecased'.
60549         * modules/unictype/property-changes-when-titlecased: New file.
60550         * lib/unictype/pr_changes_when_titlecased.c: New file.
60551         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
60552         generated by gen-uni-tables.
60553         * modules/unictype/property-changes-when-titlecased-tests: New file.
60554         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
60555         automatically generated by gen-uni-tables.
60557         New module 'unictype/property-changes-when-uppercased'.
60558         * modules/unictype/property-changes-when-uppercased: New file.
60559         * lib/unictype/pr_changes_when_uppercased.c: New file.
60560         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
60561         generated by gen-uni-tables.
60562         * modules/unictype/property-changes-when-uppercased-tests: New file.
60563         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
60564         automatically generated by gen-uni-tables.
60566         New module 'unictype/property-changes-when-lowercased'.
60567         * modules/unictype/property-changes-when-lowercased: New file.
60568         * lib/unictype/pr_changes_when_lowercased.c: New file.
60569         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
60570         generated by gen-uni-tables.
60571         * modules/unictype/property-changes-when-lowercased-tests: New file.
60572         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
60573         automatically generated by gen-uni-tables.
60575         New module 'unictype/property-case-ignorable'.
60576         * modules/unictype/property-case-ignorable: New file.
60577         * lib/unictype/pr_case_ignorable.c: New file.
60578         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
60579         by gen-uni-tables.
60580         * modules/unictype/property-case-ignorable-tests: New file.
60581         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
60582         generated by gen-uni-tables.
60584         New module 'unictype/property-cased'.
60585         * modules/unictype/property-cased: New file.
60586         * lib/unictype/pr_cased.c: New file.
60587         * lib/unictype/pr_cased.h: New file, automatically generated by
60588         gen-uni-tables.
60589         * modules/unictype/property-cased-tests: New file.
60590         * tests/unictype/test-pr_cased.c: New file, automatically generated by
60591         gen-uni-tables.
60593 2011-01-09  Bruno Haible  <bruno@clisp.org>
60595         Update to Unicode 5.2.0.
60596         * lib/gen-uni-tables.c (output_predicate, output_category,
60597         output_combclass, output_bidi_category, output_decimal_digit_test,
60598         output_decimal_digit, output_digit_test, output_digit,
60599         output_numeric_test, output_numeric, output_mirror, output_scripts,
60600         output_scripts_byname, output_blocks, output_ident_category): Fix
60601         comment header.
60602         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
60603         get_wbp.
60604         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
60605         items.
60606         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
60607         Changes_When_Lowercased, Changes_When_Uppercased,
60608         Changes_When_Titlecased, Changes_When_Casefolded,
60609         Changes_When_Casemapped.
60610         (is_property_alphabetic, is_property_default_ignorable_code_point):
60611         Update for Unicode 5.2.0.
60612         (is_property_cased, is_property_case_ignorable,
60613         is_property_changes_when_lowercased,
60614         is_property_changes_when_uppercased,
60615         is_property_changes_when_titlecased,
60616         is_property_changes_when_casefolded,
60617         is_property_changes_when_casemapped): New functions.
60618         (output_properties): Output also the properties cased, case_ignorable,
60619         changes_when_lowercased, changes_when_uppercased,
60620         changes_when_titlecased, changes_when_casefolded,
60621         changes_when_casemapped.
60622         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
60623         Unicode TR#11 revision 17 -> 19.
60624         (LBP_CP): New enumeration value.
60625         (LBP_*): Adjust values accordingly.
60626         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60627         TR#14 revision 22 -> 24.
60628         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
60629         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
60630         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60631         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60632         is_WBP_MIDLETTER.
60633         (output_composition_tables): Allow for 24 bits instead of 16 bits in
60634         the code1 and code2 of each composition rule.
60635         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
60636         * lib/unicase/ignorable.h: Likewise.
60637         * lib/unicase/tocasefold.h: Likewise.
60638         * lib/unicase/tolower.h: Likewise.
60639         * lib/unicase/totitle.h: Likewise.
60640         * lib/unicase/toupper.h: Likewise.
60641         * lib/unictype/bidi_of.h: Likewise.
60642         * lib/unictype/blocks.h: Likewise.
60643         * lib/unictype/categ_C.h: Likewise.
60644         * lib/unictype/categ_Cf.h: Likewise.
60645         * lib/unictype/categ_Cn.h: Likewise.
60646         * lib/unictype/categ_L.h: Likewise.
60647         * lib/unictype/categ_Ll.h: Likewise.
60648         * lib/unictype/categ_Lm.h: Likewise.
60649         * lib/unictype/categ_Lo.h: Likewise.
60650         * lib/unictype/categ_Lu.h: Likewise.
60651         * lib/unictype/categ_M.h: Likewise.
60652         * lib/unictype/categ_Mc.h: Likewise.
60653         * lib/unictype/categ_Mn.h: Likewise.
60654         * lib/unictype/categ_N.h: Likewise.
60655         * lib/unictype/categ_Nd.h: Likewise.
60656         * lib/unictype/categ_Nl.h: Likewise.
60657         * lib/unictype/categ_No.h: Likewise.
60658         * lib/unictype/categ_P.h: Likewise.
60659         * lib/unictype/categ_Pd.h: Likewise.
60660         * lib/unictype/categ_Po.h: Likewise.
60661         * lib/unictype/categ_S.h: Likewise.
60662         * lib/unictype/categ_Sc.h: Likewise.
60663         * lib/unictype/categ_So.h: Likewise.
60664         * lib/unictype/categ_of.h: Likewise.
60665         * lib/unictype/combining.h: Likewise.
60666         * lib/unictype/ctype_alnum.h: Likewise.
60667         * lib/unictype/ctype_alpha.h: Likewise.
60668         * lib/unictype/ctype_graph.h: Likewise.
60669         * lib/unictype/ctype_lower.h: Likewise.
60670         * lib/unictype/ctype_print.h: Likewise.
60671         * lib/unictype/ctype_punct.h: Likewise.
60672         * lib/unictype/ctype_upper.h: Likewise.
60673         * lib/unictype/decdigit.h: Likewise.
60674         * lib/unictype/digit.h: Likewise.
60675         * lib/unictype/numeric.h: Likewise.
60676         * lib/unictype/pr_alphabetic.h: Likewise.
60677         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60678         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60679         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60680         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60681         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60682         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60683         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60684         * lib/unictype/pr_combining.h: Likewise.
60685         * lib/unictype/pr_composite.h: Likewise.
60686         * lib/unictype/pr_currency_symbol.h: Likewise.
60687         * lib/unictype/pr_dash.h: Likewise.
60688         * lib/unictype/pr_decimal_digit.h: Likewise.
60689         * lib/unictype/pr_deprecated.h: Likewise.
60690         * lib/unictype/pr_diacritic.h: Likewise.
60691         * lib/unictype/pr_extender.h: Likewise.
60692         * lib/unictype/pr_grapheme_base.h: Likewise.
60693         * lib/unictype/pr_grapheme_extend.h: Likewise.
60694         * lib/unictype/pr_grapheme_link.h: Likewise.
60695         * lib/unictype/pr_id_continue.h: Likewise.
60696         * lib/unictype/pr_id_start.h: Likewise.
60697         * lib/unictype/pr_ideographic.h: Likewise.
60698         * lib/unictype/pr_ignorable_control.h: Likewise.
60699         * lib/unictype/pr_logical_order_exception.h: Likewise.
60700         * lib/unictype/pr_lowercase.h: Likewise.
60701         * lib/unictype/pr_numeric.h: Likewise.
60702         * lib/unictype/pr_other_alphabetic.h: Likewise.
60703         * lib/unictype/pr_punctuation.h: Likewise.
60704         * lib/unictype/pr_sentence_terminal.h: Likewise.
60705         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60706         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60707         * lib/unictype/pr_unified_ideograph.h: Likewise.
60708         * lib/unictype/pr_uppercase.h: Likewise.
60709         * lib/unictype/pr_xid_continue.h: Likewise.
60710         * lib/unictype/pr_xid_start.h: Likewise.
60711         * lib/unictype/pr_zero_width.h: Likewise.
60712         * lib/unictype/scripts.h: Likewise.
60713         * lib/unictype/scripts_byname.gperf: Likewise.
60714         * lib/unictype/sy_java_ident.h: Likewise.
60715         * lib/unigbrk/gbrkprop.h: Likewise.
60716         * lib/unilbrk/lbrkprop1.h: Likewise.
60717         * lib/unilbrk/lbrkprop2.h: Likewise.
60718         * lib/unilbrk/lbrktables.h: Likewise.
60719         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60720         LBP_CP. Implement rule LB30.
60721         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60722         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60723         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60724         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60725         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60726         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60727         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60728         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60729         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60730         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60731         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60732         bits instead of 16 bits in the code1 and code2 of each composition
60733         rule.
60734         (uc_composition): Update for Unicode 5.2.0.
60735         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60736         * lib/uninorm/decomposition-table2.h: Likewise.
60737         * lib/uniwbrk/wbrkprop.h: Likewise.
60738         * tests/unicase/test-cased.c: Likewise.
60739         * tests/unicase/test-ignorable.c: Likewise.
60740         * tests/unicase/test-uc_tolower.c: Likewise.
60741         * tests/unicase/test-uc_totitle.c: Likewise.
60742         * tests/unicase/test-uc_toupper.c: Likewise.
60743         * tests/unictype/test-categ_C.c: Likewise.
60744         * tests/unictype/test-categ_Cf.c: Likewise.
60745         * tests/unictype/test-categ_Cn.c: Likewise.
60746         * tests/unictype/test-categ_L.c: Likewise.
60747         * tests/unictype/test-categ_Ll.c: Likewise.
60748         * tests/unictype/test-categ_Lm.c: Likewise.
60749         * tests/unictype/test-categ_Lo.c: Likewise.
60750         * tests/unictype/test-categ_Lu.c: Likewise.
60751         * tests/unictype/test-categ_M.c: Likewise.
60752         * tests/unictype/test-categ_Mc.c: Likewise.
60753         * tests/unictype/test-categ_Mn.c: Likewise.
60754         * tests/unictype/test-categ_N.c: Likewise.
60755         * tests/unictype/test-categ_Nd.c: Likewise.
60756         * tests/unictype/test-categ_Nl.c: Likewise.
60757         * tests/unictype/test-categ_No.c: Likewise.
60758         * tests/unictype/test-categ_P.c: Likewise.
60759         * tests/unictype/test-categ_Pd.c: Likewise.
60760         * tests/unictype/test-categ_Po.c: Likewise.
60761         * tests/unictype/test-categ_S.c: Likewise.
60762         * tests/unictype/test-categ_Sc.c: Likewise.
60763         * tests/unictype/test-categ_So.c: Likewise.
60764         * tests/unictype/test-ctype_alnum.c: Likewise.
60765         * tests/unictype/test-ctype_alpha.c: Likewise.
60766         * tests/unictype/test-ctype_graph.c: Likewise.
60767         * tests/unictype/test-ctype_lower.c: Likewise.
60768         * tests/unictype/test-ctype_print.c: Likewise.
60769         * tests/unictype/test-ctype_punct.c: Likewise.
60770         * tests/unictype/test-ctype_upper.c: Likewise.
60771         * tests/unictype/test-decdigit.h: Likewise.
60772         * tests/unictype/test-digit.h: Likewise.
60773         * tests/unictype/test-numeric.h: Likewise.
60774         * tests/unictype/test-pr_alphabetic.c: Likewise.
60775         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60776         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60777         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60778         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60779         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60780         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60781         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60782         * tests/unictype/test-pr_combining.c: Likewise.
60783         * tests/unictype/test-pr_composite.c: Likewise.
60784         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60785         * tests/unictype/test-pr_dash.c: Likewise.
60786         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60787         * tests/unictype/test-pr_deprecated.c: Likewise.
60788         * tests/unictype/test-pr_diacritic.c: Likewise.
60789         * tests/unictype/test-pr_extender.c: Likewise.
60790         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60791         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60792         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60793         * tests/unictype/test-pr_id_continue.c: Likewise.
60794         * tests/unictype/test-pr_id_start.c: Likewise.
60795         * tests/unictype/test-pr_ideographic.c: Likewise.
60796         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60797         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60798         * tests/unictype/test-pr_lowercase.c: Likewise.
60799         * tests/unictype/test-pr_numeric.c: Likewise.
60800         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60801         * tests/unictype/test-pr_punctuation.c: Likewise.
60802         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60803         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60804         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60805         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60806         * tests/unictype/test-pr_uppercase.c: Likewise.
60807         * tests/unictype/test-pr_xid_continue.c: Likewise.
60808         * tests/unictype/test-pr_xid_start.c: Likewise.
60809         * tests/unictype/test-pr_zero_width.c: Likewise.
60810         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60811         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60812         changed behaviour: line breaking is now disallowed between a letter
60813         or '=' and '('.
60814         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60815         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60816         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60817         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60818         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60819         lib/uniwidth/width.c.
60820         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60821         without comments, but with the original copyright notice.
60822         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60823         changes.
60824         * lib/unictype/categ_Cc.h: Likewise.
60825         * lib/unictype/categ_Co.h: Likewise.
60826         * lib/unictype/categ_Cs.h: Likewise.
60827         * lib/unictype/categ_Lt.h: Likewise.
60828         * lib/unictype/categ_Me.h: Likewise.
60829         * lib/unictype/categ_Pc.h: Likewise.
60830         * lib/unictype/categ_Pe.h: Likewise.
60831         * lib/unictype/categ_Pf.h: Likewise.
60832         * lib/unictype/categ_Pi.h: Likewise.
60833         * lib/unictype/categ_Ps.h: Likewise.
60834         * lib/unictype/categ_Sk.h: Likewise.
60835         * lib/unictype/categ_Sm.h: Likewise.
60836         * lib/unictype/categ_Z.h: Likewise.
60837         * lib/unictype/categ_Zl.h: Likewise.
60838         * lib/unictype/categ_Zp.h: Likewise.
60839         * lib/unictype/categ_Zs.h: Likewise.
60840         * lib/unictype/ctype_blank.h: Likewise.
60841         * lib/unictype/ctype_cntrl.h: Likewise.
60842         * lib/unictype/ctype_digit.h: Likewise.
60843         * lib/unictype/ctype_space.h: Likewise.
60844         * lib/unictype/ctype_xdigit.h: Likewise.
60845         * lib/unictype/mirror.h: Likewise.
60846         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60847         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60848         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60849         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60850         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60851         * lib/unictype/pr_bidi_control.h: Likewise.
60852         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60853         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60854         * lib/unictype/pr_bidi_pdf.h: Likewise.
60855         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60856         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60857         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60858         * lib/unictype/pr_format_control.h: Likewise.
60859         * lib/unictype/pr_hex_digit.h: Likewise.
60860         * lib/unictype/pr_hyphen.h: Likewise.
60861         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60862         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60863         * lib/unictype/pr_iso_control.h: Likewise.
60864         * lib/unictype/pr_join_control.h: Likewise.
60865         * lib/unictype/pr_left_of_pair.h: Likewise.
60866         * lib/unictype/pr_line_separator.h: Likewise.
60867         * lib/unictype/pr_math.h: Likewise.
60868         * lib/unictype/pr_non_break.h: Likewise.
60869         * lib/unictype/pr_not_a_character.h: Likewise.
60870         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60871         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60872         * lib/unictype/pr_other_id_continue.h: Likewise.
60873         * lib/unictype/pr_other_id_start.h: Likewise.
60874         * lib/unictype/pr_other_lowercase.h: Likewise.
60875         * lib/unictype/pr_other_math.h: Likewise.
60876         * lib/unictype/pr_other_uppercase.h: Likewise.
60877         * lib/unictype/pr_paired_punctuation.h: Likewise.
60878         * lib/unictype/pr_paragraph_separator.h: Likewise.
60879         * lib/unictype/pr_pattern_syntax.h: Likewise.
60880         * lib/unictype/pr_pattern_white_space.h: Likewise.
60881         * lib/unictype/pr_private_use.h: Likewise.
60882         * lib/unictype/pr_quotation_mark.h: Likewise.
60883         * lib/unictype/pr_radical.h: Likewise.
60884         * lib/unictype/pr_soft_dotted.h: Likewise.
60885         * lib/unictype/pr_space.h: Likewise.
60886         * lib/unictype/pr_titlecase.h: Likewise.
60887         * lib/unictype/pr_variation_selector.h: Likewise.
60888         * lib/unictype/pr_white_space.h: Likewise.
60889         * lib/unictype/sy_c_ident.h: Likewise.
60890         * lib/unictype/sy_c_whitespace.h: Likewise.
60891         * lib/unictype/sy_java_whitespace.h: Likewise.
60892         * modules/uni*/*: Bump version number of expected libunistring version.
60893         Reported by Simon Josefsson.
60895 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60897         useless-if-before-free: fix typo in --help and make the internal,
60898         automatic version date update process work once again.
60899         --help output contained a NUL character instead of the
60900         backslash-zero that was intended.  Also, the "must lie within
60901         the first 8 lines" line is on line 9, and hence not getting
60902         automatically updated.
60903         * build-aux/useless-if-before-free: Fix the former by adding a
60904         backslash, and the latter by condensing the three lines of what-it-does
60905         to a single line, leaving one line of slack for the future.
60907 2011-01-09  Bruno Haible  <bruno@clisp.org>
60909         uniwidth/width: Fix width of U+1D173..U+1D17A.
60910         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60911         symbolic_width, output_width_property_test): New functions.
60912         (main): Invoke output_nonspacing_property, output_width_property_test.
60913         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60914         U+1D173..U+1D17A.
60915         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60916         1.
60917         * modules/uniwidth/*: Bump version number of expected libunistring
60918         version.
60919         * modules/unilbrk/*: Likewise.
60921 2011-01-08  Bruno Haible  <bruno@clisp.org>
60923         uninorm tests: Preserve copyright of Unicode data file.
60924         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60925         Mention modifications.
60927 2011-01-08  Bruno Haible  <bruno@clisp.org>
60929         gen-uni-tables: Prepare for Unicode 5.2.0.
60930         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60931         (debug_output_lbp, output_lbp): Update.
60933 2011-01-08  Bruno Haible  <bruno@clisp.org>
60935         unilbrk: Clarify gen-uni-tables.c code.
60936         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60937         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60938         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60940 2011-01-07  Bruno Haible  <bruno@clisp.org>
60942         strtod: Restore errno when successfully parsing Infinity or NaN.
60943         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60944         restore the original errno.
60946 2011-01-07  Bruno Haible  <bruno@clisp.org>
60948         remove test: Avoid failure on HP-UX 11.
60949         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60951 2011-01-07  Bruno Haible  <bruno@clisp.org>
60953         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60954         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60955         error code.
60957 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60959         ignore-value: fixup comments, and add Eric Blake
60960         as an author since he rewrote the macros.
60961         * lib/ignore-value.h (ignore_value):  State that
60962         we now support aggregates.  Also specify exactly
60963         when the GCC warn_unused_result feature was added.
60965 2011-01-06  Eric Blake  <eblake@redhat.com>
60967         ignore-value: support aggregate types
60968         * lib/ignore-value.h (ignore_value): Provide separate gcc
60969         definition.
60970         * modules/ignore-value-tests: New test module.
60971         * tests/test-ignore-value.c: New test.
60973         maint.mk: improve sc_prohibit_strcmp regex
60974         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60975         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60976         definition of STRNEQ.
60978         signal: work around Haiku issue with SIGBUS
60979         * lib/siglist.h: Add comment.
60980         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60981         strsignal's favoring of SIGSEGV.
60982         * tests/test-signal.c (main): Avoid test failure.
60983         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60984         Reported by Scott McCreary.
60986         maint.mk: add pre-release check to ensure submodule commits are public
60987         * top/maint.mk (public-submodule-commit): New rule.
60988         (submodule-checks): New variable.
60989         (alpha beta stable): Depend on the variable.
60991 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60992         and Jim Meyering  <meyering@redhat.com>
60994         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60995         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60996         (ATTRIBUTE_DEPRECATED): Define.
60997         (_ignore_case): New function.
60998         (ignore_value): New macro, to replace the old function.
60999         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
61000         * modules/ignore-value (Depends-on): Add stdint.
61002 2011-01-04  Eric Blake  <eblake@redhat.com>
61004         doc: regenerate INSTALL
61005         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
61006         @firstparagraphindent support, now that autoconf dropped it.
61007         (INSTALL_PRELUDE): Reinstate old macro.
61008         * doc/install.texi: Resync from autoconf.
61009         * doc/INSTALL: Reflect recent autoconf update.
61010         * doc/INSTALL.ISO: Likewise.
61011         * doc/INSTALL.UTF-8: Likewise.
61012         Reported by Karl Berry.
61014 2011-01-04  Bruce Korb  <address@hidden>
61016         git-version-gen: avoid a sub-shell
61017         * build-aux/git-version-gen: Redirect stderr in `...` via
61018         "exec 2>...", rather than via an added sub-shell.
61020 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
61022         git-version-gen: use (...) rather than sh -c '...'
61023         * build-aux/git-version-gen: Rather than hard-coding a shell's name
61024         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
61026 2011-01-03  Jim Meyering  <meyering@redhat.com>
61028         git-version-gen: convert leading TABs to spaces
61029         * build-aux/git-version-gen: Expand leading TABs.
61031         git-version-gen: handle failed "git rev-list"
61032         * build-aux/git-version-gen: Rather than leaking a "fatal" error
61033         from git and proceeding as if it had succeeded but printed no SHA1
61034         checksums, suppress the diagnostic and handle the failure.
61035         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
61037         git-version-gen: include command name in one more diagnostic
61038         * build-aux/git-version-gen: When the required .tarball-version file
61039         was missing or unreadable, you might see the diagnostic from "cat",
61040         but no trace of the name of the invoking script.  Now, you still see
61041         the diagnostic from cat, but also get one from "git-version-gen: ".
61042         Inspired by a patch from Bruce Korb.
61044         update-copyright: adjust test to match changed code
61045         * tests/test-update-copyright.sh: Change test's expected output
61046         to match new actual output.
61048 2011-01-02  Bruno Haible  <bruno@clisp.org>
61050         getlogin_r: Avoid test failure on HP-UX 11.
61051         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
61052         ERANGE when the second argument is zero.
61053         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
61054         portability problem.
61056 2011-01-02  Bruce Korb  <bkorb@gnu.org>
61058         * build-aux/update-copyright: doc Simon's changes
61060 2011-01-02  Simon Josefsson  <simon@josefsson.org>
61062         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
61063         environment variable.
61065 2011-01-02  Bruno Haible  <bruno@clisp.org>
61067         unigbrk: Avoid gcc warnings.
61068         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
61069         unused variable.
61070         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
61071         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
61072         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
61073         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
61074         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
61075         Change type of first argument to 'const char *'.
61076         (main): Remove unused variable.
61077         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
61078         type of first argument to 'const char *'.
61079         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
61080         Likewise.
61081         (main): Change type of variable 's'.
61082         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
61083         to 'int'.
61085 2011-01-02  Bruno Haible  <bruno@clisp.org>
61087         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
61088         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
61089         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
61090         bug.
61091         * lib/pwrite.c: Undo 2010-12-31 patch.
61092         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
61094 2011-01-02  Bruno Haible  <bruno@clisp.org>
61096         pread: Fix test whether it works.
61097         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
61099 2011-01-02  Bruno Haible  <bruno@clisp.org>
61101         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
61102         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
61103         ends in "6". Don't require a specific month name. Try also the locale
61104         names found on HP-UX 11 and Solaris 7.
61106 2011-01-02  Bruno Haible  <bruno@clisp.org>
61108         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
61109         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
61110         C linkage.
61111         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
61113 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61115         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
61116         for consistency, since the "cluster" term is not used elsewhere.
61117         * lib/unigbrk.in.h: Update name.
61118         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
61119         * lib/unigbrk/u16-grapheme-next.c: Update name.
61120         * lib/unigbrk/u16-grapheme-prev.c: Update name.
61121         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
61122         * lib/unigbrk/u32-grapheme-next.c: Update name.
61123         * lib/unigbrk/u32-grapheme-prev.c: Update name.
61124         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
61125         * lib/unigbrk/u8-grapheme-next.c: Update name.
61126         * lib/unigbrk/u8-grapheme-prev.c: Update name.
61127         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
61128         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
61129         Suggested by Bruno Haible.
61131 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61133         Remove module 'u8-grapheme-len' as too redundant with
61134         'u8-grapheme-next'.
61135         * modules/unigbrk/u8-grapheme-len: Delete file.
61136         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
61137         * lib/unigbrk.in.h: Remove prototype for deleted function.
61138         * lib/unigbrk/u8-grapheme-len.c: Delete file.
61139         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
61141         Remove module 'u16-grapheme-len' as too redundant with
61142         'u16-grapheme-next'.
61143         * modules/unigbrk/u16-grapheme-len: Delete file.
61144         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
61145         * lib/unigbrk.in.h: Remove prototype for deleted function.
61146         * lib/unigbrk/u16-grapheme-len.c: Delete file.
61147         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
61149         Remove module 'u32-grapheme-len' as too redundant with
61150         'u32-grapheme-next'.
61151         * modules/unigbrk/u32-grapheme-len: Delete file.
61152         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
61153         * lib/unigbrk.in.h: Remove prototype for deleted function.
61154         * lib/unigbrk/u32-grapheme-len.c: Delete file.
61155         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
61157         Suggested by Bruno Haible.
61159 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61161         * unigbrk.in.h: Fix typo: "ben" => "been".
61162         Reported by Bruno Haible.
61164 2011-01-01  Jim Meyering  <meyering@redhat.com>
61166         maint: update almost all copyright ranges to include 2011
61167         Run the new "make update-copyright" rule.
61169 2011-01-01  Jim Meyering  <meyering@redhat.com>
61171         maint: update-copyright: exempt doc/INSTALL*
61172         * Makefile (update-copyright): Also exclude doc/INSTALL*,
61173         since they are generated.  Suggested by Bruno Haible.
61175 2011-01-01  Jim Meyering  <meyering@redhat.com>
61177         maint: refine the update-copyright rule
61178         * Makefile (update-copyright): Also exclude any file that includes
61179         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
61180         code that merely generates the comment.
61182 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61184         New module 'u8-grapheme-len'.
61185         * modules/unigbrk/u8-grapheme-len: New file.
61186         * modules/unigbrk/u8-grapheme-len-tests: New file.
61187         * lib/unigbrk.in.h: Add prototype for new function.
61188         * lib/unigbrk/u8-grapheme-len.c: New file.
61189         * tests/unigbrk/test-u8-grapheme-len.c: New file.
61191         New module 'u16-grapheme-len'.
61192         * modules/unigbrk/u16-grapheme-len: New file.
61193         * modules/unigbrk/u16-grapheme-len-tests: New file.
61194         * lib/unigbrk.in.h: Add prototype for new function.
61195         * lib/unigbrk/u16-grapheme-len.c: New file.
61196         * tests/unigbrk/test-u16-grapheme-len.c: New file.
61198         New module 'u32-grapheme-len'.
61199         * modules/unigbrk/u32-grapheme-len: New file.
61200         * modules/unigbrk/u32-grapheme-len-tests: New file.
61201         * lib/unigbrk.in.h: Add prototype for new function.
61202         * lib/unigbrk/u32-grapheme-len.c: New file.
61203         * tests/unigbrk/test-u32-grapheme-len.c: New file.
61205         New module 'u8-grapheme-next'.
61206         * modules/unigbrk/u8-grapheme-next: New file.
61207         * modules/unigbrk/u8-grapheme-next-tests: New file.
61208         * lib/unigbrk.in.h: Add prototype for new function.
61209         * lib/unigbrk/u8-grapheme-next.c: New file.
61210         * tests/unigbrk/test-u8-grapheme-next.c: New file.
61212         New module 'u16-grapheme-next'.
61213         * modules/unigbrk/u16-grapheme-next: New file.
61214         * modules/unigbrk/u16-grapheme-next-tests: New file.
61215         * lib/unigbrk.in.h: Add prototype for new function.
61216         * lib/unigbrk/u16-grapheme-next.c: New file.
61217         * tests/unigbrk/test-u16-grapheme-next.c: New file.
61219         New module 'u32-grapheme-next'.
61220         * modules/unigbrk/u32-grapheme-next: New file.
61221         * modules/unigbrk/u32-grapheme-next-tests: New file.
61222         * lib/unigbrk.in.h: Add prototype for new function.
61223         * lib/unigbrk/u32-grapheme-next.c: New file.
61224         * tests/unigbrk/test-u32-grapheme-next.c: New file.
61226         New module 'u8-grapheme-prev'.
61227         * modules/unigbrk/u8-grapheme-prev: New file.
61228         * modules/unigbrk/u8-grapheme-prev-tests: New file.
61229         * lib/unigbrk.in.h: Add prototype for new function.
61230         * lib/unigbrk/u8-grapheme-prev.c: New file.
61231         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
61233         New module 'u16-grapheme-prev'.
61234         * modules/unigbrk/u16-grapheme-prev: New file.
61235         * modules/unigbrk/u16-grapheme-prev-tests: New file.
61236         * lib/unigbrk.in.h: Add prototype for new function.
61237         * lib/unigbrk/u16-grapheme-prev.c: New file.
61238         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
61240         New module 'u32-grapheme-prev'.
61241         * modules/unigbrk/u32-grapheme-prev: New file.
61242         * modules/unigbrk/u32-grapheme-prev-tests: New file.
61243         * lib/unigbrk.in.h: Add prototype for new function.
61244         * lib/unigbrk/u32-grapheme-prev.c: New file.
61245         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
61247         New module 'u8-grapheme-breaks'.
61248         * modules/unigbrk/u8-grapheme-breaks: New file.
61249         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
61250         * lib/unigbrk.in.h: Add prototype for new function.
61251         * lib/unigbrk/u8-grapheme-breaks.c: New file.
61252         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
61254         New module 'u16-grapheme-breaks'.
61255         * modules/unigbrk/u16-grapheme-breaks: New file.
61256         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
61257         * lib/unigbrk.in.h: Add prototype for new function.
61258         * lib/unigbrk/u16-grapheme-breaks.c: New file.
61259         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
61261         New module 'u32-grapheme-breaks'.
61262         * modules/unigbrk/u32-grapheme-breaks: New file.
61263         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
61264         * lib/unigbrk.in.h: Add prototype for new function.
61265         * lib/unigbrk/u32-grapheme-breaks.c: New file.
61266         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
61268         New module 'ulc-grapheme-breaks'.
61269         * modules/unigbrk/ulc-grapheme-breaks: New file.
61270         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
61271         * m4/locale-ar.m4: New file.
61272         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
61273         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
61274         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
61276 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61278         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
61279         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
61280         modified how this file was generated before I initially submitted
61281         the module, but failed to regenerate it.  This meant that several
61282         of the level2 entries were wrong.
61283         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
61284         Remove the division-by-2 that is folded into the table now that
61285         gbrkprop.h has been regenerated properly.  Now -1 entries are
61286         handled correctly.
61288         New module 'unigbrk/uc-gbrk-prop-tests'.
61289         * modules/unigbrk/uc-gbrk-prop-tests: New file.
61290         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
61291         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
61292         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
61294 2011-01-01  Bruno Haible  <bruno@clisp.org>
61296         Avoid use of hexadecimal escapes.
61297         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
61298         instead of hexadecimal escapes.
61300 2011-01-01  Jim Meyering  <meyering@redhat.com>
61302         maint: new rule to update copyright year ranges
61303         * Makefile (update-copyright): New rule.
61305         maint: indent with TABs in Makefile
61306         * Makefile: Expand leading sequences of spaces to TABs
61308         version-etc: update the copyright year it reports
61309         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
61311 2010-12-31  Bruno Haible  <bruno@clisp.org>
61313         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
61314         * lib/isfinite.c (zerof, zerod, zerol): New variables.
61315         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
61316         zero.
61318 2010-12-31  Bruno Haible  <bruno@clisp.org>
61320         pwrite: Work around HP-UX 11.11 bug.
61321         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
61322         works and set REPLACE_PWRITE if not.
61323         * lib/pwrite.c (pwrite): Add an implementation that uses the system
61324         function.
61325         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
61327 2010-12-31  Bruno Haible  <bruno@clisp.org>
61329         pread: Work around HP-UX 11 bugs.
61330         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
61331         and set REPLACE_PREAD if not.
61332         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
61334 2010-12-31  Eric Blake  <eblake@redhat.com>
61336         nl_langinfo: fix YESEXPR on Irix 6.5
61337         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
61338         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
61339         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
61340         it.
61342 2010-12-31  Bruno Haible  <bruno@clisp.org>
61344         iconv: Document HP-UX 11 bug.
61345         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
61347 2010-12-31  Bruno Haible  <bruno@clisp.org>
61349         ldexpl: Fix link error on HP-UX 11.
61350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
61351         LDEXPL_LIBM, using $ISNANL_LIBM.
61353 2010-12-31  Eric Blake  <eblake@redhat.com>
61355         ftello: avoid compilation failure with SunStudio c89
61356         * lib/ftello.c (ftello): Use lseek, not llseek.
61358         tests: avoid failing coreutils tests on cygwin
61359         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
61360         (create_exe_shims_): Return 0 when skipping.
61362 2010-12-31  Bruno Haible  <bruno@clisp.org>
61364         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61365         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61367 2010-12-31  Bruno Haible  <bruno@clisp.org>
61369         waitpid: Fix link error in C++ mode.
61370         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61372 2010-12-31  Bruno Haible  <bruno@clisp.org>
61374         isnan: Use GCC built-ins when possible.
61375         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61376         __builtin_isnan.
61377         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61378         (isnan): Define using GCC built-ins for GCC >= 4.0.
61380 2010-12-31  Bruno Haible  <bruno@clisp.org>
61382         isnand: Fix mistake.
61383         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61384         __builtin_isnand.
61386 2010-12-31  Bruno Haible  <bruno@clisp.org>
61388         open: Avoid C++ error on HP-UX 11.
61389         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61391 2010-12-31  Bruno Haible  <bruno@clisp.org>
61393         time_r: Add missing declarations on HP-UX 11.
61394         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61395         instead of HAVE_LOCALTIME_R.
61396         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61397         HAVE_LOCALTIME_R always.
61398         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61399         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61400         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61401         HAVE_LOCALTIME_R.
61402         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61403         * doc/posix-functions/localtime_r.texi: Likewise.
61405 2010-12-29  Eric Blake  <eblake@redhat.com>
61407         mountlist: tweak previous commit
61408         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61409         Reported by Paul Eggert.
61411         mountlist: fix local drive detection on cygwin
61412         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61413         that works for cygwin.
61415 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61417         ftoastr, snprintf: ftoastr + snprintf module
61418         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61419         since the snprintf module now should be good enough here.
61420         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61421         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61422         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61423         GNULIB_SNPRINTF only for the test directory, and the latter
61424         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61425         seems to suffice by itself.
61427 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61429         alloca: one step towards thread-safety
61430         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61431         need for a static variable.  All callers changed.  This does not
61432         make the alloca replacement thread-safe, but it's one step.
61434         tests: minor indenting change
61435         * tests/init.sh: Sync from coreutils housekeeping patch
61436         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61437         to keep lines within 80 columns.
61439 2010-12-28  Jim Meyering  <meyering@redhat.com>
61441         regex: don't infloop on persistent failing calloc
61442         * lib/regexec.c (build_trtable): Return failure indication upon
61443         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61444         In glibc, this was fixed for version 2.13:
61445         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61447 2010-12-28  Bruno Haible  <bruno@clisp.org>
61448             Paul Eggert <eggert@cs.ucla.edu>
61450         linkat: Make implementation robust against system behaviour variations.
61451         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61452         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61453         way, and to -2 if it needs a generic runtime test.
61454         * lib/linkat.c (solaris_optimized_link_immediate,
61455         solaris_optimized_link_follow): New functions.
61456         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61457         (check_same_link): Use it.
61459 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61461         New module 'unigbrk/base'.
61462         * modules/unigbrk/base: New file.
61463         * lib/unigbrk.in.h: New file.
61465         New module 'unigbrk/uc-gbrk-prop'.
61466         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61467         * modules/unigbrk/uc-gbrk-prop: New file.
61468         * lib/unigbrk/gbrkprop.h: New file.
61469         * lib/unigbrk/uc-gbrk-prop.c: New file.
61471         New module 'unigbrk/uc-is-grapheme-break'.
61472         * modules/unigbrk/uc-is-grapheme-break: New file.
61473         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
61474         * lib/unigbrk/uc-is-grapheme-break.c: New file.
61475         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
61476         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
61477         * tests/unigbrk/GraphemeBreakTest.txt: New file.
61479         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
61481 2010-12-27  Bruno Haible  <bruno@clisp.org>
61483         linkat test: Avoid failure on Solaris 11 2010-11.
61484         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
61486 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61488         utimens: work around glibc rounding bug on more platforms
61489         * lib/utimens.c (fdutimens): Work around rounding bug even if
61490         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
61491         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
61493 2010-12-27  Bruno Haible  <bruno@clisp.org>
61495         select tests: Improve comments.
61496         * tests/test-select.c (do_select): Add comments.
61498 2010-12-27  Bruno Haible  <bruno@clisp.org>
61500         select tests: Safer way of handling timeout.
61501         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
61502         at every invocation.
61504 2010-12-27  Bruno Haible  <bruno@clisp.org>
61506         select tests: Use 'bool' where appropriate.
61507         * tests/test-select.c (connect_to_socket): Change argument type to
61508         'bool'.
61510 2010-12-27  Bruno Haible  <bruno@clisp.org>
61512         select tests: Use existing modules.
61513         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
61514         (configure.ac): Don't test for unistd.h.
61515         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
61516         declared in <unistd.h>.
61518 2010-12-27  Bruno Haible  <bruno@clisp.org>
61520         mbrtowc: Work around a Solaris 7 bug.
61521         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
61522         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
61523         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
61524         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
61525         MBRTOWC_NULL_ARG1_BUG.
61526         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
61527         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
61528         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
61529         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
61531 2010-12-27  Jim Meyering  <meyering@redhat.com>
61533         read-file.c: tweak syntax
61534         * lib/read-file.c (fread_file): Remove space after "*" in function
61535         definitions.
61537 2010-12-27  Bruno Haible  <bruno@clisp.org>
61539         times test: Avoid gcc warnings on OSF/1.
61540         * tests/test-times.c (main): Cast printf arguments from clock_t to
61541         'long int'.
61543 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61545         utimens: work around glibc rounding bug on older Linux kernels
61546         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
61547         on Linux with a glibc whose utimes might not work, then work
61548         around a longstanding glibc bug involving rounding rather than
61549         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
61550         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61552 2010-12-26  Bruno Haible  <bruno@clisp.org>
61554         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
61555         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
61556         _GL_CXXALIAS_SYS.
61557         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61559 2010-12-26  Bruno Haible  <bruno@clisp.org>
61561         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
61562         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
61563         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61564         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
61565         looking for the declaration.
61566         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61567         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
61568         problem.
61569         * doc/posix-functions/inet_pton.texi: Likewise.
61571 2010-12-26  Bruno Haible  <bruno@clisp.org>
61573         arpa_inet: Use the common idioms with C++ support.
61574         * lib/arpa_inet.in.h: Include c++defs.h.
61575         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
61576         support.
61577         * modules/arpa_inet (Depends-on): Add c++defs.
61578         (Makefile.am): Substitute the contents of c++defs.h.
61579         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
61580         * modules/arpa_inet-c++-tests: New file.
61581         * tests/test-arpa_inet-c++.cc: New file.
61583 2010-12-25  Bruno Haible  <bruno@clisp.org>
61585         Fix more C++ link errors on Solaris 8.
61586         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
61587         $(LIB_EACCESS).
61588         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
61589         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
61590         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
61591         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
61592         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
61594 2010-12-25  Bruno Haible  <bruno@clisp.org>
61596         printf-posix: Fix link error when a non-GCC compiler is used.
61597         * lib/stdio.in.h (printf): When not using GCC, override printf
61598         correctly.
61599         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61601 2010-12-25  Bruno Haible  <bruno@clisp.org>
61603         strerror_r-posix: Update doc.
61604         * doc/posix-functions/strerror_r.texi: Update doc about the return
61605         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
61607 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61609         utimens: simplify the logic of the previous change
61610         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61611         This should not affect whether the test succeeds or fails.
61613         utimens: configure better on hosts with NFS clock skew
61614         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61615         uses the clock of the local host.  It might use the clock of the
61616         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
61617         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61619 2010-12-25  Bruno Haible  <bruno@clisp.org>
61621         ptsname test: Avoid failure on Solaris.
61622         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
61623         open a pseudo-terminal; don't use BSD-style ptys.
61624         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
61626 2010-12-25  Bruno Haible  <bruno@clisp.org>
61628         ptsname: Avoid ERANGE failure on some systems.
61629         * lib/ptsname.c (buffer): Increase size.
61631 2010-12-25  Bruno Haible  <bruno@clisp.org>
61633         rename, renameat: Avoid test failures at NFS mounted locations.
61634         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
61635         so that subsequent mkdir calls succeed.
61637 2010-12-25  Bruno Haible  <bruno@clisp.org>
61639         iswblank: Fix C++ link error on Solaris 8.
61640         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
61641         _GL_FUNCDECL_SYS.
61643 2010-12-25  Bruno Haible  <bruno@clisp.org>
61645         unistd: Fix C++ link error on Solaris 8.
61646         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
61648 2010-12-25  Bruno Haible  <bruno@clisp.org>
61650         readlink doc: Mention an old glibc bug.
61651         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
61653 2010-12-25  Bruno Haible  <bruno@clisp.org>
61655         fcntl-h: Fix for use of C++ on glibc systems.
61656         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61657         also on glibc systems in C++ mode.
61658         Reported by Gary V. Vaughan <gary@gnu.org>.
61660 2010-12-25  Bruno Haible  <bruno@clisp.org>
61662         roundl-ieee: Make it work on OSF/1 5.1 with cc.
61663         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
61665 2010-12-25  Bruno Haible  <bruno@clisp.org>
61667         truncl-ieee: Make it work on OSF/1 5.1 with cc.
61668         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
61669         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
61670         test whether truncl works according to ISO C 99 with IEC 60559.
61671         * m4/truncl-ieee.m4: New file.
61672         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
61673         m4/signbit.m4.
61674         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
61676 2010-12-25  Bruno Haible  <bruno@clisp.org>
61678         ceill-ieee: Make it work on OSF/1 5.1 with cc.
61679         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
61680         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61681         test whether ceill works according to ISO C 99 with IEC 60559.
61682         * m4/ceill-ieee.m4: New file.
61683         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61684         m4/signbit.m4.
61685         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61687 2010-12-25  Bruno Haible  <bruno@clisp.org>
61689         Ensure all prerequisites of <wchar.h> are included.
61690         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61691         before <wchar.h>.
61692         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61693         gl_MBRLEN_NUL_RETVAL): Likewise.
61694         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61695         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61696         AC_FUNC_MBRTOWC): Likewise.
61697         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61698         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61699         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61700         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61701         Likewise.
61702         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61703         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61704         (gl_WCHAR_H): Improve comments.
61705         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61707 2010-12-25  Bruno Haible  <bruno@clisp.org>
61709         strtok_r: Fix C syntax error in autoconf macro.
61710         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61711         characters in test program.
61713 2010-12-24  Bruno Haible  <bruno@clisp.org>
61715         ceil, trunc, round: Fix gcc warnings.
61716         * lib/ceil.c (MIN): Undefine before redefining.
61717         * lib/trunc.c (MIN): Likewise.
61718         * lib/round.c (MIN): Likewise.
61719         Include <math.h> first.
61721 2010-12-24  Bruno Haible  <bruno@clisp.org>
61723         select tests: Avoid failures on OSF/1 5.1.
61724         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61725         failure of closing the last socket; it may fail with ECONNRESET.
61727 2010-12-24  Eric Blake  <eblake@redhat.com>
61729         stdint: avoid HP-UX 10.20 preprocessor bug
61730         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61731         than #if.
61732         * tests/test-floor2.c (main): Likewise.
61733         Reported by Peter O'Gorman.
61735         pipe: make obsoletion transition easier
61736         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61737         * modules/pipe (Files): Include revived file.
61738         (Include): Drop reference, to mirror getdate's behavior.
61740 2010-12-24  Bruno Haible  <bruno@clisp.org>
61742         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61743         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61744         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61745         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61747 2010-12-24  Bruno Haible  <bruno@clisp.org>
61749         gethostname: Ensure declaration on NonStop Kernel.
61750         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61751         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61753 2010-12-24  Bruno Haible  <bruno@clisp.org>
61755         sys_select: Ensure all necessary types on NonStop Kernel.
61756         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61757         include <sys/time.h>.
61758         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61759         NonStop Kernel.
61760         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61762 2010-12-24  Bruno Haible  <bruno@clisp.org>
61764         sys_select: Remove unneeded include.
61765         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61766         have <sys/select.h>.
61768 2010-12-24  Bruno Haible  <bruno@clisp.org>
61770         gethostname: Provide a fallback for HOST_NAME_MAX.
61771         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61772         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61773         instead.
61774         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61776 2010-12-24  Bruno Haible  <bruno@clisp.org>
61778         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61779         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61780         (SA_RESTART): Likewise.
61781         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61783 2010-12-24  Bruno Haible  <bruno@clisp.org>
61785         signal: Define NSIG.
61786         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61787         * tests/test-signal.c (nsig): New variable.
61788         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61790 2010-12-24  Bruno Haible  <bruno@clisp.org>
61792         rename, renameat: Avoid test failures on OSF/1 5.1.
61793         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61794         alternative error codes.
61795         * tests/test-renameat.c (main): Likewise.
61797 2010-12-24  Bruno Haible  <bruno@clisp.org>
61799         *printf: Detect large precisions bug on Solaris 10/SPARC.
61800         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61801         by Paul Eggert.
61802         * tests/test-snprintf-posix.h (test_function): Add this test code here
61803         too.
61804         * tests/test-sprintf-posix.h (test_function): Likewise.
61805         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61806         * tests/test-vasprintf-posix.c (test_function): Likewise.
61807         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61808         around by gnulib.
61809         * doc/posix-functions/printf.texi: Likewise.
61810         * doc/posix-functions/snprintf.texi: Likewise.
61811         * doc/posix-functions/sprintf.texi: Likewise.
61812         * doc/posix-functions/vfprintf.texi: Likewise.
61813         * doc/posix-functions/vprintf.texi: Likewise.
61814         * doc/posix-functions/vsnprintf.texi: Likewise.
61815         * doc/posix-functions/vsprintf.texi: Likewise.
61816         * doc/posix-functions/dprintf.texi: Undo last commit.
61817         * doc/posix-functions/vdprintf.texi: Likewise.
61819 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61821         tests: port test-fdutimensat.c to Solaris 8
61822         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61823         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61824         On Solaris 8, it fails with errno == ENOSYS, because there is no
61825         futimens (so it can't use the fd), and there is no lutimens (so it
61826         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61828         vsnprintf: make more consistent with snprintf; doc fixes
61830         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61831         the byte count return problem was promoted from the snprintf-posix
61832         to the snprintf module.
61833         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61834         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61835         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61836         * tests/test-snprintf.c (main): Check the byte count returned.
61837         * tests/test-vsnprintf.c (main): Likewise.
61839 2010-12-23  Eric Blake  <eblake@redhat.com>
61841         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61842         * modules/sigpipe (License): Relax license.
61844 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61846         doc: document Solaris printf bug with large float precisions
61847         * doc/posix-functions/dprintf.texi (dprintf):
61848         * doc/posix-functions/fprintf.texi (fprintf):
61849         * doc/posix-functions/printf.texi (printf):
61850         * doc/posix-functions/snprintf.texi (snprintf):
61851         * doc/posix-functions/sprintf.texi (sprintf):
61852         * doc/posix-functions/vdprintf.texi (vdprintf):
61853         * doc/posix-functions/vfprintf.texi (vfprintf):
61854         * doc/posix-functions/vprintf.texi (vprintf):
61855         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61856         * doc/posix-functions/vsprintf.texi (vsprintf):
61857         Mention that these functions mishandle large floating point
61858         precisions on Solaris 10.  The same bug is also present in Solaris
61859         8, and I assume earlier.  This causes "cd gnulib-tests; make
61860         check" to fail on Solaris 8 (and I assume, later) when building
61861         the latest coreutils, in test-vasprintf-posix's call to
61862         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61863         the wide flavors (e.g., wprintf) so this patch just updates the
61864         documentation for the narrow ones.
61866         test-posixtm.c: add two tests
61867         * tests/test-posixtm.c: Add two tests, to highlight the
61868         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61869         around this bug; this is merely to document it.
61871 2010-12-22  Bruno Haible  <bruno@clisp.org>
61873         getlogin_r: Work around portability problem on OSF/1.
61874         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61875         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61876         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61877         test for a truncated result.
61878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61879         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61880         * modules/getlogin_r (Depends-on): Add memchr.
61881         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61883 2010-12-22  Bruno Haible  <bruno@clisp.org>
61885         ptsname: Avoid test failure on OSF/1 5.1.
61886         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61887         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61888         (same_slave): New function.
61889         (main): Use it to compare ptsname's result with the expected file name.
61891 2010-12-22  Bruno Haible  <bruno@clisp.org>
61893         Port extended stdio modules to HP NonStop Kernel.
61894         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61895         macros.
61896         * lib/fbufmode.c: Update comments.
61897         * lib/fflush.c: Likewise.
61898         * lib/fpurge.c: Likewise.
61899         * lib/freadable.c: Likewise.
61900         * lib/freadahead.c: Likewise.
61901         * lib/freading.c: Likewise.
61902         * lib/freadptr.c: Likewise.
61903         * lib/freadseek.c: Likewise.
61904         * lib/fseeko.c: Likewise.
61905         * lib/fseterr.c: Likewise.
61906         * lib/fwritable.c: Likewise.
61907         * lib/fwriting.c: Likewise.
61908         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61910 2010-12-22  Bruno Haible  <bruno@clisp.org>
61912         ttyname_r: Work around bug on OSF/1 5.1.
61913         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61914         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61915         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61916         present.
61917         * lib/ttyname_r.c (ttyname_r): Update comments.
61919 2010-12-22  Bruno Haible  <bruno@clisp.org>
61921         round: Implement result sign according to IEEE 754.
61922         * lib/round.c (MIN, MINUS_ZERO): New macros.
61923         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61924         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61925         * tests/test-round-ieee.c (main): Likewise.
61926         * tests/test-roundl-ieee.c (main): Likewise.
61928         trunc: Implement result sign according to IEEE 754.
61929         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61930         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61931         * tests/test-trunc2.c: Include minus-zero.h.
61932         (MINUS_ZERO): New macro.
61933         (trunc_reference): Keep in sync with lib/trunc.c.
61934         * tests/test-truncf2.c: Include minus-zero.h.
61935         (MINUS_ZERO): New macro.
61936         (truncf_reference): Keep in sync with lib/trunc.c.
61937         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61938         * tests/test-trunc-ieee.c (main): Likewise.
61939         * tests/test-truncl-ieee.c (main): Likewise.
61941         ceil: Implement result sign according to IEEE 754.
61942         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61943         (FUNC): Return -0.0 for -1 < x < 0.
61944         * tests/test-ceil2.c: Include minus-zero.h.
61945         (MINUS_ZERO): New macro.
61946         (ceil_reference): Keep in sync with lib/ceil.c.
61947         * tests/test-ceilf2.c: Include minus-zero.h.
61948         (MINUS_ZERO): New macro.
61949         (ceilf_reference): Keep in sync with lib/ceil.c.
61950         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61951         * tests/test-ceil-ieee.c (main): Likewise.
61952         * tests/test-ceill-ieee.c (main): Likewise.
61954         floor: Implement result sign according to IEEE 754.
61955         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61956         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61957         * tests/test-floorf2.c (floorf_reference): Likewise.
61958         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61959         * tests/test-floor-ieee.c (main): Likewise.
61960         * tests/test-floorl-ieee.c (main): Likewise.
61962 2010-12-22  Bruno Haible  <bruno@clisp.org>
61964         getaddrinfo: Update doc.
61965         * doc/posix-functions/gai_strerror.texi: Return type is also different
61966         on AIX and HP-UX.
61968 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61970         getaddrinfo, inet_ntop: Update doc for Solaris.
61971         * doc/posix-functions/gai_strerror.texi: Return type is also an
61972         issue on Solaris 9 and earlier.
61973         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61974         on Solaris 10 and earlier.
61976 2010-12-21  Bruno Haible  <bruno@clisp.org>
61978         New module 'roundl-ieee'.
61979         * modules/roundl-ieee: New file.
61980         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61981         test whether roundl works according to ISO C 99 with IEC 60559.
61982         * m4/roundl-ieee.m4: New file.
61983         * modules/roundl-ieee-tests: New file.
61984         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61985         * tests/test-roundl.c (main): Remove signbit tests.
61986         * modules/roundl-tests (Depends-on): Remove signbit.
61987         * doc/posix-functions/roundl.texi: Mention the new module.
61989 2010-12-21  Bruno Haible  <bruno@clisp.org>
61991         New module 'truncl-ieee'.
61992         * modules/truncl-ieee: New file.
61993         * modules/truncl-ieee-tests: New file.
61994         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61995         * tests/test-truncl.c (main): Remove signbit tests.
61996         * modules/truncl-tests (Depends-on): Remove signbit.
61997         * doc/posix-functions/truncl.texi: Mention the new module.
61999 2010-12-21  Bruno Haible  <bruno@clisp.org>
62001         New module 'ceill-ieee'.
62002         * modules/ceill-ieee: New file.
62003         * modules/ceill-ieee-tests: New file.
62004         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
62005         * tests/test-ceill.c (main): Remove signbit tests.
62006         * modules/ceill-tests (Depends-on): Remove signbit.
62007         * doc/posix-functions/ceill.texi: Mention the new module.
62009 2010-12-21  Bruno Haible  <bruno@clisp.org>
62011         New module 'floorl-ieee'.
62012         * modules/floorl-ieee: New file.
62013         * modules/floorl-ieee-tests: New file.
62014         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
62015         * tests/test-floorl.c (main): Remove signbit tests.
62016         * modules/floorl-tests (Depends-on): Remove signbit.
62017         * doc/posix-functions/floorl.texi: Mention the new module.
62019 2010-12-21  Bruno Haible  <bruno@clisp.org>
62021         New module 'round-ieee'.
62022         * modules/round-ieee: New file.
62023         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
62024         whether round works according to ISO C 99 with IEC 60559.
62025         * m4/round-ieee.m4: New file.
62026         * modules/round-ieee-tests: New file.
62027         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
62028         * tests/test-round1.c (main): Remove signbit tests.
62029         * modules/round-tests (Depends-on): Remove 'signbit'.
62030         * doc/posix-functions/round.texi: Mention the new module.
62032 2010-12-21  Bruno Haible  <bruno@clisp.org>
62034         New module 'trunc-ieee'.
62035         * modules/trunc-ieee: New file.
62036         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
62037         whether trunc works according to ISO C 99 with IEC 60559.
62038         * m4/trunc-ieee.m4: New file.
62039         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
62040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
62041         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
62042         * modules/trunc-ieee-tests: New file.
62043         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
62044         * tests/test-trunc1.c (main): Remove signbit tests.
62045         * modules/trunc-tests (Depends-on): Remove 'signbit'.
62046         * doc/posix-functions/trunc.texi: Mention the new module.
62048 2010-12-21  Bruno Haible  <bruno@clisp.org>
62050         New module 'ceil-ieee'.
62051         * modules/ceil-ieee: New file.
62052         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
62053         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
62054         ISO C 99 with IEC 60559.
62055         * m4/ceil-ieee.m4: New file.
62056         * modules/ceil (Files): Add lib/ceil.c.
62057         (Depends-on): Add 'float'.
62058         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62059         * lib/math.in.h (ceil): New declaration.
62060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
62061         REPLACE_CEIL.
62062         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
62063         * modules/ceil-ieee-tests: New file.
62064         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
62065         * tests/test-math-c++.cc: Check the signature of 'ceil'.
62066         * doc/posix-functions/ceil.texi: Mention the new module.
62068 2010-12-21  Bruno Haible  <bruno@clisp.org>
62070         New module 'floor-ieee'.
62071         * modules/floor-ieee: New file.
62072         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
62073         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
62074         ISO C 99 with IEC 60559.
62075         * m4/floor-ieee.m4: New file.
62076         * modules/floor (Files): Add lib/floor.c.
62077         (Depends-on): Add 'float'.
62078         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62079         * lib/math.in.h (floor): New declaration.
62080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
62081         REPLACE_FLOOR.
62082         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
62083         * modules/floor-ieee-tests: New file.
62084         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
62085         * tests/test-math-c++.cc: Check the signature of 'floor'.
62086         * doc/posix-functions/floor.texi: Mention the new module.
62088 2010-12-21  Bruno Haible  <bruno@clisp.org>
62090         New module 'roundf-ieee'.
62091         * modules/roundf-ieee: New file.
62092         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
62093         test whether roundf works according to ISO C 99 with IEC 60559.
62094         * m4/roundf-ieee.m4: New file.
62095         * modules/roundf-ieee-tests: New file.
62096         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
62097         * tests/test-roundf1.c (main): Remove signbit tests.
62098         * modules/roundf-tests (Depends-on): Remove 'signbit'.
62099         * doc/posix-functions/roundf.texi: Mention the new module.
62101 2010-12-21  Bruno Haible  <bruno@clisp.org>
62103         New module 'truncf-ieee'.
62104         * modules/truncf-ieee: New file.
62105         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
62106         test whether truncf works according to ISO C 99 with IEC 60559.
62107         * m4/truncf-ieee.m4: New file.
62108         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
62109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
62110         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
62111         * modules/truncf-ieee-tests: New file.
62112         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
62113         * tests/test-truncf1.c (main): Remove signbit tests.
62114         * modules/truncf-tests (Depends-on): Remove 'signbit'.
62115         * doc/posix-functions/truncf.texi: Mention the new module.
62117 2010-12-21  Bruno Haible  <bruno@clisp.org>
62119         New module 'ceilf-ieee'.
62120         * modules/ceilf-ieee: New file.
62121         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
62122         test whether ceilf works according to ISO C 99 with IEC 60559.
62123         * m4/ceilf-ieee.m4: New file.
62124         * modules/ceilf-ieee-tests: New file.
62125         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
62126         * tests/test-ceilf1.c (main): Remove signbit tests.
62127         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
62128         * doc/posix-functions/ceilf.texi: Mention the new module.
62130 2010-12-21  Bruno Haible  <bruno@clisp.org>
62132         New module 'floorf-ieee'.
62133         * modules/floorf-ieee: New file.
62134         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
62135         test whether floorf works according to ISO C 99 with IEC 60559.
62136         * m4/floorf-ieee.m4: New file.
62137         * modules/floorf-ieee-tests: New file.
62138         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
62139         * tests/test-floorf1.c (main): Remove signbit tests.
62140         * modules/floorf-tests (Depends-on): Remove 'signbit'.
62141         * doc/posix-functions/floorf.texi: Mention the new module.
62143 2010-12-21  Bruno Haible  <bruno@clisp.org>
62145         Support for minus zero in autoconf macros.
62146         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
62147         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
62148         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
62149         * tests/minus-zero.h: Update comments.
62151 2010-12-21  Bruno Haible  <bruno@clisp.org>
62153         Tests for module 'ceil'.
62154         * modules/ceil-tests: New file.
62155         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
62156         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
62158 2010-12-21  Bruno Haible  <bruno@clisp.org>
62160         Tests for module 'floor'.
62161         * modules/floor-tests: New file.
62162         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
62163         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
62165 2010-12-21  Bruno Haible  <bruno@clisp.org>
62167         math: Fix indentation.
62168         * lib/math.in.h (floorf): Fix indentation.
62170 2010-12-21  Bruno Haible  <bruno@clisp.org>
62172         Fix cross-compilation guesses on Solaris.
62173         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
62174         not match "solaris2.10".
62175         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62176         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
62177         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
62179 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62181         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
62182         This fixes a problem observed with the latest coreutils snapshot
62183         that caused a test to fail on Solaris 8.  src/csplit.c's call
62184         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
62185         earlier, instead of returning the number of bytes that would have
62186         been generated; this causes csplit to incorrectly report memory
62187         exhaustion.
62188         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
62189         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
62190         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
62191         comments to match.
62192         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62193         Fix typo in matching older versions of Solaris: "solaris2.10"
62194         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62195         only for guessing while cross-compiling.
62196         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
62198 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
62200         ftoastr: fix comment again
62201         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62202         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
62203         Also, simplify example a bit by using flags = 0.
62205 2010-12-20  Bruno Haible  <bruno@clisp.org>
62207         round*, trunc*: Update documentation regarding glibc.
62208         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
62209         * doc/posix-functions/round.texi: Likewise.
62210         * doc/posix-functions/roundl.texi: Likewise.
62211         * doc/posix-functions/truncf.texi: Likewise.
62212         * doc/posix-functions/trunc.texi: Likewise.
62213         * doc/posix-functions/truncl.texi: Likewise.
62215 2010-12-20  Bruno Haible  <bruno@clisp.org>
62217         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
62218         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
62219         * doc/posix-functions/round.texi: Likewise.
62220         * doc/posix-functions/roundl.texi: Likewise.
62222 2010-12-20  Bruno Haible  <bruno@clisp.org>
62224         ttyname_r: Add missing declaration on HP-UX 11.
62225         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
62226         HAVE_TTYNAME_R.
62227         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
62228         declared. Set HAVE_TTYNAME_R always.
62229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62230         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
62231         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
62232         HAVE_TTYNAME_R.
62233         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
62235 2010-12-20  Bruno Haible  <bruno@clisp.org>
62237         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
62238         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
62239         * doc/posix-functions/getlogin_r.texi: Likewise.
62240         * tests/test-getlogin.c: Include <errno.h>.
62241         (main): Avoid test failure on HP-UX 11.11.
62242         * tests/test-getlogin_r.c (main): Likewise.
62244 2010-12-20  Bruno Haible  <bruno@clisp.org>
62246         getlogin_r: Add missing declaration on HP-UX 11.
62247         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
62248         declared also when it exists as a function.
62249         * doc/posix-functions/getlogin_r.texi: Document this workaround.
62251 2010-12-20  Bruno Haible  <bruno@clisp.org>
62253         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
62254         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
62255         through wcrtomb.
62257 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62259         ftoastr: fix comment
62260         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62261         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
62263 2010-12-19  Bruno Haible  <bruno@clisp.org>
62265         isnan: Ensure it is a macro.
62266         * lib/math.in.h (isnan): Define as a macro if not already a macro.
62267         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
62268         Solaris.
62270 2010-12-19  Bruno Haible  <bruno@clisp.org>
62272         ldexpl test: Fix link error on OSF/1 5.1.
62273         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
62275 2010-12-19  Bruno Haible  <bruno@clisp.org>
62277         wctype: Make it work in C++ mode on OSF/1 5.1.
62278         * lib/wctype.in.h (iswblank): Declare but not define here.
62279         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
62280         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
62281         * modules/wctype (Files): Add lib/iswblank.c.
62283 2010-12-19  Bruno Haible  <bruno@clisp.org>
62285         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
62286         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
62287         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
62289 2010-12-19  Bruno Haible  <bruno@clisp.org>
62291         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
62292         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
62293         _POSIX_PII_SOCKET.
62294         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
62295         * doc/posix-functions/recvfrom.texi: Likewise.
62296         * doc/posix-functions/send.texi: Likewise.
62297         * doc/posix-functions/sendto.texi: Likewise.
62299 2010-12-19  Bruno Haible  <bruno@clisp.org>
62301         tcgetsid: Add missing declaration on OSF/1 5.1.
62302         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
62303         HAVE_TCGETSID.
62304         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
62305         Don't set HAVE_TCGETSID.
62306         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
62307         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
62308         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
62309         HAVE_TCGETSID.
62310         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
62312 2010-12-19  Bruno Haible  <bruno@clisp.org>
62314         stdio: Fix problem with popen() declaration on OSF/1 5.1.
62315         * lib/stdio.in.h: During the include_next statement, let recursive
62316         includes of this file include only the system header file.
62318 2010-12-19  Bruno Haible  <bruno@clisp.org>
62320         iconv_open: Fix regression from 2010-12-04.
62321         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
62322         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
62324 2010-12-19  Bruno Haible  <bruno@clisp.org>
62326         stdbool test: Avoid a gcc warning.
62327         * tests/test-stdbool.c (main): Fail if e1 is false.
62328         Reported by Jim Meyering.
62330 2010-12-19  Jim Meyering  <meyering@redhat.com>
62332         setenv: restore to working order
62333         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
62334         mistakenly removed.
62335         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
62336         HAVE_SETENV.
62337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
62338         HAVE_SETENV.
62340 2010-12-19  Bruno Haible  <bruno@clisp.org>
62342         Document some different function declarations on OSF/1 5.1.
62343         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
62344         * doc/posix-functions/inet_ntop.texi: Likewise.
62345         * doc/posix-functions/gethostname.texi: Likewise.
62346         * lib/unistd.in.h (gethostname): Update comment.
62348 2010-12-19  Bruno Haible  <bruno@clisp.org>
62350         doc: Mention vasprintf-posix module.
62351         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
62352         the 'vasprintf-posix' module.
62353         * doc/glibc-functions/vasprintf.texi: Likewise.
62355 2010-12-19  Bruno Haible  <bruno@clisp.org>
62357         unsetenv: Add missing declaration on OSF/1 5.1.
62358         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
62359         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62360         Don't set HAVE_UNSETENV. In the test program, set _BSD.
62361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62362         not HAVE_UNSETENV.
62363         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62364         HAVE_UNSETENV.
62365         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62367 2010-12-19  Bruno Haible  <bruno@clisp.org>
62369         setenv: Add missing declaration on OSF/1 5.1.
62370         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62371         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62372         declared. Don't set HAVE_SETENV.
62373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62374         not HAVE_SETENV.
62375         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62376         HAVE_SETENV.
62377         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62379 2010-12-19  Bruno Haible  <bruno@clisp.org>
62381         nl_langinfo tests: Avoid gcc warning.
62382         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62384 2010-12-19  Bruno Haible  <bruno@clisp.org>
62386         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62387         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62388         _GL_CXXALIAS_SYS.
62390 2010-12-19  Bruno Haible  <bruno@clisp.org>
62392         stdbool: Relax test.
62393         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62394         address to 'bool' work in static initializer, for compilers other than
62395         GCC.
62397 2010-12-19  Bruno Haible  <bruno@clisp.org>
62399         ftello: Add missing declaration on OSF/1 5.1.
62400         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62401         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62403         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62404         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62406 2010-12-19  Bruno Haible  <bruno@clisp.org>
62408         fseeko: Add missing declaration on OSF/1 5.1.
62409         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62410         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62412         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62413         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62415 2010-12-19  Bruno Haible  <bruno@clisp.org>
62417         fchdir: Add missing declaration on OSF/1 5.1.
62418         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62421         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62422         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62424 2010-12-19  Bruno Haible  <bruno@clisp.org>
62426         relocatable-prog-wrapper: Separate from relocatable-prog.
62427         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62428         uninstall-relocwrapper rule here.
62429         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62430         Reported by Ian Beckwith <ianb@erislabs.net>.
62432 2010-12-19  Bruno Haible  <bruno@clisp.org>
62434         unistr/u8-mbsnlen: Add missing dependency.
62435         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62436         Reported by Ian Beckwith <ianb@erislabs.net>.
62438 2010-12-19  Bruno Haible  <bruno@clisp.org>
62440         iconv: Make it possible again to use this module without 'iconv-h'.
62441         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62442         if it is not defined.
62443         Reported by Ian Beckwith <ianb@erislabs.net>.
62445 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62447         acl: port to Solaris 8 when copying from tmpfs to ufs
62448         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62449         error number.  Problem observed on Solaris 8 with latest
62450         coreutils, with "mv A B", where A is on a tmpfs file system and B
62451         is on a ufs file system.  This caused coreutils' mv/part-symlink
62452         test to fail.
62454         tests: set fail=0 at start
62455         * tests/init.sh (setup_): Move fail=0 initialization here ...
62456         (mktempd_): ... from here, so that tests can rely on fail being
62457         set to 0 initially.  This fixes a problem in coreutils; see:
62458         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62460 2010-12-18  Bruno Haible  <bruno@clisp.org>
62462         memmem-simple: Stylistic changes.
62463         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62464         Fix preprocessor directive indentation.
62466 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62468         memmem, memmem-simple: reorganize and expand empty needle check
62469         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62470         functional checks to memmem-simple so that one has a fully functional
62471         memmem by using just this module.
62472         Restrict the performance only check to the memmem module.
62473         Also expand the empty needle check to ensure the correct
62474         pointer is returned, not just a non NULL pointer.
62475         * doc/glibc-functions/memmem.texi: Rearrange the portability
62476         documentation to correlate with the rearranged checks.
62477         Clarify exactly how the memmem and memmem-simple modules
62478         relate to each other.
62480 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62481             Bruno Haible  <bruno@clisp.org>
62483         Improve cross-compilation guesses for uClibc.
62484         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
62485         that uClibc does not have the glibc bug.
62486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
62487         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
62489 2010-12-14  Eric Blake  <eblake@redhat.com>
62491         configmake: provide fallbacks for oldest supported autotools
62492         * m4/configmake.m4: New file.
62493         * modules/configmake (Files): Ship it.
62494         (configure.ac): Use it to guarantee fallbacks.
62496 2010-12-13  Pádraig Brady  <P@draigBrady.com>
62498         read-file: Improve handling of large files
62499         * lib/read-file.c (fread_file): Minimize realloc()s
62500         for regular files, and better manage sizes around SIZE_MAX.
62502 2010-12-13  Eric Blake  <eblake@redhat.com>
62504         cloexec, fcntl: relax license
62505         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
62506         consent from all contributors.
62507         * modules/fcntl (License): Likewise.
62509 2010-12-10  Bruno Haible  <bruno@clisp.org>
62511         Tests for module 'pipe-posix'.
62512         * modules/pipe-posix-tests: New file.
62513         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
62515 2010-12-10  Bruno Haible  <bruno@clisp.org>
62517         pipe-posix: Make it work in C++ mode.
62518         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
62519         (pipe): Use common idiom, not a macro definition.
62520         * lib/pipe.c: New file.
62521         * m4/pipe.m4: New file.
62522         * modules/pipe-posix (Description): Enhance.
62523         (Files): Add lib/pipe.c, m4/pipe.m4.
62524         (configure.ac): Invoke gl_FUNC_PIPE.
62525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
62526         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
62527         * tests/test-unistd-c++.cc: Check the signature of pipe.
62529 2010-12-10  Bruno Haible  <bruno@clisp.org>
62531         Rename module 'pipe' to 'spawn-pipe'.
62532         * modules/spawn-pipe: New file, renamed from modules/pipe.
62533         (Files, configure.ac, Makefile.am): Update.
62534         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
62535         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
62536         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
62537         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
62538         "spawn-pipe.h" instead of "pipe.h".
62539         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
62540         to gl_SPAWN_PIPE.
62541         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
62542         (Files, Makefile.am): Update.
62543         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
62544         Update.
62545         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
62546         Include "spawn-pipe.h" instead of "pipe.h".
62547         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
62548         * lib/javacomp.c: Likewise.
62549         * lib/javaversion.c: Likewise.
62550         * lib/pipe-filter-gi.c: Likewise.
62551         * lib/pipe-filter-ii.c: Likewise.
62552         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
62553         * modules/javacomp (Depends-on): Likewise.
62554         * modules/javaversion (Depends-on): Likewise.
62555         * modules/pipe-filter-gi (Depends-on): Likewise.
62556         * modules/pipe-filter-ii (Depends-on): Likewise.
62557         * MODULES.html.sh (Executing programs): Update.
62558         * NEWS: Mention the change.
62560 2010-12-10  Eric Blake  <eblake@redhat.com>
62562         pipe-posix: new module
62563         * modules/pipe-posix: New file.
62564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
62565         (gl_UNISTD_H): Check for declaration.
62566         * modules/unistd (Makefile.am): Substitute it.
62567         * lib/unistd.in.h (pipe): Provide it for mingw.
62568         * doc/posix-functions/pipe.texi (pipe): Update documentation.
62569         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
62571 2010-12-07  Bruno Haible  <bruno@clisp.org>
62573         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
62574         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
62575         u8_strcmp_gnu.
62576         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
62578 2010-12-06  Bruno Haible  <bruno@clisp.org>
62580         Update internal documentation.
62581         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
62583 2010-12-04  Bruno Haible  <bruno@clisp.org>
62585         Put more information about failed tests into the test return codes.
62586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
62587         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
62588         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62590         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
62591         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62592         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62593         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62594         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
62595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62596         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
62597         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62598         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
62599         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62600         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
62601         returns a bit mask.
62602         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
62603         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
62604         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
62605         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
62606         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62607         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62610         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62611         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62612         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62613         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62614         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62616         * m4/link.m4 (gl_FUNC_LINK): Likewise.
62617         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62618         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
62619         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
62620         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62621         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
62622         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62623         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62624         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
62625         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62626         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62627         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62628         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
62629         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62630         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62631         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
62632         gl_PRINTF_PRECISION): Likewise.
62633         * m4/regex.m4 (gl_REGEX): Likewise.
62634         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62635         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
62636         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
62637         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62638         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62640         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
62641         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
62642         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62643         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62644         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62645         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62646         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62647         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62648         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62649         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62650         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
62651         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62653         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
62654         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
62655         enumerated value.
62656         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
62658 2010-12-04  Bruno Haible  <bruno@clisp.org>
62660         Update for Solaris 11 2010-11.
62661         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
62662         Express, released in November 2010.
62664 2010-12-04  Bruno Haible  <bruno@clisp.org>
62666         nproc: Relax license.
62667         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
62668         and Paul Eggert.
62669         Requested by Ludovic Courtès <ludo@gnu.org>.
62671 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62673         utimecmp: fine-grained src to nearby coarse-grained dest
62675         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
62676         and the source is on a file system with higher-resolution time
62677         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
62678         not work, and the time stamps are close together, the algorithm to
62679         determine the exact resolution from the read-back mtime was buggy:
62680         it had a "!=" where it should have had an "==".  This bug has been
62681         in the code ever since it was introduced to gnulib.
62682         Problem reported by Dan Jacobson in
62683         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62685 2010-11-30  Bruno Haible  <bruno@clisp.org>
62687         strerror_r-posix: Fix autoconf test.
62688         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62690 2010-11-28  Bruno Haible  <bruno@clisp.org>
62691             Paul Eggert  <eggert@cs.ucla.edu>
62693         Tests for module 'getdomainname'.
62694         * modules/getdomainname-tests: New file.
62695         * tests/test-getdomainname.c: New file, based on
62696         tests/test-gethostname.c.
62698 2010-11-28  Bruno Haible  <bruno@clisp.org>
62699             Paul Eggert  <eggert@cs.ucla.edu>
62701         getdomainname: Use the system function when possible.
62702         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62703         (getdomainname): Replace if needed. Provide the declaration if it is
62704         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62705         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62706         (getdomainname): When the system has getdomainname, call the system
62707         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62708         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62709         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62710         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62711         the function if its second argument is of type 'int' or if it is found
62712         in libnsl.
62713         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62714         <sys/systeminfo.h> and sysinfo().
62715         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62717         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62718         HAVE_GETDOMAINNAME.
62719         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62720         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62721         * doc/glibc-functions/getdomainname.texi: Document the problems with
62722         the getdomainname declaration.
62724 2010-11-28  Bruno Haible  <bruno@clisp.org>
62726         sys_socket: Ensure ss_family field on AIX.
62727         * lib/sys_socket.in.h (ss_family): New macro definition.
62728         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62729         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62730         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62731         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62732         * modules/sys_socket (Makefile.am): Substitute
62733         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62734         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62736 2010-11-27  Bruno Haible  <bruno@clisp.org>
62738         readline: Improve configure output.
62739         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62740         "checking for readline..." result understandable.
62742 2010-11-27  Bruno Haible  <bruno@clisp.org>
62744         *printf-posix: Detect a bug on Solaris 10/x86.
62745         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62746         for floating-point output.
62747         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62748         directive.
62749         * tests/test-snprintf-posix.h (test_function): Likewise.
62750         * tests/test-sprintf-posix.h (test_function): Likewise.
62751         * tests/test-vasprintf-posix.c (test_function): Likewise.
62752         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62753         * doc/posix-functions/printf.texi: Likewise.
62754         * doc/posix-functions/snprintf.texi: Likewise.
62755         * doc/posix-functions/sprintf.texi: Likewise.
62756         * doc/posix-functions/vfprintf.texi: Likewise.
62757         * doc/posix-functions/vprintf.texi: Likewise.
62758         * doc/posix-functions/vsnprintf.texi: Likewise.
62759         * doc/posix-functions/vsprintf.texi: Likewise.
62760         * doc/glibc-functions/obstack_printf.texi: Likewise.
62761         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62763 2010-11-27  Bruno Haible  <bruno@clisp.org>
62765         Fix link error when module libunistring-optional is in use.
62766         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62767         * modules/striconveha-tests (Makefile.am): Likewise.
62769 2010-11-27  Bruno Haible  <bruno@clisp.org>
62771         regex: Mention link dependencies.
62772         * modules/regex (Link): New section.
62773         * modules/rpmatch (Link): Likewise.
62774         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62776 2010-11-27  Bruno Haible  <bruno@clisp.org>
62778         ftoastr: Fix compilation error on Solaris.
62779         * lib/ftoastr.c: Include <config.h>.
62781 2010-11-27  Bruno Haible  <bruno@clisp.org>
62783         getloadavg: Update documentation.
62784         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62786 2010-11-27  Bruno Haible  <bruno@clisp.org>
62788         sys_socket: Fix test whether the functions are declared.
62789         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62790         not <sys/select.h>.
62792 2010-11-27  Bruno Haible  <bruno@clisp.org>
62794         getpass: Make sure to get system declaration on some platforms.
62795         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62796         gl_USE_SYSTEM_EXTENSIONS.
62797         * modules/getpass (Depends-on): Add extensions.
62799 2010-11-26  Bruno Haible  <bruno@clisp.org>
62801         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62802         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62803         'iconv' module is present.
62804         (ICONV_CONST): New macro.
62805         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62806         ICONV_CONST.
62807         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62808         set ICONV_CONST.
62809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62810         here.
62811         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62812         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62813         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62814         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62815         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62816         present.
62818 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62820         ftoastr: comment fix
62821         * lib/ftoastr.c: "little" -> "little or no" in comment
62823 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62825         stdint: port to GCC 4.3 + OSX + Octave
62826         On this platform, stdint.h is buggy and defines int64_t to long
62827         long int.  The replacement defined it to long int, causing
62828         problems with C++ style name mangling.  Instead, trust the system
62829         definition if INT64_MAX is defined, and likewise for the unsigned
62830         variant.   Problem reported by Jarno Rajahalme in
62831         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62832         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62833         and don't mess with int64_t and INT64_MAX in this case.
62834         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62836 2010-11-24  Bruno Haible  <bruno@clisp.org>
62838         doc: Corrections regarding MacOS X 10.4 and 10.5.
62839         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62840         MacOS X.
62841         Reported by Simon Josefsson.
62843 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62845         Uninstall ".bin" files installed by relocwrapper.
62846         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62847         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62848         unless it is already there.
62850 2010-11-21  Bruno Haible  <bruno@clisp.org>
62852         Update for NetBSD 5.0.
62853         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62854         NetBSD; the test fails on NetBSD 5.0.
62855         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62856         about NetBSD.
62858 2010-11-21  Bruno Haible  <bruno@clisp.org>
62860         Update for HP-UX 11.23 and HP-UX 11.31.
62861         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62862         HP-UX.
62864 2010-11-21  Bruno Haible  <bruno@clisp.org>
62866         Update for MacOS X 10.5.
62867         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62868         MacOS X; the test fails on MacOS X 10.5.8.
62869         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62870         about MacOS X.
62872 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62874         bootstrap: add bootstrap_sync option.
62875         See discussion at
62876         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62877         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62878         * build-aux/bootstrap: Accept --bootstrap-sync to update
62879         bootstrap if it is not identical to the local gnulib's
62880         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62881         enable this by default.  Accept --no-bootstrap-sync to disable
62882         it.
62884 2010-11-20  Bruno Haible  <bruno@clisp.org>
62886         Ensure that <features.h> is included before __GLIBC__ is tested.
62887         * lib/printf-parse.h: Include <features.h>.
62888         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62889         Reported by Mike Frysinger <vapier@gentoo.org>.
62891         Ensure that <features.h> is included before __GLIBC__ is tested.
62892         * lib/wchar.in.h: Include <features.h>.
62893         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62894         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62895         Reported by Mike Frysinger <vapier@gentoo.org>.
62897         Ensure that <features.h> is included before __GLIBC__ is tested.
62898         * lib/arpa_inet.in.h: Include <features.h>.
62899         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62900         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62901         Reported by Mike Frysinger <vapier@gentoo.org>.
62903         Ensure that <features.h> is included before __GLIBC__ is tested.
62904         * build-aux/link-warning.h: Include <features.h>.
62905         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62906         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62907         Reported by Mike Frysinger <vapier@gentoo.org>.
62909         Ensure that <features.h> is included before __GLIBC__ is tested.
62910         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62911         Reported by Mike Frysinger <vapier@gentoo.org>.
62913 2010-11-20  Bruno Haible  <bruno@clisp.org>
62915         memmem: Fix autoconf test.
62916         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62918 2010-11-20  Bruno Haible  <bruno@clisp.org>
62920         Port to uClibc.
62921         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62922         * lib/fcntl.in.h: Likewise.
62923         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62924         * lib/mbrtowc.c (mbrtowc): Likewise.
62925         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62926         * lib/strerror_r.c: Likewise.
62927         * lib/unistr/u8-strnlen.c: Likewise.
62928         * lib/vasnprintf.c (decimal_point_char): Likewise.
62929         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62930         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62931         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62932         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62933         * tests/test-sigaction.c (handler, main): Likewise.
62934         * lib/freading.h: Treat uClibc like a non-glibc platform.
62935         * lib/freading.c: Likewise.
62936         * lib/gettext.h: Likewise.
62937         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62938         Likewise.
62939         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62940         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62941         * lib/propername.c (proper_name_utf8): Likewise.
62942         * lib/spawn.in.h: Likewise.
62943         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62944         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62945         mem_cd_iconveh_internal): Likewise.
62946         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62947         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62948         strstr, strcasestr): Likewise.
62949         * lib/unicodeio.c (unicode_to_mb): Likewise.
62950         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62951         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62952         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62953         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62954         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62955         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62956         * lib/unistr/u8-stpncpy.c: Likewise.
62957         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62958         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62959         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62960         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62961         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62962         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62963         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62965         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62966         Likewise.
62967         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62968         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62969         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62971         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62972         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62973         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62974         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62975         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62976         * tests/test-striconveha.c (main): Likewise.
62977         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62978         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62979         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62980         * doc/posix-functions/getline.texi: Likewise.
62981         Reported by Mike Frysinger <vapier@gentoo.org>.
62983 2010-11-20  Bruno Haible  <bruno@clisp.org>
62985         nproc: Fix condition.
62986         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62987         HAVE_PTHREAD_AFFINITY_NP.
62989 2010-11-20  Bruno Haible  <bruno@clisp.org>
62991         Fix a comment.
62992         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62994 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62996         ftoastr: don't assume snprintf
62997         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62998         Implement a subset of snprintf here, by using sprintf safely.
62999         * modules/ftoastr (Depends-on): Remove snprintf.
63001 2010-11-19  Jim Meyering  <meyering@redhat.com>
63003         test-rename.h: fix compilation failure
63004         * tests/test-rename.h (test_rename): Add omitted "}".
63006 2010-11-17  Jim Meyering  <meyering@redhat.com>
63008         maint.mk: add a URL discussing the no-@acronym policy
63009         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
63011 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
63013         ftoastr: depend on snprintf, improve comments
63014         * lib/ftoastr.c: Also mention Loitsch's draft.
63015         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
63016         needed in the current implementation, but it might simplify
63017         speeding up the code later.
63018         * modules/ftoastr: Depend on snprintf; this improves portability.
63019         Suggested by Bruno Haible in the same email.
63021         ftoastr: port to hosts lacking strtof and strtold
63022         Problem reported by Bruno Haible in
63023         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
63024         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
63025         environment and strtold (and presumably strtof) are not available.
63026         * modules/ftoastr (Files): Add m4/c-strtod.m4.
63027         (configure.ac): Require gl_C99_STRTOLD.
63029 2010-11-18  Bruno Haible  <bruno@clisp.org>
63031         c-strtold: Avoid link error on AIX 7.
63032         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
63033         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
63034         (gl_C_STRTOLD): Test whether strtold_l exists.
63035         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63037 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63039         intprops: new macro INT_BITS_STRLEN_BOUND
63040         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
63041         ftoastr.h.  This exposes an internal of intprops.h that was formerly
63042         not exposed.  Also, it uses a slightly tighter bound than before;
63043         though this makes no practical difference, we might as well be as
63044         tight as we easily can.
63046         ftoastr: new module, for lossless conversion of floats to short strings
63047         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
63048         * modules/ftoastr: New files.
63050 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63052         bootstrap: port to Solaris sed
63053         * build-aux/bootstrap (get_version): Port to Solaris sed.
63054         See Ralf Wildenhues's note in
63055         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
63057 2010-11-14  Jim Meyering  <meyering@redhat.com>
63059         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
63060         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
63061         and move definition closer to sole use.
63063 2010-11-13  Jim Meyering  <meyering@redhat.com>
63065         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
63066         Now we require at least autoconf-2.59, which means the work-around
63067         is no longer needed.
63068         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
63069         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63070         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63071         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63072         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63074 2010-11-13  Bruno Haible  <bruno@clisp.org>
63076         rename, renameat: Avoid test failures at NFS mounted locations.
63077         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
63078         functions.
63079         (test_rename): Use assert_nonexistent.
63080         * tests/test-rename.c: Include <dirent.h>.
63081         * tests/test-renameat.c: Likewise.
63082         Reported by Gary V. Vaughan <gary@gnu.org>.
63084         rename, renameat: Document Linux bug with NFS
63085         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
63086         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
63087         * doc/posix-functions/renameat.texi: Likewise.
63088         Suggested by Eric Blake.
63090 2010-11-13  Bruno Haible  <bruno@clisp.org>
63092         rename test: Add comments.
63093         * tests/test-rename.h (test_rename): Add structure and comments.
63095 2010-11-13  Eric Blake  <eblake@redhat.com>
63097         maintainer-makefile: cover a few more files
63098         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
63099         scripts generated within C files, for libvirt.
63101 2010-11-13  Bruno Haible  <bruno@clisp.org>
63103         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
63104         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
63105         character, return the number of bytes that belong together, not always
63106         1.
63107         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
63108         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
63109         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
63110         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
63111         number of bytes of an invalid character.
63112         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
63113         (main): Invoke it.
63114         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
63115         results.
63116         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
63117         malformed byte sequences.
63118         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
63119         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
63120         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
63121         Reported by Ben Pfaff and Paolo Bonzini.
63123 2010-11-13  Bruno Haible  <bruno@clisp.org>
63125         openat: Work around glibc bug with fchownat() and empty file names.
63126         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
63127         (gl_FUNC_FCHOWNAT): Invoke it.
63128         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
63129         * doc/posix-functions/fchownat.texi: Document the glibc bug.
63130         Reported by Gary V. Vaughan <gary@gnu.org>.
63132 2010-11-13  Bruno Haible  <bruno@clisp.org>
63134         openat: Ensure autoconf macro ordering.
63135         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
63136         gl_USE_SYSTEM_EXTENSIONS.
63137         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
63139 2010-11-13  Bruno Haible  <bruno@clisp.org>
63141         Update comments.
63142         * lib/unistr/u8-check.c: Update file name in comments.
63143         * lib/unistr/u8-mblen.c: Likewise.
63144         * lib/unistr/u8-prev.c: Likewise.
63145         * lib/unistr/u8-strmblen.c: Likewise.
63146         * lib/unistr/u8-strmbtouc.c: Likewise.
63148 2010-11-13  Jim Meyering  <meyering@redhat.com>
63150         tests: avoid test failure on Solaris 10 due to lack of PATH export
63151         * tests/test-update-copyright.sh: Don't forget to export PATH.
63153         init.sh: ensure that IFS is defined, just in case...
63154         * tests/init.sh (setup_): Ensure that IFS is defined,
63155         so that saving and restoring it works as expected.  This
63156         appears to be useful at least for an old version of dash
63157         from a long time ago (RH 6).  See here for details:
63158         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
63160         maint.mk: tighten "test a == b" check
63161         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
63162         test to files that contain something like #!/bin/sh.
63163         Without this, coreutils would get two false positives in
63164         the comments of C source files.
63166 2010-11-12  Eric Blake  <eblake@redhat.com>
63168         bootstrap: fix typo in previous attempt
63169         * build-aux/bootstrap (buildreq): Correct the grouping.
63170         Reported by Paul Eggert.
63172         maintainer-makefile: prohibit test x == x
63173         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
63174         Based on a report by Matthias Bolte.
63176         bootstrap: allow FreeBSD gzip
63177         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
63178         which has no '.' and goes to stderr.
63179         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
63180         Reported by Matthias Bolte.
63182         maintainer-makefile: check for i18n setup
63183         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
63184         will likely work.
63186 2010-11-12  Bruno Haible  <bruno@clisp.org>
63188         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
63189         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
63190         * lib/nanosleep.c (nanosleep): Likewise.
63192 2010-11-11  Bruno Haible  <bruno@clisp.org>
63194         fcntl-h: Fix for use of C++ on glibc systems.
63195         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63196         also on glibc systems in C++ mode.
63197         Reported by Gary V. Vaughan <gary@gnu.org>.
63199 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63201         mknod: avoid false failure with dash
63202         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
63204 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63206         unlink: Fix "is it should" typo in diagnostic.
63207         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
63208         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
63210 2010-11-11  Bruno Haible  <bruno@clisp.org>
63212         Tests for module 'strerror_r-posix'.
63213         * modules/strerror_r-posix-tests: New file.
63214         * tests/test-strerror_r.c: New file.
63215         * tests/test-string-c++.cc: Check the signature of strerror_r.
63217         New module 'strerror_r-posix'.
63218         * lib/string.in.h (strerror_r): New declaration.
63219         * lib/strerror_r.c: New file.
63220         * m4/strerror_r.m4: New file.
63221         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
63222         of strerror_r.
63223         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
63224         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63225         * modules/strerror_r-posix: New file.
63226         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
63227         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63228         * doc/posix-functions/strerror_r.texi: Mention the new module and the
63229         portability problems.
63231 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
63233         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
63234         line is also considered for output. Quoted function name in shell
63235         command, so temporary files for functions like MyClass::operator()
63236         are removed correctly without errors.
63238 2010-11-09  Bruno Haible  <bruno@clisp.org>
63240         * doc/posix-functions/strerror.texi: List more failing platforms.
63242         * doc/posix-functions/strerror.texi: Add a comment.
63244 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63246         fdopendir: fix bug on MacOS X when low on file descriptors
63248         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
63249         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
63250         All callers changed.
63251         (fdopendir): Invoke save_cwd at the top level, not after using
63252         multiple dup() calls to use up file descriptors.  Then retry
63253         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
63254         less than the maximum number of open file descriptors, because
63255         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
63256         on Mac OS X 10.6.4 for tar 1.24
63257         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
63258         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
63259         and for tar 1.25
63260         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
63262 2010-11-07  Bruno Haible  <bruno@clisp.org>
63264         vasnprintf: Support I flag on glibc systems.
63265         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
63266         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
63267         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
63268         snprintf function.
63269         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
63270         glibc systems.
63271         * tests/test-vasnprintf-posix3.c: New file.
63272         * modules/vasnprintf-posix-tests (Files): Add it.
63273         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
63275 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63277         [html] Fix copy/paste bug: Use unique name for compiler warnings.
63278         * MODULES.html.sh: For compiler warnings, use name
63279         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
63281 2010-11-05  Eric Blake  <eblake@redhat.com>
63283         ceil, floor: avoid spurious failure with icc
63284         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
63285         [denormals-as-zero] when optimizing without -mieee-fp option.
63286         * tests/test-floorf2.c (floorf_reference): Likewise.
63287         * tests/test-ceilf1.c (dummy): New function.
63288         (main): Use it to outsmart icc's optimization.
63289         * tests/test-floorf1.c (dummy, main): Likewise.
63291         tests: require working signbit
63292         * modules/ceilf-tests (Depends-on): Add signbit.
63293         * modules/ceill-tests (Depends-on): Likewise.
63294         * modules/floorf-tests (Depends-on): Likewise.
63295         * modules/floorl-tests (Depends-on): Likewise.
63296         * modules/round-tests (Depends-on): Likewise.
63297         * modules/roundf-tests (Depends-on): Likewise.
63298         * modules/roundl-tests (Depends-on): Likewise.
63299         * modules/trunc-tests (Depends-on): Likewise.
63300         * modules/truncf-tests (Depends-on): Likewise.
63301         * modules/truncl-tests (Depends-on): Likewise.
63303         strtod: work around icc bug
63304         * lib/strtod.c (minus_zero): Define to working value.
63305         (strtod): Use it to avoid icc bug.
63307         copysign: enhance tests
63308         * modules/copysign-tests (Files): Add minus-zero.h.
63309         * tests/test-copysign.c (main): Also test zeros.
63311 2010-11-04  Eric Blake  <eblake@redhat.com>
63313         ceil, floor, round, trunc: enhance tests of -0
63314         * tests/test-ceilf1.c (main): Ensure correct sign of result.
63315         * tests/test-ceill.c (main): Likewise.
63316         * tests/test-floorf1.c (main): Likewise.
63317         * tests/test-floorl.c (main): Likewise.
63318         * tests/test-round1.c (main): Likewise.
63319         * tests/test-roundf1.c (main): Likewise.
63320         * tests/test-roundl.c (main): Likewise.
63321         * tests/test-trunc1.c (main): Likewise.
63322         * tests/test-truncf1.c (main): Likewise.
63323         * tests/test-truncl.c (main): Likewise.
63325 2010-11-04  Eric Blake  <eblake@redhat.com>
63327         frexp, tests: work around ICC bug with -zero
63328         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
63329         works with more compilers.
63330         * tests/minus-zero.h: New file.
63331         * modules/ceilf-tests (Files): Include it.
63332         * modules/ceill-tests (Files): Likewise.
63333         * modules/floorf-tests (Files): Likewise.
63334         * modules/floorl-tests (Files): Likewise.
63335         * modules/frexp-nolibm-tests (Files): Likewise.
63336         * modules/frexp-tests (Files): Likewise.
63337         * modules/frexpl-nolibm-tests (Files): Likewise.
63338         * modules/frexpl-tests (Files): Likewise.
63339         * modules/isnan-tests (Files): Likewise.
63340         * modules/isnand-nolibm-tests (Files): Likewise.
63341         * modules/isnand-tests (Files): Likewise.
63342         * modules/isnanf-nolibm-tests (Files): Likewise.
63343         * modules/isnanf-tests (Files): Likewise.
63344         * modules/isnanl-nolibm-tests (Files): Likewise.
63345         * modules/isnanl-tests (Files): Likewise.
63346         * modules/round-tests (Files): Likewise.
63347         * modules/roundf-tests (Files): Likewise.
63348         * modules/roundl-tests (Files): Likewise.
63349         * modules/ldexpl-tests (Files): Likewise.
63350         * modules/signbit-tests (Files): Likewise.
63351         * modules/snprintf-posix-tests (Files): Likewise.
63352         * modules/sprintf-posix-tests (Files): Likewise.
63353         * modules/strtod-tests (Files): Likewise.
63354         * modules/trunc-tests (Files): Likewise.
63355         * modules/truncf-tests (Files): Likewise.
63356         * modules/truncl-tests (Files): Likewise.
63357         * modules/vsnprintf-posix-tests (Files): Likewise.
63358         * modules/vsprintf-posix-tests (Files): Likewise.
63359         * modules/vasnprintf-posix-tests (Files): Likewise.
63360         * modules/vasprintf-posix-tests (Files): Likewise.
63361         * tests/test-ceilf1.c (main): Use it.
63362         * tests/test-ceill.c (main): Likewise.
63363         * tests/test-floorf1.c (main): Likewise.
63364         * tests/test-floorl.c (main): Likewise.
63365         * tests/test-frexp.c (main): Likewise.
63366         * tests/test-frexpl.c (main): Likewise.
63367         * tests/test-isnan.c (main): Likewise.
63368         * tests/test-isnand.h (main): Likewise.
63369         * tests/test-isnanf.h (main): Likewise.
63370         * tests/test-isnanl.h (main): Likewise.
63371         * tests/test-ldexpl.c (main): Likewise.
63372         * tests/test-round.c (main): Likewise.
63373         * tests/test-roundf.c (main): Likewise.
63374         * tests/test-roundl.c (main): Likewise.
63375         * tests/test-signbit.c (test_signbitf, test_signbitd)
63376         (test_signbitl): Likewise.
63377         * tests/test-snprintf-posix.h (test_function): Likewise.
63378         * tests/test-sprintf-posix.h (test_function): Likewise.
63379         * tests/test-strtod.c (main): Likewise.
63380         * tests/test-trunc1.c (main): Likewise.
63381         * tests/test-truncf1.c (main): Likewise.
63382         * tests/test-truncl.c (main): Likewise.
63384         isnanl: work around icc bug
63385         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63387 2010-11-03  Eric Blake  <eblake@redhat.com>
63389         tests: fix compiler warnings
63390         * tests/test-getopt.h (test_getopt): Fix condition.
63391         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63392         * tests/test-pipe2.c (main): Likewise.
63393         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63395         utimens: fix broken m4 test
63396         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63398 2010-10-28  Bruno Haible  <bruno@clisp.org>
63400         posix_spawn*, getdtablesize: Relax license.
63401         * modules/posix_spawn (License): Change to LGPLv2+.
63402         * modules/posix_spawnp (License): Likewise.
63403         * modules/posix_spawn-internal (License): Likewise.
63404         * modules/posix_spawnattr_init (License): Likewise.
63405         * modules/posix_spawnattr_getflags (License): Likewise.
63406         * modules/posix_spawnattr_setflags (License): Likewise.
63407         * modules/posix_spawnattr_getpgroup (License): Likewise.
63408         * modules/posix_spawnattr_setpgroup (License): Likewise.
63409         * modules/posix_spawnattr_getschedparam (License): Likewise.
63410         * modules/posix_spawnattr_setschedparam (License): Likewise.
63411         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63412         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63413         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63414         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63415         * modules/posix_spawnattr_getsigmask (License): Likewise.
63416         * modules/posix_spawnattr_setsigmask (License): Likewise.
63417         * modules/posix_spawnattr_destroy (License): Likewise.
63418         * modules/posix_spawn_file_actions_init (License): Likewise.
63419         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63420         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63421         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63422         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63423         * modules/getdtablesize (License): Likewise.
63424         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63426 2010-10-26  Bruno Haible  <bruno@clisp.org>
63428         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63429         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63430         Cygwin and mingw.
63431         Suggested by Eric Blake.
63433 2010-10-26  Bruno Haible  <bruno@clisp.org>
63435         stdio: Work around compilation error due to renameat() on Solaris 10.
63436         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63437         * lib/renameat.c: Don't include <unistd.h> here.
63438         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63439         Reported by Paul Eggert and Eric Blake.
63441 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63443         renameat: port to Solaris 10, which declares renameat in unistd.h
63445         * lib/renameat.c: Include unistd.h before stdio.h, because
63446         Solaris 10 declares renameat in unistd.h.  Problem encountered
63447         when building GNU tar 1.24 on Solaris 10.
63449 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63451         fdopendir: fix C89 compilation
63452         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63453         compilers.
63455 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63457         inttostr: simplify by removing unnecessary redundancy
63458         * lib/anytostr.c: Don't include verify.h.
63459         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63460         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63461         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63462         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63463         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63464         Likewise.
63465         * modules/inttostr (Depends-on): Remove 'verify'.
63467 2010-10-23  Bruno Haible  <bruno@clisp.org>
63469         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63470         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63471         Reported by Eric Blake.
63473 2010-10-23  Bruno Haible  <bruno@clisp.org>
63475         Tests: Fix LOCALE_JA on MirBSD 10.
63476         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
63477         to an UTF-8 locale.
63478         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
63479         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63480         Reported by Eric Blake.
63482 2010-10-21  Bruno Haible  <bruno@clisp.org>
63484         nl_langinfo test: Avoid test failure on NetBSD 5.
63485         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
63486         Reported by Eric Blake.
63488 2010-10-21  Eric Blake  <eblake@redhat.com>
63490         c-stack: work around libsigsegv 2.8 bug
63491         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
63492         overflow on at least PowerPC64.
63494 2010-10-17  Bruno Haible  <bruno@clisp.org>
63496         userspec: Drop redundant file.
63497         * modules/userspec (Files): Remove lib/inttostr.h.
63499 2010-10-17  Bruno Haible  <bruno@clisp.org>
63501         nl_langinfo tests: Silence some warnings.
63502         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
63503         Reported by Jim Meyering.
63505 2010-10-17  Bruno Haible  <bruno@clisp.org>
63507         Make use of GCC's attribute __alloc_size__.
63508         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
63509         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
63510         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
63511         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
63512         __alloc_size__.
63513         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
63514         Suggested by Jim Meyering.
63516 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
63518         bootstrap: anchor .gitignore entries.
63519         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
63520         with...
63521         (insert_vc_ignore): ... this new function, which prepends `/' to
63522         all .gitignore entries before passing them to
63523         insert_sorted_if_absent.
63525 2010-10-16  Bruno Haible  <bruno@clisp.org>
63527         nextafter: Fix configure check.
63528         * modules/nextafter (configure.ac): Correct expected prototype.
63530 2010-10-16  Bruno Haible  <bruno@clisp.org>
63532         termios: Update documentation.
63533         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
63535 2010-10-16  Bruno Haible  <bruno@clisp.org>
63537         tests: Make them compile with TinyCC.
63538         * tests/test-strstr.c (main): Remove parentheses around array
63539         initializer.
63541 2010-10-15  Eric Blake  <eblake@redhat.com>
63543         ignore-value: make header idempotent
63544         * lib/ignore-value.h: Add double-inclusion guards.
63545         Reported by Stefan Berger.
63547 2010-10-15  Jim Meyering  <meyering@redhat.com>
63549         GNUmakefile: handle "stable" target, not "major"
63550         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
63551         lists in maint.mk and announce-gen.  Without this, "make stable"
63552         would fail to ensure that $(VERSION) is up to date.
63554 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
63556         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
63557         & co.
63559 2010-10-14  Bruno Haible  <bruno@clisp.org>
63561         vasnprintf: Don't set errno to 0.
63562         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
63563         block that sets it to 0.
63564         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
63566 2010-10-14  Bruno Haible  <bruno@clisp.org>
63568         socketlib: Fix.
63569         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
63570         gl_PREREQ_SYS_H_WINSOCK2.
63571         Reported by Ian Beckwith <ianb@erislabs.net>.
63573 2010-10-13  Jim Meyering  <meyering@redhat.com>
63575         test-select-stdin.c: avoid warn_unused_result warnings
63576         * tests/test-select-stdin.c: Include "macros.h".
63577         ASSERT that read and fflush succeed.
63579 2010-10-13  Jim Meyering  <meyering@redhat.com>
63581         git-version-gen: do require git-VC'd files in cwd
63582         * build-aux/git-version-gen: Reject a git version string
63583         if there are no commits associated with the current directory.
63584         This avoids an unlikely false-positive (unrelated dir whose parent
63585         repository also contains a tag matching v*), as pointed out
63586         by Giuseppe Scrivano in
63587         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
63589 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63591         argv-iter: omit nonconforming declaration
63592         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
63593         enum arg_iter_err declaration, which doesn't conform to C99.
63594         Solaris 10 cc warns about this.
63596 2010-10-13  Eric Blake  <eblake@redhat.com>
63598         termios: fix compilation on mingw
63599         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
63600         (gl_TERMIOS_H): Adjust it on mingw.
63601         * modules/termios (Makefile.am): Substitute new key.
63602         * lib/termios.in.h (includes): Make include_next conditional.
63603         * doc/posix-headers/termios.texi (termios.h): Update
63604         documentation.
63605         Reported by Daniel P. Berrange.
63607 2010-10-13  Jim Meyering  <meyering@redhat.com>
63609         git-version-gen: don't require that .git/ be in the current dir
63610         * build-aux/git-version-gen: Adjust this script so that it works
63611         when run from any working directory beneath the top-level .git/-
63612         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63615         test-select: avoid warn_unused_result warnings
63616         * tests/test-select.c: Include "macros.h".
63617         ASSERT that each call to read, write, and pipe succeeds.
63618         While not technically required, also check each "close".
63619         * modules/select-tests (Files): Add tests/macros.h.
63621         test-symlinkat: remove declaration of unused local
63622         * tests/test-symlinkat.c (main): Remove unused local, "buf".
63624         test-inttostr: avoid shadowing warnings
63625         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
63626         and use malloc rather than the stack for the same reason as
63627         mentioned in the comment justifying the other allocation.
63629 2010-10-11  Bruno Haible  <bruno@clisp.org>
63631         stdlib: Allow multiple gnulib generated replacements to coexist.
63632         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
63633         Reported by Sam Steingold <sds@gnu.org>.
63635 2010-10-11  Jim Meyering  <meyering@redhat.com>
63637         fix a documentation typo
63638         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
63640 2010-10-11  Eric Blake  <eblake@redhat.com>
63642         futimens: work around Solaris 11 bug
63643         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
63644         * tests/test-futimens.h (test_futimens): Enhance, rather than
63645         weaken test.
63646         * doc/posix-functions/futimens.texi (futimens): Document the bug.
63648 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63650         Indentation.
63651         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
63652         higher-level operators more to the left.
63654 2010-10-11  Jim Meyering  <meyering@redhat.com>
63656         test-futimens: avoid unwarranted test failure on Solaris 5.11
63657         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
63658         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
63659         because it tries to dereference the NULL name argument.
63661 2010-10-11  Bruno Haible  <bruno@clisp.org>
63663         Indentation.
63664         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
63665         indentation.
63667 2010-10-11  Jim Meyering  <meyering@redhat.com>
63669         spawn.in.h: make indentation consistent with parentheses
63670         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
63671         Make indentation consistent with parentheses.
63673 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
63675         Fix mismatched parens in previous commit
63676         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
63677         parens.
63679 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63681         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63683         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63684         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63685         * lib/malloca.c: Include "verify.h".
63686         (verify1): Remove, replacing with a verify call.
63687         * lib/relocwrapper.c (verify1): Likewise.
63688         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63689         Likewise.
63690         * modules/malloca (Depends-on): Add 'verify'.
63691         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63692         * modules/vasnprintf (Depends-on): Add 'verify'.
63693         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63694         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63695         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63696         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63697         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63698         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63699         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63701         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63703         Formerly the style was sometimes 2*X - 1, because the C standard
63704         was wrongly thought to disallow ?: in integral constant expressions.
63705         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63706         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63707         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63708         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63709         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63710         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63711         verify that time_t cannot be floating.
63713 2010-10-08  Eric Blake  <eblake@redhat.com>
63715         time: enforce recent POSIX ruling that time_t is integral
63716         * lib/time.in.h (__time_t_must_be_integral): Detect any
63717         problematic systems, allowing the rest of gnulib to assume POSIX.
63719 2010-10-08  Jim Meyering  <meyering@redhat.com>
63721         fdopendir: fix a bug on systems lacking openat and /proc support
63722         OpenBSD 4.7 is one such system.  The most noticeable effect was
63723         failure of any application making nontrivial use of fts: rm, du,
63724         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63725           ./rm: traversal failed: `a': Bad file descriptor
63726         Debugging that, you see that even though FD 6 was closed just
63727         prior to the opendir call in fd_clone_opendir, its resulting
63728         dir->dd_fd was 8, rather than the expected value of 6:
63730         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63731         93                close (fd);
63732         (gdb) n
63733         94                dir = fd_clone_opendir (dupfd);
63734         (gdb) n
63735         95                saved_errno = errno;
63736         (gdb) p dir->dd_fd
63737         $11 = 8
63739         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63740         The problem is that on OpenBSD, fd_clone_opendir has to resort
63741         to using the old-style save/restore CWD mechanism, due to its
63742         lack of openat/proc support, and *that* would steal the FD (6)
63743         that opendir was supposed to use.
63745         The fix is to squirrel away the desired FD so that save_cwd uses a
63746         different one, and then free the dest FD right before calling opendir.
63747         That guarantees opendir will use the required file descriptor.
63749         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63751 2010-10-08  Bruno Haible  <bruno@clisp.org>
63753         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63754         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63756 2010-10-08  Bruno Haible  <bruno@clisp.org>
63758         nanosleep: Make replacement POSIX compliant.
63759         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63760         is out of range.
63761         Reported by Jim Meyering.
63763 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63765         bootstrap: add hook for altering gnulib.mk, for Bison
63766         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63767         the Bison bootstrapping process can rewrite file names and variables
63768         in this file before later parts of 'bootstrap' use the file.
63769         Bison wants to include lib/gnulib.mk from the top-level makefile,
63770         so it needs the file names in this file to be relative to the top
63771         level, not relative to lib; plus it needs variable names to be
63772         rewritten.
63773         (slurp): Use the new function.
63775         bootstrap: reformat for readability
63776         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63778 2010-10-08  Eric Blake  <eblake@redhat.com>
63780         docs: update cygwin progress
63781         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63782         1.7.7.
63783         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63784         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63785         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63786         * doc/posix-functions/carg.texi (carg): Likewise.
63787         * doc/posix-functions/cargf.texi (cargf): Likewise.
63788         * doc/posix-functions/casin.texi (casin): Likewise.
63789         * doc/posix-functions/casinf.texi (casinf): Likewise.
63790         * doc/posix-functions/casinh.texi (casinh): Likewise.
63791         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63792         * doc/posix-functions/catan.texi (catan): Likewise.
63793         * doc/posix-functions/catanf.texi (catanf): Likewise.
63794         * doc/posix-functions/catanh.texi (catanh): Likewise.
63795         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63796         * doc/posix-functions/ccos.texi (ccos): Likewise.
63797         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63798         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63799         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63800         * doc/posix-functions/cexp.texi (cexp): Likewise.
63801         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63802         * doc/posix-functions/cimag.texi (cimag): Likewise.
63803         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63804         * doc/posix-functions/clog.texi (clog): Likewise.
63805         * doc/posix-functions/clogf.texi (clogf): Likewise.
63806         * doc/posix-functions/conj.texi (conj): Likewise.
63807         * doc/posix-functions/conjf.texi (conjf): Likewise.
63808         * doc/posix-functions/cpow.texi (cpow): Likewise.
63809         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63810         * doc/posix-functions/cproj.texi (cproj): Likewise.
63811         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63812         * doc/posix-functions/creal.texi (creal): Likewise.
63813         * doc/posix-functions/crealf.texi (crealf): Likewise.
63814         * doc/posix-functions/csin.texi (csin): Likewise.
63815         * doc/posix-functions/csinf.texi (csinf): Likewise.
63816         * doc/posix-functions/csinh.texi (csinh): Likewise.
63817         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63818         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63819         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63820         * doc/posix-functions/ctan.texi (ctan): Likewise.
63821         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63822         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63823         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63824         * doc/posix-headers/complex.texi (complex.h): Likewise.
63826 2010-10-07  Jim Meyering  <meyering@redhat.com>
63828         parse-datetime: avoid compilation failure on OpenBSD 4.7
63829         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63830         This works around a compilation failure on OpenBSD 4.7:
63831         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63833 2010-10-07  Eric Blake  <eblake@redhat.com>
63835         docs: update cygwin progress
63836         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63837         1.7.6.
63838         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63839         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63840         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63841         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63842         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63843         Likewise.
63844         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63845         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63846         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63847         Likewise.
63848         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63849         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63850         Likewise.
63851         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63852         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63853         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63854         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63855         Likewise.
63856         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63857         Likewise.
63858         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63860         docs: update parse-datetime history
63861         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63862         documentation of this function's history and alternatives.
63864         cygwin: use more robust version check
63865         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63866         exclude an eventual cygwin 1.9.1.
63867         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63869         (gl_FUNC_STRCASESTR): Likewise.
63870         Reported by Bruno Haible.
63872 2010-10-06  Bruno Haible  <bruno@clisp.org>
63874         string, sys_select: Avoid #including large headers unless necessary.
63875         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63876         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63877         OSF/1, BeOS, Haiku.
63878         Reported by Jim Meyering.
63880 2010-10-05  Eric Blake  <eblake@redhat.com>
63882         memmem, strstr, strcasestr: fix bug with long periodic needle
63883         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63884         periodic needle having false positive.
63885         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63886         and cygwin 1.7.7.
63887         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63889         (gl_FUNC_STRCASESTR): Likewise.
63890         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63891         * tests/test-memmem.c (main): Expose the bug.
63892         * tests/test-strcasestr.c (main): Likewise.
63893         * tests/test-strstr.c (main): Likewise.
63894         * tests/test-c-strcasestr.c (main): Likewise.
63895         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63896         * doc/posix-functions/strstr.texi (strstr): Likewise.
63897         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63898         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63900 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63902         parse-datetime: do some more renaming
63903         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63904         parse_datetime, not get_date.  Mention the renaming.
63905         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63906         in comments.
63907         * m4/bison.m4: Likewise.
63909 2010-10-05  Eric Blake  <eblake@redhat.com>
63911         parse-datetime: better name than get_date
63912         * NEWS: Reword the deprecation notice.
63913         * modules/get_date: Rename to modules/parse-datetime.
63914         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63915         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63916         * lib/get_date.y: Rename to lib/parse-datetime.y.
63917         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63918         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63919         * doc/getdate.texi: Provide fallback wrapper.
63920         * lib/getdate.h: Move guts, and wrap...
63921         * lib/parse-datetime.h: ...new file.
63922         * lib/parse-datetime.y (get_date): Rename...
63923         (parse_datetime): ...to this.
63924         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63925         (gl_PARSE_DATETIME): ...to this.
63926         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63927         documentation.
63928         * modules/getdate (Files): Provide fallback docs and header.
63929         (Notice, Depends-on): Update references.
63930         * tests/test-parse-datetime.c: Likewise.
63931         * DEPENDENCIES: Likewise.
63932         * MODULES.html.sh (Date and time <time.h>): Likewise.
63933         * doc/parse-datetime.texi (Date input formats)
63934         (Authors of parse_datetime): Likewise.
63935         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63936         (Include): Likewise.
63937         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63938         * gnulib-tool: Likewise.
63939         * m4/bison.m4 (gl_BISON): Likewise.
63940         Suggested by Bruno Haible.
63942 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63944         more ports to Solaris tr, which needs [] around ranges
63945         * gnulib-tool: Solaris tr needs [] around ranges.
63946         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63947         * tests/test-pipe-filter-gi1.c (main): Likewise.
63948         * tests/test-pipe-filter-ii1.c (main): Likewise.
63950 2010-10-05  Eric Blake  <eblake@redhat.com>
63952         bootstrap: fix Solaris regression
63953         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63954         around ranges.
63955         Reported by Pádraig Brady.
63957         bootstrap: work with pkg-config
63958         * build-aux/bootstrap (check_versions): Also transliterate - in
63959         prerequisite name.
63960         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63961         prerequisites that were already found, to avoid confusion.
63962         Reported by Justin Clift.
63964         faccessat: remove unused wrappers
63965         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63966         presence of these wrappers dragged in -lgen on Solaris.
63967         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63969 2010-10-05  Jim Meyering  <meyering@redhat.com>
63971         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63972         * Makefile (sc_pragma_columns): New syntax-check rule.
63974 2010-10-04  Bruno Haible  <bruno@clisp.org>
63976         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63977         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63978         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63979         Reported by Bruce Korb and Eric Blake.
63981 2010-10-04  Bruno Haible  <bruno@clisp.org>
63983         threadlib: Make option --with-libpth-prefix work.
63984         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63985         use $LIBPTH, not just -lpth.
63987 2010-10-04  Bruno Haible  <bruno@clisp.org>
63989         Avoid line length limitation from HP NonStop system header files.
63990         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63991         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63992         * lib/ctype.in.h: Likewise.
63993         * lib/dirent.in.h: Likewise.
63994         * lib/errno.in.h: Likewise.
63995         * lib/fcntl.in.h: Likewise.
63996         * lib/float.in.h: Likewise.
63997         * lib/getopt.in.h: Likewise.
63998         * lib/iconv.in.h: Likewise.
63999         * lib/inttypes.in.h: Likewise.
64000         * lib/langinfo.in.h: Likewise.
64001         * lib/locale.in.h: Likewise.
64002         * lib/math.in.h: Likewise.
64003         * lib/netdb.in.h: Likewise.
64004         * lib/netinet_in.in.h: Likewise.
64005         * lib/poll.in.h: Likewise.
64006         * lib/pthread.in.h: Likewise.
64007         * lib/pty.in.h: Likewise.
64008         * lib/sched.in.h: Likewise.
64009         * lib/se-selinux.in.h: Likewise.
64010         * lib/search.in.h: Likewise.
64011         * lib/signal.in.h: Likewise.
64012         * lib/spawn.in.h: Likewise.
64013         * lib/stdarg.in.h: Likewise.
64014         * lib/stddef.in.h: Likewise.
64015         * lib/stdint.in.h: Likewise.
64016         * lib/stdio.in.h: Likewise.
64017         * lib/stdlib.in.h: Likewise.
64018         * lib/string.in.h: Likewise.
64019         * lib/strings.in.h: Likewise.
64020         * lib/sys_file.in.h: Likewise.
64021         * lib/sys_ioctl.in.h: Likewise.
64022         * lib/sys_select.in.h: Likewise.
64023         * lib/sys_socket.in.h: Likewise.
64024         * lib/sys_stat.in.h: Likewise.
64025         * lib/sys_time.in.h: Likewise.
64026         * lib/sys_times.in.h: Likewise.
64027         * lib/sys_utsname.in.h: Likewise.
64028         * lib/sys_wait.in.h: Likewise.
64029         * lib/sysexits.in.h: Likewise.
64030         * lib/termios.in.h: Likewise.
64031         * lib/time.in.h: Likewise.
64032         * lib/unistd.in.h: Likewise.
64033         * lib/wchar.in.h: Likewise.
64034         * lib/wctype.in.h: Likewise.
64035         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
64036         * modules/ctype (Makefile.am): Likewise.
64037         * modules/dirent (Makefile.am): Likewise.
64038         * modules/errno (Makefile.am): Likewise.
64039         * modules/fcntl-h (Makefile.am): Likewise.
64040         * modules/float (Makefile.am): Likewise.
64041         * modules/getopt-posix (Makefile.am): Likewise.
64042         * modules/iconv-h (Makefile.am): Likewise.
64043         * modules/inttypes (Makefile.am): Likewise.
64044         * modules/langinfo (Makefile.am): Likewise.
64045         * modules/locale (Makefile.am): Likewise.
64046         * modules/math (Makefile.am): Likewise.
64047         * modules/netdb (Makefile.am): Likewise.
64048         * modules/netinet_in (Makefile.am): Likewise.
64049         * modules/poll-h (Makefile.am): Likewise.
64050         * modules/pthread (Makefile.am): Likewise.
64051         * modules/pty (Makefile.am): Likewise.
64052         * modules/sched (Makefile.am): Likewise.
64053         * modules/search (Makefile.am): Likewise.
64054         * modules/selinux-h (Makefile.am): Likewise.
64055         * modules/signal (Makefile.am): Likewise.
64056         * modules/spawn (Makefile.am): Likewise.
64057         * modules/stdarg (Makefile.am): Likewise.
64058         * modules/stddef (Makefile.am): Likewise.
64059         * modules/stdint (Makefile.am): Likewise.
64060         * modules/stdio (Makefile.am): Likewise.
64061         * modules/stdlib (Makefile.am): Likewise.
64062         * modules/string (Makefile.am): Likewise.
64063         * modules/strings (Makefile.am): Likewise.
64064         * modules/sys_file (Makefile.am): Likewise.
64065         * modules/sys_ioctl (Makefile.am): Likewise.
64066         * modules/sys_select (Makefile.am): Likewise.
64067         * modules/sys_socket (Makefile.am): Likewise.
64068         * modules/sys_stat (Makefile.am): Likewise.
64069         * modules/sys_time (Makefile.am): Likewise.
64070         * modules/sys_times (Makefile.am): Likewise.
64071         * modules/sys_utsname (Makefile.am): Likewise.
64072         * modules/sys_wait (Makefile.am): Likewise.
64073         * modules/sysexits (Makefile.am): Likewise.
64074         * modules/termios (Makefile.am): Likewise.
64075         * modules/time (Makefile.am): Likewise.
64076         * modules/unistd (Makefile.am): Likewise.
64077         * modules/wchar (Makefile.am): Likewise.
64078         * modules/wctype (Makefile.am): Likewise.
64080 2010-10-04  Bruno Haible  <bruno@clisp.org>
64082         read-file tests: Avoid a test failure on NonStop Kernel.
64083         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
64084         a regular file.
64085         Reported by Joachim Schmitz <schmitz@hp.com>.
64087 2010-10-03  Bruno Haible  <bruno@clisp.org>
64089         gnulib-tool: Fixes for --create-testdir with --libtool.
64090         * gnulib-tool (func_get_automake_snippet): Don't augment
64091         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
64092         an executable.
64093         (func_create_testdir): Handle module 'alloca' like func_import.
64094         Reported by Bruce Korb <bruce.korb@gmail.com>.
64096 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64098         Avoid some lines longer than 80 characters.
64099         * lib/stdint.in.h: Break long comment lines.
64100         * lib/math.in.h: Likewise.
64101         (_GL_NUM_UINT_WORDS): New macro, for readability.
64102         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
64103         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
64104         * lib/stdlib.in.h: Likewise.
64105         * lib/spawn.in.h: Likewise.
64106         * lib/sys_socket.in.h: Update an URL.
64107         * lib/sys_stat.in.h: Break long line.
64109 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
64111         Improve pmccabe2html.
64112         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
64113         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
64114         when the sources change. Remove the line in the HTML about "Used
64115         ranges" (which implied that there might be other unused ranges),
64116         rename "Resume" to "Summary" (easier to understand for more users).
64117         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
64118         styles, and some unnecessary blank lines.
64120 2010-10-03  Bruno Haible  <bruno@clisp.org>
64121             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64123         acl: Add support for ACLs on NonStop Kernel.
64124         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
64125         Check whether the function aclsort() exists.
64126         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
64127         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
64128         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64129         (acl_nontrivial [HAVE_ACLSORT]: New function.
64130         (file_has_acl): Implement for NonStop Kernel.
64131         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64132         (qset_acl): Implement for NonStop Kernel.
64133         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
64134         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64135         (main): Implement for NonStop Kernel.
64136         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
64137         Kernel. Handle this flavor.
64138         * tests/test-set-mode-acl.sh: Likewise.
64139         * tests/test-copy-acl.sh: Likewise.
64140         * tests/test-copy-file.sh: Likewise.
64142 2010-10-03  Bruno Haible  <bruno@clisp.org>
64144         Info about ACLs on NonStop Kernel.
64145         * doc/acl-resources.txt: Add info about NonStop Kernel.
64146         References by Joachim Schmitz <schmitz@hp.com>.
64148 2010-10-02  Bruno Haible  <bruno@clisp.org>
64150         Define missing EDQUOT on NonStop Kernel.
64151         * lib/errno.in.h (EDQUOT): Assign a value if missing.
64152         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
64153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
64154         missing.
64155         * doc/posix-headers/errno.texi: Mention the NSK bug.
64156         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
64157         Reported by Joachim Schmitz <schmitz@hp.com>.
64159 2010-10-02  Bruno Haible  <bruno@clisp.org>
64161         Update doc for POSIX:2008.
64162         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
64163         Update URL of POSIX specification.
64165 2010-10-02  Bruno Haible  <bruno@clisp.org>
64167         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
64168         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
64169         from gnulib, not from Automake.
64171 2010-10-02  Bruno Haible  <bruno@clisp.org>
64173         New module 'system-posix'.
64174         * modules/system-posix: New file.
64175         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
64176         module is present.
64177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64178         GNULIB_SYSTEM_POSIX.
64179         * modules/stdlib (Depends-on): Remove sys_wait.
64180         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
64181         * doc/posix-functions/system.texi: Mention the new module.
64182         * doc/posix-headers/stdlib.texi: Likewise.
64183         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
64184         define test_sys_wait_macros to a no-op.
64185         Reported by Sam Steingold <sds@gnu.org>.
64187 2010-09-30  Bruno Haible  <bruno@clisp.org>
64189         More renaming from 'getdate' to 'get_date'.
64190         * doc/get_date.texi: Renamed from doc/getdate.texi.
64191         * modules/get_date (Files): Update.
64192         * MODULES.html.sh (Date and time <time.h>): Update.
64193         * DEPENDENCIES: Update.
64194         * gnulib-tool: Update comment.
64195         * m4/bison.m4 (gl_BISON): Likewise.
64196         * m4/get_date.m4 (gl_GET_DATE): Likewise.
64198 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
64200         bootstrap: support ACLOCAL_FLAGS during aclocal
64201         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
64202         can add additional -I dir for third-party .m4 files.
64204 2010-09-30  Eric Blake  <eblake@redhat.com>
64206         bootstrap: use glibtoolize on MacOS
64207         * build-aux/bootstrap (check_versions): Convert libtool into
64208         libtoolize.
64209         (tool search): Move libtool check earlier, and look for
64210         glibtoolize for MacOS.
64211         (gnulib_tool_options): Auto-add --libtool when appropriate.
64212         Reported by Justin Clift.
64214         poll: fix typo that broke test on MacOS
64215         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
64216         Reported by Justin Clift.
64218         getdate: rename to get_date
64219         Note: getdate.h is not renamed, to minimize client impact.
64220         * modules/getdate: Mark obsolete.  Move old contents...
64221         * modules/get_date: ...to new module name.
64222         * modules/getdate-tests: Move...
64223         * modules/get_date-tests: ...here.
64224         * m4/getdate.m4: Move...
64225         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
64226         * lib/getdate.y: Move...
64227         * lib/get_date.y: ...here.
64228         * tests/test-getdate.c: Move...
64229         * tests/test-get_date.c: ...here.
64230         * doc/posix-functions/getdate.texi (getdate): Update name.
64231         * NEWS: Mention the change.
64233 2010-09-29  Bruno Haible  <bruno@clisp.org>
64235         Separate the module 'waitpid' from the module 'sys_wait'.
64236         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
64237         present.
64238         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
64239         gl_MODULE_INDICATOR_FOR_TESTS.
64240         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
64241         * modules/sys_wait (Depends-on): Remove waitpid.
64242         (Makefile.am): Substitute GNULIB_WAITPID.
64243         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
64244         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
64245         signature only if the 'waitpid' module is present.
64246         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
64247         * NEWS: Mention the change.
64248         * modules/grantpt (Depends-on): Add waitpid.
64249         * modules/wait-process (Depends-on): Likewise.
64251 2010-09-29  Bruno Haible  <bruno@clisp.org>
64253         More tests for module 'sys_wait'.
64254         * modules/sys_wait-c++-tests: New file.
64255         * tests/test-sys_wait-c++.cc: New file.
64256         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
64257         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64259 2010-09-29  Bruno Haible  <bruno@clisp.org>
64261         New module 'waitpid'.
64262         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
64263         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
64264         Don't include <process.h>.
64265         (waitpid): Declare only, using modern idiom.
64266         * m4/waitpid.m4: New file.
64267         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
64268         * modules/waitpid: New file.
64269         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
64270         (Makefile.am): Update.
64271         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64273 2010-09-28  Bruno Haible  <bruno@clisp.org>
64275         poll: Assume ANSI C.
64276         * lib/poll.c (poll): Use an ANSI C declaration.
64278 2010-09-28  Bruno Haible  <bruno@clisp.org>
64280         poll-h: Create poll.h on all platforms.
64281         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
64282         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
64283         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
64284         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
64285         (gl_REPLACE_POLL_H): Don't set POLL_H.
64286         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
64287         * modules/poll-h (Depends-on): Add include_next.
64288         (Makefile.am): Create poll.h unconditionally. Substitute also
64289         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
64291 2010-09-28  Bruno Haible  <bruno@clisp.org>
64293         Tests for module 'poll-h'.
64294         * modules/poll-h-c++-tests: New file.
64295         * tests/test-poll-h-c++.cc: New file.
64297         Tests for module 'poll-h'.
64298         * modules/poll-h-tests: New file.
64299         * tests/test-poll-h.c: New file.
64301 2010-09-28  Bruno Haible  <bruno@clisp.org>
64303         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
64304         * modules/poll-h (Depends-on): Add 'extensions'.
64306 2010-09-28  Bruno Haible  <bruno@clisp.org>
64308         New module 'poll-h'.
64309         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
64310         (poll): Use modern idiom.
64311         * modules/poll-h: New file.
64312         * modules/poll (Files): Remove lib/poll.in.h.
64313         (Depends-on): Add poll-h.
64314         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
64315         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
64316         * m4/poll_h.m4: New file.
64317         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
64318         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
64319         and invoke gl_REPLACE_POLL_H.
64320         * lib/poll.c: Use common idiom.
64321         * tests/test-poll.c: Likewise.
64322         * doc/posix-headers/poll.texi: Mention the poll-h module.
64323         Suggested by Eric Blake.
64325 2010-09-26  Bruno Haible  <bruno@clisp.org>
64327         sys_wait: Implement WSTOPSIG.
64328         * lib/sys_wait.in.h (WSTOPSIG): New macro.
64329         Reported by Simon Josefsson.
64331 2010-09-26  Simon Josefsson  <simon@josefsson.org>
64333         stdlib, sys_wait: Avoid compilation error on mingw.
64334         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
64336 2010-09-26  Bruno Haible  <bruno@clisp.org>
64338         stdlib tests: Avoid code duplication.
64339         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
64340         * modules/sys_wait-tests (Files): Likewise.
64341         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
64342         * tests/test-stdlib.c: Include test-sys_wait.h.
64343         (main): Invoke test_sys_wait_macros.
64344         * tests/test-sys_wait.c: Include test-sys_wait.h.
64345         (main): Invoke test_sys_wait_macros.
64347 2010-09-25  Simon Josefsson  <simon@josefsson.org>
64349         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
64350         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
64351         sure Windows sockets are working before calling getaddrinfo.
64352         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
64353         * doc/gnulib.texi (Windows sockets): Fix typo.
64355 2010-09-25  Bruno Haible  <bruno@clisp.org>
64357         Tests for module 'regex-quote'.
64358         * modules/regex-quote-tests: New file.
64359         * tests/test-regex-quote.c: New file.
64361         New module 'regex-quote'.
64362         * lib/regex-quote.h: New file.
64363         * lib/regex-quote.c: New file.
64364         * modules/regex-quote: New file.
64365         Suggested by Reuben Thomas <rrt@sc3d.org>.
64367 2010-09-24  Bruno Haible  <bruno@clisp.org>
64369         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64370         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64372 2010-09-23  Bruno Haible  <bruno@clisp.org>
64374         setenv: Relax license.
64375         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64376         Blake.
64377         Requested by Eric Blake.
64379 2010-09-22  Bruno Haible  <bruno@clisp.org>
64381         termios: Relax license.
64382         * modules/termios (License): Change to LGPLv2+.
64383         Requested by Eric Blake.
64385 2010-09-22  Bruno Haible  <bruno@clisp.org>
64387         threadlib: Allow the package to change the default to 'no'.
64388         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64389         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64390         Reported by Paul Eggert.
64392 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64393             Bruno Haible  <bruno@clisp.org>
64395         Fix endless loop in mbmemcasecoll.
64396         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64397         byte.
64398         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64400 2010-09-22  Bruno Haible  <bruno@clisp.org>
64402         Tests for module 'memcoll'.
64403         * modules/memcoll-tests: New file.
64404         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64406         memcoll, xmemcoll: Clarify size vs. length.
64407         * modules/memcoll.c (memcoll0): Clarify specification.
64408         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64409         passed to collate_error.
64411 2010-09-22  Bruno Haible  <bruno@clisp.org>
64413         Tests for module 'memcasecmp'.
64414         * modules/memcasecmp-tests: New file.
64415         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64417 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64419         * lib/pthread.in.h: Add split double-inclusion guard, and include
64420         system <pthread.h> if there is one.  Use @@-style as in other
64421         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64422         pthread.h doesn't.
64423         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64424         (pthread_mutexattr_settype, pthread_mutex_trylock):
64425         New static inline functions, if there's no system <pthread.h>.
64426         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64427         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64428         Approximate with mutexes if the system lacks spinlocks, as in
64429         MacOS.
64430         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64431         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64432         @@-style.  Check for spinlocks separately.
64433         (gl_PTHREAD_DEFAULTS): New macro.
64434         * modules/pthread: Redo to use a more typical style for in.h files.
64436 2010-09-21  Eric Blake  <eblake@redhat.com>
64438         net_if: enhance tests
64439         * tests/test-net_if.c (main): Move signature checks earlier.
64440         Print failures to stderr.
64441         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64442         Document the bug that we do not yet fix.
64444 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64446         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64447         about gnulib, not GSS.
64449 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64451         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64452         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64453         for Emacs.
64454         * build-aux/pmccabe2html: Make Makefile.am example code more
64455         cut-and-paste friendly.
64457 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64459         * tests/test-net_if.c: New file.
64460         * modules/net_if-tests: New file.
64462 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64464         pthread: add pthread_spin_destroy
64465         * lib/pthread.in.h (pthread_spin_destroy): New function.
64467 2010-09-19  Bruno Haible  <bruno@clisp.org>
64469         gnulib-tool: Fix --help output.
64470         * gnulib-tool (func_usage): Fix help message.
64471         Reported by Reuben Thomas <rrt@sc3d.org>.
64473 2010-09-18  Jim Meyering  <meyering@redhat.com>
64475         maint.mk: avoid unexpanded \n in two diagnostics
64476         * top/maint.mk (sc_prohibit_always_true_header_tests):
64477         Don't use a literal \n in a halt=... assignment.  It would not be
64478         expanded, and the two \n bytes would appear in the diagnostic output
64479         rather than the desired newline.  Use halt=$$(printf ... instead.
64480         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64482 2010-09-18  Bruno Haible  <bruno@clisp.org>
64484         netinet_in: Doc tweak.
64485         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
64486         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64488 2010-09-18  Jim Meyering  <meyering@redhat.com>
64490         init.sh: correct an outdated comment
64491         * tests/init.sh (create_exe_shims_):  s/function/alias/
64493         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
64494         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
64495         a file named "*.exe" is removed between the glob expansion and the
64496         processing of that oddly named file.
64498 2010-09-17  Eric Blake  <eblake@redhat.com>
64500         mirbsd: add some more support
64501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
64502         in BSD family.
64503         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
64504         devices as OpenBSD.
64505         * m4/host-os.m4 (mirbsd): Add MirBSD.
64507         tests: fix unportable assumption on sys/wait.h
64508         * tests/test-sys_wait.c (main): Relax test.
64509         * tests/test-stdlib.c (main): Likewise.
64511         init.sh: accommodate directory with no .exes
64512         * tests/init.sh: Accomodate directory containing only scripts.
64514         tests: avoid compiler warning
64515         * tests/test-stdlib.c (main): Use the variable.
64517         fdutimens, fdutimensat: update signature, again
64518         * lib/utimens.h (gl_futimens): Delete, and move signature...
64519         (fdutimens): ...here.
64520         (fdutimensat): Rearrange signature.
64521         (lutimensat): Rename variable for clarity.
64522         * lib/fdutimensat.c (fdutimensat): Update signature.
64523         * lib/utimens.c (fdutimens): Likewise.
64524         (gl_futimens): Delete.
64525         (utimens, lutimens): Update callers.
64526         * lib/futimens.c (futimens): Likewise.
64527         * tests/test-fdutimensat.c: Likewise.
64528         * tests/test-utimens.c: Likewise.
64529         * tests/test-futimens.h: Update comment.
64530         * NEWS: Mention this.
64531         Suggested by Paul Eggert.
64533 2010-09-17  Bruno Haible  <bruno@clisp.org>
64535         Take over the maintenance of some older macros from Autoconf.
64536         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
64537         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
64538         GNU Autoconf.
64539         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
64540         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
64542 2010-09-17  Eric Blake  <eblake@redhat.com>
64544         fdutimensat: drop atflag validation
64545         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
64546         with valid fd, to close a race scenario where futimens is
64547         unsupported and FILE was replaced by a symlink.
64548         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
64549         accordingly.
64550         Suggested by Paul Eggert.
64552 2010-09-16  Bruno Haible  <bruno@clisp.org>
64554         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
64555         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
64557 2010-09-16  Bruno Haible  <bruno@clisp.org>
64559         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
64560         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
64561         login_tty exists.
64562         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64564 2010-09-16  Bruno Haible  <bruno@clisp.org>
64566         login_tty: Make the replacement code work on BSD systems.
64567         * lib/login_tty.c: Include <sys/ioctl.h>.
64568         (login_tty): Use ioctl TIOCSCTTY when available.
64569         * modules/login_tty (Depends-on): Add sys_ioctl.
64570         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64572 2010-09-16  Bruno Haible  <bruno@clisp.org>
64574         login_tty: Stricter unit test.
64575         * modules/login_tty-tests (Depends-on): Add tcgetsid.
64576         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
64577         and tcgetsid() after login_tty.
64578         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64580 2010-09-16  Bruno Haible  <bruno@clisp.org>
64582         New module 'tcgetsid'.
64583         * lib/tcgetsid.c: New file.
64584         * m4/tcgetsid.m4: New file.
64585         * modules/tcgetsid: New file.
64586         * modules/termios (Depends-on): Add c++defs, warn-on-use.
64587         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
64588         GNULIB_TCGETSID, HAVE_TCGETSID.
64589         * lib/termios.in.h: Include <sys/types.h>.
64590         (tcgetsid): New declaration.
64591         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
64592         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
64593         * doc/posix-functions/tcgetsid.texi: Mention the new module.
64594         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
64596 2010-09-16  Bruno Haible  <bruno@clisp.org>
64598         Tests for module 'termios'.
64599         * modules/termios-c++-tests: New file.
64600         * modules/termios-tests: New file.
64601         * tests/test-termios-c++.cc: New file.
64602         * tests/test-termios.c: New file.
64604         New module 'termios'.
64605         * modules/termios: New file.
64606         * lib/termios.in.h: New file.
64607         * m4/termios_h.m4: New file.
64608         * doc/posix-headers/termios.texi: Mention the new module.
64610 2010-09-16  Eric Blake  <eblake@redhat.com>
64612         fdutimensat: add an atflag parameter
64613         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64614         * lib/utimens.h (fdutimensat): Update prototype.
64615         * tests/test-fdutimensat.c: Adjust test to match.
64616         * NEWS: Document the change.
64617         Suggested by Paul Eggert.
64619 2010-09-16  Bruno Haible  <bruno@clisp.org>
64621         Fix typos in comments.
64622         * lib/striconveh.h: Fix typo in comment.
64623         * lib/login_tty.c (login_tty): Likewise.
64625 2010-09-15  Bruno Haible  <bruno@clisp.org>
64627         stdlib: clarify MirBSD WEXITSTATUS bug
64628         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
64629         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64631 2010-09-15  Eric Blake  <eblake@redhat.com>
64633         stdlib: work around MirBSD WEXITSTATUS bug
64634         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
64635         * modules/stdlib (Depends-on): Add sys_wait.
64636         * tests/test-sys_wait.c (main): Enhance test.
64637         * tests/test-stdlib.c (main): Likewise.
64638         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
64640         docs: mention MacOS issue with WEXITSTATUS(constant)
64641         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
64642         issue.
64643         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64645         strnlen: add tests
64646         * modules/strnlen-tests: New file.
64647         * tests/test-strnlen.c: Likewise.
64649 2010-09-14  Bruno Haible  <bruno@clisp.org>
64651         unistr/base: Avoid link errors when module 'libunistring' is also used.
64652         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
64653         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
64654         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
64655         Declare also when HAVE_LIBUNISTRING is set.
64656         Reported by Pádraig Brady <P@draigbrady.com>.
64658 2010-09-14  Eric Blake  <eblake@redhat.com>
64660         test-rawmemchr: make more robust
64661         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
64662         (Depends-on, configure.ac): Add needed prerequisites to use it.
64663         * modules/memchr-tests (Files, Depends-on, configure.ac):
64664         Likewise, to avoid implicit reliance on memchr module prereqs.
64665         * tests/test-memchr.c (main): Ensure proper masking.
64666         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
64667         reads.
64669         memchr: detect glibc Alpha bug
64670         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
64671         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
64672         Alpha.
64673         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
64674         * tests/test-memchr.c (main): Enhance test.
64675         Reported by Nelson H. F. Beebe.
64677 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64679         fts, getcwd, glob: audit for dirfd returning -1
64680         * lib/fts.c (opendir): Remove #define; no longer used.
64681         (opendirat): New arg PDIR_FD.  All callers changed.
64682         (fts_build, _opendir2): Use new opendirat to avoid the need for
64683         dirfd, or for checking whether dirfd returns a negative value.
64684         Don't use opendir; always use openat followed by fdopendir.
64685         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64686         it.
64687         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64688         returns -1 here.
64689         * modules/fts (Depends-on): Remove dirfd.
64690         * modules/getcwd (Depends-on): Likewise.
64692 2010-09-13  Eric Blake  <eblake@redhat.com>
64694         float: fix broken MirBSD header
64695         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64696         * doc/posix-headers/float.texi (float.h): Document it.
64698 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64700         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64701         * lib/fts.c (opendirat): New arg extra_flags.
64702         (__opendir2): Use it to avoid following symlinks when opening
64703         a directory, if symlinks are not supposed to be followed.  See
64704         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64706         fdopendir: preserve argument fd before returning
64707         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64708         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64709         (fdopendir): Use them, arranging for FD to be open to the same
64710         directory that it was when it started.  (It might be temporarily
64711         closed while fdopendir is running, so this not thread- or
64712         signal-safe.)  Be careful to do the right thing even when file
64713         descriptors are scarce and dup fails with errno == EMFILE.  See
64714         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64716 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64718         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64719         * NEWS: Document change.
64720         * m4/regex.m4: Disable test for regoff_t size.
64722 2010-09-13  Jim Meyering  <meyering@redhat.com>
64724         fts: don't operate on an invalid file descriptor after failed dup
64725         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64726         negative file descriptor.
64728 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64730         savedir: add streamsavedir, deprecate fdsavedir
64731         * NEWS: Mention deprecation of fdsavedir.
64732         * lib/savedir.c (streamsavedir): New extern function, whose name
64733         ends in "savedir" to be consistent with the others.  This differs
64734         from savedirstream in that it doesn't close its argument.  The
64735         next version of GNU tar will use this instead of fdsavedir, to
64736         avoid some race conditions and conserve file descriptors.
64737         (savedirstream): Reimplement as a wrapper around streamsavedir.
64738         (fdsavedir): Add a comment deprecating this function.  As far as
64739         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64740         * lib/savedir.h (streamsavedir): New decl.
64741         (fdsavedir): Add a comment deprecating this.
64743 2010-09-10  Bruno Haible  <bruno@clisp.org>
64745         langinfo: Fix last commit.
64746         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64747         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64750 2010-09-10  Bruno Haible  <bruno@clisp.org>
64752         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64753         * lib/progreloc.c (O_EXEC): Define fallback.
64755 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64757         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64758         * NEWS: Document recent changes to fcntl-h.
64759         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64760         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64761         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64762         Similarly for O_SEARCH; this last was already true, but not documented.
64763         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64764         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64765         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64766         Likewise.
64767         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64768         is zero, not whether it is defined.
64769         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64770         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64771         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64773 2010-09-10  Bruno Haible  <bruno@clisp.org>
64775         langinfo, nl_langinfo: Fix for IRIX 5.3.
64776         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64777         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64778         HAVE_LANGINFO_YESEXPR.
64779         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64780         HAVE_LANGINFO_YESEXPR.
64781         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64782         HAVE_LANGINFO_T_FMT_AMPM is 0.
64783         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64784         HAVE_LANGINFO_YESEXPR is 0.
64785         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64786         NOEXPR.
64787         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64788         * doc/posix-functions/nl_langinfo.texi: Likewise.
64789         Reported by Eric Blake.
64791 2010-09-10  Bruno Haible  <bruno@clisp.org>
64793         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64794         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64795         on FreeBSD 8.0 and OpenBSD 4.6.
64796         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64797         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64798         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64799         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64800         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64801         ac_includes_default.
64802         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64804 2010-09-09  Eric Blake  <eblake@redhat.com>
64806         strsignal: work around NetBSD bug
64807         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64808         * lib/string.in.h (includes): Likewise.
64809         * doc/posix-functions/strsignal.texi (strsignal): Document the
64810         bug.
64811         Reported by Nelson H. F. Beebe.
64813         gnulib-tool: work with NetBSD /bin/sh
64814         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64815         (func_get_description, func_get_comment, func_get_status)
64816         (func_get_notice, func_get_applicability, func_get_filelist)
64817         (func_get_dependencies, func_get_autoconf_early_snippet)
64818         (func_get_autoconf_snippet, func_get_automake_snippet)
64819         (func_get_include_directive, func_get_link_directive)
64820         (func_get_license, func_get_maintainer, func_import): Avoid
64821         shell syntax errors from parsing syntax extensions.
64823 2010-09-09  Bruno Haible  <bruno@clisp.org>
64825         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64826         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64827         a reliable way to determine whether the 'alias' command works.
64829 2010-09-08  Jim Meyering  <meyering@redhat.com>
64831         init.sh: penalize a set-x-impaired shell; don't disqualify it
64832         * tests/init.sh: Too many shells corrupt application stderr when
64833         you set -x, so we can't afford to disqualify them, since at least
64834         on Irix-6.5, that would disqualify all bourne shells.
64835         Instead, use a two-pass approach.
64836         On the first pass, try to find a shell that meets the stricter
64837         condition that set -x does not corrupt stderr.
64838         If no shell meets the stricter condition, retest each candidate
64839         shell, but without that extra condition.  Finally, when
64840         VERBOSE=yes is requested and set -x might cause trouble, simply
64841         issue a warning and refrain from enabling debug output.
64843 2010-09-08  Eric Blake  <eblake@redhat.com>
64845         unsetenv: fix OpenBSD bug
64846         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64847         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64848         documentation.
64849         Reported by Jim Meyering.
64851         strtod: work around IRIX 6.5 bug
64852         * lib/strtod.c (strtod): Reparse number on shorter string if
64853         exponent parse was invalid.
64854         * tests/test-strtod.c (main): Add check for "0x1p 2".
64855         Reported by Tom G. Christensen.
64857         getopt: optimize previous patch
64858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64859         empty variable.  Speed up awk script.
64860         Reported by Paolo Bonzini.
64862 2010-09-08  Jim Meyering  <meyering@redhat.com>
64864         test.sh: disqualify shells for which set -x corrupts stderr
64865         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64866         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64867         appear in stderr output.  For example, this command:
64868             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64869         prints "P=1" on those two systems:
64871 2010-09-08  Bruno Haible  <bruno@clisp.org>
64873         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64874         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64875         commands, because some shells ignore redirections when there is an
64876         error in the command lookup.
64877         Reported by Eric Blake.
64879 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64881         * lib/regex.h: Fix a mention of `regex_compile' (should be
64882         `re_compile_pattern').
64883         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64884         (re_set_registers): Correct name of parameter in comment.
64886         * doc/regex.texi: Add documentation for missing syntax flags.
64887         Remove commented-out documentation of defunct syntax option
64888         RE_NO_EMPTY_ALTS.
64889         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64890         Add documentation of re_set_registers.
64891         Document trick to re-use a pattern buffer by setting fastmap manually.
64892         Update documentation of struct re_pattern_buffer per public members.
64893         Uncomment documentation of equivalence class operators and
64894         collating symbol operators, since they are now implemented,
64895         Explain leftmost-longest matching in relation to alternatives.
64896         Tidy documentation of substring matching.
64897         Remove POSIX documentation, which is done better in
64898         glibc, and refer the reader there. Keep BSD API documentation, as
64899         that is not readily available elsewhere.
64901 2010-09-07  Eric Blake  <eblake@redhat.com>
64903         getopt: handle POSIXLY_CORRECT set but not exported
64904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64905         export state of POSIXLY_CORRECT, due to bash set -o posix.
64906         Reported by Dustin J. Mitchell.
64908 2010-09-05  Bruno Haible  <bruno@clisp.org>
64910         gnulib-tool: Highlight the changed options.
64911         * gnulib-tool (func_usage): Display the --import, --add-import,
64912         --remove-import explanations in bold font.
64914 2010-09-06  Karl Berry  <karl@gnu.org>
64916         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64918 2010-09-05  Bruno Haible  <bruno@clisp.org>
64920         uniwidth/width: Update comment.
64921         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64922         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64924 2010-09-05  Bruno Haible  <bruno@clisp.org>
64926         isinf, isnan: Relax license.
64927         * modules/isinf (License): Change from GPL to LGPL, with consent from
64928         Ben Pfaff.
64929         * modules/isnan (License): Likewise.
64930         Requested by Ludovic Courtès.
64932 2010-09-04  Bruno Haible  <bruno@clisp.org>
64934         gnulib-tool: Help migration from --import to --add-import or --update.
64935         * gnulib-tool: Emit a verbose error message when --import is used
64936         without any module name.
64938 2010-09-04  Bruno Haible  <bruno@clisp.org>
64940         Update doc about gnulib-tool.
64941         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64942         'gnulib-tool --update' in more detail.
64943         Reported by Eric Blake.
64945 2010-09-04  Bruno Haible  <bruno@clisp.org>
64947         gnulib-tool: Change --import. New options --add/remove-import.
64948         * gnulib-tool: New options --add-import, --remove-import.
64949         (func_usage): Document them.
64950         (have_associative): Define always.
64951         (func_import): In import mode, don't merge the specified settings with
64952         the cached settings. Implement remove-import mode.
64953         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64954         Explain when to use them versus --import.
64955         (Simple update): Use --add-import instead of --import.
64956         * NEWS: Mention the change.
64958 2010-09-04  Bruno Haible  <bruno@clisp.org>
64960         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64961         separate gnulib.mk.
64963 2010-09-04  Bruno Haible  <bruno@clisp.org>
64965         gnulib-tool: Don't talk about CVS any more.
64966         * gnulib-tool (func_usage, func_import): Write "version control"
64967         instead of CVS.
64969 2010-09-04  Jim Meyering  <meyering@redhat.com>
64971         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64972         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64973         false positives (whose names may be ill-chosen) when searching
64974         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64975         would cause a false-positive.
64977         avoid coreutils "make distcheck" failure
64978         Coreutils tests with an absolute build directory name that contains
64979         a space.  Not quoting this directory name caused a failure.
64980         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64981         * tests/test-vc-list-files-cvs.sh: Likewise.
64983 2010-09-04  Bruno Haible  <bruno@clisp.org>
64985         gnulib-tool: Avoid error when run in a package without Makefile.am.
64986         * gnulib-tool: When collecting the m4dirs in a package that does not
64987         have a Makefile.am, eliminate those directories that contain no
64988         gnulib-cache.m4. Fix expression that counts these directories.
64990 2010-09-04  Bruno Haible  <bruno@clisp.org>
64992         update-copyright test: Improve output when perl is missing or too old.
64993         * tests/test-update-copyright.sh: Move test of Perl version down after
64994         the test whether Perl exists. Provide an explanation relating Perl's
64995         error message to Automake's SKIP: message.
64997 2010-09-04  Bruno Haible  <bruno@clisp.org>
64999         Don't augment PATH in TESTS_ENVIRONMENT.
65000         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
65001         set abs_aux_dir instead of augmenting PATH.
65002         * modules/vc-list-files-tests (Makefile.am): Likewise.
65003         * tests/test-update-copyright.sh: Augment PATH here.
65004         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
65005         path_prepend_.
65006         * tests/test-vc-list-files-git.sh: Likewise.
65008 2010-09-04  Jim Meyering  <meyering@redhat.com>
65010         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
65011         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
65013 2010-09-04  Bruno Haible  <bruno@clisp.org>
65015         strdup: Fix compilation error in C++ mode.
65016         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
65017         the macro.
65019 2010-09-04  Bruno Haible  <bruno@clisp.org>
65021         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
65022         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
65023         macro into a function.
65024         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65026 2010-09-04  Bruno Haible  <bruno@clisp.org>
65028         Set PATH_SEPARATOR the same way autoconf does.
65029         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
65030         the value of PATH_SEPARATOR the same way autoconf-generated configure
65031         scripts do.
65032         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
65033         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65035 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65037         Set PATH_SEPARATOR the same way autoconf does.
65038         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
65039         the same way autoconf-generated configure scripts do.
65040         * posix-modules: Likewise.
65042 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65044         hash: fix safe_hasher const typo
65045         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
65046         const; otherwise, there is a type error later.
65048 2010-09-02  Jim Meyering  <meyering@redhat.com>
65050         test-update-copyright.sh: require perl 5.8.0
65051         * tests/test-update-copyright.sh: Require 5.8.0,
65052         which Tom G. Christensen has confirmed is adequate,
65053         while 5.6.1 is not.
65055 2010-09-02  Eric Blake  <eblake@redhat.com>
65057         tests: init.sh improvements for re-exec'ing with zsh
65058         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
65059         -vx through shell re-exec.
65060         Reported by Tom G. Christensen.
65062         wctype: fix typo in previous commit
65063         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
65064         Reported by Ludovic Courtès.
65066 2010-09-02  Jim Meyering  <meyering@redhat.com>
65068         test-update-copyright.sh: skip test if Perl is too old
65069         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
65070         Reported by Tom G. Christensen.
65072 2010-09-02  Bruno Haible  <bruno@clisp.org>
65074         wctype: Avoid compilation error on IRIX 6.5.30.
65075         * lib/wctype.in.h (iswblank): Declare with a replacement if
65076         REPLACE_ISWBLANK is set.
65077         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
65078         declared. Set REPLACE_ISWBLANK.
65079         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
65080         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
65081         * doc/posix-headers/wctype.texi: Likewise.
65082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65084 2010-09-01  Bruno Haible  <bruno@clisp.org>
65086         New module 'socketlib'.
65087         * modules/socketlib: New file.
65088         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
65089         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
65090         * modules/sockets (Depends-on): Add socketlib.
65091         Suggested by Sam Steingold <sds@gnu.org>.
65093 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65095         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
65097         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
65098         when one needs search access to a directory but not read access.
65099         On systems where it is available, it works in some cases where
65100         O_RDONLY does not, namely on directories that are searchable but
65101         not readable, and which need only to be searchable.  If O_SEARCH
65102         is not available, fall back to the traditional method of using
65103         O_RDONLY.
65105         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
65106         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
65107         when opening a directory that needs only to be searchable.
65108         * lib/chdir-safer.c (chdir_no_follow): Likewise.
65109         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
65110         * lib/openat-proc.c (openat_proc_name): Likewise.
65111         * lib/openat.c (openat_needs_fchdir): Likewise.
65112         * lib/save-cwd.c (save_cwd): Likewise.
65113         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
65115 2010-08-28  Bruno Haible  <bruno@clisp.org>
65117         New module 'host-cpu-c-abi'.
65118         * modules/host-cpu-c-abi: New file.
65119         * m4/host-cpu-c-abi.m4: New file, based on part of
65120         clisp/src/m4/general.m4.
65121         Requested by Sam Steingold <sds@gnu.org>.
65123 2010-08-31  Eric Blake  <eblake@redhat.com>
65124         and Jim Meyering  <meyering@redhat.com>
65126         hash: factor, and guard against misbehaving hasher function
65127         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
65128         of table->hasher's return value.  Also protect against a hash value
65129         so large that adding it to table->bucket results in a NULL pointer.
65130         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
65131         Use it in place of open-coded check-and-abort.
65133 2010-08-30  Bruno Haible  <bruno@clisp.org>
65135         hash: silence spurious clang warning
65136         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
65137         Reported by Eric Blake.
65139 2010-08-30  Eric Blake  <eblake@redhat.com>
65141         strstr, memmem, strcasestr: avoid leaked shell message
65142         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
65143         FreeBSD.
65144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65147         tests: silence clang warning
65148         * tests/test-malloca.c (do_allocation): Avoid dead store.
65150 2010-08-29  Bruno Haible  <bruno@clisp.org>
65152         gettext: Fix recent mistake.
65153         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
65155 2010-08-29  Bruno Haible  <bruno@clisp.org>
65157         selinux-h: Offer a --without-selinux option.
65158         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
65159         --without-selinux was specified, skip all tests and define
65160         HAVE_SELINUX_SELINUX_H to 0.
65161         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
65162         set LIB_SELINUX to empty.
65163         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
65164         gl_LIBSELINUX. If --without-selinux was specified, replace
65165         selinux/context.h.
65166         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
65168 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65169             Bruno Haible  <bruno@clisp.org>
65171         Make the module 'realloc-gnu' work again on AIX and OSF/1.
65172         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
65173         of HAVE_REALLOC.
65174         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
65175         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
65176         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
65177         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65179 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65180             Bruno Haible  <bruno@clisp.org>
65182         Make the module 'calloc-gnu' work again on AIX and OSF/1.
65183         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
65184         HAVE_CALLOC.
65185         * lib/xmalloc.c: Update accordingly.
65186         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
65187         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
65188         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
65190 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65191             Bruno Haible  <bruno@clisp.org>
65193         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65194         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65195         HAVE_MALLOC.
65196         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
65197         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
65198         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65200 2010-08-29  Bruno Haible  <bruno@clisp.org>
65202         Update modules list.
65203         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65204         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
65205         (String handling <string.h>): Add astrxfrm.
65206         (File system functions): Add readlinkat.
65208 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65210         Tests for module 'realloc-gnu'.
65211         * modules/realloc-gnu-tests: New file.
65212         * tests/test-realloc-gnu.c: New file.
65214         Tests for module 'calloc-gnu'.
65215         * modules/calloc-gnu-tests: New file.
65216         * tests/test-calloc-gnu.c: New file.
65218         Tests for module 'malloc-gnu'.
65219         * modules/malloc-gnu-tests: New file.
65220         * tests/test-malloc-gnu.c: New file.
65222 2010-08-28  Bruno Haible  <bruno@clisp.org>
65224         Rename module 'realloc' -> 'realloc-gnu'.
65225         * modules/realloc-gnu: New file, copied from modules/realloc.
65226         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
65227         obsolete.
65228         * modules/mgetgroups (Depends-on): Update.
65229         * doc/posix-functions/realloc.texi: Update.
65230         * NEWS: Mention the change.
65232         Rename module 'calloc' -> 'calloc-gnu'.
65233         * modules/calloc-gnu: New file, copied from modules/calloc.
65234         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
65235         obsolete.
65236         * doc/posix-functions/calloc.texi: Update.
65237         * NEWS: Mention the change.
65239         Rename module 'malloc' -> 'malloc-gnu'.
65240         * modules/malloc-gnu: New file, copied from modules/malloc.
65241         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
65242         obsolete.
65243         * modules/argp (Depends-on): Update.
65244         * modules/regex (Depends-on): Update.
65245         * doc/posix-functions/malloc.texi: Update.
65246         * NEWS: Mention the change.
65248 2010-08-28  Eric Blake  <eblake@redhat.com>
65250         pread, pwrite: add missing dependency
65251         * modules/pread (Depends-on): Add extensions.
65252         * modules/pwrite (Depends-on): Likewise.
65254 2010-08-28  Bruno Haible  <bruno@clisp.org>
65256         unistr/u*-strchr: Fix tests dependencies.
65257         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
65258         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
65259         Reported by Ian Beckwith <ianb@erislabs.net>.
65261 2010-08-28  Bruno Haible  <bruno@clisp.org>
65263         read-file: Don't occupy too much unused memory.
65264         * lib/read-file.c (fread_file): Shrink the buffer at the end.
65266 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
65267             Eric Blake  <eblake@redhat.com>
65268             Bruno Haible  <bruno@clisp.org>
65270         read-file: Avoid memory reallocations with regular files.
65271         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
65272         (fread_file): With regular files, use the remaining length as the
65273         initial buffer size.  Check against overflow.
65274         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
65275         sys_stat.
65277 2010-08-28  Bruno Haible  <bruno@clisp.org>
65279         ftello: Relax license.
65280         * modules/ftello (License): Relax to LGPLv2+.
65281         Reported by Eric Blake.
65283 2010-08-28  Bruno Haible  <bruno@clisp.org>
65285         Avoid relocwrapper link errors due to gnulib replacement functions.
65286         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
65287         function.
65288         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65290 2010-08-28  Bruno Haible  <bruno@clisp.org>
65292         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
65293         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
65294         defined.
65295         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
65296         Suggested by Eric Blake.
65298 2010-08-28  Bruno Haible  <bruno@clisp.org>
65300         sys_socket, netdb: Ensure socklen_t gets defined.
65301         * modules/sys_socket (Depends-on): Add socklen.
65302         * modules/netdb (Depends-on): Likewise.
65303         * modules/getaddrinfo (Depends-on): Remove socklen.
65304         * modules/getsockopt (Depends-on): Likewise.
65305         * modules/setsockopt (Depends-on): Likewise.
65306         * tests/test-sys_socket.c: Check that socklen_t is defined.
65307         * tests/test-netdb.c: Likewise.
65308         * m4/socklen.m4: Update comments.
65309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65311 2010-08-27  Eric Blake  <eblake@redhat.com>
65313         login_tty: add missing dependency
65314         * modules/login_tty (Depends-on): Add pty.
65316 2010-08-26  Eric Blake  <eblake@redhat.com>
65318         lib-symbol-versions: fix m4 quoting
65319         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
65320         format for AC_LINK_IFELSE.
65322         glob: fix compile test
65323         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
65325         btowc: fix missing file
65326         * modules/btowc (Files): Also ship locale-fr.m4.
65328         lseek: fix link test
65329         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
65330         AC_LINK_IFELSE.
65332         include_next: silence autoconf 2.68 warning
65333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
65334         AC_COMPILE_IFELSE as special.
65335         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
65336         autoconf < 2.68.
65338         acl: fix compilation test
65339         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
65340         AC_COMPILE_IFELSE.
65342 2010-08-26  Bruno Haible  <bruno@clisp.org>
65344         Modernize AC_TRY_RUN invocations.
65345         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
65346         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
65347         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
65348         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
65349         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
65350         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65351         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
65352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65353         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65354         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65355         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
65356         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65357         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
65358         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65359         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
65360         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
65361         gl_MBRLEN_NUL_RETVAL): Likewise.
65362         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65363         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65364         Likewise.
65365         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65366         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65367         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65368         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65369         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65370         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65371         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65372         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65373         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65374         Likewise.
65375         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65376         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65377         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65378         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65379         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65380         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65381         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65382         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65383         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65386 2010-08-26  Bruno Haible  <bruno@clisp.org>
65388         Modernize AC_TRY_LINK invocations.
65389         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65390         AC_TRY_LINK.
65391         * m4/argp.m4 (gl_ARGP): Likewise.
65392         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65393         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65394         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65395         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65396         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65397         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65398         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65399         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65400         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65401         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65402         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65403         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65404         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65405         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65406         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65407         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65408         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65409         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65410         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65411         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65412         Likewise.
65413         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65414         Likewise.
65415         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65416         Likewise.
65417         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65419         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65420         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65421         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65422         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65423         * m4/servent.m4 (gl_SERVENT): Likewise.
65424         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65425         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65426         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65427         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65428         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65429         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65430         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65431         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65432         * modules/tsearch-tests (configure.ac): Likewise.
65434 2010-08-26  Bruno Haible  <bruno@clisp.org>
65436         Modernize AC_TRY_COMPILE invocations.
65437         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65438         AC_TRY_COMPILE.
65439         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65440         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65441         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65442         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65443         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65444         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65445         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65446         * m4/lock.m4 (gl_LOCK): Likewise.
65447         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65448         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65449         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65450         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65451         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65452         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65453         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65454         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65455         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65456         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65457         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65458         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65459         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65460         extraneous semicolon.
65462 2010-08-26  Jim Meyering  <meyering@redhat.com>
65464         stat-time: relax license LGPL
65465         * modules/stat-time (License): Change from GPL to LGPL,
65466         with consent from all contributors, for use in libguile.
65467         Requested by Ludovic Courtès.
65469 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65471         poll: return immediately on POLLHUP.
65472         * lib/poll.c (poll): Always set timeout before wait_timeout is
65473         computed.
65475 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65477         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
65478         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
65479         rmdir ("dir/.//"), unlinkat.
65481 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65483         stdbool: avoid spurious failure with modern xlc
65484         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65486 2010-08-24  Bruno Haible  <bruno@clisp.org>
65488         getloadavg: simplify code
65489         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
65490         gl_have_func. Update comments.
65492 2010-08-24  Eric Blake  <eblake@redhat.com>
65494         getloadavg: don't define SVR4 on cygwin
65495         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
65496         only define SVR4 when -lkvm is required.
65497         Reported by Yaakov Selkowitz.
65499 2010-08-24  Bruno Haible  <bruno@clisp.org>
65501         priv-set: fix comment
65502         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
65504 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65506         priv-set: fix comments
65507         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
65508         to match code, as suggested by David Bartley in:
65509         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
65511 2010-08-23  Eric Blake  <eblake@redhat.com>
65513         stdbool: avoid rejecting clang
65514         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65515         * tests/test-stdbool.c: Enable more tests if using the system
65516         <stdbool.h> instead of the gnulib replacement.
65517         (main): Move xlc bug test to a runtime test for all compilers.
65518         Reported by Anders Kaseorg.
65520         argz: fix shell quoting issue
65521         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
65522         Reported by Charles Wilson.
65524 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
65525             Erik Faye-Lund <kusmabite@gmail.com>
65527         poll, select: handle ERROR_BROKEN_PIPE.
65528         * lib/poll.c (win32_compute_revents): Return POLLHUP when
65529         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65530         * lib/select.c (win32_compute_revents): Do not mark a pipe
65531         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65533 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
65535         fts: allow compilation with C++
65536         * lib/fts_.h: Specify extern "C" linkage with C++.
65538 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65540         Fix gnulib-tool sed script de-commentation for AIX sed.
65541         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
65542         sed.
65544 2010-08-17  Eric Blake  <eblake@redhat.com>
65546         test-stddef: test for (some) offsetof bugs
65547         * tests/test-stddef.c: Enhance test to ensure correct type of
65548         offsetof.
65549         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
65550         that we are not fixing at this time.
65552 2010-08-15  Bruno Haible  <bruno@clisp.org>
65554         stpncpy: Allow stpncpy to be defined as a macro.
65555         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
65556         if it's already correctly declared.
65557         * lib/string.in.h (stpncpy): Undefine before redefining.
65558         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
65560 2010-08-14  Bruno Haible  <bruno@clisp.org>
65562         Rename module 'memxfrm' to 'amemxfrm'.
65563         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
65564         (amemxfrm): Renamed from memxfrm.
65565         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
65566         (amemxfrm): Renamed from memxfrm.
65567         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
65568         * NEWS: Mention the change.
65569         * MODULES.html.sh (String handling <string.h>): Update.
65570         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
65571         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
65572         * lib/unicase/u16-casexfrm.c: Likewise.
65573         * lib/unicase/u32-casexfrm.c: Likewise.
65574         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
65575         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
65576         * lib/uninorm/u16-normxfrm.c: Likewise.
65577         * lib/uninorm/u32-normxfrm.c: Likewise.
65578         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
65579         memxfrm.
65580         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
65581         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
65582         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
65583         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
65584         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
65585         Suggested by Paul Eggert.
65587 2010-08-14  Bruno Haible  <bruno@clisp.org>
65589         Tests for module 'astrxfrm'.
65590         * modules/astrxfrm-tests: New file.
65591         * tests/test-astrxfrm.c: New file.
65593         New module 'astrxfrm'.
65594         * lib/astrxfrm.h: New file.
65595         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
65596         * modules/astrxfrm: New file.
65598 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
65600         regex: Tweak doc.
65601         * doc/regex.texi (Overview): Don't mention regex.c.
65602         (GNU Regular Expression Compiling): Likewise.
65603         (Match-end-of-line Operator): Mention 'not_eol'.
65605 2010-08-14  Brian Gough  <bjg@gnu.org>
65606             Bruno Haible  <bruno@clisp.org>
65608         git-merge-changelog: add doc relating to use with bzr and hg.
65609         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65611 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65613         pthread: fix pthread.h creation for srcdir != builddir
65614         * modules/pthread (Makefile.am): Fix the rule to work also in a
65615         non-srcdir build.
65617 2010-08-13  Karl Berry  <karl@gnu.org>
65619         * doc/regex.texi (Predefined Syntaxes): @smallexample.
65620         * doc/posix-*/*: force line break before @url of POSIX
65621         specifications.
65622         Suggested by Werner Lemberg.
65624 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65626         strtod: fix const diagnostic
65627         * lib/strtod.c (strtod): Don't assign const char * to char *,
65628         as this elicits a warning from GCC when warnings are enabled.
65630 2010-08-10  Pádraig Brady  <P@draigbrady.com>
65631         and Eric Blake  <eblake@redhat.com>
65633         copy-acl: ignore ENOTSUP on HP-UX
65634         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
65635         so that it is available for HP-UX.
65636         * lib/copy-acl.c (qcopy_acl): Use it.
65637         Reported by Patrick M. Callahan.
65639 2010-08-10  Eric Blake  <eblake@redhat.com>
65641         open, chown: relax license
65642         * modules/open (License): Change to LGPLv2+, with consent by all
65643         authors, for use in augeas.
65644         * modules/chown (License): Likewise.
65645         * modules/lchown (Likewise): Likewise.
65646         Requested by Adam Stokes.
65648 2010-08-09  Karl Berry  <karl@gnu.org>
65650         * build-aux/ar-lib: new file, import from Automake.
65651         * config/srclist.txt: autocheck for updates.
65653 2010-08-09  Eric Blake  <eblake@redhat.com>
65655         readlinkat: adjust client modules
65656         * modules/areadlinkat (Depends-on): Use readlinkat, not
65657         symlinkat.
65658         * modules/areadlinkat-with-size (Depends-on): Likewise.
65660         mknod: be more vocal about danger of running tests as root
65661         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
65662         root, since that is just asking for problems.
65663         Suggested by Bruno Haible, based on a report by Rainer Tammer.
65665         readlinkat: split into its own module
65666         * modules/symlinkat: Split readlinkat...
65667         * modules/readlinkat: ...into separate module.
65668         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
65669         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
65670         * lib/symlinkat.c (readlinkat): Move...
65671         * lib/readlinkat.c: ...into new file.
65672         * modules/symlinkat-tests: Split readlinkat test...
65673         * modules/readlinkat-tests: ...into separate module.
65674         * tests/test-symlinkat.c: Split...
65675         * tests/test-readlinkat.c: ...into new file.
65676         * NEWS: Document the split.
65677         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65678         * lib/unistd.in.h (readlinkat): Likewise.
65679         Suggested by Bruno Haible.
65681 2010-08-08  Bruno Haible  <bruno@clisp.org>
65683         memxfrm: Speed up.
65684         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65685         that usually only one call to strxfrm is necessary for each string
65686         part.
65687         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65689 2010-08-07  Karl Berry  <karl@gnu.org>
65691         * doc/posix-headers/limits.texi,
65692         * doc/posix-functions/malloc.texi,
65693         * doc/posix-functions/strsignal.texi: missing @item.
65694         * doc/ld-version-script.texi: spurious leading i.
65695         * doc/regex.texi (Interval Operators): no commas inside @var.
65697 2010-08-01  Bruno Haible  <bruno@clisp.org>
65699         Integrate the regex documentation.
65700         * doc/gnulib.texi: Define 'cn' index.
65701         (Regular expressions): New a chapter that includes regex.texi and
65702         regexprops-generic.texi.
65703         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65704         syntax.
65706         Whitespace cleanup.
65707         * doc/regex.texi: Remove trailing spaces.
65709         Add regex documentation.
65710         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65711         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65712         Written by Kathy A. Hargreaves and Karl Berry.
65714 2010-08-01  Bruno Haible  <bruno@clisp.org>
65716         link: Update documentation.
65717         * doc/posix-functions/link.texi: Update regarding Solaris.
65719 2010-07-31  Bruno Haible  <bruno@clisp.org>
65721         Update modules list.
65722         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65723         (String handling <string.h>): Add memcmp2, memxfrm.
65724         (Container data structures): Add xlist, xsublist, xoset.
65725         (Core language properties): Add alignof, unused-parameter.
65726         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65727         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65728         (Unibyte characters <ctype.h>): New section.
65729         (String handling <string.h>): New section.
65730         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65731         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65732         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65733         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65734         tan, tanh, tanl, y0, y1, yn.
65735         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65736         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65737         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65738         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65739         unlockpt, vdprintf, vdprintf-posix.
65740         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65741         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65742         xconcat-filename.
65743         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65744         getdtablesize, pipe2, pipe2-safer.
65745         (Security): New section.
65746         (Networking functions): Add accept4.
65747         (Signal handling): Add sigpipe.
65748         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65749         mbmemcasecoll.
65750         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65751         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65752         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65753         pipe-filter-ii.
65754         (Misc): Add argp-version-etc, login_tty, parse-duration.
65756 2010-07-31  Bruno Haible  <bruno@clisp.org>
65758         Improve doc in MODULES.html.
65759         * modules/linkat (Description): Add the word "function".
65760         * modules/mkfifo (Description): Likewise.
65761         * modules/mknod (Description): Likewise.
65762         * modules/remove (Description): Likewise.
65763         * modules/renameat (Description): Likewise.
65764         * modules/stat (Description): Likewise.
65765         * modules/symlink (Description): Likewise.
65766         * modules/unlink (Description): Likewise.
65768 2010-07-31  Bruno Haible  <bruno@clisp.org>
65770         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65771         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65772         option --enable/disable-c++ instead of --enable/disable-cxx.
65773         * NEWS: Mention the change.
65775 2010-07-31  Bruno Haible  <bruno@clisp.org>
65777         readlink, areadlink: Relax test a bit.
65778         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65779         alternative to ENOTDIR.
65780         * tests/test-areadlink.h (test_areadlink): Likewise.
65781         Reported by Rainer Tammer.
65783 2010-07-31  Bruno Haible  <bruno@clisp.org>
65785         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65786         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65787         character, perform the search using U_STRCHR.
65788         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65789         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65790         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65791         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65792         Suggested by Paolo Bonzini.
65794 2010-07-31  Bruno Haible  <bruno@clisp.org>
65796         unistr/u*-strstr: Fix dependencies.
65797         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65798         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65799         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65801 2010-07-31  Bruno Haible  <bruno@clisp.org>
65803         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65804         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65805         the beginning of the loop.
65806         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65807         cases in 'switch' statement.
65809         unistr/u8-strchr: Fix several bugs.
65810         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65811         the string. When not found, return NULL, not a pointer near the end.
65813         More tests for unistr/u8-strchr.
65814         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65815         that the function does not read past the first occurrence of the byte
65816         being searched.
65817         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65818         * tests/unistr/test-u16-strchr.c (main): New function.
65819         * tests/unistr/test-u32-strchr.c (main): New function.
65821 2010-07-31  Bruno Haible  <bruno@clisp.org>
65823         posix-modules: Ignore backup files of documentation files.
65824         * posix-modules: grep only through files named *.texi.
65826 2010-07-31  Bruno Haible  <bruno@clisp.org>
65828         symlinkat: Fix documentation.
65829         * doc/posix-functions/readlinkat.texi: Fix module name.
65831 2010-07-31  Bruno Haible  <bruno@clisp.org>
65833         fchownat: Replace also when chown has the trailing slash bug.
65834         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65835         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65836         introduced on 2010-04-10.
65837         Reported by Rainer Tammer.
65839 2010-07-31  Bruno Haible  <bruno@clisp.org>
65841         linkat: Work around AIX 7.1 bug.
65842         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65843         whether linkat handles trailing slash correctly. If not, replace linkat
65844         and define LINKAT_TRAILING_SLASH_BUG.
65845         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65846         check whether (fd1,file1) points to a directory if file1 or file2 ends
65847         in a slash. Code taken from lib/link.c.
65848         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65849         Reported by Rainer Tammer.
65851 2010-07-31  Bruno Haible  <bruno@clisp.org>
65853         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65854         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65855         This disables an xlc optimization that was causing wrong test results.
65856         Reported by Rainer Tammer.
65858 2010-07-31  Bruno Haible  <bruno@clisp.org>
65860         iconv: Work around AIX 6.1..7.1 bug.
65861         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65862         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65863         cross-compiling, guess no on all versions of AIX.
65864         Reported by Rainer Tammer.
65866 2010-07-31  Bruno Haible  <bruno@clisp.org>
65868         readlink: Relax test a bit.
65869         * tests/test-readlink.h (test_readlink): Allow different errno value
65870         when readlink is called with a file name that ends in / and refers to
65871         a file.
65872         Suggested by Eric Blake.
65873         Reported by Rainer Tammer.
65875 2010-07-31  Bruno Haible  <bruno@clisp.org>
65877         copysign: Does not require -lm on glibc systems.
65878         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65879         gl_COMMON_DOUBLE_MATHFUNC.
65880         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65882 2010-07-31  Bruno Haible  <bruno@clisp.org>
65884         duplocale: Work around AIX 7.1 bug.
65885         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65886         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65887         * lib/duplocale.c (rpl_duplocale): Update comment.
65888         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65889         Reported by Rainer Tammer.
65891 2010-07-30  Bruno Haible  <bruno@clisp.org>
65893         dirfd: Avoid link error on AIX 7.1.
65894         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65895         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65896         exist, set REPLACE_DIRFD.
65897         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65898         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65899         * doc/posix-functions/dirfd.texi: Update.
65900         Reported by Rainer Tammer.
65902 2010-07-30  Eric Blake  <eblake@redhat.com>
65904         strtod: next round of AIX fixes
65905         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65906         exponent.
65907         * tests/test-strtod.c (main): Enhance tests.
65908         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65909         Reported by Rainer Tammer.
65911         futimens: fix configure check
65912         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65913         Reported by Bruno Haible.
65915 2010-07-30  Bruno Haible  <bruno@clisp.org>
65917         getline: Update regarding AIX.
65918         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65919         Reported by Rainer Tammer.
65921 2010-07-30  Bruno Haible  <bruno@clisp.org>
65923         wcwidth: Drop replacement on AIX 7.
65924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65925         AIX 7.
65926         Reported by Rainer Tammer.
65928 2010-07-30  Bruno Haible  <bruno@clisp.org>
65930         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65931         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65932         a 'char *'.
65933         Reported by Rainer Tammer.
65935 2010-07-30  Bruno Haible  <bruno@clisp.org>
65937         unlink: Update regarding AIX.
65938         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65939         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65940         Reported by Rainer Tammer.
65942 2010-07-30  Bruno Haible  <bruno@clisp.org>
65944         symlink: Update regarding AIX.
65945         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65946         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65947         Reported by Rainer Tammer.
65949 2010-07-30  Bruno Haible  <bruno@clisp.org>
65951         strndup: Update regarding AIX.
65952         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65953         AIX 7.
65954         Reported by Rainer Tammer.
65956 2010-07-30  Bruno Haible  <bruno@clisp.org>
65958         stat: Update regarding AIX.
65959         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65960         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65961         Reported by Rainer Tammer.
65963 2010-07-30  Bruno Haible  <bruno@clisp.org>
65965         truncl: Fix autoconf test.
65966         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65967         whether truncl works.
65968         Reported by Rainer Tammer.
65970 2010-07-30  Bruno Haible  <bruno@clisp.org>
65972         round: Update regarding AIX.
65973         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65974         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65975         Reported by Rainer Tammer.
65977 2010-07-30  Bruno Haible  <bruno@clisp.org>
65979         rename: Update regarding AIX.
65980         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65981         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65982         Reported by Rainer Tammer.
65984 2010-07-30  Bruno Haible  <bruno@clisp.org>
65986         printf.m4: Update regarding AIX.
65987         * m4/printf.m4: Update comments regarding AIX.
65988         Reported by Rainer Tammer.
65990 2010-07-30  Bruno Haible  <bruno@clisp.org>
65992         iconv: Update regarding AIX.
65993         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65994         AIX 7.
65995         Reported by Rainer Tammer.
65997 2010-07-30  Bruno Haible  <bruno@clisp.org>
65999         getopt: Update regarding AIX.
66000         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
66001         no on AIX.
66002         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
66003         Reported by Rainer Tammer.
66005 2010-07-30  Bruno Haible  <bruno@clisp.org>
66007         ldexpl; Update regarding AIX.
66008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
66009         on AIX 7.
66010         Reported by Rainer Tammer.
66012 2010-07-30  Bruno Haible  <bruno@clisp.org>
66014         frexpl: Update regarding AIX.
66015         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
66016         on AIX 7.
66017         Reported by Rainer Tammer.
66019 2010-07-30  Bruno Haible  <bruno@clisp.org>
66021         open, fopen: Update regarding AIX.
66022         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
66023         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66024         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
66025         * doc/posix-functions/fopen.texi: Likewise.
66026         Reported by Rainer Tammer.
66028 2010-07-30  Bruno Haible  <bruno@clisp.org>
66030         chown: Update doc regarding AIX.
66031         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
66032         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
66033         Reported by Rainer Tammer.
66035 2010-07-30  Eric Blake  <eblake@redhat.com>
66037         strtod: fix bug in replacement function on AIX
66038         * lib/strtod.c (strtod): Special case broken "0x" parse in
66039         underlying strtod.
66040         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
66041         * doc/posix-functions/strtod.texi (strtod): Likewise.
66042         Reported by Rainer Tammer.
66044 2010-07-30  Bruno Haible  <bruno@clisp.org>
66046         mbrlen: Fix cross-compilation guess for AIX.
66047         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
66048         guess. Leftover from 2008-12-22.
66050 2010-07-30  Bruno Haible  <bruno@clisp.org>
66052         mbrtowc: Fix cross-compilation guess for AIX.
66053         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
66054         guess. Leftover from 2008-12-21.
66056 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
66058         init.sh: work around trap limitation of some shells
66059         * tests/init.sh (setup_): Move exit trap outside of shell function.
66061 2010-07-29  Eric Blake  <eblake@redhat.com>
66063         strtod: aid debugging
66064         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
66065         understanding why strtod is rejected.
66067 2010-07-28  Bruno Haible  <bruno@clisp.org>
66069         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
66070         * lib/unistr/u8-chr.c: Include <string.h>.
66071         * tests/unistr/test-u8-chr.c: Likewise.
66072         * tests/unistr/test-u16-chr.c: Likewise.
66073         * tests/unistr/test-u32-chr.c: Likewise.
66074         * tests/unistr/test-u8-strchr.c: Likewise.
66075         * tests/unistr/test-u16-strchr.c: Likewise.
66076         * tests/unistr/test-u32-strchr.c: Likewise.
66077         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
66078         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
66079         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
66080         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
66082 2010-07-28  Bruno Haible  <bruno@clisp.org>
66084         Use spaces for indentation, not tabs.
66085         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66087 2010-07-27  Bruno Haible  <bruno@clisp.org>
66089         mbspcasecmp: Fix function specification.
66090         * lib/string.in.h (mbspcasecmp): Fix specification comment.
66091         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
66092         Reported by Eric Blake <eblake@redhat.com>.
66094 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
66096         timespec: use cast and not conditional, as truncation isn't possible
66097         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
66098         instead of a conditional.  Comment about the situation in more detail.
66099         This undoes most of the 2009-10-29 patch.
66101 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
66103         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
66104         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
66105         * lib/unistr/u8-strchr.c: Likewise.
66106         * modules/unistr/u8-chr: Depend on memchr.
66108         unistr/u*-strchr: add tests
66109         * modules/unistr/u8-strchr-tests: New file.
66110         * modules/unistr/u16-strchr-tests: New file.
66111         * modules/unistr/u32-strchr-tests: New file.
66112         * tests/unistr/test-strchr.h: New file.
66113         * tests/unistr/test-u8-strchr.c: New file.
66114         * tests/unistr/test-u16-strchr.c: New file.
66115         * tests/unistr/test-u32-strchr.c: New file.
66117         unistr/u*-chr: test multibyte sequences more
66118         * tests/unistr/test-chr.h: Do complete testing of the characters in the
66119         test vector.
66120         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
66121         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
66122         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
66124         unistr/u*-chr: test multibyte sequences
66125         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
66127         unistr/u*-chr: prepare for multibyte tests
66128         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
66129         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
66130         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
66131         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
66132         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
66133         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
66135 2010-07-18  Bruno Haible  <bruno@clisp.org>
66137         unistr/u8-strchr: Optimize non-ASCII argument case.
66138         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
66139         because the first byte often matches anyway.
66140         Reported by Pádraig Brady <P@draigbrady.com>.
66142 2010-07-15  Karl Berry  <karl@gnu.org>
66144         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
66146 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
66148         getcwd: on Solaris, work better if ancestors are inaccessible
66149         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
66150         buffer and size, try again with a large buffer.  This works better
66151         on Solaris, since its getcwd succeeds even if the path to the root
66152         is inaccessible, and this is helpful in common cases such as .zfs
66153         hidden directories.  Problem reported by J Chapman Flack in
66154         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
66155         Use system getcwd if it's declared, not merely if it's partly
66156         working; use the partly-working test only to avoid needless effort
66157         if the system getcwd fails.
66158         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
66159         comment that was already obsolete and is now even more obsolete.
66160         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
66161         now might call strdup.
66163 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
66165         pthread: Add enough so that coreutils/src/sort.c compiles.
66166         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
66167         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
66168         gnulib. Include <sched.h> and <time.h>, as per POSIX.
66169         Include <sys/types.h>, in case it defines pthread_t.
66170         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
66171         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
66172         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
66173         (pthread_rwlockattr_t, pthread_spinlock_t):
66174         New typedefs, if HAVE_PTHREAD_T is not defined.
66175         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
66176         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
66177         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
66178         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
66179         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
66180         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
66181         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
66182         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
66183         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
66184         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
66185         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
66186         New macros.
66187         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
66188         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
66189         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
66190         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
66191         (pthread_spin_unlock): New dummy functions.
66192         (pthread_create): Return EAGAIN; don't set errno.
66193         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66194         require AC_C_INLINE.
66195         * modules/pthread (Depends-on): Add sched, time.
66196         (pthread.h): Use AM_V_GEN.
66198 2010-07-13  Bruno Haible  <bruno@clisp.org>
66200         striconveh: Don't malloc memory if the result buffer is sufficient.
66201         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
66202         buffer if its size is sufficient.
66203         Reported by Ludovic Courtès <ludo@gnu.org>.
66205 2010-07-13  Bruno Haible  <bruno@clisp.org>
66207         strtod: Add safety check.
66208         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
66210 2010-07-12  Bruno Haible  <bruno@clisp.org>
66212         Unify tests that set gl_cv_func_ldexpl_no_libm.
66213         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
66214         gl_FUNC_LDEXPL.
66215         (gl_FUNC_LDEXPL): Invoke it.
66216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66218 2010-07-12  Bruno Haible  <bruno@clisp.org>
66220         Unify tests that set gl_cv_func_ldexp_no_libm.
66221         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
66222         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
66223         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
66224         (configure.ac): Simply invoke gl_FUNC_LDEXP.
66225         * modules/strtod (Files): Add m4/ldexp.m4.
66227 2010-07-12  Bruno Haible  <bruno@clisp.org>
66229         Unify tests that set gl_cv_func_frexpl_no_libm.
66230         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
66231         gl_FUNC_FREXPL_NO_LIBM.
66232         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
66233         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66235 2010-07-12  Bruno Haible  <bruno@clisp.org>
66237         Unify tests that set gl_cv_func_frexp_no_libm.
66238         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
66239         gl_FUNC_FREXP_NO_LIBM.
66240         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
66241         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66243 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66245         memcoll: clarify sizes versus lengths, document better, and tweak perf
66246         * lib/memcoll.c (strcoll_loop, memcoll0):
66247         Improve quality of descriptive comments.  Name variables
66248         consistently as to whether they are lengths (which do not include
66249         terminating null) versus sizes (which do).
66250         * lib/xmemcoll.c (xmemcoll0): Likewise.
66251         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
66252         returned when s1size == 0; this is easier to compile and saves
66253         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
66255 2010-07-12  Bruno Haible  <bruno@clisp.org>
66257         Tests for module '_Exit'.
66258         * modules/_Exit-tests: New file.
66259         * tests/test-_Exit.sh: New file.
66260         * tests/test-_Exit.c: New file.
66262         New module '_Exit'.
66263         * lib/stdlib.in.h (__attribute__): New macro.
66264         (_Exit): New declaration.
66265         * lib/_Exit.c: New file.
66266         * m4/_Exit.m4: New file.
66267         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
66268         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
66269         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
66270         * modules/_Exit: New file.
66271         * tests/test-stdlib-c++.cc (_Exit): Check signature.
66272         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
66274 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66276         strtod: make it more-accurate typically, and don't require libm
66277         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
66278         Include limits.h.  Don't include string.h.
66279         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
66280         (locale_isspace): New function, so that no casts are needed to
66281         check whether *s is a space.
66282         (ldexp): Provide an unused dummy if not available.
66283         (scale_radix_exp, parse_number, underlying_strtod): New functions.
66284         (strtod): Use them.  This implementation prefers to use the
66285         underlying strtod if available, falling back on our own code
66286         only to fix known bugs.  This is more likely to produce an
66287         accurate result.  Also, it avoids the use of libm functions.
66288         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
66289         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
66290         was absent, but it caused a test failure with coreutils.
66291         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
66292         with libm.
66293         * modules/strtod (Makefile.am, Link): libm is no longer needed.
66294         * modules/strtod-tests (Makefile.am): Likewise.
66296 2010-07-11  Pádraig Brady  <P@draigBrady.com>
66297             Bruno Haible  <bruno@clisp.org>
66299         unistr/u8-strchr: Optimize ASCII argument case.
66300         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
66302 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66304         (x)memcoll: minor tweaks
66305         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
66306         is after the type that it qualifies.
66307         (memcoll0): Likewise.
66308         * lib/memcoll.h (memcoll0): Likewise.
66309         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
66310         * lib/xmemcoll.h (xmemcoll0): Likewise.
66311         * lib/memcoll.c (memcoll0): Correct the comment.  This function
66312         differs from memcoll in that the NUL byte is part of the argument.
66313         Omit the abort-checks, as performance is a real issue here.  Plus,
66314         the checks were wrong anyway (an off-by-one error).  Omit local
66315         variable 'diff', as it's a bit clearer that way.
66316         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
66317         no longer needed.
66319 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
66321         (x)memcoll: speedup when input is known to be NUL delimited
66322         * lib/memcoll.c: Include stdlib.
66323         (memcoll0): New function.
66324         (strcoll_loop): New function, refactored for use in both memcoll
66325         and memcoll0.
66326         * lib/memcoll.h (memcoll0): Add prototype.
66327         * lib/xmemcoll.c (xmemcoll0): New function.
66328         (collate_error): New function, refactored for use in both xmemcoll
66329         and xmemcoll0.
66330         * lib/xmemcoll.h (xmemcoll0): Add prototype.
66331         * m4/memcoll.m4: add inline invocation.
66333 2010-07-06  Pádraig Brady  <P@draigBrady.com>
66335         * build-aux/bootstrap: Remove any local translations
66336         from the translation project synchronization directory,
66337         so that local only translations are not distributed.
66339 2010-07-04  Bruno Haible  <bruno@clisp.org>
66341         fsusage: Clarify which code applies to which platforms.
66342         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
66343         platform.
66344         * lib/fsusage.c (get_fs_usage): Likewise.
66346 2010-07-04  Bruno Haible  <bruno@clisp.org>
66348         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
66349         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
66350         Reported by Martin Lambers <marlam@marlam.de>.
66352 2010-07-04  Jim Meyering  <meyering@redhat.com>
66354         hash: once again explicitly disallow insertion of NULL
66355         * lib/hash.c (hash_insert0): Reinstate just-removed test:
66356         inserting a NULL pointer cannot work with these functions.
66357         Add a comment with details.
66358         This reverts part of the 2010-07-01 commit, 5bef1a35
66359         "hash: extend module to deal with non-pointer keys".
66361 2010-07-01  Bruno Haible  <bruno@clisp.org>
66363         stdbool: Update doc.
66364         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66365         Info from Christian Weisgerber <naddy@mips.inka.de>.
66367 2010-07-01  Jim Meyering  <meyering@redhat.com>
66369         hash: extend module to deal with non-pointer keys
66370         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66371         but that allows insertion of non-pointer entries.
66372         Do not disallow an ENTRY value of NULL.
66373         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66374         * lib/hash.h (hash_insert0): Declare.
66376 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66378         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66379         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66380         not present (i.e. with autoconf 2.59 and when using gettextize, not
66381         gnulib), require AC_GNU_SOURCE instead.
66383 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66385         idpriv-drop: Fix tests.
66386         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66387         not to the test-idpriv-droptemp program.
66389 2010-06-29  Bruno Haible  <bruno@clisp.org>
66391         string: Fix syntax error with g++ 2.96.
66392         * lib/string.in.h (__pure__): Remove definition.
66393         (_GL_ATTRIBUTE_PURE): New macro.
66394         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66395         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66396         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66398 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66400         unitypes: Fix bug introduced on 2010-05-18.
66401         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66403 2010-06-22  Eric Blake  <eblake@redhat.com>
66405         memmem: slight optimization
66406         * lib/str-two-way.h (critical_factorization): Update comments.
66407         Reduce work during factorization phase.
66408         Reported by Carlos Bueno <carlos@bueno.org>.
66410 2010-06-21  Bruno Haible  <bruno@clisp.org>
66412         Fix HAVE_CALLOC_POSIX misnomer.
66413         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66414         !HAVE_CALLOC_POSIX.
66415         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66416         HAVE_CALLOC_POSIX.
66417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66418         instead of HAVE_CALLOC_POSIX.
66419         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66420         HAVE_CALLOC_POSIX.
66422         Use modern idiom for calloc() replacement.
66423         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66424         AC_FUNC_CALLOC.
66425         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66426         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66427         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66428         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66429         (gl_REPLACE_CALLOC): New macro.
66431 2010-06-21  Bruno Haible  <bruno@clisp.org>
66433         Fix HAVE_REALLOC_POSIX misnomer.
66434         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66435         !HAVE_REALLOC_POSIX.
66436         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66437         HAVE_REALLOC_POSIX.
66438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66439         instead of HAVE_REALLOC_POSIX.
66440         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66441         HAVE_REALLOC_POSIX.
66443         Use modern idiom for realloc() replacement.
66444         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66445         AC_FUNC_REALLOC.
66446         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66447         Autoconf's AC_FUNC_REALLOC.
66448         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66449         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66450         (gl_REPLACE_REALLOC): New macro.
66451         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66453 2010-06-21  Bruno Haible  <bruno@clisp.org>
66455         Fix HAVE_MALLOC_POSIX misnomer.
66456         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66457         !HAVE_MALLOC_POSIX.
66458         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66459         HAVE_MALLOC_POSIX.
66460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66461         instead of HAVE_MALLOC_POSIX.
66462         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66463         HAVE_MALLOC_POSIX.
66465         Use modern idiom for malloc() replacement.
66466         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66467         AC_FUNC_MALLOC.
66468         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66469         Autoconf's AC_FUNC_MALLOC.
66470         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66471         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66472         (gl_REPLACE_MALLOC): New macro.
66473         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66475 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
66477         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
66478         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
66479         This macro takes 3 arguments, not 4.
66481 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
66483         ipv6: fix detection under mingw
66484         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
66485         in6_addr.
66487 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
66489         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
66490         that strtod() works when cross-compiling to a glibc version known
66491         to work.
66493 2010-06-15  Bruno Haible  <bruno@clisp.org>
66495         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
66497 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
66499         select: Correct timeout.
66500         * lib/select.c (rpl_select): Compute wait_timeout correctly.
66502 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66504         git-version-gen: init shell var to avoid env var influence
66505         * build-aux/git-version-gen (v): Init shell var to empty.
66507 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
66509         priv-set: Don't assume that priv.h exists merely because getppriv does.
66510         See Jan Andersen's bug report about AIX 5L in
66511         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
66512         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
66513         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
66514         * lib/priv-set.h: Likewise.
66515         * tests/test-priv-set.c: Likewise.
66517 2010-06-13  Bruno Haible  <bruno@clisp.org>
66519         relocatable: Make it easier to test whether to install wrappers.
66520         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
66521         RELOCATABLE_VIA_WRAPPER.
66523 2010-06-13  Bruno Haible  <bruno@clisp.org>
66525         gnulib-tool: Display specified modules and dependencies differently.
66526         * gnulib-tool (func_show_module_list): New function.
66527         (func_import, func_create_testdir): Invoke it.
66528         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
66530 2010-06-13  Bruno Haible  <bruno@clisp.org>
66532         gnulib-tool: Align code of func_import and func_create_testdir.
66533         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
66534         specified_modules.
66536 2010-06-12  Jim Meyering  <meyering@redhat.com>
66538         test-inttostr: avoid spurious failure on Solaris 9
66539         * tests/test-inttostr.c (main): Skip the test when snprintf fails
66540         to accept "%ju".  Reported by Bruno Haible.
66542 2010-06-11  Jim Meyering  <meyering@redhat.com>
66544         test-sys_socket: mark variables as used more readably
66545         * tests/test-sys_socket.c (main): Mark otherwise unused variables
66546         as "used" explicitly via (void) statement casts.  This is more
66547         readable than using them in an artificial return expression.
66548         Suggestion from Bruno Haible.
66550 2010-06-11  Bruno Haible  <bruno@clisp.org>
66552         Avoid some more warnings from "gcc -Wwrite-strings".
66553         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
66554         to 'const char *'.
66555         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
66556         * tests/test-c-strcasestr.c (main): Likewise.
66557         * tests/test-mbscasestr1.c (main): Likewise.
66558         * tests/test-mbscasestr2.c (main): Likewise.
66559         * tests/test-memmem.c (main): Likewise.
66560         * tests/test-strstr.c (main): Likewise.
66561         * tests/test-strcasestr.c (main): Likewise.
66563 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66565         init.sh: change framework_failure_ to fail with status 99, not 1
66566         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66567         automake's parallel-tests rule that this is an unexpected failure,
66568         even if the test is listed in XFAIL_TESTS.
66570 2010-06-11  Jim Meyering  <meyering@redhat.com>
66572         test-inttostr: avoid warnings about 4-6KB literal strings
66573         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
66574         Include "macros.h", for its definition of ASSERT.
66575         (CK): s/assert/ASSERT/
66576         * modules/inttostr-tests (Files): Add macros.h.
66578         init.sh: don't use $ME_ or skip_ before they are defined
66579         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
66580         their first uses.  Also hoist their companions: warn_, fail_,
66581         framework_failure_, $stderr_fileno.  Prompted by a patch from
66582         Stefano Lattarini.
66584         test-sys_socket: avoid set-but-not-used warnings from gcc
66585         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
66586         avoid warning about set-but-not-used variables.
66588         test-xvasprintf: avoid 'const' discard warnings
66589         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
66590         "const" when assigning from literal strings.
66591         (test_xasprintf): Add "void" in function argument list to placate
66592         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
66594         tests: avoid compilation warnings in argmatch and exclude tests...
66595         in packages that define ARGMATCH_DIE_DECL, like coreutils.
66596         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
66597         Since it always exits, declare with the "noreturn" attribute.
66598         * tests/test-argmatch.c: Likewise.
66600         tests: avoid 'const' discard warnings in mbsstr tests
66601         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
66602         * tests/test-mbsstr2.c (main): Likewise.
66604         test-verify: avoid warning from gcc's -Wmissing-declarations
66605         * tests/test-verify.c (function): Declare to be static.
66607         test-inttostr.c: include <string.h> for use of strcmp
66608         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66610         test-linkat: avoid failed assertion on "other" architectures
66611         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66612         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66613         sparc: https://bugs.launchpad.net/bugs/591968
66615 2010-06-11  Jim Meyering  <meyering@redhat.com>
66617         printf.m4: avoid autoconf's "Expanded Before Required" warning
66618         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
66619         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
66620         autoconf warning.
66622 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
66624         Replacement header templates are now named with ".in", not "_".
66625         * doc/gnulib-intro.texi: Correct.
66627 2010-06-10  Jim Meyering  <meyering@redhat.com>
66629         inttostr-tests: depend on snprintf, not snprintf-posix
66630         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
66631         snprintf-posix, to avoid this aclocal failure:
66632           missing file gnulib-tests/vasnprintf.c
66633           configure.ac:45: error: expected source file, required through \
66634           AC_LIBSOURCES, not found
66636 2010-06-10  Jim Meyering  <meyering@redhat.com>
66638         inttostr: add a new function, inttostr, and tests
66639         The namesake function was not available.  The existence of the
66640         template file, inttostr.c makes its addition nontrivial.
66641         * lib/anytostr.c: Rename from inttostr.c.
66642         (anytostr): Rename from inttostr.
66643         * lib/inttostr.c: New file.
66644         * modules/inttostr (Files): Add anytostr.c.
66645         (Makefile.am): Set lib_SOURCES instead of ...
66646         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
66647         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
66648         * lib/offtostr.c: Likewise.
66649         * lib/uinttostr.c: Likewise.
66650         * lib/umaxtostr.c: Likewise.
66651         * modules/inttostr-tests: New file.
66652         * tests/test-inttostr.c: New file.  Test these functions.
66654 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
66655             Bruno Haible  <bruno@clisp.org>
66657         Add "Extending Gnulib" chapter to manual.
66658         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
66659         chapter.
66660         (Extending Gnulib): New chapter.
66661         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
66662         chapter.
66664 2010-06-09  Bruno Haible  <bruno@clisp.org>
66666         Avoid relocwrapper link errors due to gnulib replacement functions.
66667         * lib/areadlink.c: Use the system's malloc, realloc functions.
66668         (areadlink): Set errno to ENOMEM explicitly.
66669         * modules/areadlink (Depends-on): Remove malloc-posix.
66670         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66672 2010-06-09  Bruno Haible  <bruno@clisp.org>
66674         Avoid relocwrapper link errors due to gnulib replacement functions.
66675         * lib/canonicalize-lgpl.c: Use the system's malloc function.
66676         * lib/malloca.c: Likewise.
66677         * lib/relocatable.c: Likewise.
66678         * lib/progreloc.c: Use the system's malloc, sprintf functions.
66679         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
66680         * lib/setenv.c: Use the system's malloc, realloc functions.
66681         * lib/strerror.c: Use the system's sprintf function.
66682         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66684 2010-06-04  Bruno Haible  <bruno@clisp.org>
66686         Prefer documented low-level autoconf macro names.
66687         * m4/lib-link.m4: Use m4_translit instead of translit.
66688         * m4/environ.m4: Likewise.
66689         * m4/mathfunc.m4: Likewise.
66690         * m4/onceonly.m4: Likewise.
66691         * m4/stdint.m4: Likewise.
66692         Suggested by Eric Blake.
66694 2010-06-04  Martin Lambers  <marlam@marlam.de>
66695             Bruno Haible  <bruno@clisp.org>
66697         havelib: Allow library names with '+' characters.
66698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66699         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66701 2010-06-09  Bruno Haible  <bruno@clisp.org>
66703         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66704         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66705         realloc failed.
66707 2010-06-08  Peter Simons  <simons@cryp.to>
66709         maint.mk: make the news-check rule more configurable
66710         * top/maint.mk (news-check-lines-spec): New variable.
66711         (news-check): Use "sed -n 1,10p" in place of "head".
66713 2010-06-07  Jim Meyering  <meyering@redhat.com>
66715         do-release-commit-and-tag: fix typo in --help
66716         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66718         regex: avoid new dead-code warning with gcc-4.6.0
66719         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66720         if-block containing a while-loop.  It's been unused for at least
66721         5 years.
66723 2010-06-05  Bruno Haible  <bruno@clisp.org>
66725         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66726         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66728 2010-06-04  Bruno Haible  <bruno@clisp.org>
66730         Update to GNU gettext 0.18.1.
66731         * modules/gettext (configure.ac): Require gettext infrastructure from
66732         version 0.18.1.
66734 2010-06-03  Bruno Haible  <bruno@clisp.org>
66736         Don't use AC_LIBOBJ with file names in subdirectories.
66737         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66738         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66739         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66740         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66741         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66742         gl_LIBUNISTRING_LIBSOURCE.
66743         (Makefile.am): Augment lib_SOURCES here, conditionally.
66744         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66746 2010-06-03  Bruno Haible  <bruno@clisp.org>
66748         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66749         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66750         expansion does not end with a newline.
66751         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66752         unnecessary newline.
66754 2010-06-03  Bruno Haible  <bruno@clisp.org>
66756         Reduce dependencies.
66757         * tests/test-quotearg.h: New file, extracted from
66758         tests/test-quotearg.c.
66759         * tests/test-quotearg-simple.c: New file, extracted from
66760         tests/test-quotearg.c.
66761         * tests/test-quotearg.c: Don't include <ctype.h>.
66762         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66763         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66764         use_quote_double_quotes, use_quotearg_colon): Moved to
66765         tests/test-quotearg.h.
66766         (results_g, flag_results, custom_quotes, custom_results): Moved
66767         to tests/test-quotearg-simple.c.
66768         (main): Moved the part that does not depend on gettext to
66769         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66770         performed.
66771         * modules/quotearg-simple: New file.
66772         * modules/quotearg-simple-tests: New file.
66773         * modules/quotearg (Depends-on): Add quotearg-simple.
66774         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66775         (Files): Add tests/test-quotearg.h.
66776         Reported by Paolo Bonzini.
66778 2010-06-03  Bruno Haible  <bruno@clisp.org>
66780         Reduce dependencies.
66781         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66783 2010-06-03  Bruno Haible  <bruno@clisp.org>
66785         time: Undefine more broken macros.
66786         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66787         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66788         Reported by Eric Blake.
66790 2010-06-03  Bruno Haible  <bruno@clisp.org>
66792         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66793         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66794         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66795         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66796         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66797         Reported by Ludovic Courtès <ludo@gnu.org>.
66799 2010-06-02  Eric Blake  <eblake@redhat.com>
66801         time: work with mingw + pthreads-win32 library
66802         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66803         if timespec is defined only in pthread.h.
66804         * modules/time (Makefile.am): Substitute it.
66805         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66806         <pthread.h>, when needed.
66807         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66808         from the library.
66810 2010-05-31  Bruno Haible  <bruno@clisp.org>
66812         Avoid expanding two macros in the wrong order.
66813         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66814         gl_LIBUNISTRING if it is defined.
66815         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66816         autoconf >= 2.64.
66817         Reported by Ludovic Courtès <ludo@gnu.org>.
66819 2010-05-27  Jim Meyering  <meyering@redhat.com>
66821         maint.mk: also prohibit "#undef" of always-defined symbols
66822         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66823         Allow more than one space before the symbol name.
66824         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66825         the regexp uses alternation.
66827 2010-05-26  Eric Blake  <eblake@redhat.com>
66829         maint.mk: avoid echo -e
66830         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66831         Convert all uses of echo -* to printf.
66832         Reported by Matthias Bolte.
66834 2010-05-25  Bruno Haible  <bruno@clisp.org>
66836         Update to GNU gettext 0.18, part 2.
66837         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66838         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66840 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66842         Add missing include in test-pwrite.c.
66843         * tests/test-pwrite.c: Include string.h, for strcmp.
66845 2010-05-24  Bruno Haible  <bruno@clisp.org>
66847         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66849 2010-05-24  Bruno Haible  <bruno@clisp.org>
66851         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66852         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66853         iconveh_error argument.
66854         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66855         U_STRCONV_TO_LOCALE.
66856         * lib/unistr/u16-strcoll.c: Likewise.
66857         * lib/unistr/u32-strcoll.c: Likewise.
66858         * modules/unistr/u8-strcoll (Depends-on): Add
66859         uniconv/u8-strconv-to-enc, localcharset. Remove
66860         uniconv/u8-strconv-to-locale.
66861         (configure.ac): Bump version number.
66862         * modules/unistr/u16-strcoll (Depends-on): Add
66863         uniconv/u16-strconv-to-enc, localcharset. Remove
66864         uniconv/u16-strconv-to-locale.
66865         (configure.ac): Bump version number.
66866         * modules/unistr/u32-strcoll (Depends-on): Add
66867         uniconv/u32-strconv-to-enc, localcharset. Remove
66868         uniconv/u32-strconv-to-locale.
66869         (configure.ac): Bump version number.
66871 2010-05-24  Bruno Haible  <bruno@clisp.org>
66873         Avoid a test failure on NetBSD 5.0.
66874         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66875         an iconv() bug.
66877 2010-05-24  Bruno Haible  <bruno@clisp.org>
66879         Adjust #include directive style.
66880         * modules/regex (Includes): Recommend to write <regex.h>.
66882 2010-05-24  Bruno Haible  <bruno@clisp.org>
66884         regex: Don't require alloca.
66885         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66886         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66887         only inside if (0).
66889 2010-05-23  Jim Meyering  <meyering@redhat.com>
66891         test-renameat.c: include <sys/stat.h>
66892         * tests/test-renameat.c: Include <sys/stat.h>; required for
66893         definition of S_IS* macros.
66895 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66897         Update maintainer documentation for 'relocatable-prog' module.
66898         * doc/relocatable-maint.texi: Update.
66899         Comments by Bruno Haible.
66901 2010-05-23  Bruno Haible  <bruno@clisp.org>
66903         git-merge-changelog: Enable --split-merged-entry by default.
66904         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66905         (usage): Don't mention this option any more.
66906         Reported by Ralf Wildenhues.
66908 2010-05-23  Jim Meyering  <meyering@redhat.com>
66910         test-pwrite: do not leave behind a test file named "out"
66911         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66912         The trivial-looking use of init.sh is really necessary.
66913         It ensures that the temporary file, "out", is created in
66914         a temporary directory, and removed upon termination.
66915         * tests/test-pwrite.sh: Re-add file.
66916         * modules/pwrite-tests: Reference it.
66918 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66920         Fix output redirection buglet in init.sh.
66921         * tests/init.sh: Fix redirection of stderr.
66923 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66925         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66927 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66929         * modules/valgrind-tests: New file.
66930         * m4/valgrind-tests.m4: New file.
66931         * doc/valgrind-tests.texi: New file.
66932         * doc/gnulib.texi (Running self-tests under valgrind): New
66933         section.
66935 2010-05-19  Bruno Haible  <bruno@clisp.org>
66937         Clean up dead code in recent commit.
66938         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66939         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66940         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66941         Suggested by Paolo Bonzini.
66943 2010-05-19  Bruno Haible  <bruno@clisp.org>
66945         Avoid valgrind error reports from libunistring.
66946         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66947         * modules/libunistring (Files): Add it.
66948         * modules/libunistring-optional (Files): Likewise.
66950 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66951             Bruno Haible  <bruno@clisp.org>
66953         New module 'libunistring-optional'.
66954         * modules/libunistring-optional: New file.
66955         * m4/libunistring-base.m4: New file.
66956         * m4/libunistring-optional.m4: New file.
66957         * lib/unicase.in.h: Renamed from lib/unicase.h.
66958         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66959         * lib/unictype.in.h: Renamed from lib/unictype.h.
66960         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66961         * lib/uniname.in.h: Renamed from lib/uniname.h.
66962         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66963         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66964         * lib/unistr.in.h: Renamed from lib/unistr.h.
66965         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66966         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66967         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66968         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66969         gl_LIBUNISTRING. If the library was found, determine the installed
66970         version and set LIBUNISTRING_VERSION.
66971         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66972         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66973         handle a configuration option --with-included-libunistring.
66974         * modules/libunistring (Files): Add m4/absolute-header.m4.
66975         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66976         Add m4/libunistring-base.m4.
66977         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66978         (Makefile.am): Build unicase.h from unicase.in.h.
66979         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66980         Add m4/libunistring-base.m4.
66981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66982         (Makefile.am): Build uniconv.h from uniconv.in.h.
66983         * modules/unictype/base (Files): Use unictype.in.h instead of
66984         unictype.h. Add m4/libunistring-base.m4.
66985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66986         (Makefile.am): Build unictype.h from unictype.in.h.
66987         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66988         Add m4/libunistring-base.m4.
66989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66990         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66991         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66992         Add m4/libunistring-base.m4.
66993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66994         (Makefile.am): Build uniname.h from uniname.in.h.
66995         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66996         Add m4/libunistring-base.m4.
66997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66998         (Makefile.am): Build uninorm.h from uninorm.in.h.
66999         * modules/unistdio/base (Files): Use unistdio.in.h instead of
67000         unistdio.h. Add m4/libunistring-base.m4.
67001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67002         (Makefile.am): Build unistdio.h from unistdio.in.h.
67003         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
67004         Add m4/libunistring-base.m4.
67005         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67006         (Makefile.am): Build unistr.h from unistr.in.h.
67007         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
67008         Add m4/libunistring-base.m4.
67009         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67010         (Makefile.am): Build unitypes.h from unitypes.in.h.
67011         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
67012         Add m4/libunistring-base.m4.
67013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67014         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
67015         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
67016         uniwidth.h. Add m4/libunistring-base.m4.
67017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67018         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
67019         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
67020         instead of augmenting lib_SOURCES.
67021         * modules/unicase/empty-suffix-context: Likewise.
67022         * modules/unicase/locale-language: Likewise.
67023         * modules/unicase/tolower: Likewise.
67024         * modules/unicase/totitle: Likewise.
67025         * modules/unicase/toupper: Likewise.
67026         * modules/unicase/u8-casecmp: Likewise.
67027         * modules/unicase/u8-casecoll: Likewise.
67028         * modules/unicase/u8-casefold: Likewise.
67029         * modules/unicase/u8-casexfrm: Likewise.
67030         * modules/unicase/u8-ct-casefold: Likewise.
67031         * modules/unicase/u8-ct-tolower: Likewise.
67032         * modules/unicase/u8-ct-totitle: Likewise.
67033         * modules/unicase/u8-ct-toupper: Likewise.
67034         * modules/unicase/u8-is-cased: Likewise.
67035         * modules/unicase/u8-is-casefolded: Likewise.
67036         * modules/unicase/u8-is-lowercase: Likewise.
67037         * modules/unicase/u8-is-titlecase: Likewise.
67038         * modules/unicase/u8-is-uppercase: Likewise.
67039         * modules/unicase/u8-prefix-context: Likewise.
67040         * modules/unicase/u8-suffix-context: Likewise.
67041         * modules/unicase/u8-tolower: Likewise.
67042         * modules/unicase/u8-totitle: Likewise.
67043         * modules/unicase/u8-toupper: Likewise.
67044         * modules/unicase/u16-casecmp: Likewise.
67045         * modules/unicase/u16-casecoll: Likewise.
67046         * modules/unicase/u16-casefold: Likewise.
67047         * modules/unicase/u16-casexfrm: Likewise.
67048         * modules/unicase/u16-ct-casefold: Likewise.
67049         * modules/unicase/u16-ct-tolower: Likewise.
67050         * modules/unicase/u16-ct-totitle: Likewise.
67051         * modules/unicase/u16-ct-toupper: Likewise.
67052         * modules/unicase/u16-is-cased: Likewise.
67053         * modules/unicase/u16-is-casefolded: Likewise.
67054         * modules/unicase/u16-is-lowercase: Likewise.
67055         * modules/unicase/u16-is-titlecase: Likewise.
67056         * modules/unicase/u16-is-uppercase: Likewise.
67057         * modules/unicase/u16-prefix-context: Likewise.
67058         * modules/unicase/u16-suffix-context: Likewise.
67059         * modules/unicase/u16-tolower: Likewise.
67060         * modules/unicase/u16-totitle: Likewise.
67061         * modules/unicase/u16-toupper: Likewise.
67062         * modules/unicase/u32-casecmp: Likewise.
67063         * modules/unicase/u32-casecoll: Likewise.
67064         * modules/unicase/u32-casefold: Likewise.
67065         * modules/unicase/u32-casexfrm: Likewise.
67066         * modules/unicase/u32-ct-casefold: Likewise.
67067         * modules/unicase/u32-ct-tolower: Likewise.
67068         * modules/unicase/u32-ct-totitle: Likewise.
67069         * modules/unicase/u32-ct-toupper: Likewise.
67070         * modules/unicase/u32-is-cased: Likewise.
67071         * modules/unicase/u32-is-casefolded: Likewise.
67072         * modules/unicase/u32-is-lowercase: Likewise.
67073         * modules/unicase/u32-is-titlecase: Likewise.
67074         * modules/unicase/u32-is-uppercase: Likewise.
67075         * modules/unicase/u32-prefix-context: Likewise.
67076         * modules/unicase/u32-suffix-context: Likewise.
67077         * modules/unicase/u32-tolower: Likewise.
67078         * modules/unicase/u32-totitle: Likewise.
67079         * modules/unicase/u32-toupper: Likewise.
67080         * modules/unicase/ulc-casecmp: Likewise.
67081         * modules/unicase/ulc-casecoll: Likewise.
67082         * modules/unicase/ulc-casexfrm: Likewise.
67083         * modules/uniconv/u8-conv-from-enc: Likewise.
67084         * modules/uniconv/u8-conv-to-enc: Likewise.
67085         * modules/uniconv/u8-strconv-from-enc: Likewise.
67086         * modules/uniconv/u8-strconv-from-locale: Likewise.
67087         * modules/uniconv/u8-strconv-to-enc: Likewise.
67088         * modules/uniconv/u8-strconv-to-locale: Likewise.
67089         * modules/uniconv/u16-conv-from-enc: Likewise.
67090         * modules/uniconv/u16-conv-to-enc: Likewise.
67091         * modules/uniconv/u16-strconv-from-enc: Likewise.
67092         * modules/uniconv/u16-strconv-from-locale: Likewise.
67093         * modules/uniconv/u16-strconv-to-enc: Likewise.
67094         * modules/uniconv/u16-strconv-to-locale: Likewise.
67095         * modules/uniconv/u32-conv-from-enc: Likewise.
67096         * modules/uniconv/u32-conv-to-enc: Likewise.
67097         * modules/uniconv/u32-strconv-from-enc: Likewise.
67098         * modules/uniconv/u32-strconv-from-locale: Likewise.
67099         * modules/uniconv/u32-strconv-to-enc: Likewise.
67100         * modules/uniconv/u32-strconv-to-locale: Likewise.
67101         * modules/unictype/bidicategory-byname: Likewise.
67102         * modules/unictype/bidicategory-name: Likewise.
67103         * modules/unictype/bidicategory-of: Likewise.
67104         * modules/unictype/bidicategory-test: Likewise.
67105         * modules/unictype/block-list: Likewise.
67106         * modules/unictype/block-test: Likewise.
67107         * modules/unictype/category-C: Likewise.
67108         * modules/unictype/category-Cc: Likewise.
67109         * modules/unictype/category-Cf: Likewise.
67110         * modules/unictype/category-Cn: Likewise.
67111         * modules/unictype/category-Co: Likewise.
67112         * modules/unictype/category-Cs: Likewise.
67113         * modules/unictype/category-L: Likewise.
67114         * modules/unictype/category-Ll: Likewise.
67115         * modules/unictype/category-Lm: Likewise.
67116         * modules/unictype/category-Lo: Likewise.
67117         * modules/unictype/category-Lt: Likewise.
67118         * modules/unictype/category-Lu: Likewise.
67119         * modules/unictype/category-M: Likewise.
67120         * modules/unictype/category-Mc: Likewise.
67121         * modules/unictype/category-Me: Likewise.
67122         * modules/unictype/category-Mn: Likewise.
67123         * modules/unictype/category-N: Likewise.
67124         * modules/unictype/category-Nd: Likewise.
67125         * modules/unictype/category-Nl: Likewise.
67126         * modules/unictype/category-No: Likewise.
67127         * modules/unictype/category-P: Likewise.
67128         * modules/unictype/category-Pc: Likewise.
67129         * modules/unictype/category-Pd: Likewise.
67130         * modules/unictype/category-Pe: Likewise.
67131         * modules/unictype/category-Pf: Likewise.
67132         * modules/unictype/category-Pi: Likewise.
67133         * modules/unictype/category-Po: Likewise.
67134         * modules/unictype/category-Ps: Likewise.
67135         * modules/unictype/category-S: Likewise.
67136         * modules/unictype/category-Sc: Likewise.
67137         * modules/unictype/category-Sk: Likewise.
67138         * modules/unictype/category-Sm: Likewise.
67139         * modules/unictype/category-So: Likewise.
67140         * modules/unictype/category-Z: Likewise.
67141         * modules/unictype/category-Zl: Likewise.
67142         * modules/unictype/category-Zp: Likewise.
67143         * modules/unictype/category-Zs: Likewise.
67144         * modules/unictype/category-and: Likewise.
67145         * modules/unictype/category-and-not: Likewise.
67146         * modules/unictype/category-byname: Likewise.
67147         * modules/unictype/category-name: Likewise.
67148         * modules/unictype/category-none: Likewise.
67149         * modules/unictype/category-of: Likewise.
67150         * modules/unictype/category-or: Likewise.
67151         * modules/unictype/category-test: Likewise.
67152         * modules/unictype/combining-class: Likewise.
67153         * modules/unictype/ctype-alnum: Likewise.
67154         * modules/unictype/ctype-alpha: Likewise.
67155         * modules/unictype/ctype-blank: Likewise.
67156         * modules/unictype/ctype-cntrl: Likewise.
67157         * modules/unictype/ctype-digit: Likewise.
67158         * modules/unictype/ctype-graph: Likewise.
67159         * modules/unictype/ctype-lower: Likewise.
67160         * modules/unictype/ctype-print: Likewise.
67161         * modules/unictype/ctype-punct: Likewise.
67162         * modules/unictype/ctype-space: Likewise.
67163         * modules/unictype/ctype-upper: Likewise.
67164         * modules/unictype/ctype-xdigit: Likewise.
67165         * modules/unictype/decimal-digit: Likewise.
67166         * modules/unictype/digit: Likewise.
67167         * modules/unictype/mirror: Likewise.
67168         * modules/unictype/numeric: Likewise.
67169         * modules/unictype/property-alphabetic: Likewise.
67170         * modules/unictype/property-ascii-hex-digit: Likewise.
67171         * modules/unictype/property-bidi-arabic-digit: Likewise.
67172         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
67173         * modules/unictype/property-bidi-block-separator: Likewise.
67174         * modules/unictype/property-bidi-boundary-neutral: Likewise.
67175         * modules/unictype/property-bidi-common-separator: Likewise.
67176         * modules/unictype/property-bidi-control: Likewise.
67177         * modules/unictype/property-bidi-embedding-or-override: Likewise.
67178         * modules/unictype/property-bidi-eur-num-separator: Likewise.
67179         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
67180         * modules/unictype/property-bidi-european-digit: Likewise.
67181         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
67182         * modules/unictype/property-bidi-left-to-right: Likewise.
67183         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
67184         * modules/unictype/property-bidi-other-neutral: Likewise.
67185         * modules/unictype/property-bidi-pdf: Likewise.
67186         * modules/unictype/property-bidi-segment-separator: Likewise.
67187         * modules/unictype/property-bidi-whitespace: Likewise.
67188         * modules/unictype/property-byname: Likewise.
67189         * modules/unictype/property-combining: Likewise.
67190         * modules/unictype/property-composite: Likewise.
67191         * modules/unictype/property-currency-symbol: Likewise.
67192         * modules/unictype/property-dash: Likewise.
67193         * modules/unictype/property-decimal-digit: Likewise.
67194         * modules/unictype/property-default-ignorable-code-point: Likewise.
67195         * modules/unictype/property-deprecated: Likewise.
67196         * modules/unictype/property-diacritic: Likewise.
67197         * modules/unictype/property-extender: Likewise.
67198         * modules/unictype/property-format-control: Likewise.
67199         * modules/unictype/property-grapheme-base: Likewise.
67200         * modules/unictype/property-grapheme-extend: Likewise.
67201         * modules/unictype/property-grapheme-link: Likewise.
67202         * modules/unictype/property-hex-digit: Likewise.
67203         * modules/unictype/property-hyphen: Likewise.
67204         * modules/unictype/property-id-continue: Likewise.
67205         * modules/unictype/property-id-start: Likewise.
67206         * modules/unictype/property-ideographic: Likewise.
67207         * modules/unictype/property-ids-binary-operator: Likewise.
67208         * modules/unictype/property-ids-trinary-operator: Likewise.
67209         * modules/unictype/property-ignorable-control: Likewise.
67210         * modules/unictype/property-iso-control: Likewise.
67211         * modules/unictype/property-join-control: Likewise.
67212         * modules/unictype/property-left-of-pair: Likewise.
67213         * modules/unictype/property-line-separator: Likewise.
67214         * modules/unictype/property-logical-order-exception: Likewise.
67215         * modules/unictype/property-lowercase: Likewise.
67216         * modules/unictype/property-math: Likewise.
67217         * modules/unictype/property-non-break: Likewise.
67218         * modules/unictype/property-not-a-character: Likewise.
67219         * modules/unictype/property-numeric: Likewise.
67220         * modules/unictype/property-other-alphabetic: Likewise.
67221         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
67222         * modules/unictype/property-other-grapheme-extend: Likewise.
67223         * modules/unictype/property-other-id-continue: Likewise.
67224         * modules/unictype/property-other-id-start: Likewise.
67225         * modules/unictype/property-other-lowercase: Likewise.
67226         * modules/unictype/property-other-math: Likewise.
67227         * modules/unictype/property-other-uppercase: Likewise.
67228         * modules/unictype/property-paired-punctuation: Likewise.
67229         * modules/unictype/property-paragraph-separator: Likewise.
67230         * modules/unictype/property-pattern-syntax: Likewise.
67231         * modules/unictype/property-pattern-white-space: Likewise.
67232         * modules/unictype/property-private-use: Likewise.
67233         * modules/unictype/property-punctuation: Likewise.
67234         * modules/unictype/property-quotation-mark: Likewise.
67235         * modules/unictype/property-radical: Likewise.
67236         * modules/unictype/property-sentence-terminal: Likewise.
67237         * modules/unictype/property-soft-dotted: Likewise.
67238         * modules/unictype/property-space: Likewise.
67239         * modules/unictype/property-terminal-punctuation: Likewise.
67240         * modules/unictype/property-test: Likewise.
67241         * modules/unictype/property-titlecase: Likewise.
67242         * modules/unictype/property-unassigned-code-value: Likewise.
67243         * modules/unictype/property-unified-ideograph: Likewise.
67244         * modules/unictype/property-uppercase: Likewise.
67245         * modules/unictype/property-variation-selector: Likewise.
67246         * modules/unictype/property-white-space: Likewise.
67247         * modules/unictype/property-xid-continue: Likewise.
67248         * modules/unictype/property-xid-start: Likewise.
67249         * modules/unictype/property-zero-width: Likewise.
67250         * modules/unictype/scripts: Likewise.
67251         * modules/unictype/syntax-c-ident: Likewise.
67252         * modules/unictype/syntax-c-whitespace: Likewise.
67253         * modules/unictype/syntax-java-ident: Likewise.
67254         * modules/unictype/syntax-java-whitespace: Likewise.
67255         * modules/unilbrk/u8-possible-linebreaks: Likewise.
67256         * modules/unilbrk/u8-width-linebreaks: Likewise.
67257         * modules/unilbrk/u16-possible-linebreaks: Likewise.
67258         * modules/unilbrk/u16-width-linebreaks: Likewise.
67259         * modules/unilbrk/u32-possible-linebreaks: Likewise.
67260         * modules/unilbrk/u32-width-linebreaks: Likewise.
67261         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
67262         * modules/unilbrk/ulc-width-linebreaks: Likewise.
67263         * modules/uniname/uniname: Likewise.
67264         * modules/uninorm/canonical-decomposition: Likewise.
67265         * modules/uninorm/composition: Likewise.
67266         * modules/uninorm/decomposing-form: Likewise.
67267         * modules/uninorm/decomposition: Likewise.
67268         * modules/uninorm/filter: Likewise.
67269         * modules/uninorm/nfc: Likewise.
67270         * modules/uninorm/nfd: Likewise.
67271         * modules/uninorm/nfkc: Likewise.
67272         * modules/uninorm/nfkd: Likewise.
67273         * modules/uninorm/u8-normalize: Likewise.
67274         * modules/uninorm/u8-normcmp: Likewise.
67275         * modules/uninorm/u8-normcoll: Likewise.
67276         * modules/uninorm/u8-normxfrm: Likewise.
67277         * modules/uninorm/u16-normalize: Likewise.
67278         * modules/uninorm/u16-normcmp: Likewise.
67279         * modules/uninorm/u16-normcoll: Likewise.
67280         * modules/uninorm/u16-normxfrm: Likewise.
67281         * modules/uninorm/u32-normalize: Likewise.
67282         * modules/uninorm/u32-normcmp: Likewise.
67283         * modules/uninorm/u32-normcoll: Likewise.
67284         * modules/uninorm/u32-normxfrm: Likewise.
67285         * modules/unistdio/u8-asnprintf: Likewise.
67286         * modules/unistdio/u8-asprintf: Likewise.
67287         * modules/unistdio/u8-snprintf: Likewise.
67288         * modules/unistdio/u8-sprintf: Likewise.
67289         * modules/unistdio/u8-u8-asnprintf: Likewise.
67290         * modules/unistdio/u8-u8-asprintf: Likewise.
67291         * modules/unistdio/u8-u8-snprintf: Likewise.
67292         * modules/unistdio/u8-u8-sprintf: Likewise.
67293         * modules/unistdio/u8-u8-vasnprintf: Likewise.
67294         * modules/unistdio/u8-u8-vasprintf: Likewise.
67295         * modules/unistdio/u8-u8-vsnprintf: Likewise.
67296         * modules/unistdio/u8-u8-vsprintf: Likewise.
67297         * modules/unistdio/u8-vasnprintf: Likewise.
67298         * modules/unistdio/u8-vasprintf: Likewise.
67299         * modules/unistdio/u8-vsnprintf: Likewise.
67300         * modules/unistdio/u8-vsprintf: Likewise.
67301         * modules/unistdio/u16-asnprintf: Likewise.
67302         * modules/unistdio/u16-asprintf: Likewise.
67303         * modules/unistdio/u16-snprintf: Likewise.
67304         * modules/unistdio/u16-sprintf: Likewise.
67305         * modules/unistdio/u16-u16-asnprintf: Likewise.
67306         * modules/unistdio/u16-u16-asprintf: Likewise.
67307         * modules/unistdio/u16-u16-snprintf: Likewise.
67308         * modules/unistdio/u16-u16-sprintf: Likewise.
67309         * modules/unistdio/u16-u16-vasnprintf: Likewise.
67310         * modules/unistdio/u16-u16-vasprintf: Likewise.
67311         * modules/unistdio/u16-u16-vsnprintf: Likewise.
67312         * modules/unistdio/u16-u16-vsprintf: Likewise.
67313         * modules/unistdio/u16-vasnprintf: Likewise.
67314         * modules/unistdio/u16-vasprintf: Likewise.
67315         * modules/unistdio/u16-vsnprintf: Likewise.
67316         * modules/unistdio/u16-vsprintf: Likewise.
67317         * modules/unistdio/u32-asnprintf: Likewise.
67318         * modules/unistdio/u32-asprintf: Likewise.
67319         * modules/unistdio/u32-snprintf: Likewise.
67320         * modules/unistdio/u32-sprintf: Likewise.
67321         * modules/unistdio/u32-u32-asnprintf: Likewise.
67322         * modules/unistdio/u32-u32-asprintf: Likewise.
67323         * modules/unistdio/u32-u32-snprintf: Likewise.
67324         * modules/unistdio/u32-u32-sprintf: Likewise.
67325         * modules/unistdio/u32-u32-vasnprintf: Likewise.
67326         * modules/unistdio/u32-u32-vasprintf: Likewise.
67327         * modules/unistdio/u32-u32-vsnprintf: Likewise.
67328         * modules/unistdio/u32-u32-vsprintf: Likewise.
67329         * modules/unistdio/u32-vasnprintf: Likewise.
67330         * modules/unistdio/u32-vasprintf: Likewise.
67331         * modules/unistdio/u32-vsnprintf: Likewise.
67332         * modules/unistdio/u32-vsprintf: Likewise.
67333         * modules/unistdio/ulc-asnprintf: Likewise.
67334         * modules/unistdio/ulc-asprintf: Likewise.
67335         * modules/unistdio/ulc-fprintf: Likewise.
67336         * modules/unistdio/ulc-snprintf: Likewise.
67337         * modules/unistdio/ulc-sprintf: Likewise.
67338         * modules/unistdio/ulc-vasnprintf: Likewise.
67339         * modules/unistdio/ulc-vasprintf: Likewise.
67340         * modules/unistdio/ulc-vfprintf: Likewise.
67341         * modules/unistdio/ulc-vsnprintf: Likewise.
67342         * modules/unistdio/ulc-vsprintf: Likewise.
67343         * modules/unistr/u8-check: Likewise.
67344         * modules/unistr/u8-chr: Likewise.
67345         * modules/unistr/u8-cmp: Likewise.
67346         * modules/unistr/u8-cmp2: Likewise.
67347         * modules/unistr/u8-cpy: Likewise.
67348         * modules/unistr/u8-cpy-alloc: Likewise.
67349         * modules/unistr/u8-endswith: Likewise.
67350         * modules/unistr/u8-mblen: Likewise.
67351         * modules/unistr/u8-mbsnlen: Likewise.
67352         * modules/unistr/u8-mbtouc: Likewise.
67353         * modules/unistr/u8-mbtouc-unsafe: Likewise.
67354         * modules/unistr/u8-mbtoucr: Likewise.
67355         * modules/unistr/u8-move: Likewise.
67356         * modules/unistr/u8-next: Likewise.
67357         * modules/unistr/u8-prev: Likewise.
67358         * modules/unistr/u8-set: Likewise.
67359         * modules/unistr/u8-startswith: Likewise.
67360         * modules/unistr/u8-stpcpy: Likewise.
67361         * modules/unistr/u8-stpncpy: Likewise.
67362         * modules/unistr/u8-strcat: Likewise.
67363         * modules/unistr/u8-strchr: Likewise.
67364         * modules/unistr/u8-strcmp: Likewise.
67365         * modules/unistr/u8-strcoll: Likewise.
67366         * modules/unistr/u8-strcpy: Likewise.
67367         * modules/unistr/u8-strcspn: Likewise.
67368         * modules/unistr/u8-strdup: Likewise.
67369         * modules/unistr/u8-strlen: Likewise.
67370         * modules/unistr/u8-strmblen: Likewise.
67371         * modules/unistr/u8-strmbtouc: Likewise.
67372         * modules/unistr/u8-strncat: Likewise.
67373         * modules/unistr/u8-strncmp: Likewise.
67374         * modules/unistr/u8-strncpy: Likewise.
67375         * modules/unistr/u8-strnlen: Likewise.
67376         * modules/unistr/u8-strpbrk: Likewise.
67377         * modules/unistr/u8-strrchr: Likewise.
67378         * modules/unistr/u8-strspn: Likewise.
67379         * modules/unistr/u8-strstr: Likewise.
67380         * modules/unistr/u8-strtok: Likewise.
67381         * modules/unistr/u8-to-u16: Likewise.
67382         * modules/unistr/u8-to-u32: Likewise.
67383         * modules/unistr/u8-uctomb: Likewise.
67384         * modules/unistr/u16-check: Likewise.
67385         * modules/unistr/u16-chr: Likewise.
67386         * modules/unistr/u16-cmp: Likewise.
67387         * modules/unistr/u16-cmp2: Likewise.
67388         * modules/unistr/u16-cpy: Likewise.
67389         * modules/unistr/u16-cpy-alloc: Likewise.
67390         * modules/unistr/u16-endswith: Likewise.
67391         * modules/unistr/u16-mblen: Likewise.
67392         * modules/unistr/u16-mbsnlen: Likewise.
67393         * modules/unistr/u16-mbtouc: Likewise.
67394         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67395         * modules/unistr/u16-mbtoucr: Likewise.
67396         * modules/unistr/u16-move: Likewise.
67397         * modules/unistr/u16-next: Likewise.
67398         * modules/unistr/u16-prev: Likewise.
67399         * modules/unistr/u16-set: Likewise.
67400         * modules/unistr/u16-startswith: Likewise.
67401         * modules/unistr/u16-stpcpy: Likewise.
67402         * modules/unistr/u16-stpncpy: Likewise.
67403         * modules/unistr/u16-strcat: Likewise.
67404         * modules/unistr/u16-strchr: Likewise.
67405         * modules/unistr/u16-strcmp: Likewise.
67406         * modules/unistr/u16-strcoll: Likewise.
67407         * modules/unistr/u16-strcpy: Likewise.
67408         * modules/unistr/u16-strcspn: Likewise.
67409         * modules/unistr/u16-strdup: Likewise.
67410         * modules/unistr/u16-strlen: Likewise.
67411         * modules/unistr/u16-strmblen: Likewise.
67412         * modules/unistr/u16-strmbtouc: Likewise.
67413         * modules/unistr/u16-strncat: Likewise.
67414         * modules/unistr/u16-strncmp: Likewise.
67415         * modules/unistr/u16-strncpy: Likewise.
67416         * modules/unistr/u16-strnlen: Likewise.
67417         * modules/unistr/u16-strpbrk: Likewise.
67418         * modules/unistr/u16-strrchr: Likewise.
67419         * modules/unistr/u16-strspn: Likewise.
67420         * modules/unistr/u16-strstr: Likewise.
67421         * modules/unistr/u16-strtok: Likewise.
67422         * modules/unistr/u16-to-u32: Likewise.
67423         * modules/unistr/u16-to-u8: Likewise.
67424         * modules/unistr/u16-uctomb: Likewise.
67425         * modules/unistr/u32-check: Likewise.
67426         * modules/unistr/u32-chr: Likewise.
67427         * modules/unistr/u32-cmp: Likewise.
67428         * modules/unistr/u32-cmp2: Likewise.
67429         * modules/unistr/u32-cpy: Likewise.
67430         * modules/unistr/u32-cpy-alloc: Likewise.
67431         * modules/unistr/u32-endswith: Likewise.
67432         * modules/unistr/u32-mblen: Likewise.
67433         * modules/unistr/u32-mbsnlen: Likewise.
67434         * modules/unistr/u32-mbtouc: Likewise.
67435         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67436         * modules/unistr/u32-mbtoucr: Likewise.
67437         * modules/unistr/u32-move: Likewise.
67438         * modules/unistr/u32-next: Likewise.
67439         * modules/unistr/u32-prev: Likewise.
67440         * modules/unistr/u32-set: Likewise.
67441         * modules/unistr/u32-startswith: Likewise.
67442         * modules/unistr/u32-stpcpy: Likewise.
67443         * modules/unistr/u32-stpncpy: Likewise.
67444         * modules/unistr/u32-strcat: Likewise.
67445         * modules/unistr/u32-strchr: Likewise.
67446         * modules/unistr/u32-strcmp: Likewise.
67447         * modules/unistr/u32-strcoll: Likewise.
67448         * modules/unistr/u32-strcpy: Likewise.
67449         * modules/unistr/u32-strcspn: Likewise.
67450         * modules/unistr/u32-strdup: Likewise.
67451         * modules/unistr/u32-strlen: Likewise.
67452         * modules/unistr/u32-strmblen: Likewise.
67453         * modules/unistr/u32-strmbtouc: Likewise.
67454         * modules/unistr/u32-strncat: Likewise.
67455         * modules/unistr/u32-strncmp: Likewise.
67456         * modules/unistr/u32-strncpy: Likewise.
67457         * modules/unistr/u32-strnlen: Likewise.
67458         * modules/unistr/u32-strpbrk: Likewise.
67459         * modules/unistr/u32-strrchr: Likewise.
67460         * modules/unistr/u32-strspn: Likewise.
67461         * modules/unistr/u32-strstr: Likewise.
67462         * modules/unistr/u32-strtok: Likewise.
67463         * modules/unistr/u32-to-u16: Likewise.
67464         * modules/unistr/u32-to-u8: Likewise.
67465         * modules/unistr/u32-uctomb: Likewise.
67466         * modules/uniwbrk/u8-wordbreaks: Likewise.
67467         * modules/uniwbrk/u16-wordbreaks: Likewise.
67468         * modules/uniwbrk/u32-wordbreaks: Likewise.
67469         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67470         * modules/uniwbrk/wordbreak-property: Likewise.
67471         * modules/uniwidth/u8-strwidth: Likewise.
67472         * modules/uniwidth/u8-width: Likewise.
67473         * modules/uniwidth/u16-strwidth: Likewise.
67474         * modules/uniwidth/u16-width: Likewise.
67475         * modules/uniwidth/u32-strwidth: Likewise.
67476         * modules/uniwidth/u32-width: Likewise.
67477         * modules/uniwidth/width: Likewise.
67478         * modules/unicase/cased-tests (Makefile.am): Link all test programs
67479         with $(LIBUNISTRING).
67480         * modules/unicase/ignorable-tests: Likewise.
67481         * modules/unicase/locale-language-tests: Likewise.
67482         * modules/unicase/tolower-tests: Likewise.
67483         * modules/unicase/totitle-tests: Likewise.
67484         * modules/unicase/toupper-tests: Likewise.
67485         * modules/unicase/u8-casecmp-tests: Likewise.
67486         * modules/unicase/u8-casecoll-tests: Likewise.
67487         * modules/unicase/u8-casefold-tests: Likewise.
67488         * modules/unicase/u8-is-cased-tests: Likewise.
67489         * modules/unicase/u8-is-casefolded-tests: Likewise.
67490         * modules/unicase/u8-is-lowercase-tests: Likewise.
67491         * modules/unicase/u8-is-titlecase-tests: Likewise.
67492         * modules/unicase/u8-is-uppercase-tests: Likewise.
67493         * modules/unicase/u8-tolower-tests: Likewise.
67494         * modules/unicase/u8-totitle-tests: Likewise.
67495         * modules/unicase/u8-toupper-tests: Likewise.
67496         * modules/unicase/u16-casecmp-tests: Likewise.
67497         * modules/unicase/u16-casecoll-tests: Likewise.
67498         * modules/unicase/u16-casefold-tests: Likewise.
67499         * modules/unicase/u16-is-cased-tests: Likewise.
67500         * modules/unicase/u16-is-casefolded-tests: Likewise.
67501         * modules/unicase/u16-is-lowercase-tests: Likewise.
67502         * modules/unicase/u16-is-titlecase-tests: Likewise.
67503         * modules/unicase/u16-is-uppercase-tests: Likewise.
67504         * modules/unicase/u16-tolower-tests: Likewise.
67505         * modules/unicase/u16-totitle-tests: Likewise.
67506         * modules/unicase/u16-toupper-tests: Likewise.
67507         * modules/unicase/u32-casecmp-tests: Likewise.
67508         * modules/unicase/u32-casecoll-tests: Likewise.
67509         * modules/unicase/u32-casefold-tests: Likewise.
67510         * modules/unicase/u32-is-cased-tests: Likewise.
67511         * modules/unicase/u32-is-casefolded-tests: Likewise.
67512         * modules/unicase/u32-is-lowercase-tests: Likewise.
67513         * modules/unicase/u32-is-titlecase-tests: Likewise.
67514         * modules/unicase/u32-is-uppercase-tests: Likewise.
67515         * modules/unicase/u32-tolower-tests: Likewise.
67516         * modules/unicase/u32-totitle-tests: Likewise.
67517         * modules/unicase/u32-toupper-tests: Likewise.
67518         * modules/unicase/ulc-casecmp-tests: Likewise.
67519         * modules/unicase/ulc-casecoll-tests: Likewise.
67520         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
67521         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
67522         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
67523         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
67524         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
67525         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
67526         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
67527         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
67528         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
67529         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
67530         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
67531         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
67532         * modules/unictype/bidicategory-byname-tests: Likewise.
67533         * modules/unictype/bidicategory-name-tests: Likewise.
67534         * modules/unictype/bidicategory-of-tests: Likewise.
67535         * modules/unictype/bidicategory-test-tests: Likewise.
67536         * modules/unictype/block-list-tests: Likewise.
67537         * modules/unictype/block-of-tests: Likewise.
67538         * modules/unictype/block-test-tests: Likewise.
67539         * modules/unictype/category-C-tests: Likewise.
67540         * modules/unictype/category-Cc-tests: Likewise.
67541         * modules/unictype/category-Cf-tests: Likewise.
67542         * modules/unictype/category-Cn-tests: Likewise.
67543         * modules/unictype/category-Co-tests: Likewise.
67544         * modules/unictype/category-Cs-tests: Likewise.
67545         * modules/unictype/category-L-tests: Likewise.
67546         * modules/unictype/category-Ll-tests: Likewise.
67547         * modules/unictype/category-Lm-tests: Likewise.
67548         * modules/unictype/category-Lo-tests: Likewise.
67549         * modules/unictype/category-Lt-tests: Likewise.
67550         * modules/unictype/category-Lu-tests: Likewise.
67551         * modules/unictype/category-M-tests: Likewise.
67552         * modules/unictype/category-Mc-tests: Likewise.
67553         * modules/unictype/category-Me-tests: Likewise.
67554         * modules/unictype/category-Mn-tests: Likewise.
67555         * modules/unictype/category-N-tests: Likewise.
67556         * modules/unictype/category-Nd-tests: Likewise.
67557         * modules/unictype/category-Nl-tests: Likewise.
67558         * modules/unictype/category-No-tests: Likewise.
67559         * modules/unictype/category-P-tests: Likewise.
67560         * modules/unictype/category-Pc-tests: Likewise.
67561         * modules/unictype/category-Pd-tests: Likewise.
67562         * modules/unictype/category-Pe-tests: Likewise.
67563         * modules/unictype/category-Pf-tests: Likewise.
67564         * modules/unictype/category-Pi-tests: Likewise.
67565         * modules/unictype/category-Po-tests: Likewise.
67566         * modules/unictype/category-Ps-tests: Likewise.
67567         * modules/unictype/category-S-tests: Likewise.
67568         * modules/unictype/category-Sc-tests: Likewise.
67569         * modules/unictype/category-Sk-tests: Likewise.
67570         * modules/unictype/category-Sm-tests: Likewise.
67571         * modules/unictype/category-So-tests: Likewise.
67572         * modules/unictype/category-Z-tests: Likewise.
67573         * modules/unictype/category-Zl-tests: Likewise.
67574         * modules/unictype/category-Zp-tests: Likewise.
67575         * modules/unictype/category-Zs-tests: Likewise.
67576         * modules/unictype/category-and-not-tests: Likewise.
67577         * modules/unictype/category-and-tests: Likewise.
67578         * modules/unictype/category-byname-tests: Likewise.
67579         * modules/unictype/category-name-tests: Likewise.
67580         * modules/unictype/category-none-tests: Likewise.
67581         * modules/unictype/category-of-tests: Likewise.
67582         * modules/unictype/category-or-tests: Likewise.
67583         * modules/unictype/category-test-withtable-tests: Likewise.
67584         * modules/unictype/combining-class-tests: Likewise.
67585         * modules/unictype/ctype-alnum-tests: Likewise.
67586         * modules/unictype/ctype-alpha-tests: Likewise.
67587         * modules/unictype/ctype-blank-tests: Likewise.
67588         * modules/unictype/ctype-cntrl-tests: Likewise.
67589         * modules/unictype/ctype-digit-tests: Likewise.
67590         * modules/unictype/ctype-graph-tests: Likewise.
67591         * modules/unictype/ctype-lower-tests: Likewise.
67592         * modules/unictype/ctype-print-tests: Likewise.
67593         * modules/unictype/ctype-punct-tests: Likewise.
67594         * modules/unictype/ctype-space-tests: Likewise.
67595         * modules/unictype/ctype-upper-tests: Likewise.
67596         * modules/unictype/ctype-xdigit-tests: Likewise.
67597         * modules/unictype/decimal-digit-tests: Likewise.
67598         * modules/unictype/digit-tests: Likewise.
67599         * modules/unictype/mirror-tests: Likewise.
67600         * modules/unictype/numeric-tests: Likewise.
67601         * modules/unictype/property-alphabetic-tests: Likewise.
67602         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
67603         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
67604         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
67605         * modules/unictype/property-bidi-block-separator-tests: Likewise.
67606         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
67607         * modules/unictype/property-bidi-common-separator-tests: Likewise.
67608         * modules/unictype/property-bidi-control-tests: Likewise.
67609         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67610         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67611         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67612         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67613         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67614         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67615         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67616         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
67617         * modules/unictype/property-bidi-pdf-tests: Likewise.
67618         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
67619         * modules/unictype/property-bidi-whitespace-tests: Likewise.
67620         * modules/unictype/property-byname-tests: Likewise.
67621         * modules/unictype/property-combining-tests: Likewise.
67622         * modules/unictype/property-composite-tests: Likewise.
67623         * modules/unictype/property-currency-symbol-tests: Likewise.
67624         * modules/unictype/property-dash-tests: Likewise.
67625         * modules/unictype/property-decimal-digit-tests: Likewise.
67626         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
67627         * modules/unictype/property-deprecated-tests: Likewise.
67628         * modules/unictype/property-diacritic-tests: Likewise.
67629         * modules/unictype/property-extender-tests: Likewise.
67630         * modules/unictype/property-format-control-tests: Likewise.
67631         * modules/unictype/property-grapheme-base-tests: Likewise.
67632         * modules/unictype/property-grapheme-extend-tests: Likewise.
67633         * modules/unictype/property-grapheme-link-tests: Likewise.
67634         * modules/unictype/property-hex-digit-tests: Likewise.
67635         * modules/unictype/property-hyphen-tests: Likewise.
67636         * modules/unictype/property-id-continue-tests: Likewise.
67637         * modules/unictype/property-id-start-tests: Likewise.
67638         * modules/unictype/property-ideographic-tests: Likewise.
67639         * modules/unictype/property-ids-binary-operator-tests: Likewise.
67640         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
67641         * modules/unictype/property-ignorable-control-tests: Likewise.
67642         * modules/unictype/property-iso-control-tests: Likewise.
67643         * modules/unictype/property-join-control-tests: Likewise.
67644         * modules/unictype/property-left-of-pair-tests: Likewise.
67645         * modules/unictype/property-line-separator-tests: Likewise.
67646         * modules/unictype/property-logical-order-exception-tests: Likewise.
67647         * modules/unictype/property-lowercase-tests: Likewise.
67648         * modules/unictype/property-math-tests: Likewise.
67649         * modules/unictype/property-non-break-tests: Likewise.
67650         * modules/unictype/property-not-a-character-tests: Likewise.
67651         * modules/unictype/property-numeric-tests: Likewise.
67652         * modules/unictype/property-other-alphabetic-tests: Likewise.
67653         * modules/unictype/property-other-default-ignorable-code-point-tests:
67654         Likewise.
67655         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
67656         * modules/unictype/property-other-id-continue-tests: Likewise.
67657         * modules/unictype/property-other-id-start-tests: Likewise.
67658         * modules/unictype/property-other-lowercase-tests: Likewise.
67659         * modules/unictype/property-other-math-tests: Likewise.
67660         * modules/unictype/property-other-uppercase-tests: Likewise.
67661         * modules/unictype/property-paired-punctuation-tests: Likewise.
67662         * modules/unictype/property-paragraph-separator-tests: Likewise.
67663         * modules/unictype/property-pattern-syntax-tests: Likewise.
67664         * modules/unictype/property-pattern-white-space-tests: Likewise.
67665         * modules/unictype/property-private-use-tests: Likewise.
67666         * modules/unictype/property-punctuation-tests: Likewise.
67667         * modules/unictype/property-quotation-mark-tests: Likewise.
67668         * modules/unictype/property-radical-tests: Likewise.
67669         * modules/unictype/property-sentence-terminal-tests: Likewise.
67670         * modules/unictype/property-soft-dotted-tests: Likewise.
67671         * modules/unictype/property-space-tests: Likewise.
67672         * modules/unictype/property-terminal-punctuation-tests: Likewise.
67673         * modules/unictype/property-test-tests: Likewise.
67674         * modules/unictype/property-titlecase-tests: Likewise.
67675         * modules/unictype/property-unassigned-code-value-tests: Likewise.
67676         * modules/unictype/property-unified-ideograph-tests: Likewise.
67677         * modules/unictype/property-uppercase-tests: Likewise.
67678         * modules/unictype/property-variation-selector-tests: Likewise.
67679         * modules/unictype/property-white-space-tests: Likewise.
67680         * modules/unictype/property-xid-continue-tests: Likewise.
67681         * modules/unictype/property-xid-start-tests: Likewise.
67682         * modules/unictype/property-zero-width-tests: Likewise.
67683         * modules/unictype/scripts-tests: Likewise.
67684         * modules/unictype/syntax-c-ident-tests: Likewise.
67685         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67686         * modules/unictype/syntax-java-ident-tests: Likewise.
67687         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67688         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67689         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67690         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67691         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67692         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67693         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67694         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67695         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67696         * modules/uniname/uniname-tests: Likewise.
67697         * modules/uninorm/canonical-decomposition-tests: Likewise.
67698         * modules/uninorm/compat-decomposition-tests: Likewise.
67699         * modules/uninorm/composition-tests: Likewise.
67700         * modules/uninorm/decomposing-form-tests: Likewise.
67701         * modules/uninorm/decomposition-tests: Likewise.
67702         * modules/uninorm/filter-tests: Likewise.
67703         * modules/uninorm/nfc-tests: Likewise.
67704         * modules/uninorm/nfd-tests: Likewise.
67705         * modules/uninorm/nfkc-tests: Likewise.
67706         * modules/uninorm/nfkd-tests: Likewise.
67707         * modules/uninorm/u8-normcmp-tests: Likewise.
67708         * modules/uninorm/u8-normcoll-tests: Likewise.
67709         * modules/uninorm/u16-normcmp-tests: Likewise.
67710         * modules/uninorm/u16-normcoll-tests: Likewise.
67711         * modules/uninorm/u32-normcmp-tests: Likewise.
67712         * modules/uninorm/u32-normcoll-tests: Likewise.
67713         * modules/unistdio/u8-asnprintf-tests: Likewise.
67714         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67715         * modules/unistdio/u8-vasprintf-tests: Likewise.
67716         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67717         * modules/unistdio/u8-vsprintf-tests: Likewise.
67718         * modules/unistdio/u16-asnprintf-tests: Likewise.
67719         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67720         * modules/unistdio/u16-vasprintf-tests: Likewise.
67721         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67722         * modules/unistdio/u16-vsprintf-tests: Likewise.
67723         * modules/unistdio/u32-asnprintf-tests: Likewise.
67724         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67725         * modules/unistdio/u32-vasprintf-tests: Likewise.
67726         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67727         * modules/unistdio/u32-vsprintf-tests: Likewise.
67728         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67729         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67730         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67731         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67732         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67733         * modules/unistr/u8-check-tests: Likewise.
67734         * modules/unistr/u8-chr-tests: Likewise.
67735         * modules/unistr/u8-cmp-tests: Likewise.
67736         * modules/unistr/u8-cmp2-tests: Likewise.
67737         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67738         * modules/unistr/u8-cpy-tests: Likewise.
67739         * modules/unistr/u8-mblen-tests: Likewise.
67740         * modules/unistr/u8-mbsnlen-tests: Likewise.
67741         * modules/unistr/u8-mbtouc-tests: Likewise.
67742         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67743         * modules/unistr/u8-mbtoucr-tests: Likewise.
67744         * modules/unistr/u8-move-tests: Likewise.
67745         * modules/unistr/u8-next-tests: Likewise.
67746         * modules/unistr/u8-prev-tests: Likewise.
67747         * modules/unistr/u8-set-tests: Likewise.
67748         * modules/unistr/u8-stpcpy-tests: Likewise.
67749         * modules/unistr/u8-stpncpy-tests: Likewise.
67750         * modules/unistr/u8-strcat-tests: Likewise.
67751         * modules/unistr/u8-strcmp-tests: Likewise.
67752         * modules/unistr/u8-strcoll-tests: Likewise.
67753         * modules/unistr/u8-strcpy-tests: Likewise.
67754         * modules/unistr/u8-strdup-tests: Likewise.
67755         * modules/unistr/u8-strlen-tests: Likewise.
67756         * modules/unistr/u8-strmblen-tests: Likewise.
67757         * modules/unistr/u8-strmbtouc-tests: Likewise.
67758         * modules/unistr/u8-strncat-tests: Likewise.
67759         * modules/unistr/u8-strncmp-tests: Likewise.
67760         * modules/unistr/u8-strncpy-tests: Likewise.
67761         * modules/unistr/u8-strnlen-tests: Likewise.
67762         * modules/unistr/u8-to-u16-tests: Likewise.
67763         * modules/unistr/u8-to-u32-tests: Likewise.
67764         * modules/unistr/u8-uctomb-tests: Likewise.
67765         * modules/unistr/u16-check-tests: Likewise.
67766         * modules/unistr/u16-chr-tests: Likewise.
67767         * modules/unistr/u16-cmp-tests: Likewise.
67768         * modules/unistr/u16-cmp2-tests: Likewise.
67769         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67770         * modules/unistr/u16-cpy-tests: Likewise.
67771         * modules/unistr/u16-mblen-tests: Likewise.
67772         * modules/unistr/u16-mbsnlen-tests: Likewise.
67773         * modules/unistr/u16-mbtouc-tests: Likewise.
67774         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67775         * modules/unistr/u16-mbtoucr-tests: Likewise.
67776         * modules/unistr/u16-move-tests: Likewise.
67777         * modules/unistr/u16-next-tests: Likewise.
67778         * modules/unistr/u16-prev-tests: Likewise.
67779         * modules/unistr/u16-set-tests: Likewise.
67780         * modules/unistr/u16-stpcpy-tests: Likewise.
67781         * modules/unistr/u16-stpncpy-tests: Likewise.
67782         * modules/unistr/u16-strcat-tests: Likewise.
67783         * modules/unistr/u16-strcmp-tests: Likewise.
67784         * modules/unistr/u16-strcoll-tests: Likewise.
67785         * modules/unistr/u16-strcpy-tests: Likewise.
67786         * modules/unistr/u16-strdup-tests: Likewise.
67787         * modules/unistr/u16-strlen-tests: Likewise.
67788         * modules/unistr/u16-strmblen-tests: Likewise.
67789         * modules/unistr/u16-strmbtouc-tests: Likewise.
67790         * modules/unistr/u16-strncat-tests: Likewise.
67791         * modules/unistr/u16-strncmp-tests: Likewise.
67792         * modules/unistr/u16-strncpy-tests: Likewise.
67793         * modules/unistr/u16-strnlen-tests: Likewise.
67794         * modules/unistr/u16-to-u32-tests: Likewise.
67795         * modules/unistr/u16-to-u8-tests: Likewise.
67796         * modules/unistr/u16-uctomb-tests: Likewise.
67797         * modules/unistr/u32-check-tests: Likewise.
67798         * modules/unistr/u32-chr-tests: Likewise.
67799         * modules/unistr/u32-cmp-tests: Likewise.
67800         * modules/unistr/u32-cmp2-tests: Likewise.
67801         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67802         * modules/unistr/u32-cpy-tests: Likewise.
67803         * modules/unistr/u32-mblen-tests: Likewise.
67804         * modules/unistr/u32-mbsnlen-tests: Likewise.
67805         * modules/unistr/u32-mbtouc-tests: Likewise.
67806         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67807         * modules/unistr/u32-mbtoucr-tests: Likewise.
67808         * modules/unistr/u32-move-tests: Likewise.
67809         * modules/unistr/u32-next-tests: Likewise.
67810         * modules/unistr/u32-prev-tests: Likewise.
67811         * modules/unistr/u32-set-tests: Likewise.
67812         * modules/unistr/u32-stpcpy-tests: Likewise.
67813         * modules/unistr/u32-stpncpy-tests: Likewise.
67814         * modules/unistr/u32-strcat-tests: Likewise.
67815         * modules/unistr/u32-strcmp-tests: Likewise.
67816         * modules/unistr/u32-strcoll-tests: Likewise.
67817         * modules/unistr/u32-strcpy-tests: Likewise.
67818         * modules/unistr/u32-strdup-tests: Likewise.
67819         * modules/unistr/u32-strlen-tests: Likewise.
67820         * modules/unistr/u32-strmblen-tests: Likewise.
67821         * modules/unistr/u32-strmbtouc-tests: Likewise.
67822         * modules/unistr/u32-strncat-tests: Likewise.
67823         * modules/unistr/u32-strncmp-tests: Likewise.
67824         * modules/unistr/u32-strncpy-tests: Likewise.
67825         * modules/unistr/u32-strnlen-tests: Likewise.
67826         * modules/unistr/u32-to-u16-tests: Likewise.
67827         * modules/unistr/u32-to-u8-tests: Likewise.
67828         * modules/unistr/u32-uctomb-tests: Likewise.
67829         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67830         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67831         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67832         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67833         * modules/uniwidth/u8-strwidth-tests: Likewise.
67834         * modules/uniwidth/u8-width-tests: Likewise.
67835         * modules/uniwidth/u16-strwidth-tests: Likewise.
67836         * modules/uniwidth/u16-width-tests: Likewise.
67837         * modules/uniwidth/u32-strwidth-tests: Likewise.
67838         * modules/uniwidth/u32-width-tests: Likewise.
67839         * modules/uniwidth/width-tests: Likewise.
67841 2010-05-18  Richard Jones  <rjones@redhat.com>
67843         doc: users.txt: list hivex
67844         * users.txt: Add hivex.
67846 2010-05-18  Richard Jones  <rjones@redhat.com>
67848         doc: users.txt: list febootstrap
67849         * users.txt: Add febootstrap.
67851 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67853         bootstrap: fix an error when gnulib is not used as a git submodule
67854         * build-aux/bootstrap (gnulib_path): If its length is zero then
67855         assign "gnulib" to it.
67856         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67858 2010-05-16  Bruno Haible  <bruno@clisp.org>
67860         Avoid autoconf warnings about AM_ICONV.
67861         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67862         2.64.
67864 2010-05-16  Bruno Haible  <bruno@clisp.org>
67866         absolute-header: Make the macro usable in more situations.
67867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67868         from gl_ABSOLUTE_HEADER.
67869         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67871 2010-05-16  James Youngman  <jay@gnu.org>
67873         doc: update users.txt
67874         * users.txt: Add CSSC.
67876 2010-05-16  Jim Meyering  <meyering@redhat.com>
67878         init.sh: fix an error in the previous change; add more comments
67879         * tests/init.sh: Compare exit code in loop against 9, not 2.
67880         Patch by Bruno Haible.
67881         Make the two tests more similar by adding an empty "then" clause.
67882         Add comments.
67884         init.sh: avoid unnecessary shell re-exec
67885         * tests/init.sh: Improve the re-exec-required check to first test the
67886         current shell.  If it passes the test, do not search for a shell that
67887         does pass, and do not re-exec.  This test is particularly contorted to
67888         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67889         of $(...) evokes a syntax error and causes immediate shell exit with
67890         status 2.  Bruno Haible reported that the re-exec made it impossible
67891         to single-step through any init.sh-using script.
67893 2010-05-16  Bruno Haible  <bruno@clisp.org>
67895         Fix collision between gnulib's and libintl's printf replacements.
67896         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67897         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67898         (printf): When using GNU C, map the __printf__ function to rpl_printf
67899         via __asm__. When not using GNU C, define rpl_printf instead of
67900         __printf__.
67901         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67902         commit.
67903         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67904         commit.
67905         * m4/asm-underscore.m4: New file.
67906         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67907         * modules/stdio (Files): Add m4/asm-underscore.m4.
67908         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67909         Reported by Ben Pfaff.
67911 2010-05-16  Bruno Haible  <bruno@clisp.org>
67913         verify: Avoid skipping the test on openSUSE 11.0.
67914         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67916 2010-05-13  Bruno Haible  <bruno@clisp.org>
67918         Avoid useless warnings from G++.
67919         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67920         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67921         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67923 2010-05-11  Jim Meyering  <meyering@redhat.com>
67925         maint.mk: tweak preceding change
67926         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67927         regexps tighter by anchoring at EOL, and make the new group "shy"
67928         for slightly decreased overhead.
67930 2010-05-11  Eric Blake  <eblake@redhat.com>
67932         maint.mk: gnulib doesn't guarantee NSIG
67933         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67935 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67937         test-pwrite.c: Remove unused variable declaration.
67938         * tests/test-pwrite.c (main): Remove read_buf declaration.
67940         Remove useless test-pwrite.sh file.
67941         * tests/test-pwrite.sh: Delete file.
67942         * modules/pwrite-tests: Remove references.
67943         Reported by Bruno Haible.
67945 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67947         init.sh: fix a typo
67948         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67950 2010-05-10  Jim Meyering  <meyering@redhat.com>
67952         maint.mk: avoid using a temporary file in the always-defined-macros check
67953         * top/maint.mk (.re-defmac): Remove rule.
67954         (gl_trap_): Remove definition.
67955         (sc_prohibit_always-defined_macros): Rewrite not to create and
67956         depend on a temporary file.  Instead, depend on GNU grep's ability
67957         to read a list of regular expressions from stdin when given "-f -".
67959 2010-05-09  Bruno Haible  <bruno@clisp.org>
67961         Update to GNU gettext 0.18, part 1.
67962         * m4/gettext.m4: Update to GNU gettext 0.18.
67963         * m4/intl.m4: Likewise.
67964         * m4/po.m4: Likewise.
67965         * modules/gettext (Files): Add m4/fcntl-o.m4.
67966         (configure.ac): Require gettext infrastructure from version 0.18.
67968 2010-05-09  Jim Meyering  <meyering@redhat.com>
67970         init.sh: enable MALLOC_PERTURB_
67971         * tests/init.sh: Enable glibc's malloc-perturbing option.
67973         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67974         With my recent change in init.sh from the two-line form:
67975             -#   : ${srcdir=.}
67976             -#   . "$srcdir/init.sh"; path_prepend_ .
67977             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67978         I noticed that using the one-line form would cause this test
67979         to fail with a false-positive, or to stop working altogether,
67980         depending on whether help-version changed or all the tests did.
67981         * top/maint.mk (_hv_regex): Remove this definition.
67982         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67983         (_hv_regex_strong): Use a stronger regex to check for conformance.
67984         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67985         Give a separate diagnostic for lack of conforming use.
67987         maint.mk: prohibit definition of symbols defined by gnulib
67988         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67989         definition of symbols defined by gnulib.
67991 2010-05-09  Bruno Haible  <bruno@clisp.org>
67993         acl: Avoid test failure on Cygwin-hosted mingw.
67994         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67996 2010-05-09  Bruno Haible  <bruno@clisp.org>
67998         error: Use system's fcntl function.
67999         * lib/error.c (fcntl): Undefine.
68001 2010-05-09  Jim Meyering  <meyering@redhat.com>
68003         verify: adjust formatting to be more consistent
68004         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
68005         argument-list '('s, and after one comma.
68007 2010-05-09  Bruno Haible  <bruno@clisp.org>
68009         error: More reliable output on mingw.
68010         * lib/error.c: Include <windows.h>.
68011         (is_open): New function.
68012         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
68013         defined.
68015 2010-05-09  Bruno Haible  <bruno@clisp.org>
68017         vasnprintf: Fix syntax errors in libintl build on mingw.
68018         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
68019         pad_ourselves and prec_ourselves after use.
68021 2010-05-08  Bruno Haible  <bruno@clisp.org>
68023         * lib/config.charset: Update comments for Cygwin 1.7.
68024         * lib/localcharset.c: Likewise.
68026 2010-05-07  Jim Meyering  <meyering@redhat.com>
68028         init.sh: improve comments
68029         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
68030         . "${srcdir=.}/init.sh"; path_prepend_ .
68031         Add a note about path_prepend_ and the alternative of using
68032         TESTS_ENVIRONMENT.
68034 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
68036         exclude: Unescape hashed patterns in wildcard mode.
68037         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
68038         to the hash list.
68039         * tests/test-exclude8.sh: New test case.
68040         * modules/exclude-tests: Add new test.
68042 2010-05-05  Eric Blake  <eblake@redhat.com>
68044         verify: automate tests
68045         * modules/verify-tests: New module.
68046         * tests/test-verify.sh: New file.
68047         * tests/test-verify.c: Guard each negative test with a unique id.
68048         Also avoid warning about unused left hand of comma expressions.
68050 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68052         Further improvements to verify.h, suggested by Eric Blake.
68053         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
68054         the GL_* versions, to avoid collision with OpenGL.
68055         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
68056         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
68057         than testing merely whether it's defined.
68059         Modify verify.h to pacify gcc -Wredundant_decls.
68060         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
68061         These use the prefix "GL_" since they're likely to be useful elsewhere.
68062         We may need to break them out into a different .h file.
68063         (__COUNTER__): Define to 0 if the compiler doesn't support it.
68064         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
68065         of verify_function__.
68067 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68069         Tests for module pwrite.
68070         * modules/pwrite-tests: New file.
68071         * tests/test-pwrite.sh: New file.
68072         * tests/test-pwrite.c: New file.
68074         New module pwrite.
68075         * lib/unistd.in.h (pwrite): New declaration.
68076         * lib/pwrite.c: New file, from glibc with modifications.
68077         * m4/pwrite.m4: New file.
68078         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
68079         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
68080         REPLACE_PWRITE.
68081         * modules/pwrite: New file.
68082         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
68083         REPLACE_PWRITE.
68084         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
68085         * doc/posix-functions/pwrite.texi: Mention the new module.
68087 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68089         pread: Update documentation.
68090         * doc/posix-functions/pread.texi: Mention the 'pread' module.
68092 2010-05-04  Eric Blake  <eblake@redhat.com>
68094         docs: update cygwin progress
68095         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
68096         this bug.
68097         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
68098         Added in cygwin 1.7.2.
68099         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
68100         Likewise.
68101         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
68102         Likewise.
68103         * doc/glibc-functions/dup3.texi (dup3): Likewise.
68104         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
68105         * doc/glibc-functions/accept4.texi (accept4): Likewise.
68106         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
68107         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
68108         Mention nproc module.
68109         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
68110         bug in cygwin 1.7.5 addition.
68111         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
68112         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
68113         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
68114         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
68115         1.7.5.
68116         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
68117         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
68118         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
68119         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
68120         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
68121         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
68122         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
68123         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
68124         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
68125         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
68126         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
68127         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
68128         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
68129         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
68130         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
68131         Likewise.
68132         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
68133         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
68134         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
68135         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
68136         Likewise.
68137         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
68138         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
68139         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
68140         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
68141         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
68142         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
68143         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
68144         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
68145         Likewise.
68146         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
68147         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
68148         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
68149         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
68150         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
68151         Likewise.
68152         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
68153         Likewise.
68154         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
68155         Likewise.
68156         * doc/glibc-functions/xdrrec_endofrecord.texi
68157         (xdrrec_endofrecord): Likewise.
68158         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
68159         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
68160         Likewise.
68161         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
68162         Likewise.
68164 2010-05-04  Jim Meyering  <meyering@redhat.com>
68166         gendocs.sh: make its "-s FILE" option more useful
68167         * build-aux/gendocs.sh: When honoring the -s FILE option, update
68168         $PACKAGE to reflect the probably-different basename of "FILE".
68170 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68172         bootstrap: don't ignore download_po_files failure
68173         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
68174         failure.
68176 2010-05-03  Jim Meyering  <meyering@redhat.com>
68178         maint.mk: allow to pass options to gendocs.sh
68179         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
68180         (gendocs_options_): New overridable variable.
68182         gnu-web-doc-update: don't ignore configure or build failure
68183         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
68185         announce-gen: backslash-escape '@'s in --help output
68186         * build-aux/announce-gen: Fix syntax errors.
68188         maint.mk, announce-gen: allow project-specific announcement mail headers
68189         * top/maint.mk (translation_project_): Define default.
68190         (announcement_Cc_, announcement_mail_headers_): Likewise.
68191         (announcement): Invoke announce-gen with new --mail-headers option.
68192         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68194         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68195         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68196         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
68197         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
68198         line in the "err2" output file when running "make check" in verbose
68199         mode (i.e., with set -x enabled).
68201 2010-05-03  Bruno Haible  <bruno@clisp.org>
68203         wctob: Fix for weird platforms.
68204         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
68205         argument value.
68207 2010-05-03  Jim Meyering  <meyering@redhat.com>
68209         maint.mk: prohibit unwarranted use of <strings.h>
68210         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
68211         strings.h in a file that does not also use strcasecmp, strncasecmp,
68212         ffs or ffsll.
68214         maint.mk: remove obsolete comments
68215         * top/maint.mk: Remove stale, commented-out rules.
68217 2010-05-02  Bruno Haible  <bruno@clisp.org>
68219         wcwidth: Declare also when it's aliased.
68220         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
68221         macro.
68223 2010-05-02  Bruno Haible  <bruno@clisp.org>
68225         Fix regression from 2010-04-25.
68226         * gnulib-tool (func_modules_transitive_closure): Check the status of
68227         all modules, not only of the tests that are of the form foo-tests where
68228         foo is a module.
68230 2010-05-02  Bruno Haible  <bruno@clisp.org>
68232         wctob: Work around nasty Cygwin 1.7.2 bug.
68233         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
68234         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
68236 2010-05-01  Bruno Haible  <bruno@clisp.org>
68238         fpurge: Sharper test.
68239         * tests/test-fpurge.c (main): Add one more ftell check.
68240         * modules/fpurge-tests (Depends-on): Add ftell.
68241         Suggested by Eric Blake.
68243 2010-05-01  Bruno Haible  <bruno@clisp.org>
68245         ftello: Another test.
68246         * tests/test-ftello3.c: New file.
68247         * modules/ftello-tests (Files): Add it.
68248         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68249         MOSTLYCLEANFILES.
68251         ftell: Another test.
68252         * tests/test-ftell3.c: New file.
68253         * modules/ftell-tests (Files): Add it.
68254         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68255         MOSTLYCLEANFILES.
68257 2010-05-01  Bruno Haible  <bruno@clisp.org>
68259         ftell, ftello: Work around Solaris bug.
68260         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
68261         * lib/ftello.c: Include stdio-impl.h.
68262         (ftello): On Solaris, when _IOWRT is set, compute the result without
68263         looking at _IOREAD.
68264         * modules/ftello (Files): Add lib/stdio-impl.h.
68265         * doc/posix-functions/ftell.texi: Mention Solaris bug.
68266         * doc/posix-functions/ftello.texi: Likewise.
68267         Reported by Eric Blake.
68269 2010-05-01  Bruno Haible  <bruno@clisp.org>
68271         freading: Adapt to special meaning of _IOREAD flag on Solaris.
68272         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
68273         the _IOWRT flag is also set.
68275 2010-05-01  Bruno Haible  <bruno@clisp.org>
68277         Fix doc about a HP-UX stdio bug.
68278         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
68279         * doc/posix-functions/ftello.texi: Likewise.
68281 2010-05-01  Bruno Haible  <bruno@clisp.org>
68283         lseek test: Fix failure on Solaris.
68284         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
68285         output.
68287 2010-04-30  Jim Meyering  <meyering@redhat.com>
68289         bootstrap: don't ignore failure to generate po*/Makevars
68290         * build-aux/bootstrap (with_gettext): Don't ignore failure
68291         to create po/Makevars or runtime-po/Makevars.
68293 2010-04-29  Eric Blake  <eblake@redhat.com>
68295         headers: relax license to LGPLv2+
68296         * modules/fcntl-h (License): Relax license.
68297         * modules/getopt-posix (License): Likewise.
68298         * modules/locale (License): Likewise.
68299         * modules/math (License): Likewise.
68300         * modules/pty (License): Likewise.
68301         * modules/sched (License): Likewise.
68302         * modules/search (License): Likewise.
68303         * modules/spawn (License): Likewise.
68304         * modules/stdarg (License): Likewise.
68305         * modules/sysexits (License): Likewise.
68307 2010-04-29  Jim Meyering  <meyering@redhat.com>
68309         inttypes: relax license to LGPLv2+
68310         * modules/inttypes (License): Relax license.
68312 2010-04-29  Simon Josefsson  <simon@josefsson.org>
68314         * top/maint.mk (indent): Run twice to produce idempotent results.
68316 2010-04-28  Bruno Haible  <bruno@clisp.org>
68318         getdate: Generate getdate.c in the source directory.
68319         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
68320         MOSTLYCLEANFILES.
68321         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
68323 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
68325         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
68326         is not declared as a const *; avoid warnings in that case.
68328 2010-04-28  Eric Blake  <eblake@redhat.com>
68330         canonicalize-lgpl: avoid compiler warning
68331         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
68332         declaration' / 'extraneous semicolon' warning with some compilers.
68333         Reported by Andreas Gruenbacher.
68335 2010-04-28  Jim Meyering  <meyering@redhat.com>
68337         init.sh: ensure a more reliable exit status when exiting via trap
68338         * tests/init.sh (setup_): Don't rely on $? in signal handler.
68339         Inspired by patches from Dmitry V. Levin.
68340         Also trap on signal 3 (SIGQUIT).
68342 2010-04-27  Bruno Haible  <bruno@clisp.org>
68344         Update doc about utimes().
68345         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
68346         'utimens' module.
68347         Reported by Andreas Gruenbacher <agruen@suse.de>.
68349 2010-04-27  Eric Blake  <eblake@redhat.com>
68351         full-read, full-write: relax license
68352         * modules/full-read (License): Drop to LGPLv2+.
68353         * modules/full-write (License): Likewise.
68354         * modules/safe-read (License): Likewise.
68355         * modules/safe-write (License): Likewise.
68357         pthread: mention library for linking
68358         * modules/pthread (Link): Mention $(LIB_PTHREAD).
68360 2010-04-27  Jim Meyering  <meyering@redhat.com>
68362         maint.mk: fix a bug introduced in last change
68363         * top/maint.mk (gl_assured_headers_): Now that all names are on
68364         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68365         is not anchored to end of word, it should be adequate.
68367         maint.mk: avoid side-effect in latest syntax-check
68368         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68369         to run commands via $(shell...), and hence to incur cost only when
68370         the new rule is actually run.
68372         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68373         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68374         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68375         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68376         (gl_assured_headers_, az_, AZ_): Define.
68377         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68379 2010-04-26  Jim Meyering  <jim@meyering.net>
68380             Bruno Haible  <bruno@clisp.org>
68382         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68383         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68384         Prompted by an exchange with Gilles Espinasse.
68386 2010-04-26  Jim Meyering  <meyering@redhat.com>
68388         git-version-gen: aesthetic tweak
68389         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68390         so that the command remains on a single line.
68392 2010-04-26  Eric Blake  <eblake@redhat.com>
68394         git-version-gen: allow use on EBCDIC hosts
68395         * build-aux/git-version-gen (dirty): Use literal rather than tying
68396         ourselves to ascii.
68397         Reported by Steve Goetze.
68399 2010-04-25  Bruno Haible  <bruno@clisp.org>
68401         netdb: Add support for GNULIB_POSIXCHECK.
68402         * lib/netdb.in.h: Include warn-on-use.h.
68403         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68404         functions are used when GNULIB_POSIXCHECK is defined and the
68405         getaddrinfo module is not in use.
68406         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68407         freeaddrinfo, gai_strerror, getnameinfo are declared.
68408         * modules/netdb (Depends-on): Add warn-on-use.
68409         (Makefile.am): Include warn-on-use.h in netdb.h.
68411 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68413         build: avoid "make check" failure without .git/ directory
68414         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68415         there is no .git/ directory.
68417 2010-04-25  Bruno Haible  <bruno@clisp.org>
68419         ptsname: Fix misuse of ttyname_r.
68420         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68421         of errno.
68423 2010-04-25  Bruno Haible  <bruno@clisp.org>
68425         ttyname_r: Make it work on Solaris 10.
68426         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68427         if the system function has the POSIX declaration. Test whether the
68428         function fails if the buffer is less than 128 bytes large.
68429         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68430         system's ttyname_r function. Provide a reasonably large buffer.
68431         * modules/ttyname_r (Depends-on): Add extensions.
68432         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68434 2010-04-25  Bruno Haible  <bruno@clisp.org>
68436         Use the 'extensions' module for some more functions on Solaris.
68437         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68438         module.
68439         * doc/posix-functions/ctime_r.texi: Likewise.
68440         * doc/posix-functions/getgrgid_r.texi: Likewise.
68441         * doc/posix-functions/getgrnam_r.texi: Likewise.
68442         * doc/posix-functions/getpwnam_r.texi: Likewise.
68443         * doc/posix-functions/getpwuid_r.texi: Likewise.
68444         * doc/posix-functions/readdir_r.texi: Likewise.
68445         * doc/posix-functions/sigwait.texi: Likewise.
68446         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68447         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68449 2010-04-25  Bruno Haible  <bruno@clisp.org>
68451         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68452         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68453         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68454         * lib/ttyname_r.c: Include <limits.h>.
68455         (ttyname_r): Define using the system's ttyname_r function, if it exists
68456         and not on Solaris.
68457         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68458         set.
68459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68460         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68461         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68462         Reported by Simon Josefsson.
68464 2010-04-25  Bruno Haible  <bruno@clisp.org>
68466         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68467         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68468         * doc/posix-functions/ctime_r.texi: Likewise.
68469         * doc/posix-functions/getgrgid_r.texi: Likewise.
68470         * doc/posix-functions/getgrnam_r.texi: Likewise.
68471         * doc/posix-functions/getlogin_r.texi: Likewise.
68472         * doc/posix-functions/getpwnam_r.texi: Likewise.
68473         * doc/posix-functions/getpwuid_r.texi: Likewise.
68474         * doc/posix-functions/readdir_r.texi: Likewise.
68475         * doc/posix-functions/sigwait.texi: Likewise.
68476         * doc/posix-functions/ttyname_r.texi: Likewise.
68477         Reported by Simon Josefsson.
68479 2010-04-25  Bruno Haible  <bruno@clisp.org>
68481         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
68482         * gnulib-tool (func_usage): Document that --with-*-tests options apply
68483         also to --create-testdir.
68484         (func_acceptable): Don't consider the status of *-tests modules here.
68485         (func_modules_transitive_closure): Consider it here, before including a
68486         test module.
68487         (func_import, func_create_testdir): Set inc_all_direct_tests,
68488         inc_all_indirect_tests.
68489         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
68490         --create-testdir and --create-megatestdir.
68492 2010-04-25  Bruno Haible  <bruno@clisp.org>
68494         gnulib-tool: Add --without-*-tests options.
68495         * gnulib-tool (func_usage): Document the --without-*-tests options.
68496         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
68497         excl_unportable_tests): New variables.
68498         Fail if they are specified with --import or --update.
68499         (func_acceptable): Respect the excl_*_tests variables.
68500         (func_import): Set the excl_*_tests variables to empty.
68502 2010-04-25  Simon Josefsson  <simon@josefsson.org>
68503             Bruno Haible  <bruno@clisp.org>
68505         Work around a MacOS X 10.4 bug with openpty.
68506         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
68507         * tests/test-openpty.c (main): Close the master side explicitly.
68509 2010-04-25  Bruno Haible  <bruno@clisp.org>
68511         strnlen: Fix a C++ test error on MacOS X and Solaris.
68512         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
68513         the function is not declared.
68514         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
68515         Simon Josefsson.
68517 2010-04-24  Bruno Haible  <bruno@clisp.org>
68519         Avoid a gcc warning.
68520         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
68521         of correct type for %08lx directive.
68522         Reported by Eric Blake.
68524 2010-04-24  Bruno Haible  <bruno@clisp.org>
68526         vasnprintf: Correct errno value in case of out-of-memory.
68527         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
68528         or sprintf. Use the errno value from SNPRINTF or sprintf.
68529         Reported by Ian Beckwith <ianb@erislabs.net>.
68531 2010-04-24  Bruno Haible  <bruno@clisp.org>
68533         ansi-c++-opt: Find correct compiler when cross-compiling.
68534         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
68535         AC_CHECK_PROGS.
68536         Reported by Simon Josefsson.
68538 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
68540         vc-list-files: Add support for subversion
68541         * build-aux/vc-list-files: Use "svn list" to generate the list of
68542         files controlled by subversion.
68544 2010-04-23  Jim Meyering  <meyering@redhat.com>
68546         vc-list-files tests: convert to use init.sh
68547         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
68548         path_prepend_.
68549         Use Exit, not exit.
68550         Use skip_ rather than open coding it.
68551         Remove trap set-up and compare definitions.
68552         * tests/test-vc-list-files-git.sh: Likewise.
68553         * modules/vc-list-files-tests (Files): Add tests/init.sh.
68555 2010-04-22  Simon Josefsson  <simon@josefsson.org>
68557         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
68558         backup files.
68560 2010-04-21  Simon Josefsson  <simon@josefsson.org>
68562         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
68564 2010-04-20  Eric Blake  <eblake@redhat.com>
68566         tests: be robust to ignored SIGPIPE
68567         * tests/test-select-in.sh: Consume all output.
68568         * tests/test-lseek.sh: Check correct exit status, while avoiding
68569         EPIPE.
68571 2010-04-20  Simon Josefsson  <simon@josefsson.org>
68572             Bruno Haible  <bruno@clisp.org>
68574         visibility: Don't use -fvisibility if it leads to a warning.
68575         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
68576         yes, don't pretend that visibility works if it leads to a warning.
68577         Reported by Mike Gran <spk121@yahoo.com>.
68579 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
68581         * build-aux/bootstrap: Use "git -h" for testing for supported options
68582         instead of "git --help".  The short-form option only shows a summary,
68583         and doesn't layout the full man page.  Grep for the full option name
68584         in the summary, too.
68586 2010-04-19  Bruno Haible  <bruno@clisp.org>
68588         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
68589         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
68590         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
68591         mention of RELOCATABLE_STRIP.
68592         Reported by Sylvain Beucler <beuc@beuc.net>.
68594 2010-04-19  Bruno Haible  <bruno@clisp.org>
68596         * lib/diffseq.h: Fix typo in comment.
68597         Reported by Eric Blake.
68599 2010-04-19  Bruno Haible  <bruno@clisp.org>
68601         ioctl: Move autoconf macro to a .m4 file.
68602         * m4/ioctl.m4: New file, extracted from modules/ioctl.
68603         * modules/ioctl (Files): Add it.
68604         (configure.ac): Simply invoke gl_FUNC_IOCTL.
68605         Reported by Ian Beckwith <ianb@erislabs.net>.
68607 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
68608             Bruno Haible  <bruno@clisp.org>
68610         diffseq: Accommodate use-case with abstract arrays.
68611         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68612         is not defined.
68613         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68614         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68616 2010-04-18  Bruno Haible  <bruno@clisp.org>
68618         * doc/posix-headers/stdbool.texi: More precise wording.
68620 2010-04-17  Jim Meyering  <meyering@redhat.com>
68622         maint.mk: use gnu-style indentation in an embedded perl script
68623         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
68624         Rename variable: s/two/last_two_bytes/
68626 2010-04-16  Eric Blake  <eblake@redhat.com>
68628         test-stdbool: skip test that fails with Solaris CC
68629         * tests/test-stdbool.c (f): Skip test that causes compilation
68630         error under buggy C++ compiler.
68631         * lib/stdbool.in.h: Document the limitation.
68632         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
68634         setenv: allow compilation with C++
68635         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
68636         register keyword.
68638         stdint: allow test to pass with C++
68639         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
68641         getopt: allow compilation with C++
68642         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
68643         struct.
68644         * lib/getopt.c (_getopt_internal_r): Use correct type.
68645         Reported by Dagobert Michelson, via Joel E. Denny.
68647 2010-04-16  Bruno Haible  <bruno@clisp.org>
68649         Override netdb.h always.
68650         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
68651         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
68652         Reported by Ludovic Courtès <ludo@gnu.org>.
68654 2010-04-15  Bruno Haible  <bruno@clisp.org>
68656         openpty: Fix mistake from 2010-03-21.
68657         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
68658         Reported by Simon Josefsson.
68660 2010-04-15  Eric Blake  <eblake@redhat.com>
68662         test-forkpty: fix expected signature
68663         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
68664         Reported by Simon Josefsson.
68666 2010-04-15  Jim Meyering  <meyering@redhat.com>
68668         maint.mk: texinfo_suffix_re_: correct the default regexp
68669         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
68671         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
68672         make it configurable via texinfo_suffix_re_.
68674 2010-04-14  Eric Blake  <eblake@redhat.com>
68676         strtok_r: relax license to LGPLv2+
68677         * modules/strtok_r (License): Relax license.
68678         Reported by Matthias Bolte.
68680 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68682         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68683         version 1.4.4 by default instead of requiring the libgcrypt
68684         version used during build.  This makes it possible to use the
68685         application with older but still binary compatible libgcrypt
68686         versions.
68688 2010-04-13  Eric Blake  <eblake@redhat.com>
68690         getopt-gnu: match recent glibc fixes and posix ruling
68691         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68692         '+' handling, when requesting extensions.
68693         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68694         'W;' handling.
68695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68696         * doc/posix-functions/getopt.texi (getopt): Document this.
68697         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68698         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68699         Likewise.
68701         getopt: merge bug fixes from glibc
68702         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68703         diagnostics.  Honor '+:' correctly.  Reject ';'.
68705         getopt-posix: detect MacOS bug
68706         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68707         optind when missing a required argument.
68708         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68709         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68710         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68711         Likewise.
68713         getopt-posix: avoid spurious failure on Solaris
68714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68715         an indicator that setting optind=1 is sufficient for reset.
68717         getopt-posix: avoid spurious failure on FreeBSD
68718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68719         in POSIX mode, since the m4 test uses it.
68721         gnulib-tool: silence warning on BSD sh
68722         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68724 2010-04-13  Jim Meyering  <meyering@redhat.com>
68726         doc: users.txt: GNU patch now uses gnulib
68727         * users.txt: Add patch.
68729 2010-04-12  Jim Meyering  <meyering@redhat.com>
68731         maint.mk: generate more concise timing data for syntax-check rules
68732         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68733         " done" from each line that reports a syntax-check test duration.
68735 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68737         git-version-gen: use "git update-index..." rather than "git status"
68738         * build-aux/git-version-gen: Use git update-index --refresh, not
68739         "git status".  With some versions of git, "git status" would fail
68740         to update the index and result in an unwarranted "-dirty" suffix.
68742 2010-04-11  Jim Meyering  <meyering@redhat.com>
68744         openat: correct formatting (no semantic change)
68745         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68746         Suggested by Bruno Haible.
68748 2010-04-11  Bruno Haible  <bruno@clisp.org>
68750         Stricter declaration checking in testdirs.
68751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68752         If for_tests is true, augment AM_CPPFLAGS to define
68753         GNULIB_STRICT_CHECKING.
68754         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68755         GNULIB_STRICT_CHECKING is defined, verify that the function is
68756         declared.
68758 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68759             Bruno Haible  <bruno@clisp.org>
68761         libunistring: Improve configure output.
68762         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68763         Don't say "consider installing GNU libunistring" when checking again
68764         with libiconv.
68766 2010-04-11  Bruno Haible  <bruno@clisp.org>
68768         libunistring: Correct value of $LTLIBUNISTRING.
68769         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68770         correct the value of $LTLIBUNISTRING.
68772 2010-04-11  Bruno Haible  <bruno@clisp.org>
68774         havelib: Add static libraries to LIBS in the right order.
68775         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68776         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68778 2010-04-11  Bruno Haible  <bruno@clisp.org>
68780         libunistring: Detect libunistring also when it depends on libiconv.
68781         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68782         the second AC_LIB_HAVE_LINKFLAGS invocation.
68784 2010-04-11  James Youngman  <jay@gnu.org>
68786         close-stream: declare local scalars to be "const"
68787         * lib/close-stream.c (close_stream): Make boolean variables const
68788         to document the fact that we set but do not change them.
68790 2010-04-11  Bruno Haible  <bruno@clisp.org>
68792         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68794 2010-04-11  Jim Meyering  <meyering@redhat.com>
68796         maint.mk: don't include dist-check.mk
68797         * top/maint.mk: Remove bogus include directive.
68799         maint.mk: improve empty-line-at-EOF check
68800         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68801         solution, rather than tail+Perl-based one.  The latter would read
68802         a few kilobytes from the end of each file, and did not handle empty
68803         files properly.
68805         maint.mk: print the elapsed time for each syntax-check rule
68806         * top/maint.mk (sc_m_rules_): Save start time in a file.
68807         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68808         (local-check): Interpose the .z rules
68810 2010-04-11  Jim Meyering  <meyering@redhat.com>
68812         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68813         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68814         empty file with one that ends in an empty line.
68816 2010-04-10  Bruno Haible  <bruno@clisp.org>
68818         mkdir: Make it work on mingw64.
68819         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68820         * lib/mkdir.c: Update comment.
68821         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68823 2010-04-10  Bruno Haible  <bruno@clisp.org>
68825         Don't override improved macro from newer autoconf.
68826         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68827         autoconf >= 2.62.
68828         Reported by Joel E. Denny <jdenny@clemson.edu>.
68830 2010-04-10  Jim Meyering  <meyering@redhat.com>
68832         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68833         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68835         maint.mk: correct a diagnostic
68836         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68837         in diagnostic; now use $prohibit.
68839 2010-04-10  Bruno Haible  <address@hidden>
68841         fchownat: Fix a C++ test error on Solaris 8.
68842         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68843         the function does not exist.
68845 2010-04-10  Bruno Haible  <bruno@clisp.org>
68847         vasnprintf: Add more tests.
68848         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68849         (test_function): Test converting an invalid wide string.
68851         vasnprintf: Correct handling of unconvertible wide string arguments.
68852         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68853         VASNPRINTF.
68854         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68855         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68856         smaller than the expected maximum need for the directive. Set errno to
68857         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68858         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68860         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68861         * modules/vasnprintf (Files): Add m4/printf.m4.
68862         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68864 2010-04-10  Bruno Haible  <bruno@clisp.org>
68866         vasnprintf: Fix crash in %ls directive.
68867         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68868         string is passed as argument to %ls, with no precision and no width.
68869         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68871 2010-04-10  Bruno Haible  <bruno@clisp.org>
68873         vasnprintf: Fix multiple test failures on mingw.
68874         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68875         _snprintf, or snwprintf, not _snwprintf.
68877 2010-04-10  Bruno Haible  <bruno@clisp.org>
68879         write: Fix a C++ test error on mingw.
68880         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68882 2010-04-10  Bruno Haible  <bruno@clisp.org>
68884         vasnprintf test: Reduce code duplication.
68885         * tests/test-vasnprintf.c (test_function): New function, extracted from
68886         test_vasnprintf.
68887         (test_vasnprintf, test_asnprintf): Invoke it.
68889 2010-04-10  Bruno Haible  <bruno@clisp.org>
68891         strnlen: Fix warning in C++ mode on MacOS X.
68892         * lib/string.in.h (strnlen): Use the modern idiom.
68893         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68894         defining strnlen as a macro already in <config.h>.
68895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68896         REPLACE_STRNLEN.
68897         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68898         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68900 2010-04-08  James Youngman  <jay@gnu.org>
68902         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68903         the example.
68905 2010-04-09  Jim Meyering  <meyering@redhat.com>
68907         maint.mk: print better diagnostic when there is no $(_hv_file)
68908         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68909         announce that when $(_hv_file) (aka help-version) does not exist.
68911         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68912         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68913         not try to interpret its random input bytes.  Jarno Rajahalme reported
68914         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68915         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68916         (mktempd_): Likewise, just in case.
68918         ftruncate: add two years to projected module removal date: 2012
68919         * m4/ftruncate.m4: Adjust comments.
68921         ftruncate: mark module as obsolete; even MinGW provides it, now
68922         * modules/ftruncate (Status): Obsolete.
68923         (Notice): Say that.
68924         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68925         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68927 2010-04-08  Bruno Haible  <bruno@clisp.org>
68929         Fix side effects from tests-related modules.
68930         * modules/dprintf-posix (Comment): New section.
68931         * modules/fprintf-posix (Comment): Likewise.
68932         * modules/obstack-printf-posix (Comment): Likewise.
68933         * modules/printf-posix (Comment): Likewise.
68934         * modules/snprintf-posix (Comment): Likewise.
68935         * modules/sprintf-posix (Comment): Likewise.
68936         * modules/vasnprintf-posix (Comment): Likewise.
68937         * modules/vasprintf-posix (Comment): Likewise.
68938         * modules/vdprintf-posix (Comment): Likewise.
68939         * modules/vfprintf-posix (Comment): Likewise.
68940         * modules/vprintf-posix (Comment): Likewise.
68941         * modules/vsnprintf-posix (Comment): Likewise.
68942         * modules/vsprintf-posix (Comment): Likewise.
68943         * modules/xprintf-posix (Comment): Likewise.
68944         * modules/xvasprintf-posix (Comment): Likewise.
68945         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68946         * modules/floorf-tests (Depends-on): Likewise.
68947         * modules/round-tests (Depends-on): Likewise.
68948         * modules/roundf-tests (Depends-on): Likewise.
68949         * modules/trunc-tests (Depends-on): Likewise.
68950         * modules/truncf-tests (Depends-on): Likewise.
68951         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68952         'fprintf-posix' module is not present.
68953         * tests/test-floorf2.c (check): Likewise.
68954         * tests/test-trunc2.c (check): Likewise.
68955         * tests/test-truncf2.c (check): Likewise.
68956         * tests/test-round2.c (equal): Likewise.
68957         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68959 2010-04-07  Karl Berry  <karl@gnu.org>
68961         * config/srclist.txt,
68962         * config/srclistvars.sh,
68963         * config/srclist-update: doc fixes.
68965 2010-04-07  Jim Meyering  <meyering@redhat.com>
68967         maint.mk: add a PATH crosschecking syntax-check rule
68968         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68969         Useful if you use a test like the one in help-version (coreutils,
68970         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68971         printed by prog --version.
68973 2010-04-06  Bruno Haible  <bruno@clisp.org>
68975         Fix link error on mingw.
68976         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68977         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68979 2010-04-06  Bruno Haible  <bruno@clisp.org>
68981         Assume rmdir exists.
68982         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68984 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68986         doc: update users.txt
68987         * users.txt: Add gcal.
68989 2010-04-06  Jim Meyering  <meyering@redhat.com>
68991         init.sh: simply unset TMPDIR rather than risking env -i
68992         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68993         although it probably works fine on all Unix-based systems, some
68994         systems (Cygwin?) cannot tolerate a totally cleared environment.
68995         Suggestion from Eric Blake.
68997 2010-04-06  Jim Meyering  <meyering@redhat.com>
68999         init.sh: portability fix: use env's POSIX-specified -i option not -u
69000         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
69001         than unportable env -u.  Solaris 5.11's env lacks support for -u.
69003 2010-04-05  Bruno Haible  <bruno@clisp.org>
69005         btowc: Work around Cygwin 1.7.2 bug.
69006         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
69007         does not map NUL to 0.
69008         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
69010 2010-04-05  Bruno Haible  <bruno@clisp.org>
69012         Make the multithread modules work on Cygwin 1.7.2.
69013         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
69014         imported symbols can be declared weak, so that it returns "no" on
69015         Cygwin 1.7.2.
69017 2010-04-05  Bruno Haible  <bruno@clisp.org>
69019         Use the module 'strncat'.
69020         * modules/unistr/u8-strncat (Depends-on): Add strncat.
69022         Tests for module 'strncat'.
69023         * modules/strncat-tests: New file.
69024         * tests/test-strncat.c: New file.
69026         New module 'strncat'.
69027         * lib/string.in.h (strncat): New declaration.
69028         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
69029         * m4/strncat.m4: New file, based on m4/memchr.m4.
69030         * modules/strncat: New file.
69031         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
69032         is declared.
69033         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
69034         REPLACE_STRNCAT.
69035         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
69036         REPLACE_STRNCAT.
69037         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
69038         module.
69039         * tests/test-string-c++.cc: Check signature of strncat.
69041 2010-04-05  Jim Meyering  <meyering@redhat.com>
69043         xstrtoumax-tests: convert to use init.sh
69044         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
69045         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69046         Use Exit, not exit.
69047         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69049         xstrtoimax-tests: convert to use init.sh
69050         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
69051         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69052         Use Exit, not exit.
69053         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69055 2010-04-05  Bruno Haible  <bruno@clisp.org>
69057         sys_socket: Avoid #define replacements in C++ mode.
69058         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
69059         warning to the function if possible, rather than #defining the symbol
69060         to a dysfunctional alias.
69062 2010-04-05  Bruno Haible  <bruno@clisp.org>
69064         fseeko: Fix C++ test error on mingw.
69065         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
69066         gl_FUNC_FSEEKO.
69067         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
69068         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
69069         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
69070         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
69072 2010-04-05  Bruno Haible  <bruno@clisp.org>
69074         duplocale: Improve test output.
69075         * tests/test-duplocale.c (main): Print reason for skipped test.
69077 2010-04-05  Bruno Haible  <bruno@clisp.org>
69079         Assume rmdir exists.
69080         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
69081         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
69083 2010-04-05  Bruno Haible  <bruno@clisp.org>
69085         Fix link error on Solaris 8 with cc.
69086         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
69088 2010-04-05  Bruno Haible  <bruno@clisp.org>
69090         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69091         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
69093 2010-04-05  Bruno Haible  <bruno@clisp.org>
69095         vasprintf: Update documentation.
69096         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
69098 2010-04-05  Bruno Haible  <bruno@clisp.org>
69100         ptsname: Improve test.
69101         * tests/test-ptsname.c (main): Also try the various master names of BSD
69102         systems.
69104 2010-04-05  Bruno Haible  <bruno@clisp.org>
69106         memchr: Avoid a possible C++ test error.
69107         * lib/string.in.h (memchr): Provide declaration if function is missing.
69108         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69109         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
69110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
69111         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
69113 2010-04-05  Bruno Haible  <bruno@clisp.org>
69115         strtok_r: Improve idiom.
69116         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
69117         AC_LIBOBJ is used.
69119 2010-04-05  Bruno Haible  <bruno@clisp.org>
69121         strdup: Improve idiom.
69122         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
69123         AC_LIBOBJ is used.
69124         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
69125         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
69126         when AC_LIBOBJ is used.
69128 2010-04-05  Bruno Haible  <bruno@clisp.org>
69130         mbsinit, mbrtowc, wcrtomb: Improve idioms.
69131         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
69132         don't set REPLACE_MBSINIT to 1.
69133         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
69134         don't set REPLACE_MBRTOWC to 1.
69135         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
69136         exist, don't set REPLACE_MBSRTOWCS to 1.
69137         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
69138         exist, don't set REPLACE_MBSNRTOWCS to 1.
69139         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69140         don't set REPLACE_WCRTOMB to 1.
69141         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
69142         exist, don't set REPLACE_WCSRTOMBS to 1.
69143         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
69144         exist, don't set REPLACE_WCSNRTOMBS to 1.
69146 2010-04-05  Bruno Haible  <bruno@clisp.org>
69148         ldexpl: Improve idiom.
69149         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
69150         make sure to set HAVE_DECL_LDEXPL to 0.
69152 2010-04-05  Jim Meyering  <meyering@redhat.com>
69154         xstrtol-tests: convert to use init.sh
69155         * modules/xstrtol-tests (Files): Add tests/init.sh.
69156         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69157         Use Exit, not exit.
69158         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69160         atexit-tests: convert to use init.sh
69161         * modules/atexit-tests (Files): Add tests/init.sh.
69162         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69163         Use Exit, not exit.
69164         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69166         init.sh: fix typo
69167         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
69169         init.sh: make it easier for a test script to write to the tty, ...
69170         when using automake's parallel-tests mode.
69171         * tests/init.sh (stderr_fileno_): Define overridable variable.
69172         (warn_): New function, to use it.
69173         (fail_, skip_, framework_failure_): Use warn_.
69175 2010-04-04  Bruno Haible  <bruno@clisp.org>
69177         btowc: Avoid warning.
69178         * lib/btowc.c: Include <stdlib.h>.
69179         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
69181 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69182             Bruno Haible  <bruno@clisp.org>
69184         wchar: Port to NetBSD 1.5.
69185         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
69186         * lib/wctype.in.h (WEOF): Likewise.
69188 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69189             Bruno Haible  <bruno@clisp.org>
69191         Port extended stdio to NetBSD 1.5.
69192         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69193         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69194         older.
69196 2010-04-04  Bruno Haible  <bruno@clisp.org>
69198         string: Remove unused substitution.
69199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69200         HAVE_DECL_STRERROR.
69201         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
69203 2010-04-04  Bruno Haible  <bruno@clisp.org>
69205         strtod: Avoid a possible C++ test error.
69206         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
69207         set REPLACE_STRTOD.
69209 2010-04-04  Bruno Haible  <bruno@clisp.org>
69211         strerror: Update documentation.
69212         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
69214 2010-04-04  Bruno Haible  <bruno@clisp.org>
69216         stdio: Fix some C++ test errors on Solaris 8 with GCC.
69217         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
69218         _GL_CXXALIAS_SYS_CAST.
69220 2010-04-04  Bruno Haible  <bruno@clisp.org>
69222         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69223         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
69224         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
69225         REPLACE_FREXPL to 1.
69226         * doc/posix-functions/frexpl.texi: Update documentation.
69228 2010-04-04  Bruno Haible  <bruno@clisp.org>
69230         math: Fix some C++ test errors on Solaris 8 and Cygwin.
69231         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69233 2010-04-04  Bruno Haible  <bruno@clisp.org>
69235         Implement nanosleep for native Windows.
69236         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
69238 2010-04-04  Bruno Haible  <bruno@clisp.org>
69240         math: Fix some C++ test errors on Solaris 8.
69241         * lib/math.in.h (truncf, trunc): Use simpler idiom.
69243 2010-04-04  Bruno Haible  <bruno@clisp.org>
69245         math: Fix some C++ test errors on Cygwin.
69246         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
69247         truncl): Provide declaration if the system does not have it.
69248         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
69249         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
69250         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
69251         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
69252         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
69253         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
69254         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
69255         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
69256         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
69257         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
69258         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
69259         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
69260         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
69261         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
69262         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
69263         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
69264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
69265         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69266         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69267         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
69268         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69269         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69271 2010-04-04  Bruno Haible  <bruno@clisp.org>
69273         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
69274         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
69275         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
69276         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
69277         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69278         * m4/isinf.m4 (gl_ISINF): Likewise.
69279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
69281 2010-04-04  Bruno Haible  <bruno@clisp.org>
69283         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
69284         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
69286 2010-04-04  Bruno Haible  <bruno@clisp.org>
69288         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
69289         * modules/tmpfile (configure.ac): Update.
69291         tmpfile: Fix C++ test error on mingw.
69292         * lib/stdio.in.h (tmpfile): New declaration.
69293         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
69294         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
69295         * modules/tmpfile (Depends-on): Add stdio.
69296         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69297         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
69298         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
69299         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
69300         REPLACE_TMPFILE.
69301         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
69303 2010-04-04  Bruno Haible  <bruno@clisp.org>
69305         ioctl: Fix C++ test error on mingw.
69306         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
69307         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
69308         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
69310 2010-04-03  Bruno Haible  <bruno@clisp.org>
69312         wcwidth: Fix C++ test error on mingw.
69313         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
69314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
69315         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
69317 2010-04-03  Bruno Haible  <bruno@clisp.org>
69319         nanosleep: Fix C++ test error on mingw.
69320         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
69321         * lib/time.in.h (nanosleep): Use modern idiom.
69322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
69323         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
69324         REPLACE_NANOSLEEP to 1.
69325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
69326         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
69328 2010-04-03  Bruno Haible  <bruno@clisp.org>
69330         strptime: Fix C++ test error on mingw.
69331         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
69332         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
69333         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
69334         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
69335         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
69336         not REPLACE_STRPTIME.
69337         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
69338         REPLACE_STRPTIME.
69340 2010-04-03  Bruno Haible  <bruno@clisp.org>
69342         timegm: Fix C++ test error on mingw.
69343         * lib/time.in.h (timegm): Use modern idiom.
69344         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
69345         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
69346         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
69347         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
69349 2010-04-03  Bruno Haible  <bruno@clisp.org>
69351         timegm: Assume declaration if function exists.
69352         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
69353         if it exists. Don't clobber ac_cv_func_timegm.
69355 2010-04-03  Bruno Haible  <bruno@clisp.org>
69357         time_r: Fix C++ test error on mingw.
69358         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
69359         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
69360         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
69361         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69362         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69364 2010-04-03  Bruno Haible  <bruno@clisp.org>
69366         time_r: Minor updates.
69367         * modules/time_r (Description): Mention the provided functions.
69368         * lib/time_r.c: Don't include <string.h>.
69369         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69370         * doc/posix-functions/localtime_r.texi: Likewise.
69372 2010-04-03  Bruno Haible  <bruno@clisp.org>
69374         time: Fix regression introduced on 2010-03-08.
69375         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69376         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69378 2010-04-03  Jim Meyering  <meyering@redhat.com>
69380         maint.mk: don't silently disable project-specific syntax-check rules
69381         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69382         that they need to convert their project-specific syntax-check rules
69383         to use the new _sc_search_regexp.
69385 2010-04-03  Bruno Haible  <bruno@clisp.org>
69387         fchdir: Fix regression introduced on 2010-03-08.
69388         * lib/unistd.in.h (fchdir): Fix declaration.
69389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69391         REPLACE_FCHDIR.
69392         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69393         REPLACE_FCHDIR.
69395 2010-04-03  Bruno Haible  <bruno@clisp.org>
69397         getpagesize: Fix C++ test error on mingw.
69398         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69399         system does not declare the function.
69400         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69401         declared.
69402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69403         HAVE_DECL_GETPAGESIZE.
69404         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69406 2010-04-03  Bruno Haible  <bruno@clisp.org>
69408         stdio: Make C++ tests work on mingw.
69409         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69410         does not declare the function.
69412 2010-04-03  Bruno Haible  <bruno@clisp.org>
69414         ftello: Fix C++ test error on mingw.
69415         * lib/stdio.in.h (ftello): Use modern idiom.
69416         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69417         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69418         is missing and that it needs to be replaced.
69419         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69420         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69421         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69423 2010-04-03  Bruno Haible  <bruno@clisp.org>
69425         fseeko: Fix C++ test error on mingw.
69426         * lib/stdio.in.h (fseeko): Use modern idiom.
69427         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69428         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69429         is missing and that it needs to be replaced.
69430         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69432         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69434 2010-04-03  Bruno Haible  <bruno@clisp.org>
69436         mkstemp: Fix C++ test error on mingw.
69437         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69438         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69439         function is missing and that it needs to be replaced.
69440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69441         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69443 2010-04-03  Bruno Haible  <bruno@clisp.org>
69445         stpncpy: Fix C++ test error on mingw.
69446         * lib/string.in.h (stpncpy): Use modern idiom.
69447         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69448         function is missing and that it needs to be replaced.
69449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69450         REPLACE_STPNCPY.
69451         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69453 2010-04-03  Bruno Haible  <bruno@clisp.org>
69455         sys_stat: Fix C++ test error on mingw.
69456         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69457         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69459 2010-04-03  Bruno Haible  <bruno@clisp.org>
69461         pty: Update doc.
69462         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69464 2010-04-03  Bruno Haible  <bruno@clisp.org>
69466         unistd: Fix C++ test error on mingw.
69467         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69469 2010-04-03  Bruno Haible  <bruno@clisp.org>
69471         Update doc regarding mingw.
69472         * doc/glibc-functions/openpty.texi: Update regarding mingw.
69473         * doc/glibc-functions/login_tty.texi: Likewise.
69474         * doc/glibc-functions/forkpty.texi: Likewise.
69476 2010-04-03  Bruno Haible  <bruno@clisp.org>
69478         stdlib: Avoid compilation failure of c-strtold on mingw.
69479         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
69481 2010-04-03  Bruno Haible  <bruno@clisp.org>
69483         locale: Make C++ tests work on Cygwin and mingw.
69484         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
69485         cannot provide the function.
69486         Reported by Simon Josefsson.
69488 2010-04-03  Bruno Haible  <bruno@clisp.org>
69490         localename: Port to MacOS X 10.6.
69491         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
69492         memory layout of the locales in MacOS X 10.6 as well.
69493         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
69495 2010-04-02  Bruno Haible  <bruno@clisp.org>
69497         gnulib-tool: Ensure that long-running tests are executed last.
69498         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
69499         running tests after the one for the other tests.
69501 2010-04-02  Bruno Haible  <bruno@clisp.org>
69503         gnulib-tool: Ensure the tests in the main directory are executed first.
69504         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
69505         start with the current directory.
69507 2010-04-02  Bruno Haible  <bruno@clisp.org>
69509         Tests for module 'havelib', moved here from GNU gettext.
69510         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
69511         modifications.
69512         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
69513         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
69514         with modifications.
69515         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
69516         modifications.
69517         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
69518         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
69519         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
69520         with modifications.
69521         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
69522         with modifications.
69523         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
69524         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
69525         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
69526         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69527         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
69528         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
69529         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
69530         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
69531         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
69532         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
69533         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
69534         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
69535         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
69536         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
69537         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
69538         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
69539         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
69540         with modifications.
69541         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
69542         with modifications.
69543         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69544         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
69545         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
69546         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
69547         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
69548         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
69549         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
69550         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
69551         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
69552         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
69553         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
69554         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
69555         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69556         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
69557         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
69558         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
69559         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
69560         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
69561         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
69562         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
69563         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
69564         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
69565         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
69566         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
69567         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
69568         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
69569         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
69570         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
69571         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
69572         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
69573         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
69574         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
69575         * tests/havelib/rpathx/rpathx.c: New file, from
69576         gettext/autoconf-lib-link.
69577         * tests/havelib/rpathx/Makefile.am: New file, from
69578         gettext/autoconf-lib-link.
69579         * tests/havelib/rpathx/configure.ac: New file, from
69580         gettext/autoconf-lib-link with modifications.
69581         * tests/havelib/rpathy/rpathy.c: New file, from
69582         gettext/autoconf-lib-link.
69583         * tests/havelib/rpathy/Makefile.am: New file, from
69584         gettext/autoconf-lib-link.
69585         * tests/havelib/rpathy/configure.ac: New file, from
69586         gettext/autoconf-lib-link with modifications.
69587         * tests/havelib/rpathz/rpathz.c: New file, from
69588         gettext/autoconf-lib-link.
69589         * tests/havelib/rpathz/Makefile.am: New file, from
69590         gettext/autoconf-lib-link.
69591         * tests/havelib/rpathz/configure.ac: New file, from
69592         gettext/autoconf-lib-link with modifications.
69593         * tests/havelib/rpathlx/usex.c: New file, from
69594         gettext/autoconf-lib-link.
69595         * tests/havelib/rpathlx/Makefile.am: New file, from
69596         gettext/autoconf-lib-link.
69597         * tests/havelib/rpathlx/configure.ac: New file, from
69598         gettext/autoconf-lib-link with modifications.
69599         * tests/havelib/rpathly/usey.c: New file, from
69600         gettext/autoconf-lib-link.
69601         * tests/havelib/rpathly/Makefile.am: New file, from
69602         gettext/autoconf-lib-link.
69603         * tests/havelib/rpathly/configure.ac: New file, from
69604         gettext/autoconf-lib-link with modifications.
69605         * tests/havelib/rpathlz/usez.c: New file, from
69606         gettext/autoconf-lib-link.
69607         * tests/havelib/rpathlz/Makefile.am: New file, from
69608         gettext/autoconf-lib-link.
69609         * tests/havelib/rpathlz/configure.ac: New file, from
69610         gettext/autoconf-lib-link with modifications.
69611         * tests/havelib/rpathlyx/usey.c: New file, from
69612         gettext/autoconf-lib-link.
69613         * tests/havelib/rpathlyx/Makefile.am: New file, from
69614         gettext/autoconf-lib-link.
69615         * tests/havelib/rpathlyx/configure.ac: New file, from
69616         gettext/autoconf-lib-link with modifications.
69617         * tests/havelib/rpathlzyx/usez.c: New file, from
69618         gettext/autoconf-lib-link.
69619         * tests/havelib/rpathlzyx/Makefile.am: New file, from
69620         gettext/autoconf-lib-link.
69621         * tests/havelib/rpathlzyx/configure.ac: New file, from
69622         gettext/autoconf-lib-link with modifications.
69623         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
69624         with modifications.
69626 2010-04-02  Bruno Haible  <bruno@clisp.org>
69628         gnulib-tool: Create distributed built sources also for the tests.
69629         * gnulib-tool (func_create_testdir): Also generate distributed built
69630         sources in the tests directory.
69632 2010-04-02  Bruno Haible  <bruno@clisp.org>
69634         gnulib-tool: Obey user's environment variables.
69635         * gnulib-tool (func_create_testdir): When creating built sources,
69636         respect the environment variables for autoconf, automake, etc. given by
69637         the user.
69639 2010-04-02  Bruno Haible  <bruno@clisp.org>
69641         gnulib-tool: Provide the value of --m4-base to modules.
69642         * gnulib-tool (func_import, func_create_testdir): Emit a definition
69643         of gl_m4_base.
69645 2010-04-02  Eric Blake  <eblake@redhat.com>
69647         maint.mk: fix some fallout
69648         * NEWS: Document the incompatible change, and its effect on cfg.mk.
69649         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
69651 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69653         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
69654         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
69655         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
69656         (sc_cast_of_x_alloc_return_value): Likewise.
69657         (sc_cast_of_alloca_return_value): Likewise.
69658         (sc_space_tab): Likewise.
69659         (sc_prohibit_atoi_atof): Likewise.
69660         (sc_prohibit_magic_number_exit): Likewise.
69661         (sc_error_exit_success): Likewise.
69662         (sc_file_system): Likewise.
69663         (sc_prohibit_have_config_h): Likewise.
69664         (sc_require_config_h): Likewise.
69665         (sc_prohibit_HAVE_MBRTOWC): Likewise.
69666         (sc_obsolete_symbols): Likewise.
69667         (sc_changelog): Likewise.
69668         (sc_program_name): Likewise.
69669         (sc_the_the): Likewise.
69670         (sc_trailing_blank): Likewise.
69671         (sc_two_space_separator_in_usage): Likewise.
69672         (sc_useless_cpp_parens): Likewise.
69673         (sc_GPL_version): Likewise.
69674         (sc_GFDL_version): Likewise.
69675         (sc_texinfo_acronym): Likewise.
69676         (sc_prohibit_cvs_keyword): Likewise.
69677         (sc_prohibit_stat_st_blocks): Likewise.
69678         (sc_prohibit_S_IS_definition): Likewise.
69679         (sc_redundant_const): Likewise.
69680         (sc_makefile_TAB_only_indentation): Likewise.
69681         (sc_m4_quote_check): Likewise.
69682         (sc_makefile_path_separator_check): Likewise.
69683         (sc_copyright_check): Likewise.
69684         (sc_Wundef_boolean): Likewise.
69685         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69687         maint.mk: match 0 or more whitespace-before-function-call '('
69688         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69689         that have zero or two-and-more spaces between the function name
69690         and the open parenthesis.
69691         (sc_error_message_warn_fatal): Likewise.
69692         (sc_error_message_uppercase): Likewise.
69693         (sc_error_message_period): Likewise.
69695 2010-03-31  Eric Blake  <eblake@redhat.com>
69697         maint.mk: check for [ as well as test
69698         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69699         Based on a libvirt report by Matthias Bolte.
69701         gnumakefile: don't squelch _version output
69702         * top/GNUmakefile (_version): Create one-shot dependency rather
69703         than using $(shell) when version must be regenerated.
69704         (_autoreconf): Run verbosely, by default.
69706         sys_time: avoid compiler warnings
69707         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69708         unconditional, fixing regression from 2010-03-29.
69709         Reported by Simon Josefsson.
69711 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69713         maint.mk: s/_header_without_use/_sc_header_without_use/
69714         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69715         (sc_prohibit_assert_without_use): Use the new name.
69716         (sc_prohibit_close_stream_without_use): Likewise.
69717         (sc_prohibit_getopt_without_use): Likewise.
69718         (sc_prohibit_quotearg_without_use): Likewise.
69719         (sc_prohibit_quote_without_use): Likewise.
69720         (sc_prohibit_long_options_without_use): Likewise.
69721         (sc_prohibit_inttostr_without_use): Likewise.
69722         (sc_prohibit_ignore_value_without_use): Likewise.
69723         (sc_prohibit_error_without_use): Likewise.
69724         (sc_prohibit_xalloc_without_use): Likewise.
69725         (sc_prohibit_hash_without_use): Likewise.
69726         (sc_prohibit_hash_pjw_without_use): Likewise.
69727         (sc_prohibit_safe_read_without_use): Likewise.
69728         (sc_prohibit_argmatch_without_use): Likewise.
69729         (sc_prohibit_canonicalize_without_use): Likewise.
69730         (sc_prohibit_root_dev_ino_without_use): Likewise.
69731         (sc_prohibit_openat_without_use): Likewise.
69732         (sc_prohibit_c_ctype_without_use): Likewise.
69733         (sc_prohibit_signal_without_use): Likewise.
69734         (sc_prohibit_intprops_without_use): Likewise.
69736 2010-03-30  Eric Blake  <eblake@redhat.com>
69738         maint: improve module indicators
69739         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69740         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69741         columns, and avoid extra macro expansion.
69743         fdopendir: work around FreeBSD bug
69744         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69745         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69746         * modules/dirent (Makefile.am): Substitute it.
69747         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69748         declaration.
69749         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69750         fix.
69751         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69753 2010-03-29  Bruno Haible  <bruno@clisp.org>
69755         Emit #pragma system_header after the inclusion guard, not before.
69756         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69757         guard that spans the entire file, not before. This enables an
69758         optimization in GCC's preprocessor.
69759         * lib/ctype.in.h: Likewise.
69760         * lib/dirent.in.h: Likewise.
69761         * lib/errno.in.h: Likewise.
69762         * lib/float.in.h: Likewise.
69763         * lib/getopt.in.h: Likewise.
69764         * lib/iconv.in.h: Likewise.
69765         * lib/langinfo.in.h: Likewise.
69766         * lib/locale.in.h: Likewise.
69767         * lib/math.in.h: Likewise.
69768         * lib/netdb.in.h: Likewise.
69769         * lib/netinet_in.in.h: Likewise.
69770         * lib/pty.in.h: Likewise.
69771         * lib/sched.in.h: Likewise.
69772         * lib/se-selinux.in.h: Likewise.
69773         * lib/search.in.h: Likewise.
69774         * lib/spawn.in.h: Likewise.
69775         * lib/stdarg.in.h: Likewise.
69776         * lib/stdint.in.h: Likewise.
69777         * lib/string.in.h: Likewise.
69778         * lib/strings.in.h: Likewise.
69779         * lib/sys_file.in.h: Likewise.
69780         * lib/sys_ioctl.in.h: Likewise.
69781         * lib/sys_time.in.h: Likewise.
69782         * lib/sys_times.in.h: Likewise.
69783         * lib/sys_utsname.in.h: Likewise.
69784         * lib/sys_wait.in.h: Likewise.
69785         * lib/sysexits.in.h: Likewise.
69786         * lib/wctype.in.h: Likewise.
69788 2010-03-28  James Youngman  <jay@gnu.org>
69790         save-cwd: don't leak a file descriptor when the caller execs.
69791         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69792         saved file descriptor.
69793         * modules/save-cwd (Depends-on): Depend on cloexec.
69795 2010-03-29  Bruno Haible  <bruno@clisp.org>
69797         Remove vestiges of fts-lgpl module.
69798         * lib/fts_.h: Assume GNULIB_FTS is 1.
69799         * lib/fts.c: Likewise.
69800         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69802 2010-03-28  Bruno Haible  <bruno@clisp.org>
69804         Fix definition of tests witness macro.
69805         * gnulib-tool (func_import): Fix definition of witness macro.
69807 2010-03-28  Bruno Haible  <bruno@clisp.org>
69809         Fix ioctl's protoype on glibc systems.
69810         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69811         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69812         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69813         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69814         signature. If not, arrange to replace the ioctl function.
69815         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69816         REPLACE_IOCTL.
69817         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69818         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69819         Reported by Ludovic Courtès <ludo@gnu.org>.
69821 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69823         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69824         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69825         made it so grep -r --include=GLOB* ... did not work.
69827 2010-03-26  Jim Meyering  <meyering@redhat.com>
69828             Eric Blake  <eblake@redhat.com>
69830         maint.mk: prohibit use of test's -o and -a operators
69831         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69833 2010-03-28  Bruno Haible  <bruno@clisp.org>
69835         Remove unused GNULIB_XYZ macro definitions.
69836         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69837         invocation.
69839 2010-03-28  Bruno Haible  <bruno@clisp.org>
69841         Mark privileged tests modules.
69842         * modules/idpriv-drop-tests (Status): New section.
69843         * modules/idpriv-droptemp-tests (Status): New section.
69845 2010-03-28  Bruno Haible  <bruno@clisp.org>
69847         Split C++ tests into separate tests modules.
69848         * modules/dirent-c++-tests: New file, extracted from
69849         modules/dirent-tests.
69850         * modules/dirent-tests: Depend on it.
69851         * modules/fcntl-h-c++-tests: New file, extracted from
69852         modules/fcntl-h-tests.
69853         * modules/fcntl-h-tests: Depend on it.
69854         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69855         * modules/glob-tests: Depend on it.
69856         * modules/iconv-h-c++-tests: New file, extracted from
69857         modules/iconv-h-tests.
69858         * modules/iconv-h-tests: Depend on it.
69859         * modules/langinfo-c++-tests: New file, extracted from
69860         modules/langinfo-tests.
69861         * modules/langinfo-tests: Depend on it.
69862         * modules/locale-c++-tests: New file, extracted from
69863         modules/locale-tests.
69864         * modules/locale-tests: Depend on it.
69865         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69866         * modules/math-tests: Depend on it.
69867         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69868         * modules/pty-tests: Depend on it.
69869         * modules/search-c++-tests: New file, extracted from
69870         modules/search-tests.
69871         * modules/search-tests: Depend on it.
69872         * modules/signal-c++-tests: New file, extracted from
69873         modules/signal-tests.
69874         * modules/signal-tests: Depend on it.
69875         * modules/spawn-c++-tests: New file, extracted from
69876         modules/spawn-tests.
69877         * modules/spawn-tests: Depend on it.
69878         * modules/stdio-c++-tests: New file, extracted from
69879         modules/stdio-tests.
69880         * modules/stdio-tests: Depend on it.
69881         * modules/stdlib-c++-tests: New file, extracted from
69882         modules/stdlib-tests.
69883         * modules/stdlib-tests: Depend on it.
69884         * modules/string-c++-tests: New file, extracted from
69885         modules/string-tests.
69886         * modules/string-tests: Depend on it.
69887         * modules/sys_ioctl-c++-tests: New file, extracted from
69888         modules/sys_ioctl-tests.
69889         * modules/sys_ioctl-tests: Depend on it.
69890         * modules/sys_select-c++-tests: New file, extracted from
69891         modules/sys_select-tests.
69892         * modules/sys_select-tests: Depend on it.
69893         * modules/sys_socket-c++-tests: New file, extracted from
69894         modules/sys_socket-tests.
69895         * modules/sys_socket-tests: Depend on it.
69896         * modules/sys_stat-c++-tests: New file, extracted from
69897         modules/sys_stat-tests.
69898         * modules/sys_stat-tests: Depend on it.
69899         * modules/sys_time-c++-tests: New file, extracted from
69900         modules/sys_time-tests.
69901         * modules/sys_time-tests: Depend on it.
69902         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69903         * modules/time-tests: Depend on it.
69904         * modules/unistd-c++-tests: New file, extracted from
69905         modules/unistd-tests.
69906         * modules/unistd-tests: Depend on it.
69907         * modules/wchar-c++-tests: New file, extracted from
69908         modules/wchar-tests.
69909         * modules/wchar-tests: Depend on it.
69910         * modules/wctype-c++-tests: New file, extracted from
69911         modules/wctype-tests.
69912         * modules/wctype-tests: Depend on it.
69913         Reported by Simon Josefsson.
69915 2010-03-28  Bruno Haible  <bruno@clisp.org>
69917         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69918         * gnulib-tool (func_exists_module): New function, extracted from
69919         func_verify_module.
69920         (func_verify_module): Use it.
69921         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69922         'foo' only if 'foo' exists.
69923         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69924         module.
69926 2010-03-28  Bruno Haible  <bruno@clisp.org>
69928         gnulib-tool: Add support for special categories of tests.
69929         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69930         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69931         (func_usage): Document them.
69932         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69933         inc_unportable_tests, inc_all_tests): New variables.
69934         (func_acceptable): Consider these variables.
69935         (func_modules_transitive_closure): Make it work when the 'Status' field
69936         consists of multiple words.
69937         (func_import): Store and restore the values of inc_cxx_tests,
69938         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69939         inc_all_tests in gnulib-comp.m4.
69940         (func_create_testdir): Set inc_all_tests to true.
69941         * doc/gnulib.texi (Extra tests modules): New section.
69942         Suggested by Jim Meyering.
69944 2010-03-28  Bruno Haible  <bruno@clisp.org>
69946         ansi-c++-opt: Allow turning off the C++ build by default.
69947         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69948         gl_CXX_CHOICE_DEFAULT_NO is defined.
69949         Requested by Eric Blake.
69951 2010-03-28  Bruno Haible  <bruno@clisp.org>
69953         unistd: Avoid #define replacements in C++ mode.
69954         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69955         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69956         setsockopt, shutdown, select): In C++, attach a warning to the function
69957         if possible, rather than #defining the symbol to a dysfunctional alias.
69958         Reported by John W. Eaton <jwe@gnu.org>.
69960 2010-03-28  Bruno Haible  <bruno@clisp.org>
69962         Fix link errors on mingw.
69963         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69964         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69965         $(LIBSOCKET).
69966         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69967         $(LIBSOCKET).
69969 2010-03-28  Bruno Haible  <bruno@clisp.org>
69970             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69972         lib-ignore: Determine different options for different compilers.
69973         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69974         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69975         Add comments.
69976         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69977         * NEWS: Mention the change.
69979 2010-03-27  Bruno Haible  <bruno@clisp.org>
69981         Remove unused GNULIB_XYZ macro definitions.
69982         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69983         * modules/fseek (configure.ac): Likewise.
69984         * modules/ioctl (configure.ac): Likewise.
69985         * modules/open (configure.ac): Likewise.
69986         * modules/stdlib-safer (configure.ac): Likewise.
69988 2010-03-27  Bruno Haible  <bruno@clisp.org>
69990         Add a remark about certain modules.
69991         * modules/malloc (Comment): New section.
69992         * modules/realloc (Comment): Likewise.
69993         * modules/sigpipe (Comment): Likewise.
69995 2010-03-27  Bruno Haible  <bruno@clisp.org>
69997         Resolve conflict between the two kinds of module indicators.
69998         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69999         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
70000         * modules/canonicalize (configure.ac): Invoke
70001         gl_MODULE_INDICATOR_FOR_TESTS.
70002         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
70003         GNULIB_XYZ.
70004         * tests/test-dirent-c++.cc: Likewise.
70005         * tests/test-dirent-safer.c: Likewise.
70006         * tests/test-dup2.c: Likewise.
70007         * tests/test-fchdir.c: Likewise.
70008         * tests/test-fcntl-h-c++.cc: Likewise.
70009         * tests/test-getopt.c: Likewise.
70010         * tests/test-getopt.h: Likewise.
70011         * tests/test-langinfo-c++.cc: Likewise.
70012         * tests/test-locale-c++.cc: Likewise.
70013         * tests/test-math-c++.cc: Likewise.
70014         * tests/test-pty-c++.cc: Likewise.
70015         * tests/test-search-c++.cc: Likewise.
70016         * tests/test-signal-c++.cc: Likewise.
70017         * tests/test-spawn-c++.cc: Likewise.
70018         * tests/test-stdio-c++.cc: Likewise.
70019         * tests/test-stdlib-c++.cc: Likewise.
70020         * tests/test-string-c++.cc: Likewise.
70021         * tests/test-sys_ioctl-c++.cc: Likewise.
70022         * tests/test-sys_select-c++.cc: Likewise.
70023         * tests/test-sys_socket-c++.cc: Likewise.
70024         * tests/test-sys_stat-c++.cc: Likewise.
70025         * tests/test-sys_time-c++.cc: Likewise.
70026         * tests/test-time-c++.cc: Likewise.
70027         * tests/test-unistd-c++.cc: Likewise.
70028         * tests/test-wchar-c++.cc: Likewise.
70029         * tests/uninorm/test-u8-nfc.c: Likewise.
70030         * tests/uninorm/test-u8-nfd.c: Likewise.
70031         * tests/uninorm/test-u8-nfkc.c: Likewise.
70032         * tests/uninorm/test-u8-nfkd.c: Likewise.
70033         * tests/uninorm/test-u16-nfc.c: Likewise.
70034         * tests/uninorm/test-u16-nfd.c: Likewise.
70035         * tests/uninorm/test-u16-nfkc.c: Likewise.
70036         * tests/uninorm/test-u16-nfkd.c: Likewise.
70037         * tests/uninorm/test-u32-nfc.c: Likewise.
70038         * tests/uninorm/test-u32-nfc-big.c: Likewise.
70039         * tests/uninorm/test-u32-nfd.c: Likewise.
70040         * tests/uninorm/test-u32-nfd-big.c: Likewise.
70041         * tests/uninorm/test-u32-nfkc.c: Likewise.
70042         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
70043         * tests/uninorm/test-u32-nfkd.c: Likewise.
70044         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
70045         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70047 2010-03-27  Bruno Haible  <bruno@clisp.org>
70049         Distinguish two kinds of module indicators.
70050         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
70051         gl_MODULE_INDICATOR.
70052         (gl_MODULE_INDICATOR): New macro.
70053         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70054         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
70055         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70056         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70057         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70058         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70059         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70060         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70061         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70062         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70063         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70064         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70066         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70067         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70068         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70069         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70070         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70071         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70072         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70073         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70074         * modules/cloexec (configure.ac): Likewise.
70075         * modules/getopt-gnu (configure.ac): Likewise.
70076         * modules/uninorm/u8-normalize (configure.ac): Likewise.
70077         * modules/uninorm/u16-normalize (configure.ac): Likewise.
70078         * modules/uninorm/u32-normalize (configure.ac): Likewise.
70079         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
70081 2010-03-27  Bruno Haible  <bruno@clisp.org>
70083         New module description field 'Comment'.
70084         * gnulib-tool: New option --extract-comment.
70085         (func_usage): Document it.
70086         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
70087         (func_get_comment): New function.
70088         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
70090 2010-03-27  Bruno Haible  <bruno@clisp.org>
70092         Addendum to 2010-02-07 commit.
70093         * gnulib-tool (func_usage): Document --extract-applicability option.
70095 2010-03-27  Bruno Haible  <bruno@clisp.org>
70097         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
70098         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
70099         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
70100         rather than link errors.
70102 2010-03-27  Bruno Haible  <bruno@clisp.org>
70104         Avoid side effects from tests-related modules on the compilation of lib.
70105         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
70106         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
70107         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
70108         parameter. Emit into AM_CPPFLAGS a definition of the designated C
70109         macro.
70110         (func_import): Define a witness macro. Assign it a value that depends
70111         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
70112         tests-related modules.
70113         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
70114         Reported by Jim Meyering.
70116 2010-03-27  Bruno Haible  <bruno@clisp.org>
70118         Factorize common .m4 code.
70119         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
70120         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
70121         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
70122         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
70123         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70124         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
70125         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
70126         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70127         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70128         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70129         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
70130         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70131         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70132         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70133         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70134         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
70135         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70136         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70138         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
70139         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
70140         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70141         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70142         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70143         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70144         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70145         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
70146         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
70147         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
70148         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70149         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70150         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70152 2010-03-27  Bruno Haible  <bruno@clisp.org>
70154         Fix a compilation error on Cygwin with g++ >= 4.3.
70155         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
70156         if it is undefined or if we alias it to chmod.
70157         (lstat): Don't warn about the use of this function if it is undefined
70158         or if we alias it to stat.
70159         Reported by Simon Josefsson.
70161 2010-03-27  Bruno Haible  <bruno@clisp.org>
70163         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
70164         * modules/getlogin (configure.ac): Update.
70166         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
70167         * modules/getlogin_r (configure.ac): Update.
70169         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
70170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70171         * modules/inet_ntop (configure.ac): Update.
70173         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
70174         * modules/inet_pton (configure.ac): Update.
70176         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
70177         * modules/mbslen (configure.ac): Update.
70179         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
70180         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
70181         * modules/forkpty (configure.ac): Update.
70182         * modules/openpty (configure.ac): Update.
70184 2010-03-26  Simon Josefsson  <simon@josefsson.org>
70186         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
70187         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
70189 2010-03-25  Eric Blake  <eblake@redhat.com>
70191         maint: use pragma consistently across replacement headers
70192         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70193         * lib/dirent.in.h (system_header): Likewise.
70194         * lib/errno.in.h (system_header): Likewise.
70195         * lib/float.in.h (system_header): Likewise.
70196         * lib/getopt.in.h (system_header): Likewise.
70197         * lib/iconv.in.h (system_header): Likewise.
70198         * lib/inttypes.in.h (system_header): Likewise.
70199         * lib/langinfo.in.h (system_header): Likewise.
70200         * lib/locale.in.h (system_header): Likewise.
70201         * lib/math.in.h (system_header): Likewise.
70202         * lib/netdb.in.h (system_header): Likewise.
70203         * lib/netinet_in.in.h (system_header): Likewise.
70204         * lib/pty.in.h (system_header): Likewise.
70205         * lib/sched.in.h (system_header): Likewise.
70206         * lib/se-selinux.in.h (system_header): Likewise.
70207         * lib/search.in.h (system_header): Likewise.
70208         * lib/spawn.in.h (system_header): Likewise.
70209         * lib/stdarg.in.h (system_header): Likewise.
70210         * lib/stdint.in.h (system_header): Likewise.
70211         * lib/string.in.h (system_header): Likewise.
70212         * lib/strings.in.h (system_header): Likewise.
70213         * lib/sys_file.in.h (system_header): Likewise.
70214         * lib/sys_ioctl.in.h (system_header): Likewise.
70215         * lib/sys_socket.in.h (system_header): Likewise.
70216         * lib/sys_times.in.h (system_header): Likewise.
70217         * lib/sys_utsname.in.h (system_header): Likewise.
70218         * lib/sys_wait.in.h (system_header): Likewise.
70219         * lib/sysexits.in.h (system_header): Likewise.
70220         * lib/unistd.in.h (system_header): Likewise.
70221         * lib/wctype.in.h (system_header): Likewise.
70223         arpa/inet: fix mingw compilation warning
70224         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
70225         Reported by Matthew Bolte.
70227 2010-03-25  Bruno Haible  <bruno@clisp.org>
70229         Avoid collision between gnulib wrapper and libintl wrapper.
70230         * lib/printf.c (printf): Don't define if a printf wrapper is already
70231         defined in intl/printf.c.
70232         Reported by Michel Boaventura <michel@michelboaventura.com>.
70234 2010-03-25  Bruno Haible  <bruno@clisp.org>
70236         Use ANSI C.
70237         * lib/readutmp.h (getutent): Provide ANSI C prototype.
70239 2010-03-25  Bruno Haible  <bruno@clisp.org>
70241         Minor formatting changes.
70242         * lib/acosl.c: Insert space before function argument list.
70243         * lib/argz.c: Likewise.
70244         * lib/asinl.c: Likewise.
70245         * lib/expl.c: Likewise.
70246         * lib/gen-uni-tables.c: Likewise.
70247         * lib/gettext.h: Likewise.
70248         * lib/glthread/lock.h: Likewise.
70249         * lib/tanl.c: Likewise.
70250         * lib/uniname/uniname.c: Likewise.
70251         * tests/test-idpriv-drop.c: Likewise.
70252         * tests/test-idpriv-droptemp.c: Likewise.
70253         * tests/test-lock.c: Likewise.
70254         * tests/test-tls.c: Likewise.
70255         * lib/argp-help.c: Insert space before function-like macro argument
70256         list.
70257         * lib/memcmp.c: Likewise.
70258         * tests/test-base64.c: Likewise.
70259         * lib/localename.c: Insert space before sizeof's argument list.
70260         * lib/safe-alloc.h: Likewise.
70261         * lib/file-set.h: Insert space before macro argument list.
70262         * tests/test-argp.c: Likewise.
70263         * lib/argp-namefrob.h: Insert space before function parameter list.
70264         * lib/getaddrinfo.c: Likewise.
70265         * lib/netdb.in.h: Likewise.
70266         * lib/parse-duration.h: Likewise.
70267         * lib/parse-duration.c: Likewise.
70268         * lib/poll.c: Likewise.
70269         * lib/select.c: Likewise.
70270         * lib/trim.h: Likewise.
70271         * tests/test-usleep.c: Likewise.
70272         * lib/ldexpl.c: Insert space before function parameter list and before
70273         function argument list.
70274         * lib/logl.c: Likewise.
70275         * lib/sqrtl.c: Likewise.
70276         * lib/trim.c: Likewise.
70277         * lib/cosl.c: Use GNU style indentation. Insert space before function
70278         argument list.
70279         * lib/sinl.c: Likewise.
70280         * lib/tsearch.c: Insert space after 'for'.
70281         Reported by Jim Meyering.
70283 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
70285         * maint.mk (sc_Wundef_boolean): Check for the presence of the
70286         config header before grepping, as it's not present before
70287         autoreconf/configure are run.  Reported by Simon Josefsson.
70289 2010-03-23  Bruno Haible  <bruno@clisp.org>
70291         pt_chown: Make it work with automake < 1.11.
70292         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
70293         Reported by Simon Josefsson.
70295 2010-03-23  Bruno Haible  <bruno@clisp.org>
70297         pt_chown: Don't depend on GPLed modules.
70298         * lib/pt_chown.c: Don't include idpriv.h.
70299         (main): Don't drop privileges.
70300         * modules/pt_chown (Depends-on): Remove idpriv-drop.
70301         Reported by Simon Josefsson.
70303 2010-03-24  Simon Josefsson  <simon@josefsson.org>
70305         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
70306         suggestions from karl@freefriends.org (Karl Berry).
70308 2010-03-22  Eric Blake  <eblake@redhat.com>
70310         gethostname: further tweaks
70311         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
70312         are overriding gethostname.
70313         Suggested by Bruno Haible.
70315 2010-03-21  Bruno Haible  <bruno@clisp.org>
70317         Fix comments.
70318         * lib/forkpty.c (rpl_forkpty): Fix comment.
70319         * lib/openpty.c (rpl_openpty): Likewise.
70320         Reported by Eric Blake.
70322 2010-03-22  Eric Blake  <eblake@redhat.com>
70324         gethostname: fix build on mingw
70325         * lib/unistd.in.h (includes): Work around fact that mingw
70326         <winsock2.h> re-includes <unistd.h>, by avoiding any
70327         redeclarations if we are being included by <winsock2.h>.
70328         Reported by Matthias Bolte.
70330 2010-03-21  Bruno Haible  <bruno@clisp.org>
70332         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70333         * lib/forkpty.c (forkpty): New replacement function, from glibc with
70334         modifications.
70335         * lib/pty.in.h (forkpty): Update declaration. Add comments.
70336         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
70337         provide the replacement.
70338         * modules/forkpty (Depends-on): Add openpty, login_tty.
70339         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
70340         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
70341         * doc/glibc-functions/forkpty.texi: More supported platforms.
70342         * config/srclist.txt: Add forkpty.c (commented).
70344 2010-03-21  Bruno Haible  <bruno@clisp.org>
70346         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
70347         (Makefile.am): Verify that PTY_LIB is defined.
70349         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
70351 2010-03-21  Bruno Haible  <bruno@clisp.org>
70353         Tests for module 'login_tty'.
70354         * modules/login_tty-tests: New file.
70355         * tests/test-login_tty.c: New file.
70357         New module 'login_tty'.
70358         * lib/login_tty.c: New file.
70359         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
70360         * modules/login_tty: New file.
70361         * doc/glibc-functions/login_tty.texi: Mention the new module.
70363 2010-03-21  Bruno Haible  <bruno@clisp.org>
70365         login_tty: Documentation.
70366         * doc/glibc-functions/login_tty.texi: New file.
70367         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70369 2010-03-21  Bruno Haible  <bruno@clisp.org>
70371         pty: Consistent macro naming.
70372         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70373         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70374         * modules/pty (configure.ac): Update.
70376 2010-03-21  Bruno Haible  <bruno@clisp.org>
70378         Tests for openpty: Make stricter.
70379         * tests/test-openpty.c (main): Add test of canonical processing and
70380         erase.
70381         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70383         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70384         * lib/openpty.c (openpty): New replacement function.
70385         * lib/pty.in.h: Include <termios.h>.
70386         (openpty): Update declaration. Add comments.
70387         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70388         is not declared, arrange to provide the replacement. Check for _getpty
70389         and posix_openpt.
70390         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70391         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70392         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70393         * modules/pty-tests (test_pty_c___LDADD): New variable.
70394         * doc/glibc-functions/openpty.texi: More supported platforms.
70396 2010-03-21  Bruno Haible  <bruno@clisp.org>
70398         setenv: Tweaks.
70399         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70400         the test program.
70401         * doc/posix-functions/setenv.texi: Update platforms list.
70403 2010-03-21  Bruno Haible  <bruno@clisp.org>
70405         New module 'unlockpt'.
70406         * lib/unlockpt.c: New file, from glibc with modifications.
70407         * m4/unlockpt.m4: New file.
70408         * modules/unlockpt: New file.
70409         * lib/stdlib.in.h (unlockpt): New declaration.
70410         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70411         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70412         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70413         HAVE_UNLOCKPT.
70414         * doc/posix-functions/unlockpt.texi: Mention the new module.
70415         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70416         * config/srclist.txt: Add unlockpt.c (commented).
70418 2010-03-21  Jim Meyering  <meyering@redhat.com>
70420         maint.mk: prohibit inclusion of "intprops.h" without use
70421         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70423 2010-03-21  Bruno Haible  <bruno@clisp.org>
70425         New module 'grantpt'.
70426         * lib/grantpt.c: New file, from glibc with modifications.
70427         * m4/grantpt.m4: New file.
70428         * modules/grantpt: New file.
70429         * lib/stdlib.in.h (grantpt): New declaration.
70430         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70431         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70432         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70433         HAVE_GRANTPT.
70434         * doc/posix-functions/grantpt.texi: Mention the new module.
70435         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70436         * config/srclist.txt: Add grantpt.c (commented).
70438 2010-03-21  Bruno Haible  <bruno@clisp.org>
70440         New module 'pt_chown'.
70441         * lib/pt_chown.c: New file, from glibc with modifications.
70442         * lib/pty-private.h: New file, from glibc with modifications.
70443         * modules/pt_chown: New file.
70444         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70446 2010-03-21  Bruno Haible  <bruno@clisp.org>
70448         Tests for module 'ptsname'.
70449         * modules/ptsname-tests: New file.
70450         * tests/test-ptsname.c: New file.
70452         New module 'ptsname'.
70453         * lib/ptsname.c: New file, from glibc with modifications.
70454         * m4/ptsname.m4: New file.
70455         * modules/ptsname: New file.
70456         * lib/stdlib.in.h (ptsname): New declaration.
70457         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70458         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70459         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70460         HAVE_PTSNAME.
70461         * doc/posix-functions/ptsname.texi: Mention the new module.
70462         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70463         * config/srclist.txt: Add ptsname.c (commented).
70465 2010-03-21  Bruno Haible  <bruno@clisp.org>
70467         Tests for module 'ttyname_r'.
70468         * modules/ttyname_r-tests: New file.
70469         * tests/test-ttyname_r.c: New file.
70471         New module 'ttyname_r'.
70472         * lib/ttyname_r.c: New file.
70473         * m4/ttyname_r.m4: New file.
70474         * modules/ttyname_r: New file.
70475         * lib/unistd.in.h (ttyname_r): New declaration.
70476         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
70477         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
70478         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
70479         HAVE_TTYNAME_R.
70480         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
70481         * doc/posix-functions/ttyname_r.texi: Mention the new module.
70483 2010-03-20  Bruno Haible  <bruno@clisp.org>
70485         signal: Undefine macro definitions in C++ mode.
70486         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
70487         sigfillset): Undefine macro definitions from the system header in C++
70488         mode.
70489         Reported by John W. Eaton <jwe@gnu.org>.
70491 2010-03-20  Bruno Haible  <bruno@clisp.org>
70493         Ensure no #include statements inside extern "C" { ... }.
70494         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
70495         contain #include statements.
70496         * lib/time.in.h: Likewise.
70498 2010-03-20  Bruno Haible  <bruno@clisp.org>
70500         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
70501         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
70502         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
70503         Reported by John W. Eaton <jwe@gnu.org>.
70505 2010-03-20  Bruno Haible  <bruno@clisp.org>
70507         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
70508         Reported by Jim Meyering.
70510 2010-03-20  Bruno Haible  <bruno@clisp.org>
70512         pipe: Set errno upon failure.
70513         * lib/pipe.h: Specify that when -1 is returned, errno is set.
70514         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70515         errno value in error message.
70517 2010-03-20  Bruno Haible  <bruno@clisp.org>
70518             Jim Meyering  <meyering@redhat.com>
70520         lchown: Avoid "unused variable" warning.
70521         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
70523 2010-03-20  Bruno Haible  <bruno@clisp.org>
70525         Work around unlink() bug on MacOS X 10.5.6.
70526         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
70527         attempting to unlink a parent directory.
70528         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
70529         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
70530         activate for the replacement function.
70531         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
70533 2010-03-20  Bruno Haible  <bruno@clisp.org>
70535         Fix link errors on Solaris 8.
70536         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
70537         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
70539 2010-03-19  Jim Meyering  <meyering@redhat.com>
70541         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
70542         The _LIBC implementation of build_range_exp correctly honors the
70543         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
70544         However, the non-_LIBC implementation would ignore that syntax-bit
70545         flag and return REG_ERANGE unconditionally.
70546         This change makes it honor that flag.
70547         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
70548         Make two pointer parameters "const".
70549         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
70550         (parse_bracket_exp): Update caller.
70552         regex.m4: correct the reversed range endpoint ([b-a]) test
70553         * m4/regex.m4: When requiring that [b-a] evoke failure,
70554         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
70555         test pass once again for x86-based systems.
70557 2010-03-19  Bruno Haible  <bruno@clisp.org>
70559         scandir: Fix link error on Solaris 8.
70560         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
70561         macros.
70563 2010-03-19  Bruno Haible  <bruno@clisp.org>
70565         getusershell: Fix documentation.
70566         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
70567         module.
70568         * doc/glibc-functions/setusershell.texi: Likewise.
70570         getusershell: Provide declaration, missing on Solaris 9.
70571         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
70572         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
70573         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
70574         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
70575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70576         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
70577         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
70578         HAVE_GETUSERSHELL.
70579         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
70581 2010-03-19  Bruno Haible  <bruno@clisp.org>
70583         wctype: Provide iswblank function.
70584         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
70585         exists and is fine.
70586         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
70587         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
70588         * tests/test-wctype.c (main): Re-enable the iswblank tests.
70589         * doc/posix-functions/iswblank.texi: Update.
70591 2010-03-19  Bruno Haible  <bruno@clisp.org>
70593         Tests of module 'pty' in C++ mode.
70594         * modules/pty-tests: New file.
70595         * tests/test-pty-c++.cc: New file.
70596         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70598 2010-03-19  Eric Blake  <eblake@redhat.com>
70600         logb: fix documentation
70601         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
70602         1.5 declaration bug.
70604         forkpty, openpty: prefer glibc's const-safe prototype
70605         * lib/forkpty.c (rpl_forkpty): New file.
70606         * lib/openpty.c (rpl_openpty): Likewise.
70607         * modules/forkpty (Files): Distribute it.
70608         * modules/openpty (Files): Likewise.
70609         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70610         check...
70611         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70612         replacement for non-const BSD signature.
70613         * modules/pty (Makefile.am): Substitute witnesses.
70614         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70615         * tests/test-forkpty.c: Update signature check.
70616         * tests/test-openpty.c: Likewise.
70617         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
70618         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70620         forkpty, openpty: split functions into new modules
70621         * modules/pty (Makefile.am): Substitute new witnesses.
70622         (Libraries): Move library detection...
70623         * modules/forkpty: ...into new module.
70624         * modules/openpty: Another new module.
70625         * modules/pty-tests: Rename and split...
70626         * modules/forkpty-tests: ...to this...
70627         * modules/openpty-tests: ...and this.
70628         * tests/test-pty.c: Rename and split...
70629         * tests/test-forkpty.c: ...to this...
70630         * tests/test-openpty.c: ...and this.
70631         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
70632         (gl_PTY): Split library searching...
70633         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
70634         (gl_FORKPTY, gl_OPENPTY): New macros.
70635         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
70636         * NEWS: Mention the split.
70637         * MODULES.html.sh (Misc): Document the modules.
70638         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
70639         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70641         pty: improve replacement header
70642         * lib/pty.in.h: New file.
70643         * modules/pty (Files): Ship it.
70644         (Makefile.am): Always build replacement.
70645         * m4/pty.m4: Rename...
70646         * m4/pty_h.m4: ...to this.
70647         (gl_PTY): Modernize setting of witness macros; update check of
70648         forkpty to take proper advantage of cache.
70649         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
70651         getopt: avoid compiler warning
70652         * lib/getopt.c (attribute_hidden): Remove unused macro.
70654 2010-03-18  Bruno Haible  <bruno@clisp.org>
70656         Fix link errors on Solaris 8.
70657         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
70658         * modules/search-tests (test_search_c___LDADD): Likewise.
70659         * modules/signal-tests (test_signal_c___LDADD): Likewise.
70660         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
70661         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
70662         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
70663         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
70664         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
70665         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
70667 2010-03-18  Bruno Haible  <bruno@clisp.org>
70669         Fix bug introduced on 2010-03-14.
70670         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
70671         (gl_SPAWN_H): Require it.
70672         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
70673         Reported by Simon Josefsson.
70675 2010-03-18  Bruno Haible  <bruno@clisp.org>
70677         Fix typo introduced on 2009-12-31.
70678         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
70679         posix_spawn_file_actions_adddup2.
70681 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70682         and Eric Blake  <eblake@redhat.com>
70684         test-vc-list-files-git: make more robust
70685         * tests/test-vc-list-files-git.sh: Unset problematic environment
70686         variables.  Chain commands together.
70688 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70690         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70691         `AC_CHECK_DECL' invocation.
70693 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70695         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70696         appears before executable statements. Suggested by Petr Sumbera
70697         <Petr.Sumbera@Sun.COM>.
70699 2010-03-14  Bruno Haible  <bruno@clisp.org>
70701         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70702         portability problems. Instead use a simpler test.
70703         (main): Check that invalid arguments are rejected only on Linux.
70705 2010-03-14  Bruno Haible  <bruno@clisp.org>
70707         Fix bug introduced on 2009-12-31.
70708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70709         gl_PREREQ_SYS_H_WINSOCK2 always.
70710         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70711         SYS_SOCKET_H variable.
70712         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70713         Update comments.
70714         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70715         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70716         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70717         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70718         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70720 2010-03-14  Bruno Haible  <bruno@clisp.org>
70722         Fix values returned by sinl, cosl.
70723         * lib/trigl.h: Add specification comments.
70724         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70725         that combines the values from the precomputed table with the values of
70726         the Chebyshev polynomials.
70728 2010-03-14  Bruno Haible  <bruno@clisp.org>
70730         Fix compilation error when modules 'posix_spawn[p]' are not used.
70731         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70732         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70734 2010-03-14  Bruno Haible  <bruno@clisp.org>
70736         Fix compilation error on mingw when module 'time_r' is not used.
70737         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70738         is 1.
70739         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70740         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70741         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70742         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70744 2010-03-14  Bruno Haible  <bruno@clisp.org>
70746         Fix compilation error with Sun C.
70747         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70748         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70749         instead of GCC specific ULONG_LONG_MAX.
70750         * lib/xstrtoll.c: Likewise.
70751         * lib/xstrtoull.c: Likewise.
70753 2010-03-13  Bruno Haible  <bruno@clisp.org>
70755         Allow the user to disable C++ code and tests.
70756         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70757         (gl_PROG_ANSI_CXX): Require it.
70759 2010-03-13  Bruno Haible  <bruno@clisp.org>
70761         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70762         cases.
70764 2010-03-13  Bruno Haible  <bruno@clisp.org>
70766         Test that gnulib does not break the standard C++ headers.
70767         * tests/test-locale-c++2.cc: New file.
70768         * modules/locale-tests (Files): Add it.
70769         (Makefile.am): Compile it for test-locale-c++.
70770         * tests/test-math-c++2.cc: New file.
70771         * modules/math-tests (Files): Add it.
70772         (Makefile.am): Compile it for test-math-c++.
70773         * tests/test-signal-c++2.cc: New file.
70774         * modules/signal-tests (Files): Add it.
70775         (Makefile.am): Compile it for test-signal-c++.
70776         * tests/test-stdio-c++2.cc: New file.
70777         * modules/stdio-tests (Files): Add it.
70778         (Makefile.am): Compile it for test-stdio-c++.
70779         * tests/test-stdlib-c++2.cc: New file.
70780         * modules/stdlib-tests (Files): Add it.
70781         (Makefile.am): Compile it for test-stdlib-c++.
70782         * tests/test-string-c++2.cc: New file.
70783         * modules/string-tests (Files): Add it.
70784         (Makefile.am): Compile it for test-string-c++.
70785         * tests/test-time-c++2.cc: New file.
70786         * modules/time-tests (Files): Add it.
70787         (Makefile.am): Compile it for test-time-c++.
70788         Reported by John W. Eaton <jwe@gnu.org>.
70790 2010-03-13  Bruno Haible  <bruno@clisp.org>
70792         * gnulib-tool (func_usage): Clarify which options are available for
70793         --create-testdir and --create-megatestdir.
70795 2010-03-13  Bruno Haible  <bruno@clisp.org>
70797         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70798         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70799         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70800         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70801         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70802         when appropriate.
70803         Reported by Jim Meyering.
70805 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70807         * gnulib-tool (func_import): Explain origin of code.
70809 2010-03-12  Bruno Haible  <bruno@clisp.org>
70811         Fix problem with automake's definition of CXXLINK.
70812         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70813         Reported by Simon Josefsson and Ludovic Courtès.
70815 2010-03-12  Bruno Haible  <bruno@clisp.org>
70817         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70818         stable releases.
70820 2010-03-11  Bruno Haible  <bruno@clisp.org>
70822         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70823         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70824         whether the system provides one variant or multiple variants of the
70825         function.
70826         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70827         C++ compilers.
70828         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70829         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70830         Reported by Jim Meyering.
70832 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70834         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70836 2010-03-08  Bruno Haible  <bruno@clisp.org>
70838         gnulib-tool: Add support for --libtool in --create-testdir.
70839         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70840         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70842 2010-03-08  Eric Blake  <eblake@redhat.com>
70844         gnulib-tool.texi: mention possibility of git submodule
70845         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70846         submodules.
70847         * doc/.gitignore: Ignore another generated file.
70849 2010-03-08  Karl Berry  <karl@gnu.org>
70851         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70852         of committing gnulib files while skipping others.
70854 2010-03-07  Bruno Haible  <bruno@clisp.org>
70856         Tests of module 'wctype' in C++ mode.
70857         * tests/test-wctype-c++.cc: New file.
70858         * modules/wctype-tests (Files): Add it and tests/signature.h.
70859         (Depends-on): Add ansi-c++-opt.
70860         (Makefile.am): Arrange to compile and run test-wctype-c++.
70862         Tests of module 'wchar' in C++ mode.
70863         * tests/test-wchar-c++.cc: New file.
70864         * modules/wchar-tests (Files): Add it and tests/signature.h.
70865         (Depends-on): Add ansi-c++-opt.
70866         (Makefile.am): Arrange to compile and run test-wchar-c++.
70867         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70868         gl_MODULE_INDICATOR.
70870         Tests of module 'unistd' in C++ mode.
70871         * tests/test-unistd-c++.cc: New file.
70872         * modules/unistd-tests (Files): Add it and tests/signature.h.
70873         (Depends-on): Add ansi-c++-opt.
70874         (Makefile.am): Arrange to compile and run test-unistd-c++.
70875         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70876         gl_MODULE_INDICATOR.
70878         Tests of module 'time' in C++ mode.
70879         * tests/test-time-c++.cc: New file.
70880         * modules/time-tests (Files): Add it and tests/signature.h.
70881         (Depends-on): Add ansi-c++-opt.
70882         (Makefile.am): Arrange to compile and run test-time-c++.
70883         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70885         Tests of module 'sys_time' in C++ mode.
70886         * tests/test-sys_time-c++.cc: New file.
70887         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70888         (Depends-on): Add ansi-c++-opt.
70889         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70890         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70891         gl_MODULE_INDICATOR.
70893         Tests of module 'sys_stat' in C++ mode.
70894         * tests/test-sys_stat-c++.cc: New file.
70895         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70896         (Depends-on): Add ansi-c++-opt.
70897         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70898         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70899         gl_MODULE_INDICATOR.
70901         Tests of module 'sys_socket' in C++ mode.
70902         * tests/test-sys_socket-c++.cc: New file.
70903         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70904         (Depends-on): Add ansi-c++-opt.
70905         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70906         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70907         gl_MODULE_INDICATOR.
70909         Tests of module 'sys_select' in C++ mode.
70910         * tests/test-sys_select-c++.cc: New file.
70911         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70912         (Depends-on): Add ansi-c++-opt.
70913         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70914         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70915         gl_MODULE_INDICATOR.
70917         Tests of module 'sys_ioctl' in C++ mode.
70918         * tests/test-sys_ioctl-c++.cc: New file.
70919         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70920         (Depends-on): Add ansi-c++-opt.
70921         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70922         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70923         gl_MODULE_INDICATOR.
70925         Tests of module 'string' in C++ mode.
70926         * tests/test-string-c++.cc: New file.
70927         * modules/string-tests (Files): Add it and tests/signature.h.
70928         (Depends-on): Add ansi-c++-opt.
70929         (Makefile.am): Arrange to compile and run test-string-c++.
70930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70931         gl_MODULE_INDICATOR.
70933         Tests of module 'stdlib' in C++ mode.
70934         * tests/test-stdlib-c++.cc: New file.
70935         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70936         (Depends-on): Add ansi-c++-opt.
70937         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70938         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70939         gl_MODULE_INDICATOR.
70941         Tests of module 'stdio' in C++ mode.
70942         * tests/test-stdio-c++.cc: New file.
70943         * modules/stdio-tests (Files): Add it and tests/signature.h.
70944         (Depends-on): Add ansi-c++-opt.
70945         (Makefile.am): Arrange to compile and run test-stdio-c++.
70946         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70947         gl_MODULE_INDICATOR.
70949         Tests of module 'spawn' in C++ mode.
70950         * tests/test-spawn-c++.cc: New file.
70951         * modules/spawn-tests (Files): Add it and tests/signature.h.
70952         (Depends-on): Add ansi-c++-opt.
70953         (Makefile.am): Arrange to compile and run test-spawn-c++.
70954         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70955         gl_MODULE_INDICATOR.
70957         Tests of module 'signal' in C++ mode.
70958         * tests/test-signal-c++.cc: New file.
70959         * modules/signal-tests (Files): Add it and tests/signature.h.
70960         (Depends-on): Add ansi-c++-opt.
70961         (Makefile.am): Arrange to compile and run test-signal-c++.
70962         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70963         gl_MODULE_INDICATOR.
70965         Tests of module 'search' in C++ mode.
70966         * tests/test-search-c++.cc: New file.
70967         * modules/search-tests (Files): Add it and tests/signature.h.
70968         (Depends-on): Add ansi-c++-opt.
70969         (Makefile.am): Arrange to compile and run test-search-c++.
70970         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70971         gl_MODULE_INDICATOR.
70973         Tests of module 'math' in C++ mode.
70974         * tests/test-math-c++.cc: New file.
70975         * modules/math-tests (Files): Add it and tests/signature.h.
70976         (Depends-on): Add ansi-c++-opt.
70977         (Makefile.am): Arrange to compile and run test-math-c++.
70978         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70980         Tests of module 'locale' in C++ mode.
70981         * tests/test-locale-c++.cc: New file.
70982         * modules/locale-tests (Files): Add it and tests/signature.h.
70983         (Depends-on): Add ansi-c++-opt.
70984         (Makefile.am): Arrange to compile and run test-locale-c++.
70985         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70986         gl_MODULE_INDICATOR.
70988         Tests of module 'langinfo' in C++ mode.
70989         * tests/test-langinfo-c++.cc: New file.
70990         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70991         (Depends-on): Add ansi-c++-opt.
70992         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70993         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70994         gl_MODULE_INDICATOR.
70996         Tests of module 'iconv-h' in C++ mode.
70997         * tests/test-iconv-h-c++.cc: New file.
70998         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70999         (Depends-on): Add ansi-c++-opt.
71000         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
71002         Tests of module 'glob' in C++ mode.
71003         * tests/test-glob-c++.cc: New file.
71004         * modules/glob-tests (Files): Add it.
71005         (Depends-on): Add ansi-c++-opt.
71006         (Makefile.am): Arrange to compile and run test-glob-c++.
71008         Tests of module 'fcntl-h' in C++ mode.
71009         * tests/test-fcntl-h-c++.cc: New file.
71010         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
71011         (Depends-on): Add ansi-c++-opt.
71012         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
71013         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
71014         gl_MODULE_INDICATOR.
71016         Tests of module 'dirent' in C++ mode.
71017         * tests/test-dirent-c++.cc: New file.
71018         * modules/dirent-tests (Files): Add it and tests/signature.h.
71019         (Depends-on): Add ansi-c++-opt.
71020         (Makefile.am): Arrange to compile and run test-dirent-c++.
71021         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71022         gl_MODULE_INDICATOR.
71024         New module 'ansi-c++-opt'.
71025         * modules/ansi-c++-opt: New file.
71026         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
71028         Document C++ namespace mode.
71029         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
71031         wctype: Avoid #define replacements in C++ mode.
71032         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
71033         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
71034         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
71035         In C++, define a namespaced alias symbol.
71036         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
71037         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
71038         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
71039         rule.
71041         wchar: Avoid #define replacements in C++ mode.
71042         * lib/wchar.in.h: Include c++defs.h.
71043         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
71044         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
71045         symbol.
71046         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
71047         * modules/wchar (Depends-on): Add c++defs.
71048         (Makefile.am): Update wchar.h rule.
71050         unistd: Avoid #define replacements in C++ mode.
71051         * lib/unistd.in.h: Include c++defs.h.
71052         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
71053         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
71054         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
71055         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
71056         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
71057         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
71058         symbol.
71059         (environ): Update.
71060         * modules/unistd (Depends-on): Add c++defs.
71061         (Makefile.am): Update unistd.h rule.
71063         time: Avoid #define replacements in C++ mode.
71064         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
71065         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
71066         define a namespaced alias symbol.
71067         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
71068         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
71069         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
71070         * modules/time (Depends-on): Add c++defs, warn-on-use.
71071         (Makefile.am): Update time.h rule.
71072         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71073         * modules/nanosleep (configure.ac): Likewise.
71074         * modules/strptime (configure.ac): Likewise.
71075         * modules/timegm (configure.ac): Likewise.
71077         sys_time: Avoid #define replacements in C++ mode.
71078         * lib/sys_time.in.h: Include c++defs.h.
71079         (gettimeofday): In C++, define a namespaced alias symbol.
71080         * modules/sys_time (Depends-on): Add c++defs.
71081         (Makefile.am): Update sys/time.h rule.
71083         sys_stat: Avoid #define replacements in C++ mode.
71084         * lib/sys_stat.in.h: Include c++defs.h.
71085         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
71086         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
71087         namespaced alias symbol.
71088         In C++, define a namespaced alias symbol.
71089         * modules/sys_stat (Depends-on): Add c++defs.
71090         (Makefile.am): Update sys/stat.h rule.
71092         sys_socket: Avoid #define replacements in C++ mode.
71093         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
71094         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
71095         definitions also when the system has a <sys/socket.h>.
71096         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71097         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
71098         In C++, define a namespaced alias symbol.
71099         * modules/sys_socket (Depends-on): Add c++defs.
71100         (Makefile.am): Update sys/socket.h rule.
71102         sys_select: Avoid #define replacements in C++ mode.
71103         * lib/sys_select.in.h: Include c++defs.h. Enable the function
71104         definitions also when the system has a <sys/select.h>.
71105         (select): In C++, define a namespaced alias symbol.
71106         * modules/sys_select (Depends-on): Add c++defs.
71107         (Makefile.am): Update sys/select.h rule.
71109         sys_ioctl: Avoid #define replacements in C++ mode.
71110         * lib/sys_ioctl.in.h: Include c++defs.h.
71111         (ioctl): In C++, define a namespaced alias symbol.
71112         * modules/sys_ioctl (Depends-on): Add c++defs.
71113         (Makefile.am): Update sys/ioctl.h rule.
71115         string: Avoid #define replacements in C++ mode.
71116         * lib/string.in.h: Include c++defs.h.
71117         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
71118         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71119         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71120         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
71121         strsignal, strverscmp): In C++, define a namespaced alias symbol.
71122         * modules/string (Depends-on): Add c++defs.
71123         (Makefile.am): Update string.h rule.
71125         stdlib: Avoid #define replacements in C++ mode.
71126         * lib/stdlib.in.h: Include c++defs.h.
71127         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
71128         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
71129         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
71130         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
71131         symbol.
71132         * modules/stdlib (Depends-on): Add c++defs.
71133         (Makefile.am): Update stdlib.h rule.
71135         stdio: Avoid #define replacements in C++ mode.
71136         * lib/stdio.in.h: Include c++defs.h.
71137         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
71138         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
71139         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
71140         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
71141         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
71142         namespaced alias symbol.
71143         * modules/stdio (Depends-on): Add c++defs.
71144         (Makefile.am): Update stdio.h rule.
71146         spawn: Avoid #define replacements in C++ mode.
71147         * lib/spawn.in.h: Include c++defs.h.
71148         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71149         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71150         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71151         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71152         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71153         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71154         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71155         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71156         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71157         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71158         In C++, define a namespaced alias symbol.
71159         * modules/spawn (Depends-on): Add c++defs.
71160         (Makefile.am): Update spawn.h rule.
71162         signal: Avoid #define replacements in C++ mode.
71163         * lib/signal.in.h: Include c++defs.h.
71164         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71165         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
71166         namespaced alias symbol.
71167         * modules/signal (Depends-on): Add c++defs.
71168         (Makefile.am): Update signal.h rule.
71170         search: Avoid #define replacements in C++ mode.
71171         * lib/search.in.h: Include c++defs.h.
71172         (_gl_search_compar_fn, _gl_search_action_fn): New types.
71173         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
71174         symbol.
71175         * modules/search (Depends-on): Add c++defs.
71176         (Makefile.am): Update search.h rule.
71178         math: Avoid #define replacements in C++ mode.
71179         * lib/math.in.h: Include c++defs.h.
71180         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
71181         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
71182         trunc, truncl): In C++, define a namespaced alias symbol.
71183         * modules/math (Depends-on): Add c++defs.
71184         (Makefile.am): Update math.h rule.
71186         locale: Avoid #define replacements in C++ mode.
71187         * lib/locale.in.h: Include c++defs.h.
71188         (duplocale): In C++, define a namespaced alias symbol.
71189         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
71190         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
71191         * modules/locale (Depends-on): Add c++defs.
71192         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71194         langinfo: Avoid #define replacements in C++ mode.
71195         * lib/langinfo.in.h: Include c++defs.h.
71196         (nl_langinfo): In C++, define a namespaced alias symbol.
71197         * modules/langinfo (Depends-on): Add c++defs.
71198         (Makefile.am): Update langinfo.h rule.
71200         iconv-h: Avoid #define replacements in C++ mode.
71201         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
71202         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
71203         symbol.
71204         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71205         whenever iconv is present.
71206         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
71207         (Makefile.am): Update iconv.h rule.
71209         glob: Avoid #define replacements in C++ mode.
71210         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
71211         (_gl_glob_errfunc_fn): New type.
71212         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
71213         symbol.
71214         * modules/glob (Depends-on): Add c++defs, warn-on-use.
71215         (Makefile.am): Update glob.h rule.
71217         fcntl-h: Avoid #define replacements in C++ mode.
71218         * lib/fcntl.in.h: Include c++defs.h.
71219         (fcntl, open, openat): In C++, define a namespaced alias symbol.
71220         * modules/fcntl-h (Depends-on): Add c++defs.
71221         (Makefile.am): Update fcntl.h rule.
71223         dirent: Avoid #define replacements in C++ mode.
71224         * lib/dirent.in.h: Include c++defs.h.
71225         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
71226         namespaced alias symbol.
71227         (dirfd): Update declaration.
71228         * modules/dirent (Depends-on): Add c++defs.
71229         (Makefile.am): Update dirent.h rule.
71231         ctype: Make it usable in C++ code.
71232         * lib/ctype.in.h: Include c++defs.h.
71233         (isblank): Declare as extern "C".
71234         * modules/ctype (Depends-on): Add c++defs.
71235         (Makefile.am): Update ctype.h rule.
71237         New module 'c++defs'.
71238         * modules/c++defs: New file.
71239         * build-aux/c++defs.h: New file.
71240         Reported by John W. Eaton <jwe@gnu.org>.
71242 2010-03-07  Bruno Haible  <bruno@clisp.org>
71244         logb: Provide missing declaration for Cygwin.
71245         * lib/math.in.h (logb): New declaration.
71246         * m4/logb.m4: New file.
71247         * modules/logb (Files): Add m4/logb.m4.
71248         (Depends-on): Add math.
71249         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
71250         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
71251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
71252         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
71253         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
71255 2010-03-07  Bruno Haible  <bruno@clisp.org>
71257         Fix test-cond link error.
71258         * tests/test-cond.c: Include <stdio.h>.
71260 2010-03-07  Bruno Haible  <bruno@clisp.org>
71262         Fix test-dirent-safer link error.
71263         * modules/dirent-safer-tests (Makefile.am): Define
71264         test_dirent_safer_LDADD.
71266 2010-03-07  Bruno Haible  <bruno@clisp.org>
71268         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
71269         among default module list.
71271 2010-03-07  Bruno Haible  <bruno@clisp.org>
71273         Fix link error on platforms with GNU libiconv.
71274         * modules/unistr/u8-strcoll-tests (Makefile): Define
71275         test_u8_strcoll_LDADD.
71276         * modules/unistr/u16-strcoll-tests (Makefile): Define
71277         test_u16_strcoll_LDADD.
71278         * modules/unistr/u32-strcoll-tests (Makefile): Define
71279         test_u32_strcoll_LDADD.
71281 2010-03-07  Bruno Haible  <bruno@clisp.org>
71283         Use POSIX declarations for socket functions.
71284         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
71285         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
71286         rpl_sendto): Change declaration to match POSIX.
71287         * lib/connect.c (rpl_connect): Likewise.
71288         * lib/accept.c (rpl_accept): Likewise.
71289         * lib/bind.c (rpl_bind): Likewise.
71290         * lib/getpeername.c (rpl_getpeername): Likewise.
71291         * lib/getsockname.c (rpl_getsockname): Likewise.
71292         * lib/recv.c (rpl_recv): Likewise.
71293         * lib/send.c (rpl_send): Likewise.
71294         * lib/recvfrom.c (rpl_recvfrom): Likewise.
71295         * lib/sendto.c (rpl_sendto): Likewise.
71297 2010-03-06  Bruno Haible  <bruno@clisp.org>
71299         Clarify access, euidaccess, faccessat.
71300         * doc/posix-functions/faccessat.texi: Mention security problem under
71301         "Other problems", not "Portability problems".
71302         * doc/posix-functions/access.texi: Likewise. Mention a related security
71303         problem.
71304         * doc/glibc-functions/euidaccess.texi: Mention security problems.
71305         * lib/euidaccess.c: Add comments about platforms.
71306         * lib/unistd.in.h (access, euidaccess): Add warnings.
71308 2010-03-07  Bruno Haible  <bruno@clisp.org>
71310         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
71311         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
71312         (POSIX_SPAWN_SETSCHEDULER): Likewise.
71313         (POSIX_SPAWN_USEVFORK): Define in a way that works when
71314         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71315         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
71316         declare when POSIX_SPAWN_SETSCHEDULER is zero.
71317         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
71318         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
71319         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
71320         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
71321         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
71322         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
71323         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
71324         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
71325         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
71326         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
71327         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
71328         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
71329         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
71330         Likewise.
71331         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
71332         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
71333         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
71334         Likewise.
71335         * tests/test-spawn.c (main): Make it work when
71336         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71338 2010-03-07  Bruno Haible  <bruno@clisp.org>
71340         Fix incorrect Makefile.am generation in German locale.
71341         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71342         Execute sed command with character range in C locale.
71344 2010-03-06  Bruno Haible  <bruno@clisp.org>
71346         Tests for module 'iconv-h'.
71347         * modules/iconv-h-tests: New file.
71348         * tests/test-iconv-h.c: New file.
71350         New module 'iconv-h'.
71351         * modules/iconv-h: New file.
71352         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
71353         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
71354         (configure.ac): Remove gl_ICONV_H.
71355         (Makefile.am): Remove rule for iconv.h.
71357 2010-03-06  Bruno Haible  <bruno@clisp.org>
71359         More consistent naming of *.m4 files.
71360         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
71361         * modules/wctype (Files): Update.
71363         More consistent naming of *.m4 files.
71364         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71365         * modules/wchar (Files): Update.
71367 2010-03-06  Jim Meyering  <meyering@redhat.com>
71369         euidaccess: relax license to LGPLv2+
71370         * modules/euidaccess (License): Relax to LGPLv2+.
71372 2010-03-06  Bruno Haible  <bruno@clisp.org>
71374         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71375         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71376         (Makefile.am): Augment lib_SOURCES instead.
71378 2010-03-04  Jim Meyering  <meyering@redhat.com>
71380         utime: remove obsolete module
71381         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71382         unnecessary for years, and has been marked as obsolete for 10 months.
71383         * modules/utime: Remove file.
71384         * lib/utime.c: Remove file.
71385         * m4/utime.m4: Remove file.
71386         * m4/utimes-null.m4: Remove file.
71387         * doc/posix-functions/utime.texi (utime): Remove reference to
71388         the module.  Move the sole "fixed by gnulib" item into the
71389         "problems not fixed by Gnulib" list.
71390         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71392 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71394         * modules/exit (License): Relax license to LGPLv2+.
71395         (Status): Mark as obsolete.
71396         * NEWS: Mention deprecated 'exit' module.
71397         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71398         of now obsolete 'exit'.
71400 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71402         fts-lgpl: remove unused module
71403         * modules/fts-lgpl: Remove.
71404         * MODULES.html.sh (func_all_modules): Adjust.
71405         * check-module (find_included_lib_files): Adjust.
71406         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71408 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71410         copy-acl: enhance Solaris ACL error handling
71411         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71412         * lib/set-mode-acl.c (qset_acl): Likewise.
71414 2010-03-02  Bruno Haible  <bruno@clisp.org>
71416         spawn: Don't override the system defined values on FreeBSD 8.
71417         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71418         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71419         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71420         if HAVE_POSIX_SPAWN is 1.
71421         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71423 2010-03-01  Bruno Haible  <bruno@clisp.org>
71425         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71426         regarding Automake.
71428 2010-02-25  Bruno Haible  <bruno@clisp.org>
71430         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71431         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71432         setting, not afterwards.
71433         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71435 2010-02-24  Eric Blake  <eblake@redhat.com>
71437         bootstrap, git-version-gen: use timestamp
71438         * build-aux/git-version-gen (scriptversion): Force UTC.
71439         * build-aux/bootstrap (scriptversion): New variable.
71441         bootstrap: allow older git
71442         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71443         older than 1.6.4.  Requested by the libvirt project.
71445 2010-02-23  Eric Blake  <eblake@redhat.com>
71447         warn-on-use: work with old autoconf
71448         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71449         AS_VAR semantics of autoconf 2.60.
71450         Reported by Bruno Haible.
71452         bootstrap: improve some comments
71453         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71454         clarification comments.
71456         gettimeofday: provide correct function
71457         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71458         when replacement is declared, otherwise provide gettimeofday.
71459         Reported by Michael Goffioul.
71461 2010-02-23  Jim Meyering  <meyering@redhat.com>
71463         lib-ignore: relax license to "unlimited", not LGPLv2+
71464         * modules/lib-ignore (License): Relax to "unlimited".
71466 2010-02-23  Jim Meyering  <meyering@redhat.com>
71468         lib-ignore: relax license to LGPLv2+
71469         * modules/lib-ignore (License): Relax to LGPLv2+.
71471 2010-02-22  Eric Blake  <eblake@redhat.com>
71473         lseek: avoid bash 3.2 broken pipe bug
71474         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
71475         warning from bash 3.2.
71476         Reported by Ben Pfaff, with analysis from Bruno Haible.
71478         bootstrap: support non-FSF copyright holder
71479         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
71480         bootstrap.conf override of COPYRIGHT_HOLDER.
71481         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
71483         bootstrap: interoperate with gettext 0.14.1
71484         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
71486         bootstrap: allow for alternate submodule location
71487         * build-aux/bootstrap (gnulib_path): New variable; use instead of
71488         hardcoding submodule location.
71489         (gnulib_mk): Allow direct use of Makefile.am.
71491         bootstrap: use GNULIB_SRCDIR to reduce disk usage
71492         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
71493         rather than reconfiguring where the submodule points.
71495         gettimeofday: restore support for platforms that lack function
71496         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
71497         replacement if function is missing.
71498         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
71499         * modules/sys_time (Makefile.am): Substitute it.
71500         * lib/sys_time.in.h (gettimeofday): Check it.
71501         Reported by Michael Goffioul.
71503 2010-02-21  Bruno Haible  <bruno@clisp.org>
71505         * lib/stdio.in.h (obstack_printf): Fix typo.
71507 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
71509         vc-list-files: use bzr ls's -R option
71510         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
71511         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
71513 2010-02-21  Jim Meyering  <meyering@redhat.com>
71515         init.sh: fix EXEEXT shims to work also for names like test-prog
71516         * tests/init.sh: Re-exec a better shell, when needed.
71517         If the current shell lacks support for posix $(...), an init.sh-using
71518         test will now try to find a shell that supports that.  If EXEEXT is
71519         nonempty, we also require support for hyphen-in-alias-name and shell
71520         substitutions like ${var#glob}.  Failure to find such a shell results
71521         in a skipped test.
71523 2010-02-21  Bruno Haible  <bruno@clisp.org>
71525         Really work around "broken pipe" error message from bash 3.2.
71526         * gnulib-tool (func_reset_sigpipe): Remove function.
71527         (echo): In bash 3.2, define to a function that uses printf.
71528         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
71530 2010-02-20  Bruno Haible  <bruno@clisp.org>
71532         Restore support for automake 1.9.6 with autoconf 2.61.
71533         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
71534         Reported by James Youngman <jay@gnu.org>.
71536 2010-02-20  Bruno Haible  <bruno@clisp.org>
71538         Improve *printf warning condition.
71539         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
71540         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71541         and the function is overridden due to SIGPIPE emulation.
71543 2010-02-20  Bruno Haible  <bruno@clisp.org>
71545         * lib/stdio.in.h: Tweak comments.
71547 2010-02-19  Bruno Haible  <bruno@clisp.org>
71549         Make it easier to find modules. New gnulib-tool option '--find'.
71550         * gnulib-tool: New option --find.
71551         (func_usage): Document it.
71552         (func_sanitize_modulelist): New function, extracted from
71553         func_all_modules.
71554         (func_all_modules): Invoke it.
71555         * doc/gnulib-tool.texi (Which modules?): New node.
71557 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
71559         * lib/sys_select.in.h: Provide select replacement even if
71560         sys/select.h exists on a system, for Interix.
71562 2010-02-18  Jim Meyering  <meyering@redhat.com>
71564         init.sh: don't use $(...) just yet
71565         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
71566         to accommodate e.g., Solaris' /bin/sh.
71568 2010-02-17  Bruno Haible  <bruno@clisp.org>
71570         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
71571         Reported by Ludovic Courtès <ludo@gnu.org>.
71573 2010-02-16  Simon Josefsson  <simon@josefsson.org>
71575         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
71576         linking with -lintl.
71578 2010-02-17  Simon Josefsson  <simon@josefsson.org>
71580         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
71581         if not provided by the system's netdb.h.  Reported by
71582         ludo@gnu.org (Ludovic Courtès).
71584 2010-02-15  Jim Meyering  <meyering@redhat.com>
71586         init.sh: improve portability and efficiency
71587         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
71588         "dummy" in a for loop.
71589         Use '!', not '^' to select the complement of a character set used
71590         in a "case" statement.
71591         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
71592         Suggestions from Eric Blake.
71594         init.sh: automatically accommodate programs with the .exe suffix
71595         Automatically arrange for an invocation of "prog" to execute the
71596         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
71597         may use the simpler "prog", yet still work when built on a system
71598         that requires specifying the added suffix.
71599         Do this by constructing a function named "prog" that invokes
71600         "prog.exe" for each .exe file in selected directories.
71601         * tests/init.sh (find_exe_basenames_): New function.
71602         (create_exe_shim_functions_): New function.
71603         (path_prepend_): Use it.
71605         maint.mk: mark syntax-check sc_*.m rules as .PHONY
71606         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
71607         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71609 2010-02-14  Jim Meyering  <meyering@redhat.com>
71611         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71612         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71613         (sc_prohibit_hash_pjw_without_use): New rule.
71615         maint.mk: allow the default upload destination dir to be overridden
71616         * top/maint.mk (upload_dest_dir_): Define with a default that
71617         preserves the status quo.
71618         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
71619         Reported by Peter Simons.
71621         maint.mk: prohibit inclusion of "hash.h" without_use
71622         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
71624 2010-02-10  Jim Meyering  <meyering@redhat.com>
71626         maint.mk: prohibit inclusion of "ignore-value.h" without_use
71627         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
71629 2010-02-09  Eric Blake  <ebb9@byu.net>
71630         and Bruno Haible  <bruno@clisp.org>
71632         obstack-printf-posix: ensure declaration
71633         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
71634         extracted from gl_FUNC_OBSTACK_PRINTF.
71635         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
71636         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71637         Likewise.
71638         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
71639         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
71640         0.
71642 2010-02-08  Bruno Haible  <bruno@clisp.org>
71644         gnulib-tool: Fix typo in 2010-02-07 commit.
71645         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
71646         Reported by Eric Blake.
71648 2010-02-07  Bruno Haible  <bruno@clisp.org>
71650         gnulib-tool: Fix up caching patches.
71651         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
71652         option --no-cache. Use associative arrays when supported by the shell.
71653         (sed_comments): New variable.
71654         (modcache): Renamed from do_cache.
71655         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
71656         abbreviate unnecessarily.
71657         (have_associative): New variable.
71658         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
71659         way also for ksh and zsh.
71660         (func_init_sed_convert_to_cache_statements): New function, extracted
71661         from func_cache_lookup_module. Add support for associative arrays.
71662         Don't set the c_MODULE_cached variable here. Ignore all lines before
71663         the first field header. Remove only the final newline, not all trailing
71664         newlines. Support empty fields correctly. Limit the use of 'eval' to
71665         assignments.
71666         (func_get_description, func_get_status, func_get_notice,
71667         func_get_applicability, func_get_filelist, func_get_dependencies,
71668         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
71669         func_get_automake_snippet, func_get_include_directive,
71670         func_get_link_directive, func_get_license, func_get_maintainer):
71671         Update documentation. List the unoptimized code first. Add support for
71672         associative arrays. Limit the use of 'eval' to assignments.
71673         (func_get_applicability): Undo stylistic pessimisations.
71674         (func_get_automake_snippet, func_get_include_directive): Reduce code
71675         duplication.
71676         (func_modules_transitive_closure, func_modules_add_dummy,
71677         func_modules_notice, func_modules_to_filelist, func_add_file,
71678         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
71679         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
71680         func_create_testdir, func_create_megatestdir): Update documentation.
71682 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71684         * gnulib-tool (func_cache_lookup_module): Store the module name
71685         belonging to the cache variable; error out if two different
71686         module names map to the same cache variable name.
71688 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71690         gnulib-tool: Make caching optional.
71691         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71692         Update matching short versions of --no-changelog.
71693         (func_usage): Update.
71694         (sed_extract_cache_prog): Renamed from ...
71695         (sed_extract_prog): ... this; revert to old extraction script.
71696         (func_get_description, func_get_status)
71697         (func_get_notice, func_get_applicability, func_get_filelist)
71698         (func_get_dependencies, func_get_autoconf_early_snippet)
71699         (func_get_autoconf_snippet, func_get_automake_snippet)
71700         (func_get_include_directive, func_get_link_directive)
71701         (func_get_license, func_get_maintainer): If $do_cache is false,
71702         use old, non-caching extraction scripts.
71703         Suggestion by Bruno Haible.
71705 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71707         gnulib-tool: cache module metainformation.
71708         * gnulib-tool (sed_extract_prog): Match newline before each
71709         header, and rewrite header to a shell variable suffix.
71710         (func_cache_var, func_cache_lookup_module): New functions,
71711         to turn a module name into a cache variable prefix, and to
71712         look up and cache module metainformation.
71713         (func_get_description, func_get_status)
71714         (func_get_notice, func_get_applicability, func_get_filelist)
71715         (func_get_dependencies, func_get_autoconf_early_snippet)
71716         (func_get_autoconf_snippet, func_get_automake_snippet)
71717         (func_get_include_directive, func_get_link_directive)
71718         (func_get_license, func_get_maintainer): Use
71719         func_cache_lookup_module.
71721 2010-02-07  Bruno Haible  <bruno@clisp.org>
71723         fnctl: Fix missing dependency.
71724         * modules/fcntl (Depends-on): Add getdtablesize.
71725         Reported by John W. Eaton <jwe@gnu.org>.
71727 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71729         Argp: fix recognition of short alias options.
71731         * lib/argp-parse.c (convert_options): Fix improper use of
71732         `|' between character values.
71733         * tests/test-argp.c (group1_option): New alias option
71734         --read (-r).
71735         (group1_parser): Special handling for 'r'.
71736         (test15): New test case.
71737         (test_fun): Add test15.
71738         * tests/test-argp-2.sh: Update expected --help and --usage
71739         outputs.
71741 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71743         * tests/test-argp.c: Fix indentation.
71745 2010-02-04  Eric Blake  <ebb9@byu.net>
71747         gettimeofday: expose type of second argument
71748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71749         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71750         * tests/test-gettimeofday.c: Use it to silence warning.
71751         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71752         the issue.
71754 2010-02-03  Jim Meyering  <meyering@redhat.com>
71756         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71757         * lib/regcomp.c (TYPE_SIGNED): Define.
71758         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71760         regcomp.c: avoid a new -Wshadow warning
71761         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71763 2010-02-01  Jim Meyering  <meyering@redhat.com>
71765         removing useless parentheses in cpp #define directives
71766         For motivation, see commit c0221df4, "define STREQ(a,b)
71767         consistently, removing useless parentheses"
71768         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71769         * lib/mountlist.c (MNT_IGNORE): Likewise.
71770         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71772 2010-02-01  Eric Blake  <ebb9@byu.net>
71774         sys_time: use link-warning
71775         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71776         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71777         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71778         * modules/sys_time (Depends-on): Add warn-on-use.
71779         (Makefile.am): Always build replacement.
71780         (configure.ac): Update substitutions.
71781         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71782         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71783         bother with SYS_TIME_H.
71784         * modules/gettimeofday (configure.ac): Declare indicator.
71785         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71786         in use.
71788         closein-tests: silence compiler warning
71789         * tests/test-closein.c (main): Ignore fread result.
71790         * modules/closein-tests (Depends-on): Add ignore-value.
71792         tests: silence warning about system return
71793         * tests/test-areadlink-with-size.c (main): Ignore system result.
71794         * tests/test-areadlink.c (main): Likewise.
71795         * tests/test-areadlinkat-with-size.c (main): Likewise.
71796         * tests/test-areadlinkat.c (main): Likewise.
71797         * tests/test-canonicalize-lgpl.c (main): Likewise.
71798         * tests/test-canonicalize.c (main): Likewise.
71799         * tests/test-chown.c (main): Likewise.
71800         * tests/test-fchownat.c (main): Likewise.
71801         * tests/test-fdutimensat.c (main): Likewise.
71802         * tests/test-fstatat.c (main): Likewise.
71803         * tests/test-futimens.c (main): Likewise.
71804         * tests/test-lchown.c (main): Likewise.
71805         * tests/test-link.c (main): Likewise.
71806         * tests/test-linkat.c (main): Likewise.
71807         * tests/test-lstat.c (main): Likewise.
71808         * tests/test-mkdir.c (main): Likewise.
71809         * tests/test-mkdirat.c (main): Likewise.
71810         * tests/test-mkfifo.c (main): Likewise.
71811         * tests/test-mkfifoat.c (main): Likewise.
71812         * tests/test-mknod.c (main): Likewise.
71813         * tests/test-readlink.c (main): Likewise.
71814         * tests/test-remove.c (main): Likewise.
71815         * tests/test-rename.c (main): Likewise.
71816         * tests/test-renameat.c (main): Likewise.
71817         * tests/test-rmdir.c (main): Likewise.
71818         * tests/test-symlink.c (main): Likewise.
71819         * tests/test-symlinkat.c (main): Likewise.
71820         * tests/test-unlink.c (main): Likewise.
71821         * tests/test-unlinkat.c (main): Likewise.
71822         * tests/test-utimens.c (main): Likewise.
71823         * tests/test-utimensat.c (main): Likewise.
71824         * modules/areadlink-tests (Depends-on): Add ignore-value.
71825         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71826         * modules/areadlinkat-tests (Depends-on): Likewise.
71827         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71828         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71829         * modules/canonicalize-tests (Depends-on): Likewise.
71830         * modules/chown-tests (Depends-on): Likewise.
71831         * modules/fdutimensat-tests (Depends-on): Likewise.
71832         * modules/futimens-tests (Depends-on): Likewise.
71833         * modules/lchown-tests (Depends-on): Likewise.
71834         * modules/link-tests (Depends-on): Likewise.
71835         * modules/linkat-tests (Depends-on): Likewise.
71836         * modules/lstat-tests (Depends-on): Likewise.
71837         * modules/mkdir-tests (Depends-on): Likewise.
71838         * modules/mkfifo-tests (Depends-on): Likewise.
71839         * modules/mkfifoat-tests (Depends-on): Likewise.
71840         * modules/mknod-tests (Depends-on): Likewise.
71841         * modules/openat-tests (Depends-on): Likewise.
71842         * modules/readlink-tests (Depends-on): Likewise.
71843         * modules/remove-tests (Depends-on): Likewise.
71844         * modules/rename-tests (Depends-on): Likewise.
71845         * modules/renameat-tests (Depends-on): Likewise.
71846         * modules/rmdir-tests (Depends-on): Likewise.
71847         * modules/symlink-tests (Depends-on): Likewise.
71848         * modules/symlinkat-tests (Depends-on): Likewise.
71849         * modules/unlink-tests (Depends-on): Likewise.
71850         * modules/utimens-tests (Depends-on): Likewise.
71851         * modules/utimensat-tests (Depends-on): Likewise.
71853 2010-01-31  Bruno Haible  <bruno@clisp.org>
71855         Perform the same test for many <math.h> functions.
71856         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71857         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71858         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71859         of gl_MATHFUNC.
71860         * modules/acos (configure.ac): Likewise.
71861         * modules/asin (configure.ac): Likewise.
71862         * modules/atan (configure.ac): Likewise.
71863         * modules/atan2 (configure.ac): Likewise.
71864         * modules/cbrt (configure.ac): Likewise.
71865         * modules/copysign (configure.ac): Likewise.
71866         * modules/cos (configure.ac): Likewise.
71867         * modules/cosh (configure.ac): Likewise.
71868         * modules/erf (configure.ac): Likewise.
71869         * modules/erfc (configure.ac): Likewise.
71870         * modules/exp (configure.ac): Likewise.
71871         * modules/fmod (configure.ac): Likewise.
71872         * modules/hypot (configure.ac): Likewise.
71873         * modules/j0 (configure.ac): Likewise.
71874         * modules/j1 (configure.ac): Likewise.
71875         * modules/jn (configure.ac): Likewise.
71876         * modules/lgamma (configure.ac): Likewise.
71877         * modules/log (configure.ac): Likewise.
71878         * modules/log10 (configure.ac): Likewise.
71879         * modules/log1p (configure.ac): Likewise.
71880         * modules/pow (configure.ac): Likewise.
71881         * modules/remainder (configure.ac): Likewise.
71882         * modules/sin (configure.ac): Likewise.
71883         * modules/sinh (configure.ac): Likewise.
71884         * modules/tan (configure.ac): Likewise.
71885         * modules/tanh (configure.ac): Likewise.
71886         * modules/y0 (configure.ac): Likewise.
71887         * modules/y1 (configure.ac): Likewise.
71888         * modules/yn (configure.ac): Likewise.
71889         Suggested by Paolo Bonzini.
71891 2010-01-31  Bruno Haible  <bruno@clisp.org>
71893         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71895 2010-01-31  Bruno Haible  <bruno@clisp.org>
71897         Work around getdelim() bug on FreeBSD 8.0.
71898         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71899         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71900         not work.
71901         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71902         is 1.
71903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71904         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71905         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71906         a non-zero size.
71907         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71909 2010-01-31  Bruno Haible  <bruno@clisp.org>
71911         Work around getline() bug on FreeBSD 8.0.
71912         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71913         and a non-zero size.
71914         * tests/test-getline.c (main): Likewise.
71915         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71916         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71918 2010-01-28  Eric Blake  <ebb9@byu.net>
71920         regex: fix build failure
71921         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71922         platforms.
71924 2010-01-28  Jim Meyering  <meyering@redhat.com>
71926         regex: do not ignore memory allocation failure
71927         * lib/regex_internal.c (create_cd_newstate): Detect
71928         re_node_set_init_copy failure.   Extracted from glibc commit
71929         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71931         regex: sync more white-space changes from libc
71932         * lib/regex_internal.c: White-space only changes.
71933         * lib/regexec.c: Likewise.
71935         regex: add many uses of __attribute_warn_unused_result__
71936         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71937         * lib/regexec.c: Likewise.
71938         Extracted from a messy glibc commit.
71940         regcomp.c: spelling and merge-artifact from glibc
71941         * lib/regcomp.c: Merge remainder of glibc's
71942         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71944         regcomp.c: sync white-space changes from glibc
71945         * lib/regcomp.c: Merge to accommodate white space
71946         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71948         regcomp.c: do not ignore internal return values
71949         * lib/regcomp.c: Do not ignore internal return values.
71950         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71951         but without its white-space changes and spelling fixes.
71953         regex_internal.h: define __attribute_warn_unused_result__
71954         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71956         maint: add a syntax-check rule to check for vulnerable Makefile.in
71957         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71959 2010-01-27  Jim Meyering  <meyering@redhat.com>
71961         ncftpput-ftp: clean up spaces
71962         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71963         Remove trailing blanks.
71965 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71967         * build-aux/git-version-gen: Fix copyright statement.
71968         * build-aux/gnupload: Likewise.
71969         * tests/test-arcfour.c: Likewise.
71970         * tests/test-arctwo.c: Likewise.
71971         * tests/test-count-one-bits.c: Likewise.
71972         * tests/test-crc.c: Likewise.
71973         * tests/test-des.c: Likewise.
71974         * tests/test-gc-arcfour.c: Likewise.
71975         * tests/test-gc-arctwo.c: Likewise.
71976         * tests/test-gc-des.c: Likewise.
71977         * tests/test-gc-hmac-md5.c: Likewise.
71978         * tests/test-gc-hmac-sha1.c: Likewise.
71979         * tests/test-gc-md2.c: Likewise.
71980         * tests/test-gc-md4.c: Likewise.
71981         * tests/test-gc-md5.c: Likewise.
71982         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71983         * tests/test-gc-rijndael.c: Likewise.
71984         * tests/test-gc-sha1.c: Likewise.
71985         * tests/test-gc.c: Likewise.
71986         * tests/test-gethostname.c: Likewise.
71987         * tests/test-gettimeofday.c: Likewise.
71988         * tests/test-hash.c: Likewise.
71989         * tests/test-hmac-md5.c: Likewise.
71990         * tests/test-hmac-sha1.c: Likewise.
71991         * tests/test-md2.c: Likewise.
71992         * tests/test-md4.c: Likewise.
71993         * tests/test-md5.c: Likewise.
71994         * tests/test-memchr.c: Likewise.
71995         * tests/test-memchr2.c: Likewise.
71996         * tests/test-memcmp.c: Likewise.
71997         * tests/test-memmem.c: Likewise.
71998         * tests/test-memrchr.c: Likewise.
71999         * tests/test-rawmemchr.c: Likewise.
72000         * tests/test-read-file.c: Likewise.
72001         * tests/test-rijndael.c: Likewise.
72002         * tests/test-sockets.c: Likewise.
72003         * tests/test-strchrnul.c: Likewise.
72004         * tests/test-strstr.c: Likewise.
72005         * tests/test-strtod.c: Likewise.
72006         * build-aux/ncftpput-ftp: Likewise.
72008 2010-01-26  Eric Blake  <ebb9@byu.net>
72010         ignore-value: update recommended header name
72011         * modules/ignore-value (Include): Only use <> for headers that
72012         exist in glibc.
72014 2010-01-26  Jim Meyering  <meyering@redhat.com>
72016         test-userspec.c: avoid compiler warnings
72017         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
72018         and "initialization discards qualifiers..." warnings.
72019         Put the first "uid" in its own scope, and make char* members "const".
72021 2010-01-25  Bruno Haible  <bruno@clisp.org>
72023         gnulib-tool: Make warning diagnostics consistent.
72024         * gnulib-tool (func_warning): New function.
72025         Use it everywhere where gnulib-tool produces output to stderr and it is
72026         not a fatal error.
72028 2010-01-25  Bruno Haible  <bruno@clisp.org>
72030         Fix test dependencies.
72031         * modules/xstrtol-tests (Depends-on): Add inttypes.
72032         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
72034 2010-01-25  Pádraig Brady  <P@draigBrady.com>
72036         syntax-check: detect incorrect boolean macro values in config.h
72037         * modules/maintainer-makefile (configure.ac): Parameterize the location
72038         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
72039         The logic is from Eric Blake and the location indicated by Jim Meyering.
72040         Note the more natural CONFIG_HEADER name is prohibited by automake
72041         for backwards compatibility reasons.
72042         * top/maint.mk (sc_Wundef_boolean): New rule.
72044 2010-01-25  Jim Meyering  <meyering@redhat.com>
72046         bootstrap: detect MacOS 10.6's shasum, too
72047         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
72048         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
72050 2010-01-23  Jim Meyering  <meyering@redhat.com>
72052         xstrtoll: new module
72053         * modules/xstrtoll: New file.
72054         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
72055         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
72056         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
72057         ./configure fails if you use this module and lack "long long".
72058         * modules/xstrtoll-tests: New module.
72059         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
72060         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
72061         new init.sh-based test framework.
72063 2010-01-24  Bruno Haible  <bruno@clisp.org>
72065         Tests for module 'yn'.
72066         * modules/yn-tests: New file.
72067         * tests/test-yn.c: New file.
72069         Tests for module 'y1'.
72070         * modules/y1-tests: New file.
72071         * tests/test-y1.c: New file.
72073         Tests for module 'y0'.
72074         * modules/y0-tests: New file.
72075         * tests/test-y0.c: New file.
72077         Tests for module 'tanh'.
72078         * modules/tanh-tests: New file.
72079         * tests/test-tanh.c: New file.
72081         Tests for module 'tan'.
72082         * modules/tan-tests: New file.
72083         * tests/test-tan.c: New file.
72085         Tests for module 'sqrt'.
72086         * modules/sqrt-tests: New file.
72087         * tests/test-sqrt.c: New file.
72089         Tests for module 'sinh'.
72090         * modules/sinh-tests: New file.
72091         * tests/test-sinh.c: New file.
72093         Tests for module 'sin'.
72094         * modules/sin-tests: New file.
72095         * tests/test-sin.c: New file.
72097         Tests for module 'rint'.
72098         * modules/rint-tests: New file.
72099         * tests/test-rint.c: New file.
72101         Tests for module 'remainder'.
72102         * modules/remainder-tests: New file.
72103         * tests/test-remainder.c: New file.
72105         Tests for module 'pow'.
72106         * modules/pow-tests: New file.
72107         * tests/test-pow.c: New file.
72109         Tests for module 'nextafter'.
72110         * modules/nextafter-tests: New file.
72111         * tests/test-nextafter.c: New file.
72113         Tests for module 'modf'.
72114         * modules/modf-tests: New file.
72115         * tests/test-modf.c: New file.
72117         Tests for module 'logb'.
72118         * modules/logb-tests: New file.
72119         * tests/test-logb.c: New file.
72121         Tests for module 'log1p'.
72122         * modules/log1p-tests: New file.
72123         * tests/test-log1p.c: New file.
72125         Tests for module 'log10'.
72126         * modules/log10-tests: New file.
72127         * tests/test-log10.c: New file.
72129         Tests for module 'log'.
72130         * modules/log-tests: New file.
72131         * tests/test-log.c: New file.
72133         Tests for module 'lgamma'.
72134         * modules/lgamma-tests: New file.
72135         * tests/test-lgamma.c: New file.
72137         Tests for module 'ldexp'.
72138         * modules/ldexp-tests: New file.
72139         * tests/test-ldexp.c: New file.
72141         Tests for module 'jn'.
72142         * modules/jn-tests: New file.
72143         * tests/test-jn.c: New file.
72145         Tests for module 'j1'.
72146         * modules/j1-tests: New file.
72147         * tests/test-j1.c: New file.
72149         Tests for module 'j0'.
72150         * modules/j0-tests: New file.
72151         * tests/test-j0.c: New file.
72153         Tests for module 'hypot'.
72154         * modules/hypot-tests: New file.
72155         * tests/test-hypot.c: New file.
72157         Tests for module 'fmod'.
72158         * modules/fmod-tests: New file.
72159         * tests/test-fmod.c: New file.
72161         Tests for module 'fabs'.
72162         * modules/fabs-tests: New file.
72163         * tests/test-fabs.c: New file.
72165         Tests for module 'exp'.
72166         * modules/exp-tests: New file.
72167         * tests/test-exp.c: New file.
72169         Tests for module 'erfc'.
72170         * modules/erfc-tests: New file.
72171         * tests/test-erfc.c: New file.
72173         Tests for module 'erf'.
72174         * modules/erf-tests: New file.
72175         * tests/test-erf.c: New file.
72177         Tests for module 'cosh'.
72178         * modules/cosh-tests: New file.
72179         * tests/test-cosh.c: New file.
72181         Tests for module 'cos'.
72182         * modules/cos-tests: New file.
72183         * tests/test-cos.c: New file.
72185         Tests for module 'copysign'.
72186         * modules/copysign-tests: New file.
72187         * tests/test-copysign.c: New file.
72189         Tests for module 'cbrt'.
72190         * modules/cbrt-tests: New file.
72191         * tests/test-cbrt.c: New file.
72193         Tests for module 'atan2'.
72194         * modules/atan2-tests: New file.
72195         * tests/test-atan2.c: New file.
72197         Tests for module 'atan'.
72198         * modules/atan-tests: New file.
72199         * tests/test-atan.c: New file.
72201         Tests for module 'asin'.
72202         * modules/asin-tests: New file.
72203         * tests/test-asin.c: New file.
72205         Tests for module 'acos'.
72206         * modules/acos-tests: New file.
72207         * tests/test-acos.c: New file.
72209 2010-01-24  Bruno Haible  <bruno@clisp.org>
72211         Fix tests for common <math.h> functions.
72212         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
72213         code snippet that references the function pointer, rather than merely
72214         calling the function. Substitute the FUNC_LIBM variable.
72215         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
72216         * modules/acos (configure.ac): Likewise.
72217         * modules/asin (configure.ac): Likewise.
72218         * modules/atan (configure.ac): Likewise.
72219         * modules/atan2 (configure.ac): Likewise.
72220         * modules/cbrt (configure.ac): Likewise.
72221         * modules/copysign (configure.ac): Likewise.
72222         * modules/cos (configure.ac): Likewise.
72223         * modules/cosh (configure.ac): Likewise.
72224         * modules/erf (configure.ac): Likewise.
72225         * modules/erfc (configure.ac): Likewise.
72226         * modules/exp (configure.ac): Likewise.
72227         * modules/fabs (configure.ac): Likewise.
72228         * modules/fmod (configure.ac): Likewise.
72229         * modules/hypot (configure.ac): Likewise.
72230         * modules/j0 (configure.ac): Likewise.
72231         * modules/j1 (configure.ac): Likewise.
72232         * modules/jn (configure.ac): Likewise.
72233         * modules/ldexp (configure.ac): Likewise.
72234         * modules/lgamma (configure.ac): Likewise.
72235         * modules/log (configure.ac): Likewise.
72236         * modules/log10 (configure.ac): Likewise.
72237         * modules/log1p (configure.ac): Likewise.
72238         * modules/logb (configure.ac): Likewise.
72239         * modules/modf (configure.ac): Likewise.
72240         * modules/nextafter (configure.ac): Likewise.
72241         * modules/pow (configure.ac): Likewise.
72242         * modules/remainder (configure.ac): Likewise.
72243         * modules/rint (configure.ac): Likewise.
72244         * modules/sin (configure.ac): Likewise.
72245         * modules/sinh (configure.ac): Likewise.
72246         * modules/tan (configure.ac): Likewise.
72247         * modules/tanh (configure.ac): Likewise.
72248         * modules/y0 (configure.ac): Likewise.
72249         * modules/y1 (configure.ac): Likewise.
72250         * modules/yn (configure.ac): Likewise.
72252 2010-01-24  Bruno Haible  <bruno@clisp.org>
72254         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
72255         * tests/test-acosl.c (x): New variable.
72256         (main): Store argument in x and fetch it from x.
72257         * tests/test-asinl.c (x): New variable.
72258         (main): Store argument in x and fetch it from x.
72259         * tests/test-atanl.c (x): New variable.
72260         (main): Store argument in x and fetch it from x.
72261         * tests/test-cosl.c (x): New variable.
72262         (main): Store argument in x and fetch it from x.
72263         * tests/test-expl.c (x): New variable.
72264         (main): Store argument in x and fetch it from x.
72265         * tests/test-logl.c (x): New variable.
72266         (main): Store argument in x and fetch it from x.
72267         * tests/test-sinl.c (x): New variable.
72268         (main): Store argument in x and fetch it from x.
72269         * tests/test-sqrtl.c (x): New variable.
72270         (main): Store argument in x and fetch it from x.
72271         * tests/test-tanl.c (x): New variable.
72272         (main): Store argument in x and fetch it from x.
72274 2010-01-24  Bruno Haible  <bruno@clisp.org>
72276         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
72277         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
72278         assignments to the initial TESTS_ENVIRONMENT.
72279         * doc/gnulib.texi (Unit test modules): Document it.
72280         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
72281         TESTS_ENVIRONMENT.
72282         * modules/btowc-tests (Makefile.am): Likewise.
72283         * modules/c-stack-tests (Makefile.am): Likewise.
72284         * modules/c-strcase-tests (Makefile.am): Likewise.
72285         * modules/copy-file-tests (Makefile.am): Likewise.
72286         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
72287         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
72288         * modules/mbrtowc-tests (Makefile.am): Likewise.
72289         * modules/mbscasecmp-tests (Makefile.am): Likewise.
72290         * modules/mbscasestr-tests (Makefile.am): Likewise.
72291         * modules/mbschr-tests (Makefile.am): Likewise.
72292         * modules/mbscspn-tests (Makefile.am): Likewise.
72293         * modules/mbsinit-tests (Makefile.am): Likewise.
72294         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
72295         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
72296         * modules/mbspbrk-tests (Makefile.am): Likewise.
72297         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
72298         * modules/mbsrchr-tests (Makefile.am): Likewise.
72299         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
72300         * modules/mbsspn-tests (Makefile.am): Likewise.
72301         * modules/mbsstr-tests (Makefile.am): Likewise.
72302         * modules/nl_langinfo-tests (Makefile.am): Likewise.
72303         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
72304         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
72305         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
72306         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
72307         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
72308         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
72309         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
72310         * modules/wcrtomb-tests (Makefile.am): Likewise.
72311         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
72312         * modules/wcsrtombs-tests (Makefile.am): Likewise.
72313         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
72314         assignments from TESTS_ENVIRONMENT.
72315         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
72316         augmentation.
72317         * modules/argp-version-etc-tests (Makefile.am): Likewise.
72318         * modules/atexit-tests (Makefile.am): Likewise.
72319         * modules/binary-io-tests (Makefile.am): Likewise.
72320         * modules/closein-tests (Makefile.am): Likewise.
72321         * modules/dprintf-posix-tests (Makefile.am): Likewise.
72322         * modules/exclude-tests (Makefile.am): Likewise.
72323         * modules/fflush-tests (Makefile.am): Likewise.
72324         * modules/fpending-tests (Makefile.am): Likewise.
72325         * modules/fprintf-posix-tests (Makefile.am): Likewise.
72326         * modules/freadahead-tests (Makefile.am): Likewise.
72327         * modules/freadptr-tests (Makefile.am): Likewise.
72328         * modules/freadseek-tests (Makefile.am): Likewise.
72329         * modules/fseek-tests (Makefile.am): Likewise.
72330         * modules/fseeko-tests (Makefile.am): Likewise.
72331         * modules/ftell-tests (Makefile.am): Likewise.
72332         * modules/ftello-tests (Makefile.am): Likewise.
72333         * modules/idpriv-drop-tests (Makefile.am): Likewise.
72334         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
72335         * modules/lseek-tests (Makefile.am): Likewise.
72336         * modules/parse-duration-tests (Makefile.am): Likewise.
72337         * modules/perror-tests (Makefile.am): Likewise.
72338         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
72339         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
72340         * modules/pipe-tests (Makefile.am): Likewise.
72341         * modules/pread-tests (Makefile.am): Likewise.
72342         * modules/printf-posix-tests (Makefile.am): Likewise.
72343         * modules/select-tests (Makefile.am): Likewise.
72344         * modules/sigpipe-tests (Makefile.am): Likewise.
72345         * modules/tsearch-tests (Makefile.am): Likewise.
72346         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
72347         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
72348         * modules/uniname/uniname-tests (Makefile.am): Likewise.
72349         * modules/uniwidth/width-tests (Makefile.am): Likewise.
72350         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
72351         * modules/version-etc-tests (Makefile.am): Likewise.
72352         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
72353         * modules/vprintf-posix-tests (Makefile.am): Likewise.
72354         * modules/xalloc-die-tests (Makefile.am): Likewise.
72355         * modules/xprintf-posix-tests (Makefile.am): Likewise.
72356         * modules/xstrtoimax-tests (Makefile.am): Likewise.
72357         * modules/xstrtol-tests (Makefile.am): Likewise.
72358         * modules/xstrtoumax-tests (Makefile.am): Likewise.
72359         * modules/yesno-tests (Makefile.am): Likewise.
72360         Suggested by Jim Meyering.
72362 2010-01-24  Bruno Haible  <bruno@clisp.org>
72364         More documentation.
72365         * doc/gnulib.texi (Writing modules): New chapter.
72366         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72367         the new chapter.
72369 2010-01-24  Jim Meyering  <meyering@redhat.com>
72371         maint.mk: do not prepend "./" after filtering
72372         * top/maint.mk (_prepend_srcdir_prefix): New variable
72373         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72374         "./" when $(srcdir) is ".".
72376         define STREQ(a,b) consistently, removing useless parentheses
72377         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72378         since the only risk is that "a" or "b" contains an unparenthesized
72379         comma, but if either did that, STREQ would have 3 or more arguments.
72380         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72381         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72382         * lib/hash-triple.c (STREQ): Likewise.
72383         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72384         * lib/getugroups.c (STREQ): Likewise.
72386 2010-01-23  Jim Meyering  <meyering@redhat.com>
72388         maint.mk: fix syntax-check in a non-srcdir build directory
72389         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72390         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72392 2010-01-22  Jim Meyering  <meyering@redhat.com>
72394         userspec: add unit tests
72395         * tests/test-userspec.c: New file.
72396         * modules/userspec-tests: Likewise.
72398 2010-01-21  Jim Meyering  <meyering@redhat.com>
72400         maint.mk: handle source file names containing "." robustly
72401         * top/maint.mk (_dot_escaped_srcdir): Define.
72402         (VC_LIST): Use it in LHS of sed substitution.
72404 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72406         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72407         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72408         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72409         from a non-srcdir build.
72411 2010-01-20  Eric Blake  <ebb9@byu.net>
72413         warn-on-use: use instead of link-warning
72414         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72415         * modules/unistd (Depends-on, Makefile.am): Likewise.
72416         * modules/arpa_inet (Depends-on): Replace link-warning with
72417         warn-on-use.
72418         (Makefile.am): Update rules accordingly.
72419         * modules/ctype (Depends-on, Makefile.am): Likewise.
72420         * modules/dirent (Depends-on, Makefile.am): Likewise.
72421         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72422         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72423         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72424         * modules/locale (Depends-on, Makefile.am): Likewise.
72425         * modules/math (Depends-on, Makefile.am): Likewise.
72426         * modules/search (Depends-on, Makefile.am): Likewise.
72427         * modules/signal (Depends-on, Makefile.am): Likewise.
72428         * modules/spawn (Depends-on, Makefile.am): Likewise.
72429         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72430         * modules/string (Depends-on, Makefile.am): Likewise.
72431         * modules/strings (Depends-on, Makefile.am): Likewise.
72432         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72433         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72434         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72435         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72436         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72437         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72438         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72439         * modules/wchar (Depends-on, Makefile.am): Likewise.
72440         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72441         should be poisoned.
72442         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72443         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72444         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72445         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72446         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72447         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72448         * m4/math_h.m4 (gl_MATH_H): Likewise.
72449         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72450         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72451         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72452         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72453         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72454         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72455         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72456         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72457         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72458         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72459         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72460         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72461         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72462         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72463         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72464         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72465         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72466         GL_LINK_WARNING.
72467         * lib/ctype.in.h: Likewise.
72468         * lib/dirent.in.h: Likewise.
72469         * lib/fcntl.in.h: Likewise.
72470         * lib/inttypes.in.h: Likewise.
72471         * lib/langinfo.in.h: Likewise.
72472         * lib/locale.in.h: Likewise.
72473         * lib/math.in.h: Likewise.
72474         * lib/search.in.h: Likewise.
72475         * lib/signal.in.h: Likewise.
72476         * lib/spawn.in.h: Likewise.
72477         * lib/stdio.in.h: Likewise.
72478         * lib/stdlib.in.h: Likewise.
72479         * lib/string.in.h: Likewise.
72480         * lib/strings.in.h: Likewise.
72481         * lib/sys_file.in.h: Likewise.
72482         * lib/sys_ioctl.in.h: Likewise.
72483         * lib/sys_select.in.h: Likewise.
72484         * lib/sys_socket.in.h: Likewise.
72485         * lib/sys_stat.in.h: Likewise.
72486         * lib/sys_times.in.h: Likewise.
72487         * lib/sys_utsname.in.h: Likewise.
72488         * lib/unistd.in.h: Likewise.
72489         * lib/wchar.in.h: Likewise.
72491 2010-01-20  Bruno Haible  <bruno@clisp.org>
72493         Avoid duplicate -lm.
72494         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
72495         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
72496         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
72497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
72498         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
72499         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
72500         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
72501         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
72502         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
72503         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
72504         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
72505         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
72506         Reported by Paolo Bonzini.
72508 2010-01-19  Bruno Haible  <bruno@clisp.org>
72510         langinfo, nl_langinfo: Relicense under LGPLv2+.
72511         * modules/langinfo (License): Change to LGPLv2+.
72512         * modules/nl_langinfo (License): Likewise.
72513         Patch by David Lutterkort <lutter@redhat.com>.
72515 2010-01-19  Bruno Haible  <bruno@clisp.org>
72517         Avoid compilation error with cc on OSF/1 5.1.
72518         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
72519         statement, not before.
72520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72522 2010-01-18  Bruno Haible  <bruno@clisp.org>
72524         Avoid a link error due to the __printf__ symbol.
72525         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
72526         and 2.6.x.
72527         (__format__, __printf__): Remove definitions.
72528         * lib/argp-fmtstream.h: Likewise.
72529         * lib/argp.h: Likewise.
72530         * lib/error.h: Likewise.
72531         * lib/vasnprintf.h: Likewise.
72532         * lib/xprintf.h: Likewise.
72533         * lib/xvasprintf.h: Likewise.
72534         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72536 2010-01-18  Bruno Haible  <bruno@clisp.org>
72538         Tests for module 'tanl'.
72539         * modules/tanl-tests: New file.
72540         * tests/test-tanl.c: New file.
72542         Tests for module 'sqrtl'.
72543         * modules/sqrtl-tests: New file.
72544         * tests/test-sqrtl.c: New file.
72546         Tests for module 'sinl'.
72547         * modules/sinl-tests: New file.
72548         * tests/test-sinl.c: New file.
72550         Tests for module 'logl'.
72551         * modules/logl-tests: New file.
72552         * tests/test-logl.c: New file.
72554         Tests for module 'expl'.
72555         * modules/expl-tests: New file.
72556         * tests/test-expl.c: New file.
72558         Tests for module 'cosl'.
72559         * modules/cosl-tests: New file.
72560         * tests/test-cosl.c: New file.
72562         Tests for module 'atanl'.
72563         * modules/atanl-tests: New file.
72564         * tests/test-atanl.c: New file.
72566         Tests for module 'asinl'.
72567         * modules/asinl-tests: New file.
72568         * tests/test-asinl.c: New file.
72570         Tests for module 'acosl'.
72571         * modules/acosl-tests: New file.
72572         * tests/test-acosl.c: New file.
72574         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72575         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
72576         tanl): Use the standard gnulib idiom.
72577         * lib/cosl.c: Don't include trigl.c and sincosl.c.
72578         * lib/sinl.c: Likewise.
72579         * lib/tanl.c: Don't include trigl.c.
72580         (kernel_tanl): Make static.
72581         * lib/sincosl.c: Include trigl.h first.
72582         * lib/trigl.c: Likewise.
72583         * m4/acosl.m4: New file.
72584         * m4/asinl.m4: New file.
72585         * m4/atanl.m4: New file.
72586         * m4/cosl.m4: New file.
72587         * m4/expl.m4: New file.
72588         * m4/logl.m4: New file.
72589         * m4/sinl.m4: New file.
72590         * m4/sqrtl.m4: New file.
72591         * m4/tanl.m4: New file.
72592         * m4/mathl.m4: Remove file.
72593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
72594         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72595         Don't initialize GNULIB_MATHL.
72596         * modules/acosl: New file.
72597         * modules/asinl: New file.
72598         * modules/atanl: New file.
72599         * modules/cosl: New file.
72600         * modules/expl: New file.
72601         * modules/logl: New file.
72602         * modules/sinl: New file.
72603         * modules/sqrtl: New file.
72604         * modules/tanl: New file.
72605         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
72606         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
72607         substitute GNULIB_MATHL.
72608         * modules/mathl: Rewritten.
72609         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72610         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72611         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72612         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72613         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72614         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72615         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72616         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
72617         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
72619 2010-01-18  Bruno Haible  <bruno@clisp.org>
72621         sqrt: Make gl_FUNC_SQRT requirable.
72622         * m4/sqrt.m4: New file.
72623         * modules/sqrt (Files): Add it.
72624         (configure.ac): Invoke gl_FUNC_SQRT.
72626 2010-01-18  Bruno Haible  <bruno@clisp.org>
72628         New modules for common <math.h> functions.
72629         * m4/mathfunc.m4: New file.
72630         * modules/acos: New file.
72631         * modules/asin: New file.
72632         * modules/atan: New file.
72633         * modules/atan2: New file.
72634         * modules/cbrt: New file.
72635         * modules/copysign: New file.
72636         * modules/cos: New file.
72637         * modules/cosh: New file.
72638         * modules/erf: New file.
72639         * modules/erfc: New file.
72640         * modules/exp: New file.
72641         * modules/fabs: New file.
72642         * modules/fmod: New file.
72643         * modules/hypot: New file.
72644         * modules/j0: New file.
72645         * modules/j1: New file.
72646         * modules/jn: New file.
72647         * modules/ldexp: New file.
72648         * modules/lgamma: New file.
72649         * modules/log: New file.
72650         * modules/log10: New file.
72651         * modules/log1p: New file.
72652         * modules/logb: New file.
72653         * modules/modf: New file.
72654         * modules/nextafter: New file.
72655         * modules/pow: New file.
72656         * modules/remainder: New file.
72657         * modules/rint: New file.
72658         * modules/sin: New file.
72659         * modules/sinh: New file.
72660         * modules/sqrt: New file.
72661         * modules/tan: New file.
72662         * modules/tanh: New file.
72663         * modules/y0: New file.
72664         * modules/y1: New file.
72665         * modules/yn: New file.
72666         * doc/posix-functions/acos.texi: Mention the 'acos' module.
72667         * doc/posix-functions/asin.texi: Mention the 'asin' module.
72668         * doc/posix-functions/atan.texi: Mention the 'atan' module.
72669         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
72670         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
72671         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
72672         * doc/posix-functions/cos.texi: Mention the 'cos' module.
72673         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
72674         * doc/posix-functions/erf.texi: Mention the 'erf' module.
72675         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
72676         * doc/posix-functions/exp.texi: Mention the 'exp' module.
72677         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
72678         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
72679         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
72680         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72681         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72682         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72683         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72684         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72685         * doc/posix-functions/log.texi: Mention the 'log' module.
72686         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72687         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72688         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72689         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72690         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72691         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72692         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72693         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72694         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72695         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72696         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72697         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72698         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72699         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72700         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72701         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72703 2010-01-18  Jim Meyering  <meyering@redhat.com>
72705         ignore-value: relax license to LGPLv2+
72706         * modules/ignore-value (License): Relax to LGPLv2+.
72708         getdate: don't leak when TZ contains two or more '"'s
72709         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72710         double quote in TZ after the first one.
72712         readtokens: do not leak internal token_lengths buffer
72713         * lib/readtokens.c (readtokens): Free the local, lengths,
72714         when the supplied "token_lengths" parameter is NULL.
72716 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72718         Fix a couple of missing LIBTHREAD link failures on AIX.
72719         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72720         $(LIBTHREAD).
72721         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72723         Link test-poll against INET_PTON_LIB.
72724         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72725         for inet_pton on Solaris 10.
72727 2010-01-17  Bruno Haible  <bruno@clisp.org>
72729         unistdio/*-sprintf: Fix typo in module description.
72730         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72731         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72732         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72733         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72734         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72735         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72736         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72737         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72739 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72741         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72742         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72743         variables in shell case patterns, for AIX and HP-UX ksh.
72745         Split large sed scripts, for HP-UX sed.
72746         * modules/stdio: Split sed scripts around 50 sed commands,
72747         to avoid HP-UX limit of 99 commands, in the near future.
72748         * modules/string: Likewise.
72749         * modules/unistd: Likewise.
72751         gnulib-tool: avoid writing in the current directory.
72752         * gnulib-tool (func_emit_lib_Makefile_am)
72753         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72754         not in the current directory, so concurrent gnulib-tool
72755         instances do not interfere.
72757 2010-01-16  Jim Meyering  <meyering@redhat.com>
72759         doc: update users.txt
72760         * users.txt: Add grep.
72761         (diffutils, gzip): Update URLs.
72763 2010-01-12  Bruno Haible  <bruno@clisp.org>
72765         posix_spawn: Avoid test failure on Cygwin.
72766         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72767         characters.
72768         Reported by Simon Josefsson.
72770 2010-01-12  Bruno Haible  <bruno@clisp.org>
72772         * tests/test-cond.c (main): When skipping the test, show the reason.
72774 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72776         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72778 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72780         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72781         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72783 2010-01-12  Eric Blake  <ebb9@byu.net>
72785         build: guarantee AS_VAR_IF
72786         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72787         (gl_AS_VAR_IF): Move...
72788         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72789         Reported by Simon Josefsson.
72791 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72793         * lib/stdio.in.h: Fix typo.
72795 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72797         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72798         libgpg-error.
72800 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72802         * tests/test-xalloc-die.sh: Use $EXEEXT.
72804 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72805             Bruno Haible  <bruno@clisp.org>
72807         getlogin, getlogin_r: Avoid test failure.
72808         * tests/test-getlogin.c: Include <stdio.h>.
72809         (main): Skip the test when the function fails because stdin is not a
72810         tty.
72811         * tests/test-getlogin_r.c: Include <stdio.h>.
72812         (main): Skip the test when the function fails because stdin is not a
72813         tty.
72815 2010-01-11  Eric Blake  <ebb9@byu.net>
72817         tests: avoid more large file warnings
72818         * tests/test-fflush.c: Avoid warning about ftell use.
72819         * tests/test-fseek.c: Avoid warning about fseek use.
72821 2010-01-10  Bruno Haible  <bruno@clisp.org>
72823         nproc: Work better on Linux when /proc and /sys are not mounted.
72824         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72825         as lower bound when, on glibc/Linux systems,
72826         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72827         Suggested by Pádraig Brady <P@draigbrady.com>.
72828         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72830         nproc: Refactor.
72831         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72832         extracted from num_processors.
72833         (num_processors): Call it.
72835 2010-01-11  Jim Meyering  <meyering@redhat.com>
72837         utimecmp: avoid new warning from upcoming gcc-4.5.0
72838         * lib/utimecmp.c (BILLION): Define using #define rather than an
72839         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72841 2010-01-11  Eric Blake  <ebb9@byu.net>
72843         math: add portability warnings for classification macros
72844         * modules/math (Depends-on): Add warn-on-use.
72845         (Makefile.am): Provide new substitutions.
72846         * m4/math_h.m4 (gl_MATH_H): Require inline.
72847         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72848         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72849         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72850         implement warnings.
72852         unistd: warn on use of environ without module
72853         * modules/unistd (Depends-on): Add warn-on-use.
72854         (Makefile.am): Provide new substitutions.
72855         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72856         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72858         stdio: warn on suspicious uses
72859         * modules/stdio (Depends-on): Add warn-on-use.
72860         (Makefile.am): Provide new substitutions.
72861         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72862         fseeko.
72863         * lib/stdio.in.h (gets): Always warn on use.
72864         (fseek, ftell): Adjust when warnings are issued, and honor
72865         _GL_NO_LARGE_FILES as a way to silence the warning.
72866         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72867         any warning about large file offsets.
72868         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72869         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72870         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72871         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72872         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72873         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72874         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72875         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72877         warn-on-use: new module
72878         * modules/warn-on-use: New file.
72879         * build-aux/warn-on-use.h: Likewise.
72880         * m4/warn-on-use.m4: Likewise.
72881         * MODULES.html.sh (Support for building): Mention it.
72883 2010-01-10  Bruno Haible  <bruno@clisp.org>
72885         Tests for module 'unistr/u32-strdup'.
72886         * modules/unistr/u32-strdup-tests: New file.
72887         * tests/unistr/test-u32-strdup.c: New file.
72889         Tests for module 'unistr/u16-strdup'.
72890         * modules/unistr/u16-strdup-tests: New file.
72891         * tests/unistr/test-u16-strdup.c: New file.
72893         Tests for module 'unistr/u8-strdup'.
72894         * modules/unistr/u8-strdup-tests: New file.
72895         * tests/unistr/test-u8-strdup.c: New file.
72896         * tests/unistr/test-strdup.h: New file.
72898         Tests for module 'unistr/u32-strncmp'.
72899         * modules/unistr/u32-strncmp-tests: New file.
72900         * tests/unistr/test-u32-strncmp.c: New file.
72902         Tests for module 'unistr/u16-strncmp'.
72903         * modules/unistr/u16-strncmp-tests: New file.
72904         * tests/unistr/test-u16-strncmp.c: New file.
72906         Tests for module 'unistr/u8-strncmp'.
72907         * modules/unistr/u8-strncmp-tests: New file.
72908         * tests/unistr/test-u8-strncmp.c: New file.
72909         * tests/unistr/test-strncmp.h: New file.
72911         Tests for module 'unistr/u32-strcoll'.
72912         * modules/unistr/u32-strcoll-tests: New file.
72913         * tests/unistr/test-u32-strcoll.c: New file.
72915         Tests for module 'unistr/u16-strcoll'.
72916         * modules/unistr/u16-strcoll-tests: New file.
72917         * tests/unistr/test-u16-strcoll.c: New file.
72919         Tests for module 'unistr/u8-strcoll'.
72920         * modules/unistr/u8-strcoll-tests: New file.
72921         * tests/unistr/test-u8-strcoll.c: New file.
72923         Tests for module 'unistr/u32-strcmp'.
72924         * modules/unistr/u32-strcmp-tests: New file.
72925         * tests/unistr/test-u32-strcmp.c: New file.
72926         * tests/unistr/test-u32-strcmp.h: New file.
72928         Tests for module 'unistr/u16-strcmp'.
72929         * modules/unistr/u16-strcmp-tests: New file.
72930         * tests/unistr/test-u16-strcmp.c: New file.
72931         * tests/unistr/test-u16-strcmp.h: New file.
72933         Tests for module 'unistr/u8-strcmp'.
72934         * modules/unistr/u8-strcmp-tests: New file.
72935         * tests/unistr/test-u8-strcmp.c: New file.
72936         * tests/unistr/test-u8-strcmp.h: New file.
72937         * tests/unistr/test-strcmp.h: New file.
72939         Tests for module 'unistr/u32-strncat'.
72940         * modules/unistr/u32-strncat-tests: New file.
72941         * tests/unistr/test-u32-strncat.c: New file.
72943         Tests for module 'unistr/u16-strncat'.
72944         * modules/unistr/u16-strncat-tests: New file.
72945         * tests/unistr/test-u16-strncat.c: New file.
72947         Tests for module 'unistr/u8-strncat'.
72948         * modules/unistr/u8-strncat-tests: New file.
72949         * tests/unistr/test-u8-strncat.c: New file.
72950         * tests/unistr/test-strncat.h: New file.
72952         Tests for module 'unistr/u32-strcat'.
72953         * modules/unistr/u32-strcat-tests: New file.
72954         * tests/unistr/test-u32-strcat.c: New file.
72956         Tests for module 'unistr/u16-strcat'.
72957         * modules/unistr/u16-strcat-tests: New file.
72958         * tests/unistr/test-u16-strcat.c: New file.
72960         Tests for module 'unistr/u8-strcat'.
72961         * modules/unistr/u8-strcat-tests: New file.
72962         * tests/unistr/test-u8-strcat.c: New file.
72963         * tests/unistr/test-strcat.h: New file.
72965         Tests for module 'unistr/u32-stpncpy'.
72966         * modules/unistr/u32-stpncpy-tests: New file.
72967         * tests/unistr/test-u32-stpncpy.c: New file.
72969         Tests for module 'unistr/u16-stpncpy'.
72970         * modules/unistr/u16-stpncpy-tests: New file.
72971         * tests/unistr/test-u16-stpncpy.c: New file.
72973         Tests for module 'unistr/u8-stpncpy'.
72974         * modules/unistr/u8-stpncpy-tests: New file.
72975         * tests/unistr/test-u8-stpncpy.c: New file.
72976         * tests/unistr/test-stpncpy.h: New file.
72978         Tests for module 'unistr/u32-strncpy'.
72979         * modules/unistr/u32-strncpy-tests: New file.
72980         * tests/unistr/test-u32-strncpy.c: New file.
72982         Tests for module 'unistr/u16-strncpy'.
72983         * modules/unistr/u16-strncpy-tests: New file.
72984         * tests/unistr/test-u16-strncpy.c: New file.
72986         Tests for module 'unistr/u8-strncpy'.
72987         * modules/unistr/u8-strncpy-tests: New file.
72988         * tests/unistr/test-u8-strncpy.c: New file.
72989         * tests/unistr/test-strncpy.h: New file.
72991         Tests for module 'unistr/u32-stpcpy'.
72992         * modules/unistr/u32-stpcpy-tests: New file.
72993         * tests/unistr/test-u32-stpcpy.c: New file.
72995         Tests for module 'unistr/u16-stpcpy'.
72996         * modules/unistr/u16-stpcpy-tests: New file.
72997         * tests/unistr/test-u16-stpcpy.c: New file.
72999         Tests for module 'unistr/u8-stpcpy'.
73000         * modules/unistr/u8-stpcpy-tests: New file.
73001         * tests/unistr/test-u8-stpcpy.c: New file.
73002         * tests/unistr/test-stpcpy.h: New file.
73004         Tests for module 'unistr/u32-strcpy'.
73005         * modules/unistr/u32-strcpy-tests: New file.
73006         * tests/unistr/test-u32-strcpy.c: New file.
73008         Tests for module 'unistr/u16-strcpy'.
73009         * modules/unistr/u16-strcpy-tests: New file.
73010         * tests/unistr/test-u16-strcpy.c: New file.
73012         Tests for module 'unistr/u8-strcpy'.
73013         * modules/unistr/u8-strcpy-tests: New file.
73014         * tests/unistr/test-u8-strcpy.c: New file.
73015         * tests/unistr/test-strcpy.h: New file.
73017         Tests for module 'unistr/u32-strnlen'.
73018         * modules/unistr/u32-strnlen-tests: New file.
73019         * tests/unistr/test-u32-strnlen.c: New file.
73021         Tests for module 'unistr/u16-strnlen'.
73022         * modules/unistr/u16-strnlen-tests: New file.
73023         * tests/unistr/test-u16-strnlen.c: New file.
73025         Tests for module 'unistr/u8-strnlen'.
73026         * modules/unistr/u8-strnlen-tests: New file.
73027         * tests/unistr/test-u8-strnlen.c: New file.
73028         * tests/unistr/test-strnlen.h: New file.
73030         Tests for module 'unistr/u32-strlen'.
73031         * modules/unistr/u32-strlen-tests: New file.
73032         * tests/unistr/test-u32-strlen.c: New file.
73034         Tests for module 'unistr/u16-strlen'.
73035         * modules/unistr/u16-strlen-tests: New file.
73036         * tests/unistr/test-u16-strlen.c: New file.
73038         Tests for module 'unistr/u8-strlen'.
73039         * modules/unistr/u8-strlen-tests: New file.
73040         * tests/unistr/test-u8-strlen.c: New file.
73042         Tests for module 'unistr/u32-prev'.
73043         * modules/unistr/u32-prev-tests: New file.
73044         * tests/unistr/test-u32-prev.c: New file.
73046         Tests for module 'unistr/u16-prev'.
73047         * modules/unistr/u16-prev-tests: New file.
73048         * tests/unistr/test-u16-prev.c: New file.
73050         Tests for module 'unistr/u8-prev'.
73051         * modules/unistr/u8-prev-tests: New file.
73052         * tests/unistr/test-u8-prev.c: New file.
73054         Tests for module 'unistr/u32-next'.
73055         * modules/unistr/u32-next-tests: New file.
73056         * tests/unistr/test-u32-next.c: New file.
73058         Tests for module 'unistr/u16-next'.
73059         * modules/unistr/u16-next-tests: New file.
73060         * tests/unistr/test-u16-next.c: New file.
73062         Tests for module 'unistr/u8-next'.
73063         * modules/unistr/u8-next-tests: New file.
73064         * tests/unistr/test-u8-next.c: New file.
73066         Tests for module 'unistr/u32-strmbtouc'.
73067         * modules/unistr/u32-strmbtouc-tests: New file.
73068         * tests/unistr/test-u32-strmbtouc.c: New file.
73070         Tests for module 'unistr/u16-strmbtouc'.
73071         * modules/unistr/u16-strmbtouc-tests: New file.
73072         * tests/unistr/test-u16-strmbtouc.c: New file.
73074         Tests for module 'unistr/u8-strmbtouc'.
73075         * modules/unistr/u8-strmbtouc-tests: New file.
73076         * tests/unistr/test-u8-strmbtouc.c: New file.
73078         Tests for module 'unistr/u32-strmblen'.
73079         * modules/unistr/u32-strmblen-tests: New file.
73080         * tests/unistr/test-u32-strmblen.c: New file.
73082         Tests for module 'unistr/u16-strmblen'.
73083         * modules/unistr/u16-strmblen-tests: New file.
73084         * tests/unistr/test-u16-strmblen.c: New file.
73086         Tests for module 'unistr/u8-strmblen'.
73087         * modules/unistr/u8-strmblen-tests: New file.
73088         * tests/unistr/test-u8-strmblen.c: New file.
73090         Tests for module 'unistr/u32-cpy-alloc'.
73091         * modules/unistr/u32-cpy-alloc-tests: New file.
73092         * tests/unistr/test-u32-cpy-alloc.c: New file.
73094         Tests for module 'unistr/u16-cpy-alloc'.
73095         * modules/unistr/u16-cpy-alloc-tests: New file.
73096         * tests/unistr/test-u16-cpy-alloc.c: New file.
73098         Tests for module 'unistr/u8-cpy-alloc'.
73099         * modules/unistr/u8-cpy-alloc-tests: New file.
73100         * tests/unistr/test-u8-cpy-alloc.c: New file.
73101         * tests/unistr/test-cpy-alloc.h: New file.
73103         Tests for module 'unistr/u32-mbsnlen'.
73104         * modules/unistr/u32-mbsnlen-tests: New file.
73105         * tests/unistr/test-u32-mbsnlen.c: New file.
73107         Tests for module 'unistr/u16-mbsnlen'.
73108         * modules/unistr/u16-mbsnlen-tests: New file.
73109         * tests/unistr/test-u16-mbsnlen.c: New file.
73111         Tests for module 'unistr/u8-mbsnlen'.
73112         * modules/unistr/u8-mbsnlen-tests: New file.
73113         * tests/unistr/test-u8-mbsnlen.c: New file.
73115         Tests for module 'unistr/u32-chr'.
73116         * modules/unistr/u32-chr-tests: New file.
73117         * tests/unistr/test-u32-chr.c: New file.
73119         Tests for module 'unistr/u16-chr'.
73120         * modules/unistr/u16-chr-tests: New file.
73121         * tests/unistr/test-u16-chr.c: New file.
73123         Tests for module 'unistr/u8-chr'.
73124         * modules/unistr/u8-chr-tests: New file.
73125         * tests/unistr/test-u8-chr.c: New file.
73126         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
73128         Tests for module 'unistr/u32-cmp2'.
73129         * modules/unistr/u32-cmp2-tests: New file.
73130         * tests/unistr/test-u32-cmp2.c: New file.
73132         Tests for module 'unistr/u16-cmp2'.
73133         * modules/unistr/u16-cmp2-tests: New file.
73134         * tests/unistr/test-u16-cmp2.c: New file.
73136         Tests for module 'unistr/u8-cmp2'.
73137         * modules/unistr/u8-cmp2-tests: New file.
73138         * tests/unistr/test-u8-cmp2.c: New file.
73139         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
73141         Tests for module 'unistr/u32-cmp'.
73142         * modules/unistr/u32-cmp-tests: New file.
73143         * tests/unistr/test-u32-cmp.c: New file.
73145         Tests for module 'unistr/u16-cmp'.
73146         * modules/unistr/u16-cmp-tests: New file.
73147         * tests/unistr/test-u16-cmp.c: New file.
73149         Tests for module 'unistr/u8-cmp'.
73150         * modules/unistr/u8-cmp-tests: New file.
73151         * tests/unistr/test-u8-cmp.c: New file.
73152         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
73154         Tests for module 'unistr/u32-set'.
73155         * modules/unistr/u32-set-tests: New file.
73156         * tests/unistr/test-u32-set.c: New file.
73158         Tests for module 'unistr/u16-set'.
73159         * modules/unistr/u16-set-tests: New file.
73160         * tests/unistr/test-u16-set.c: New file.
73162         Tests for module 'unistr/u8-set'.
73163         * modules/unistr/u8-set-tests: New file.
73164         * tests/unistr/test-u8-set.c: New file.
73165         * tests/unistr/test-set.h: New file.
73167         Tests for module 'unistr/u32-move'.
73168         * modules/unistr/u32-move-tests: New file.
73169         * tests/unistr/test-u32-move.c: New file.
73171         Tests for module 'unistr/u16-move'.
73172         * modules/unistr/u16-move-tests: New file.
73173         * tests/unistr/test-u16-move.c: New file.
73175         Tests for module 'unistr/u8-move'.
73176         * modules/unistr/u8-move-tests: New file.
73177         * tests/unistr/test-u8-move.c: New file.
73178         * tests/unistr/test-move.h: New file.
73180         Tests for module 'unistr/u32-cpy'.
73181         * modules/unistr/u32-cpy-tests: New file.
73182         * tests/unistr/test-u32-cpy.c: New file.
73184         Tests for module 'unistr/u16-cpy'.
73185         * modules/unistr/u16-cpy-tests: New file.
73186         * tests/unistr/test-u16-cpy.c: New file.
73188         Tests for module 'unistr/u8-cpy'.
73189         * modules/unistr/u8-cpy-tests: New file.
73190         * tests/unistr/test-u8-cpy.c: New file.
73191         * tests/unistr/test-cpy.h: New file.
73193 2010-01-09  Bruno Haible  <bruno@clisp.org>
73195         Tests for module 'unistr/u32-uctomb'.
73196         * modules/unistr/u32-uctomb-tests: New file.
73197         * tests/unistr/test-u32-uctomb.c: New file.
73199         Tests for module 'unistr/u16-uctomb'.
73200         * modules/unistr/u16-uctomb-tests: New file.
73201         * tests/unistr/test-u16-uctomb.c: New file.
73203         Tests for module 'unistr/u8-uctomb'.
73204         * modules/unistr/u8-uctomb-tests: New file.
73205         * tests/unistr/test-u8-uctomb.c: New file.
73207         Tests for module 'unistr/u32-mbtoucr'.
73208         * modules/unistr/u32-mbtoucr-tests: New file.
73209         * tests/unistr/test-u32-mbtoucr.c: New file.
73211         Tests for module 'unistr/u16-mbtoucr'.
73212         * modules/unistr/u16-mbtoucr-tests: New file.
73213         * tests/unistr/test-u16-mbtoucr.c: New file.
73215         Tests for module 'unistr/u8-mbtoucr'.
73216         * modules/unistr/u8-mbtoucr-tests: New file.
73217         * tests/unistr/test-u8-mbtoucr.c: New file.
73219         Tests for module 'unistr/u32-mbtouc'.
73220         * modules/unistr/u32-mbtouc-tests: New file.
73221         * tests/unistr/test-u32-mbtouc.c: New file.
73223         Tests for module 'unistr/u16-mbtouc'.
73224         * modules/unistr/u16-mbtouc-tests: New file.
73225         * tests/unistr/test-u16-mbtouc.c: New file.
73227         Tests for module 'unistr/u8-mbtouc'.
73228         * modules/unistr/u8-mbtouc-tests: New file.
73229         * tests/unistr/test-u8-mbtouc.c: New file.
73231         Tests for module 'unistr/u32-mbtouc-unsafe'.
73232         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
73233         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
73234         * tests/unistr/test-u32-mbtouc.h: New file.
73236         Tests for module 'unistr/u16-mbtouc-unsafe'.
73237         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
73238         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
73239         * tests/unistr/test-u16-mbtouc.h: New file.
73241         Tests for module 'unistr/u8-mbtouc-unsafe'.
73242         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
73243         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
73244         * tests/unistr/test-u8-mbtouc.h: New file.
73246         Tests for module 'unistr/u32-mblen'.
73247         * modules/unistr/u32-mblen-tests: New file.
73248         * tests/unistr/test-u32-mblen.c: New file.
73250         Tests for module 'unistr/u16-mblen'.
73251         * modules/unistr/u16-mblen-tests: New file.
73252         * tests/unistr/test-u16-mblen.c: New file.
73254         Tests for module 'unistr/u8-mblen'.
73255         * modules/unistr/u8-mblen-tests: New file.
73256         * tests/unistr/test-u8-mblen.c: New file.
73258         Tests for module 'unistr/u32-to-u16'.
73259         * modules/unistr/u32-to-u16-tests: New file.
73260         * tests/unistr/test-u32-to-u16.c: New file.
73262         Tests for module 'unistr/u32-to-u8'.
73263         * modules/unistr/u32-to-u8-tests: New file.
73264         * tests/unistr/test-u32-to-u8.c: New file.
73266         Tests for module 'unistr/u16-to-u32'.
73267         * modules/unistr/u16-to-u32-tests: New file.
73268         * tests/unistr/test-u16-to-u32.c: New file.
73270         Tests for module 'unistr/u16-to-u8'.
73271         * modules/unistr/u16-to-u8-tests: New file.
73272         * tests/unistr/test-u16-to-u8.c: New file.
73274         Tests for module 'unistr/u8-to-u32'.
73275         * modules/unistr/u8-to-u32-tests: New file.
73276         * tests/unistr/test-u8-to-u32.c: New file.
73278         Tests for module 'unistr/u8-to-u16'.
73279         * modules/unistr/u8-to-u16-tests: New file.
73280         * tests/unistr/test-u8-to-u16.c: New file.
73282         Tests for module 'unistr/u32-check'.
73283         * modules/unistr/u32-check-tests: New file.
73284         * tests/unistr/test-u32-check.c: New file.
73286         Tests for module 'unistr/u16-check'.
73287         * modules/unistr/u16-check-tests: New file.
73288         * tests/unistr/test-u16-check.c: New file.
73290         Tests for module 'unistr/u8-check'.
73291         * modules/unistr/u8-check-tests: New file.
73292         * tests/unistr/test-u8-check.c: New file.
73294         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
73295         (category_equals): New function.
73296         (main): Add more tests.
73297         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
73299         * tests/unictype/test-bidi_byname.c (main): Add more tests.
73301 2010-01-10  Bruno Haible  <bruno@clisp.org>
73303         unistr/u*-strcoll: Try harder to distinguish different strings.
73304         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
73305         compare s1 and s2 to see if they are different.
73307 2010-01-10  Bruno Haible  <bruno@clisp.org>
73309         unistr/u*-stpncpy: Fix the return value.
73310         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
73311         description of the return value consistent with stpncpy in glibc.
73312         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
73313         written non-NUL unit.
73315 2010-01-10  Bruno Haible  <bruno@clisp.org>
73317         unistr/u*-next: Add missing dependencies.
73318         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
73319         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
73320         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
73322 2010-01-10  Bruno Haible  <bruno@clisp.org>
73324         unistr/u8-mbsnlen: Fix return value for incomplete character.
73325         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
73326         u8_mblen.
73327         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
73328         Remove unistr/u8-mblen.
73329         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
73330         u16_mblen.
73331         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
73332         Remove unistr/u16-mblen.
73334 2010-01-10  Bruno Haible  <bruno@clisp.org>
73336         wchar: Fix compilation error when <wchar.h> is used from coreutils.
73337         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
73338         Reported by Brian Gough <bjg@gnu.org> and
73339         Chris Clayton <chris2553@googlemail.com> via
73340         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
73342 2010-01-09  Bruno Haible  <bruno@clisp.org>
73344         unistr/u16-to-u32: Reject invalid input.
73345         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
73346         u16_mbtouc.
73347         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
73348         Remove unistr/u16-mbtouc.
73350         unistr/u16-to-u8: Reject invalid input.
73351         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
73352         u16_mbtouc.
73353         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
73354         Remove unistr/u16-mbtouc.
73356         unistr/u8-to-u32: Reject invalid input.
73357         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
73358         u8_mbtouc.
73359         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
73360         Remove unistr/u8-mbtouc.
73362         unistr/u8-to-u16: Reject invalid input.
73363         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73364         u8_mbtouc.
73365         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73366         Remove unistr/u8-mbtouc.
73368 2010-01-09  Bruno Haible  <bruno@clisp.org>
73370         Tests for module 'getlogin'.
73371         * modules/getlogin-tests: New file.
73372         * tests/test-getlogin.c: New file.
73374         New module 'getlogin'.
73375         * lib/unistd.in.h (getlogin): New declaration.
73376         * lib/getlogin.c: New file.
73377         * m4/getlogin.m4: New file.
73378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73379         HAVE_GETLOGIN.
73380         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73381         HAVE_GETLOGIN.
73382         * modules/getlogin: New file.
73383         * doc/posix-functions/getlogin.texi: Mention the new module.
73384         Reported by John W. Eaton <jwe@gnu.org>.
73386 2010-01-09  Bruno Haible  <bruno@clisp.org>
73388         getlogin_r: Support for native Windows.
73389         * lib/getlogin_r.c: Include <windows.h>
73390         (getlogin_r): Implement for native Windows.
73391         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73392         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73393         via John W. Eaton <jwe@gnu.org>.
73395 2010-01-09  Bruno Haible  <bruno@clisp.org>
73397         getlogin_r: Small fixes.
73398         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73399         succeeds.
73400         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73401         before testing whether getlogin_r is declared. No need to set
73402         HAVE_DECL_GETLOGIN_R to 1.
73403         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73405 2010-01-09  Bruno Haible  <bruno@clisp.org>
73407         * lib/unistd.in.h (getlogin_r): Add comment.
73409 2010-01-09  Bruno Haible  <bruno@clisp.org>
73411         Tests for module 'getlogin_r'.
73412         * modules/getlogin_r-tests: New file.
73413         * tests/test-getlogin_r.c: New file.
73415 2010-01-09  Jim Meyering  <meyering@redhat.com>
73417         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73418         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73419         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73421 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73423         * lib/dup2.c (rpl_dup2): Improve comment.
73425 2010-01-08  Eric Blake  <ebb9@byu.net>
73427         maint.mk: allow packages to add makefile @@ exceptions
73428         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73429         (sc_makefile_check): Rename...
73430         (sc_makefile_at_at_check): ...to this, and use hook.
73432         dup2: work around mingw bug
73433         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73434         Reported by Simon Josefsson.
73436 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73438         glob: Fix C++ compilation.
73439         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73440         C++.
73442 2010-01-07  Bruno Haible  <bruno@clisp.org>
73444         Fix indentation of wctype.in.h, broken since 2007-01-06.
73445         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73447 2010-01-07  Bruno Haible  <bruno@clisp.org>
73449         mbslen: Avoid collision with system function.
73450         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73451         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73452         * m4/mbslen.m4: New file.
73453         * modules/mbslen (Files): Add it.
73454         (configure.ac): Invoke gl_MBSLEN.
73455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73456         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73457         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73458         via Ian Beckwith <ianb@erislabs.net>.
73460 2010-01-07  Bruno Haible  <bruno@clisp.org>
73462         dirent: Document the last fix.
73463         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73465 2010-01-07  Bruno Haible  <bruno@clisp.org>
73467         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73468         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73469         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73470         va_list are defined.
73471         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73472         Reported by Eric Blake.
73474 2010-01-07  Bruno Haible  <bruno@clisp.org>
73476         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
73477         * modules/xlist (Depends-on): Add 'list',
73478         * modules/xoset (Depends-on): Add 'oset'.
73479         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73481 2010-01-07  Bruno Haible  <bruno@clisp.org>
73483         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
73484         * doc/posix-functions/strncasecmp.texi: Likewise.
73486 2010-01-07  Bruno Haible  <bruno@clisp.org>
73488         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
73490 2010-01-07  John W. Eaton  <jwe@octave.org>
73492         wctype: allow C++ use
73493         * lib/wctype.in.h: Add extern "C" block for C++.
73495 2010-01-06  Eric Blake  <ebb9@byu.net>
73497         maint.mk: detect incorrect GFDL usage
73498         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
73500 2010-01-06  Jim Meyering  <meyering@redhat.com>
73501         and Eric Blake  <ebb9@byu.net>
73503         maint.mk: ignore multi-line copyright in NEWS
73504         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
73506 2010-01-06  Eric Blake  <ebb9@byu.net>
73508         select: add missing dependency
73509         * modules/select-tests (Depends-on): Move sockets dependency...
73510         * modules/select (Depends-on): ...here.
73511         Reported by Ian Beckwith.
73513         doc: regenerate INSTALL
73514         * doc/INSTALL: Reflect recent autoconf update.
73515         * doc/INSTALL.ISO: Likewise.
73516         * doc/INSTALL.UTF-8: Likewise.
73518         pread: fix compilation on glibc
73519         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
73520         Reported by Ralf Wildenhues.
73522         dirent: fix test failure
73523         * lib/dirent.in.h (includes): Guarantee ino_t.
73524         Reported by Ralf Wildenhues.
73526 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
73528         linkat, renameat: avoid bad free
73529         * lib/at-func2.c (at_func2): Fix typo.
73530         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
73532 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73534         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
73535         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
73536         to avoid failure of symlink test later.
73538 2010-01-06  Eric Blake  <ebb9@byu.net>
73540         stdio, unistd: guarantee ssize_t
73541         * lib/unistd.in.h (includes): Ensure that types required by POSIX
73542         2008 are exposed when needed.
73543         * lib/stdio.in.h (includes): Likewise.
73544         Reported by Ralf Wildenhues.
73546 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
73548         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
73549         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
73550         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
73552 2010-01-06  Jim Meyering  <meyering@redhat.com>
73554         readtokens: this module *does* require xalloc.h
73555         It uses only functions that were omitted by the old syntax-check rule.
73556         * lib/readtokens.c: Include "xalloc.h" once again.
73557         * modules/readtokens (Depends-on): Add xalloc.
73558         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
73560 2010-01-05  Eric Blake  <ebb9@byu.net>
73562         maint: support 'make announcement' from a VPATH build
73563         * top/maint.mk (announcement): Look for correct NEWS file.
73565 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
73567         utimens (fdutimens): ignore a negative FD, per contract
73568         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
73569         when we have a valid file descriptor.  Otherwise, using a brand
73570         new glibc (with just-patched futimens that now fails with EBADF)
73571         would cause this function to fail with ENOSYS.
73572         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
73573         See also http://bugzilla.redhat.com/552320.
73575 2010-01-05  Eric Blake  <ebb9@byu.net>
73577         strcase: document what it provides
73578         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
73579         gnulib module.
73580         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
73581         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
73583 2010-01-05  Jim Meyering  <meyering@redhat.com>
73585         maint: remove useless inclusions of "xalloc.h"
73586         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
73587         * lib/readtokens.c: Likewise.
73588         * lib/same.c: Likewise.
73589         * modules/getloadavg (Depends-on): Remove xalloc.
73590         * modules/readtokens: Likewise.
73591         * modules/same: Likewise.
73593         maint.mk: include 4 more function names in alloca.h-checking regexp
73594         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
73595         regexp.  Before, we would give a false-positive (saying alloca.h
73596         is included unnecessarily) when the only uses involved omitted symbols.
73598         xalloc.h: use consistent formatting
73599         * lib/xalloc.h: Move declarations to start in the first column.
73601 2010-01-05  Eric Blake  <ebb9@byu.net>
73603         mkdir: avoid xalloc
73604         * lib/mkdir.c (includes): Drop unused header.
73605         Reported by John W. Eaton.
73607 2010-01-04  Jim Meyering  <meyering@redhat.com>
73609         nl_langinfo: avoid configure-time syntax error
73610         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73611         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73612         the empty string.  Don't let that provoke a shell syntax error.
73614         regcomp, regexec, fnmatch: avoid array bounds read error
73615         * lib/regcomp.c (build_equiv_class): From glibc:
73616         Use only the low 24 bits of a findidx return value as an index
73617         into the weights array.  Patch by Ulrich Drepper:
73618         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
73619         * lib/regexec.c (check_node_accept_bytes): Likewise.
73620         * lib/fnmatch_loop.c (FCT): Likewise.
73622         regcomp: skip collseq lookup when there are no rules
73623         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
73624         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
73626         regcomp: recognize ill-formed { } expressions
73627         * lib/regcomp.c (parse_dup_op): From glibc:
73628         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
73630         regcomp: fix typo in comment
73631         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
73632         s/satisfy/satisfies/.
73634         regcomp: sync from glibc: remove dead store
73635         * lib/regcomp.c (duplicate_node_closure): Remove useless
73636         search_duplicated_node call and dead store.
73638         regcomp: sync from glibc; always use nl_langinfo
73639         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
73640         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
73641         * modules/regex (Depends-on): Add nl_langinfo.
73643 2010-01-04  Eric Blake  <ebb9@byu.net>
73645         fdopendir: fix configure test
73646         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
73648 2010-01-01  Bruno Haible  <bruno@clisp.org>
73650         wchar: Remove unused configure check.
73651         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
73653 2010-01-01  Eric Blake  <ebb9@byu.net>
73655         headers: make check of system header explicit
73656         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
73657         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
73658         ourselves.
73659         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73660         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73661         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
73662         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
73663         internals.
73664         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
73665         missing.
73666         Suggested by Bruno Haible.
73668 2010-01-01  Jim Meyering  <meyering@redhat.com>
73670         ChangeLog: tweak to eliminate unnecessary copyright line
73671         * ChangeLog: Remove a copyright line that was mistakenly updated
73672         by today's update-copyright run.  Reported by Eric Blake.
73674         test-update-copyright: don't let envvar setting cause test failure
73675         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73677 2010-01-01  Bruno Haible  <bruno@clisp.org>
73679         localename: Avoid gcc warning.
73680         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73681         function if it is not used.
73683 2010-01-01  Jim Meyering  <meyering@redhat.com>
73685         update nearly all FSF copyright year lists to include 2010
73686         Use the same procedure as for 2009, outlined in
73687         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73689         version-etc: set COPYRIGHT_YEAR to 2010
73690         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73692 2009-12-31  Eric Blake  <ebb9@byu.net>
73694         doc: correct availability of cygwin 1.5.x getopt
73695         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73696         variables.
73697         * doc/posix-functions/opterr.texi (opterr): Likewise.
73698         * doc/posix-functions/optind.texi (optind): Likewise.
73699         * doc/posix-functions/optopt.texi (optopt): Likewise.
73700         * doc/posix-functions/tzname.texi (tzname): Likewise.
73702         openat: update maintainer
73703         * modules/openat (Maintainer): Add myself.
73705         utimens: avoid shadowing warning
73706         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73707         buffers into one, to avoid shadowing, as well as avoiding a
73708         redundant stat.
73709         Reported by Jim Meyering.
73711         test-dup2: avoid compiler warning
73712         * tests/test-dup2.c (is_inheritable): Only define if used.
73714 2010-01-01  Bruno Haible  <bruno@clisp.org>
73716         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73717         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73718         defined, use wctomb instead of wcrtomb.
73720 2010-01-01  Bruno Haible  <bruno@clisp.org>
73722         iconv: Reject native Solaris iconv.
73723         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73724         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73726 2009-12-31  Bruno Haible  <bruno@clisp.org>
73728         * tests/test-signal.c (main): Remove test of 'SIG'.
73730 2009-12-31  Bruno Haible  <bruno@clisp.org>
73732         spawn: Fix incomplete fix.
73733         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73734         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73735         warnings for GNULIB_POSIXCHECK again.
73736         Reported by Eric Blake.
73738 2009-12-31  Bruno Haible  <bruno@clisp.org>
73740         Avoid namespace pollution on glibc systems.
73741         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73742         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73743         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73744         glibc systems.
73746 2009-12-31  Bruno Haible  <bruno@clisp.org>
73748         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73749         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73750         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73751         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73752         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73753         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73754         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73756 2009-12-31  Bruno Haible  <bruno@clisp.org>
73758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73759         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73760         afterwards.
73762 2009-12-31  Bruno Haible  <bruno@clisp.org>
73764         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73765         SYS_UTSNAME_H.
73767 2009-12-31  Bruno Haible  <bruno@clisp.org>
73769         spawn: Fix misapplied patch.
73770         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73771         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73772         warnings for GNULIB_POSIXCHECK.
73774 2009-12-31  Bruno Haible  <bruno@clisp.org>
73776         times: Update after sys_times changed.
73777         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73778         * modules/times (Files): Add it.
73779         (configure.ac): Invoke gl_FUNC_TIMES.
73781 2009-12-31  Bruno Haible  <bruno@clisp.org>
73783         Use AC_C_INLINE where necessary.
73784         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73785         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73786         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73787         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73788         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73789         * m4/mbiter.m4 (gl_MBITER): Likewise.
73790         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73791         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73792         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73793         * modules/u64 (configure.ac): Likewise.
73795 2009-12-31  Bruno Haible  <bruno@clisp.org>
73797         Use AC_C_INLINE instead of module 'inline' where possible.
73798         * modules/inline (Description): Clarify purpose.
73799         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73800         * modules/count-one-bits (Depends-on): Remove inline.
73801         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73802         * modules/openat (Depends-on): Remove inline.
73803         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73804         instead of depending on module 'inline'.
73805         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73806         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73807         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73808         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73809         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73810         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73811         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73812         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73813         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73814         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73815         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73816         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73817         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73818         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73819         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73820         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73821         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73822         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73823         Likewise.
73824         * modules/unictype/property-ascii-hex-digit (Depends-on,
73825         configure.ac): Likewise.
73826         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73827         configure.ac): Likewise.
73828         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73829         configure.ac): Likewise.
73830         * modules/unictype/property-bidi-block-separator (Depends-on,
73831         configure.ac): Likewise.
73832         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73833         configure.ac): Likewise.
73834         * modules/unictype/property-bidi-common-separator (Depends-on,
73835         configure.ac): Likewise.
73836         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73837         Likewise.
73838         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73839         configure.ac): Likewise.
73840         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73841         configure.ac): Likewise.
73842         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73843         configure.ac): Likewise.
73844         * modules/unictype/property-bidi-european-digit (Depends-on,
73845         configure.ac): Likewise.
73846         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73847         configure.ac): Likewise.
73848         * modules/unictype/property-bidi-left-to-right (Depends-on,
73849         configure.ac): Likewise.
73850         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73851         configure.ac): Likewise.
73852         * modules/unictype/property-bidi-other-neutral (Depends-on,
73853         configure.ac): Likewise.
73854         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73855         Likewise.
73856         * modules/unictype/property-bidi-segment-separator (Depends-on,
73857         configure.ac): Likewise.
73858         * modules/unictype/property-bidi-whitespace (Depends-on,
73859         configure.ac): Likewise.
73860         * modules/unictype/property-combining (Depends-on, configure.ac):
73861         Likewise.
73862         * modules/unictype/property-composite (Depends-on, configure.ac):
73863         Likewise.
73864         * modules/unictype/property-currency-symbol (Depends-on,
73865         configure.ac): Likewise.
73866         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73867         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73868         Likewise.
73869         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73870         configure.ac): Likewise.
73871         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73872         Likewise.
73873         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73874         Likewise.
73875         * modules/unictype/property-extender (Depends-on, configure.ac):
73876         Likewise.
73877         * modules/unictype/property-format-control (Depends-on, configure.ac):
73878         Likewise.
73879         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73880         Likewise.
73881         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73882         Likewise.
73883         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73884         Likewise.
73885         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73886         Likewise.
73887         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73888         Likewise.
73889         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73890         Likewise.
73891         * modules/unictype/property-id-start (Depends-on, configure.ac):
73892         Likewise.
73893         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73894         Likewise.
73895         * modules/unictype/property-ids-binary-operator (Depends-on,
73896         configure.ac): Likewise.
73897         * modules/unictype/property-ids-trinary-operator (Depends-on,
73898         configure.ac): Likewise.
73899         * modules/unictype/property-ignorable-control (Depends-on,
73900         configure.ac): Likewise.
73901         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73902         Likewise.
73903         * modules/unictype/property-join-control (Depends-on, configure.ac):
73904         Likewise.
73905         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73906         Likewise.
73907         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73908         Likewise.
73909         * modules/unictype/property-logical-order-exception (Depends-on,
73910         configure.ac): Likewise.
73911         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73912         Likewise.
73913         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73914         * modules/unictype/property-non-break (Depends-on, configure.ac):
73915         Likewise.
73916         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73917         Likewise.
73918         * modules/unictype/property-numeric (Depends-on, configure.ac):
73919         Likewise.
73920         * modules/unictype/property-other-alphabetic (Depends-on,
73921         configure.ac): Likewise.
73922         * modules/unictype/property-other-default-ignorable-code-point
73923         (Depends-on, configure.ac): Likewise.
73924         * modules/unictype/property-other-grapheme-extend (Depends-on,
73925         configure.ac): Likewise.
73926         * modules/unictype/property-other-id-continue (Depends-on,
73927         configure.ac): Likewise.
73928         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73929         Likewise.
73930         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73931         Likewise.
73932         * modules/unictype/property-other-math (Depends-on, configure.ac):
73933         Likewise.
73934         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73935         Likewise.
73936         * modules/unictype/property-paired-punctuation (Depends-on,
73937         configure.ac): Likewise.
73938         * modules/unictype/property-paragraph-separator (Depends-on,
73939         configure.ac): Likewise.
73940         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73941         Likewise.
73942         * modules/unictype/property-pattern-white-space (Depends-on,
73943         configure.ac): Likewise.
73944         * modules/unictype/property-private-use (Depends-on, configure.ac):
73945         Likewise.
73946         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73947         Likewise.
73948         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73949         Likewise.
73950         * modules/unictype/property-radical (Depends-on, configure.ac):
73951         Likewise.
73952         * modules/unictype/property-sentence-terminal (Depends-on,
73953         configure.ac): Likewise.
73954         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73955         Likewise.
73956         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73957         * modules/unictype/property-terminal-punctuation (Depends-on,
73958         configure.ac): Likewise.
73959         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73960         Likewise.
73961         * modules/unictype/property-unassigned-code-value (Depends-on,
73962         configure.ac): Likewise.
73963         * modules/unictype/property-unified-ideograph (Depends-on,
73964         configure.ac): Likewise.
73965         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73966         Likewise.
73967         * modules/unictype/property-variation-selector (Depends-on,
73968         configure.ac): Likewise.
73969         * modules/unictype/property-white-space (Depends-on, configure.ac):
73970         Likewise.
73971         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73972         Likewise.
73973         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73974         Likewise.
73975         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73976         Likewise.
73977         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73978         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73979         Likewise.
73981 2009-12-31  Bruno Haible  <bruno@clisp.org>
73983         Remove unnecessary AC_C_INLINE invocation.
73984         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73985         since 2009-08-21.
73987 2009-12-31  Jim Meyering  <meyering@redhat.com>
73989         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73990         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73991         With this change, we can all remove the gpg_key_ID = ... definition
73992         from our respective cfg.mk files.
73994         maint.mk: create announcement template in ~/, not in /tmp
73995         * top/maint.mk (emit_upload_commands): Adjust.
73996         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73997         Remove temporary file, .ci-msg.
73999 2009-12-31  Eric Blake  <ebb9@byu.net>
74001         link-warning: always build headers with link warnings
74002         * modules/arpa_inet (Makefile.am): Always build replacement
74003         header.
74004         * modules/ctype (Makefile.am): Likewise.
74005         * modules/dirent (Makefile.am): Likewise.
74006         * modules/inttypes (Makefile.am): Likewise.
74007         * modules/langinfo (Makefile.am): Likewise.
74008         * modules/locale (Makefile.am): Likewise.
74009         * modules/spawn (Makefile.am): Likewise.
74010         * modules/sys_file (Makefile.am): Likewise.
74011         * modules/sys_ioctl (Makefile.am): Likewise.
74012         * modules/sys_select (Makefile.am): Likewise.
74013         * modules/sys_socket (Makefile.am): Likewise.
74014         * modules/sys_times (Makefile.am): Likewise.
74015         * modules/sys_utsname (Makefile.am): Likewise.
74016         * modules/sys_wait (Makefile.am): Likewise.
74017         * modules/wchar (Makefile.am): Likewise.
74018         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
74019         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
74020         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
74021         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
74022         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
74023         Likewise.
74024         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74025         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
74026         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
74027         Likewise.
74028         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
74029         Likewise.
74030         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
74031         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
74032         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
74033         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74034         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
74035         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74036         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74037         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
74038         (gl_WCHAR_H_DEFAULTS): Likewise.
74040 2009-12-31  Eric Blake  <ebb9@byu.net>
74042         signal, spawn: use link warnings
74043         * lib/signal.in.h (sigset_t): Make unconditional.
74044         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
74045         (sigpending, sigprocmask, sigaction): Add link warnings.
74046         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
74047         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
74048         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
74049         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
74050         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
74051         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
74052         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
74053         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
74054         (posix_spawn_file_actions_destroy)
74055         (posix_spawn_file_actions_addopen)
74056         (posix_spawn_file_actions_addclose)
74057         (posix_spawn_file_actions_adddup2): Likewise.
74058         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
74059         * tests/test-signal.c (main): Enhance test.
74061         spawn: improve wrapper support
74062         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
74063         (gl_SPAWN_H_DEFAULTS): New defaults.
74064         * modules/spawn (Makefile.am): Substitute them.
74065         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
74066         Only declare if missing or broken.
74068         sys_times, sys_utsname: use include_next
74069         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
74070         header.
74071         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
74072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74073         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74074         * modules/sys_times (Depends-on): Add include_next.
74075         (Makefile.am): Substitute additional values.
74076         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
74077         * lib/sys_times.in.h (includes): Include native header, if
74078         available.
74079         * lib/sys_utsname.in.h (includes): Likewise.
74080         * tests/test-sys_times.c (main): Enhance test.
74082         fdutimensat: revert prior patch
74083         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
74084         utimens.h.
74085         Reported by Bruno Haible.
74087 2009-12-30  Eric Blake  <ebb9@byu.net>
74089         sys_wait: drop link-warning dependency
74090         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
74091         link-warning efforts.
74092         * lib/sys_wait.in.h: Likewise.
74094         fdutimensat: remove bogus dependency
74095         * modules/fdutimensat (Depends-on): Drop inline.
74097         unistd: fix typo
74098         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
74100 2009-12-30  Bruno Haible  <bruno@clisp.org>
74102         Fix compilation error with Solaris cc.
74103         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
74104         * lib/unicase/u16-is-invariant.c: Likewise.
74105         * lib/unicase/u32-is-invariant.c: Likewise.
74106         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74108 2009-12-30  Bruno Haible  <bruno@clisp.org>
74110         Fix test crash.
74111         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
74112         locales.
74113         Reported by Simon Josefsson <simon@josefsson.org>.
74115 2009-12-30  Bruno Haible  <bruno@clisp.org>
74117         Fix compilation error on most platforms.
74118         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
74119         Reported by Simon Josefsson <simon@josefsson.org>
74120         and Nelson H. F. Beebe <beebe@math.utah.edu>.
74122 2009-12-30  Eric Blake  <ebb9@byu.net>
74124         futimens, utimensat: work around ntfs-3g bug
74125         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
74126         a ctime bug is present, and expand workaround to cover ntfs-3g.
74127         * lib/utimens.c (fdutimens, lutimens): Likewise.
74128         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
74129         (validate_timespec): Adjust return value.
74130         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
74131         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74132         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
74134 2009-12-29  Eric Blake  <ebb9@byu.net>
74136         link-warning: make usage consistent
74137         * modules/ctype (Depends-on): Add link-warning.
74138         (Makefile.am): Update rules accordingly.
74139         * modules/langinfo (Depends-on, Makefile.am): Likewise.
74140         * modules/locale (Depends-on, Makefile.am): Likewise.
74141         * modules/sys_file (Makefile.am): Likewise.
74142         * modules/getopt-posix (Makefile.am): Delete unused link warning
74143         efforts.
74144         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
74145         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
74146         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
74147         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
74149         stdio: remove unused variables
74150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
74151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
74152         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
74154         tests: test more substitute headers
74155         * modules/ctype-tests: New file.
74156         * modules/dirent-tests: Likewise.
74157         * modules/spawn-tests: Likewise.
74158         * modules/sys_file-tests: Likewise.
74159         * modules/sys_ioctl-tests: Likewise.
74160         * modules/sys_wait-tests: Likewise.
74161         * tests/test-ctype.c: Likewise.
74162         * tests/test-dirent.c: Likewise.
74163         * tests/test-spawn.c: Likewise.
74164         * tests/test-sys_file.c: Likewise.
74165         * tests/test-sys_ioctl.c: Likewise.
74166         * tests/test-sys_wait.c: Likewise.
74167         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
74168         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
74169         whether or not flock is in use.
74171         tests: remove License section from module
74172         * modules/arpa_inet-tests: Remove unneeded section.
74173         * modules/byteswap-tests: Likewise.
74174         * modules/ceilf-tests: Likewise.
74175         * modules/ceill-tests: Likewise.
74176         * modules/crypto/des-tests: Likewise.
74177         * modules/crypto/gc-arcfour-tests: Likewise.
74178         * modules/crypto/gc-arctwo-tests: Likewise.
74179         * modules/crypto/gc-des-tests: Likewise.
74180         * modules/crypto/gc-hmac-md5-tests: Likewise.
74181         * modules/crypto/gc-hmac-sha1-tests: Likewise.
74182         * modules/crypto/gc-md2-tests: Likewise.
74183         * modules/crypto/gc-md4-tests: Likewise.
74184         * modules/crypto/gc-md5-tests: Likewise.
74185         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
74186         * modules/crypto/gc-rijndael-tests: Likewise.
74187         * modules/crypto/gc-sha1-tests: Likewise.
74188         * modules/crypto/gc-tests: Likewise.
74189         * modules/crypto/md2-tests: Likewise.
74190         * modules/crypto/md4-tests: Likewise.
74191         * modules/fcntl-h-tests: Likewise.
74192         * modules/floorf-tests: Likewise.
74193         * modules/floorl-tests: Likewise.
74194         * modules/frexp-nolibm-tests: Likewise.
74195         * modules/frexp-tests: Likewise.
74196         * modules/frexpl-nolibm-tests: Likewise.
74197         * modules/frexpl-tests: Likewise.
74198         * modules/getaddrinfo-tests: Likewise.
74199         * modules/inttypes-tests: Likewise.
74200         * modules/isfinite-tests: Likewise.
74201         * modules/isinf-tests: Likewise.
74202         * modules/ldexpl-tests: Likewise.
74203         * modules/locale-tests: Likewise.
74204         * modules/math-tests: Likewise.
74205         * modules/netdb-tests: Likewise.
74206         * modules/netinet_in-tests: Likewise.
74207         * modules/printf-frexp-tests: Likewise.
74208         * modules/printf-frexpl-tests: Likewise.
74209         * modules/priv-set-tests: Likewise.
74210         * modules/random_r-tests: Likewise.
74211         * modules/round-tests: Likewise.
74212         * modules/roundf-tests: Likewise.
74213         * modules/roundl-tests: Likewise.
74214         * modules/search-tests: Likewise.
74215         * modules/select-tests: Likewise.
74216         * modules/signal-tests: Likewise.
74217         * modules/stdbool-tests: Likewise.
74218         * modules/stddef-tests: Likewise.
74219         * modules/stdint-tests: Likewise.
74220         * modules/stdio-tests: Likewise.
74221         * modules/stdlib-tests: Likewise.
74222         * modules/string-tests: Likewise.
74223         * modules/strings-tests: Likewise.
74224         * modules/sys_select-tests: Likewise.
74225         * modules/sys_socket-tests: Likewise.
74226         * modules/sys_stat-tests: Likewise.
74227         * modules/sys_time-tests: Likewise.
74228         * modules/sys_utsname-tests: Likewise.
74229         * modules/sysexits-tests: Likewise.
74230         * modules/time-tests: Likewise.
74231         * modules/trunc-tests: Likewise.
74232         * modules/truncf-tests: Likewise.
74233         * modules/truncl-tests: Likewise.
74234         * modules/tsearch-tests: Likewise.
74235         * modules/unistd-tests: Likewise.
74236         * modules/wchar-tests: Likewise.
74237         * modules/wctype-tests: Likewise.
74239         tests: fix license on several tests
74240         * tests/test-des.c: Update to GPLv3+.
74241         * tests/test-flock.c: Likewise.
74242         * tests/test-fsync.c: Likewise.
74243         * tests/test-futimens.h: Likewise.
74244         * tests/test-gc-arcfour.c: Likewise.
74245         * tests/test-gc-arctwo.c: Likewise.
74246         * tests/test-gc-des.c: Likewise.
74247         * tests/test-gc-hmac-md5.c: Likewise.
74248         * tests/test-gc-hmac-sha1.c: Likewise.
74249         * tests/test-gc-md2.c: Likewise.
74250         * tests/test-gc-md4.c: Likewise.
74251         * tests/test-gc-md5.c: Likewise.
74252         * tests/test-gc-pbkdf2-sha1.c: Likewise.
74253         * tests/test-gc-rijndael.c: Likewise.
74254         * tests/test-gc-sha1.c: Likewise.
74255         * tests/test-gc.c: Likewise.
74256         * tests/test-getcwd.c: Likewise.
74257         * tests/test-link.c: Likewise.
74258         * tests/test-link.h: Likewise.
74259         * tests/test-lutimens.h: Likewise.
74260         * tests/test-md2.c: Likewise.
74261         * tests/test-md4.c: Likewise.
74262         * tests/test-mkdir.h: Likewise.
74263         * tests/test-rename.c: Likewise.
74264         * tests/test-rename.h: Likewise.
74265         * tests/test-safe-alloc.c: Likewise.
74266         * tests/test-utimens-common.h: Likewise.
74267         * tests/test-utimens.h: Likewise.
74269         maint: sync license texts
74270         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
74271         * doc/gpl-3.0.texi: Revert copyright year update.
74272         * doc/lgpl-3.0.texi: Likewise.
74274 2009-12-29  Jim Meyering  <meyering@redhat.com>
74276         update nearly all FSF copyright year lists to include 2009
74277         The files named by the following are exempted:
74278             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
74279               test -f "$dst" && { echo "$dst"; continue; }
74280               test -d "$dst" || continue
74281               echo "$dst"/$(basename "$src")
74282             done > exempt
74283             git ls-files tests/unictype >> exempt
74284         In the remaining files, convert to all-interval notation if
74285         - there is already at least one year interval like 2000-2003
74286         - the file is maintained by me
74287         - the file is in lib/uni*/, where that style already prevails
74288         Otherwise, use update-copyright's default.
74290 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74291         and Eric Blake  <ebb9@byu.net>
74293         tests: don't require debug system() to pass
74294         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
74295         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74296         * tests/test-unlink.h (test_unlink_func): Likewise.
74297         * tests/test-fstatat.c (main): ...into callers.
74298         * tests/test-lstat.c (main): Likewise.
74299         * tests/test-rmdir.c (main): Likewise.
74300         * tests/test-unlink.c (main): Likewise.
74301         * tests/test-unlinkat.c (main): Likewise.
74302         * tests/test-areadlink-with-size.c (main): Don't require a
74303         debug-only system call to pass, aiding cross-testing to mingw.
74304         * tests/test-areadlink.c (main): Likewise.
74305         * tests/test-areadlinkat-with-size.c (main): Likewise.
74306         * tests/test-areadlinkat.c (main): Likewise.
74307         * tests/test-canonicalize-lgpl.c (main): Likewise.
74308         * tests/test-canonicalize.c (main): Likewise.
74309         * tests/test-chown.c (main): Likewise.
74310         * tests/test-fchownat.c (main): Likewise.
74311         * tests/test-lchown.c (main): Likewise.
74312         * tests/test-fdutimensat.c (main): Likewise.
74313         * tests/test-futimens.c (main): Likewise.
74314         * tests/test-link.c (main): Likewise.
74315         * tests/test-linkat.c (main): Likewise.
74316         * tests/test-mkdir.c (main): Likewise.
74317         * tests/test-mkdirat.c (main): Likewise.
74318         * tests/test-mkfifo.c (main): Likewise.
74319         * tests/test-mkfifoat.c (main): Likewise.
74320         * tests/test-mknod.c (main): Likewise.
74321         * tests/test-readlink.c (main): Likewise.
74322         * tests/test-remove.c (main): Likewise.
74323         * tests/test-rename.c (main): Likewise.
74324         * tests/test-renameat.c (main): Likewise.
74325         * tests/test-symlink.c (main): Likewise.
74326         * tests/test-symlinkat.c (main): Likewise.
74327         * tests/test-utimens.c (main): Likewise.
74328         * tests/test-utimensat.c (main): Likewise.
74330 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74332         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
74333         on $(UNUSED_PARAMETER_H) to avoid build failure.
74335 2009-12-28  Jim Meyering  <meyering@redhat.com>
74337         update-copyright: you may specify a max. line length other than 72
74338         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74340         maint: use consistent FSF copyright line syntax
74341         * lib/posixtm.c: Add missing comma in FSF copyright line.
74342         * lib/posixtm.h: Likewise.
74343         * lib/getugroups.c: Add missing ", Inc.".
74345         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
74346         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
74347         FSF copyright line.  Remove trailing blanks.
74349 2009-12-28  Eric Blake  <ebb9@byu.net>
74351         test-dup2: reduce dependencies
74352         * modules/cloexec (Configure.ac): Set witness.
74353         * modules/dup2-tests (Depends-on): Drop cloexec.
74354         * tests/test-dup2.c (main): Skip portion of test if cloexec module
74355         not present.
74356         Suggested by Bruno Haible.
74358 2009-12-26  Bruno Haible  <bruno@clisp.org>
74360         Remove an unneeded dependency.
74361         * modules/fseterr (Depends-on): Remove dup2.
74363 2009-12-26  Eric Blake  <ebb9@byu.net>
74365         tests: use macros.h in more places
74366         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74367         (ASSERT_STREAM): Provide default of stderr.
74368         * tests/test-dirent-safer.c: Include macros.h, using alternate
74369         stream for assertions.
74370         * tests/test-dup-safer.c: Likewise.
74371         * tests/test-freopen-safer.c: Likewise.
74372         * tests/test-getopt.c: Likewise.
74373         * tests/test-openat-safer.c: Likewise.
74374         * tests/test-pipe.c: Likewise.
74375         * tests/test-popen-safer.c: Likewise.
74376         * modules/dirent-safer-tests (Files): Include macros.h.
74377         * modules/unistd-safer-tests (Files): Likewise.
74378         * modules/freopen-safer-tests (Files): Likewise.
74379         * modules/getopt-posix-tests (Files): Likewise.
74380         * modules/openat-safer-tests (Files): Likewise.
74381         * modules/pipe-tests (Files): Likewise.
74383 2009-12-26  Bruno Haible  <bruno@clisp.org>
74385         javacomp-script: Portability fix.
74386         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74387         that it also works on Solaris.
74389 2009-12-26  Bruno Haible  <bruno@clisp.org>
74391         localename: Fix storage allocation of gl_locale_name_thread's result.
74392         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74393         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74394         all platforms that have 'uselocale'.
74395         (gl_locale_name_thread_unsafe): New function, extracted from
74396         gl_locale_name_thread.
74397         (gl_locale_name_thread): Call struniq on all platforms that have
74398         'uselocale'.
74399         * tests/test-localename.c (test_locale_name_thread): Check that the
74400         resulting strings are permanently allocated.
74401         * modules/localename-tests (Depends-on): Add strdup.
74403 2009-12-26  Bruno Haible  <bruno@clisp.org>
74405         * tests/test-localename.c (categories): Fill in the strings.
74407 2009-12-26  Jim Meyering  <meyering@redhat.com>
74409         isdir: complete the removal of m4/isdir.m4
74410         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74412         isdir: clean up, since at least grep still uses it
74413         * lib/isdir.c: Include "isdir.h".
74414         (S_ISDIR): Remove now-unneeded definition.
74415         * modules/isdir (Files): Add lib/isdir.h.
74416         * lib/isdir.h: New file, with declaration.
74417         * m4/isdir.m4: Remove file -- unneeded.
74419 2009-12-25  Bruno Haible  <bruno@clisp.org>
74421         selinux-h: Make generated .h files standalone.
74422         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74423         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74424         * lib/se-selinux.in.h: Likewise.
74425         * modules/selinux-h (Depends-on): Add unused-parameter.
74426         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74427         selinux/selinux.h and selinux/context.h.
74428         Suggested by Eric Blake.
74430 2009-12-25  Bruno Haible  <bruno@clisp.org>
74432         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74433         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74434         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74435         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74436         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74438 2009-12-24  Bruno Haible  <bruno@clisp.org>
74440         openat: Fix warning.
74441         * lib/openat-proc.c: Include <unistd.h>.
74443 2009-12-24  Bruno Haible  <bruno@clisp.org>
74445         New module 'unused-parameter'.
74446         * build-aux/unused-parameter.h: New file, extracted from earlier
74447         gnulib-common.m4.
74448         * modules/unused-parameter: New file.
74449         * lib/unistr.h: Include unused-parameter.h.
74450         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74451         _GL_UNUSED.
74452         * modules/unistr/base (Depends-on): Add unused-parameter.
74454 2009-12-24  Bruno Haible  <bruno@clisp.org>
74456         Add missing dependencies to 'extensions' module.
74457         * m4/extensions.m4: Add comment.
74458         * modules/accept4 (Depends-on): Add extensions.
74459         * modules/dup3 (Depends-on): Likewise.
74460         * modules/fcntl (Depends-on): Likewise.
74461         * modules/futimens (Depends-on): Likewise.
74462         * modules/mknod (Depends-on): Likewise.
74463         * modules/pipe2 (Depends-on): Likewise.
74464         * modules/stat-time (Depends-on): Likewise.
74465         * modules/strcasestr-simple (Depends-on): Likewise.
74466         * modules/strsignal (Depends-on): Likewise.
74467         * modules/utimensat (Depends-on): Likewise.
74468         * modules/localcharset (Depends-on): Likewise. Needed because of
74469         gl_FCNTL_O_FLAGS.
74470         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74471         AC_TYPE_MBSTATE_T.
74472         * modules/wcsnrtombs (Depends-on): Likewise.
74473         * modules/wcsrtombs (Depends-on): Likewise.
74475 2009-12-24  Bruno Haible  <bruno@clisp.org>
74477         binary-io: Avoid gcc warning due to SET_BINARY.
74478         * lib/binary-io.h (SET_BINARY): Cast the result to void.
74479         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
74481 2009-12-24  Bruno Haible  <bruno@clisp.org>
74483         Avoid future namespace pollution on glibc systems.
74484         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
74485         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
74486         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
74487         glibc systems.
74489 2009-12-24  Bruno Haible  <bruno@clisp.org>
74491         Refactor common macros used in tests.
74492         * tests/macros.h: New file.
74493         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
74494         and/or <stdlib.h>, if appropriate.
74495         (ASSERT, SIZEOF): Remove macros.
74496         * tests/test-areadlink-with-size.c: Likewise.
74497         * tests/test-areadlinkat.c: Likewise.
74498         * tests/test-areadlinkat-with-size.c: Likewise.
74499         * tests/test-argmatch.c: Likewise.
74500         * tests/test-argv-iter.c: Likewise.
74501         * tests/test-array-mergesort.c: Likewise.
74502         * tests/test-array_list.c: Likewise.
74503         * tests/test-array_oset.c: Likewise.
74504         * tests/test-avltree_list.c: Likewise.
74505         * tests/test-avltree_oset.c: Likewise.
74506         * tests/test-avltreehash_list.c: Likewise.
74507         * tests/test-base64.c: Likewise.
74508         * tests/test-binary-io.c: Likewise.
74509         * tests/test-bitrotate.c: Likewise.
74510         * tests/test-btowc.c: Likewise.
74511         * tests/test-byteswap.c: Likewise.
74512         * tests/test-c-ctype.c: Likewise.
74513         * tests/test-c-stack.c: Likewise.
74514         * tests/test-c-strcasecmp.c: Likewise.
74515         * tests/test-c-strcasestr.c: Likewise.
74516         * tests/test-c-strncasecmp.c: Likewise.
74517         * tests/test-c-strstr.c: Likewise.
74518         * tests/test-canonicalize-lgpl.c: Likewise.
74519         * tests/test-canonicalize.c: Likewise.
74520         * tests/test-carray_list.c: Likewise.
74521         * tests/test-ceilf1.c: Likewise.
74522         * tests/test-ceilf2.c: Likewise.
74523         * tests/test-ceill.c: Likewise.
74524         * tests/test-chown.c: Likewise.
74525         * tests/test-cloexec.c: Likewise.
74526         * tests/test-copy-acl.c: Likewise.
74527         * tests/test-copy-file.c: Likewise.
74528         * tests/test-count-one-bits.c: Likewise.
74529         * tests/test-dprintf-posix.c: Likewise.
74530         * tests/test-dup2.c: Likewise.
74531         * tests/test-dup3.c: Likewise.
74532         * tests/test-duplocale.c: Likewise.
74533         * tests/test-fbufmode.c: Likewise.
74534         * tests/test-fchdir.c: Likewise.
74535         * tests/test-fchownat.c: Likewise.
74536         * tests/test-fcntl-safer.c: Likewise.
74537         * tests/test-fcntl.c: Likewise.
74538         * tests/test-fdopendir.c: Likewise.
74539         * tests/test-fdutimensat.c: Likewise.
74540         * tests/test-fflush2.c: Likewise.
74541         * tests/test-file-has-acl.c: Likewise.
74542         * tests/test-filevercmp.c: Likewise.
74543         * tests/test-flock.c: Likewise.
74544         * tests/test-floorf1.c: Likewise.
74545         * tests/test-floorf2.c: Likewise.
74546         * tests/test-floorl.c: Likewise.
74547         * tests/test-fnmatch.c: Likewise.
74548         * tests/test-fopen.h: Likewise.
74549         * tests/test-fpending.c: Likewise.
74550         * tests/test-fprintf-posix.c: Likewise.
74551         * tests/test-fpurge.c: Likewise.
74552         * tests/test-freadable.c: Likewise.
74553         * tests/test-freadahead.c: Likewise.
74554         * tests/test-freading.c: Likewise.
74555         * tests/test-freadptr.c: Likewise.
74556         * tests/test-freadptr2.c: Likewise.
74557         * tests/test-freadseek.c: Likewise.
74558         * tests/test-freopen.c: Likewise.
74559         * tests/test-frexp.c: Likewise.
74560         * tests/test-frexpl.c: Likewise.
74561         * tests/test-fseek.c: Likewise.
74562         * tests/test-fseeko.c: Likewise.
74563         * tests/test-fstatat.c: Likewise.
74564         * tests/test-fstrcmp.c: Likewise.
74565         * tests/test-fsync.c: Likewise.
74566         * tests/test-ftell.c: Likewise.
74567         * tests/test-ftello.c: Likewise.
74568         * tests/test-func.c: Likewise.
74569         * tests/test-futimens.c: Likewise.
74570         * tests/test-fwritable.c: Likewise.
74571         * tests/test-fwriting.c: Likewise.
74572         * tests/test-getcwd.c: Likewise.
74573         * tests/test-getdate.c: Likewise.
74574         * tests/test-getdelim.c: Likewise.
74575         * tests/test-getdtablesize.c: Likewise.
74576         * tests/test-getgroups.c: Likewise.
74577         * tests/test-getline.c: Likewise.
74578         * tests/test-getndelim2.c: Likewise.
74579         * tests/test-glob.c: Likewise.
74580         * tests/test-hash.c: Likewise.
74581         * tests/test-i-ring.c: Likewise.
74582         * tests/test-iconv-utf.c: Likewise.
74583         * tests/test-iconv.c: Likewise.
74584         * tests/test-idpriv-drop.c: Likewise.
74585         * tests/test-idpriv-droptemp.c: Likewise.
74586         * tests/test-inet_ntop.c: Likewise.
74587         * tests/test-inet_pton.c: Likewise.
74588         * tests/test-isblank.c: Likewise.
74589         * tests/test-isfinite.c: Likewise.
74590         * tests/test-isinf.c: Likewise.
74591         * tests/test-isnan.c: Likewise.
74592         * tests/test-isnand.h: Likewise.
74593         * tests/test-isnanf.h: Likewise.
74594         * tests/test-isnanl.h: Likewise.
74595         * tests/test-lchown.c: Likewise.
74596         * tests/test-ldexpl.c: Likewise.
74597         * tests/test-link.c: Likewise.
74598         * tests/test-linkat.c: Likewise.
74599         * tests/test-linked_list.c: Likewise.
74600         * tests/test-linkedhash_list.c: Likewise.
74601         * tests/test-localename.c: Likewise.
74602         * tests/test-lseek.c: Likewise.
74603         * tests/test-lstat.c: Likewise.
74604         * tests/test-mbmemcasecmp.c: Likewise.
74605         * tests/test-mbmemcasecoll.c: Likewise.
74606         * tests/test-mbrtowc.c: Likewise.
74607         * tests/test-mbscasecmp.c: Likewise.
74608         * tests/test-mbscasestr1.c: Likewise.
74609         * tests/test-mbscasestr2.c: Likewise.
74610         * tests/test-mbscasestr3.c: Likewise.
74611         * tests/test-mbscasestr4.c: Likewise.
74612         * tests/test-mbschr.c: Likewise.
74613         * tests/test-mbscspn.c: Likewise.
74614         * tests/test-mbsinit.c: Likewise.
74615         * tests/test-mbsncasecmp.c: Likewise.
74616         * tests/test-mbsnrtowcs.c: Likewise.
74617         * tests/test-mbspbrk.c: Likewise.
74618         * tests/test-mbspcasecmp.c: Likewise.
74619         * tests/test-mbsrchr.c: Likewise.
74620         * tests/test-mbsrtowcs.c: Likewise.
74621         * tests/test-mbsspn.c: Likewise.
74622         * tests/test-mbsstr1.c: Likewise.
74623         * tests/test-mbsstr2.c: Likewise.
74624         * tests/test-mbsstr3.c: Likewise.
74625         * tests/test-memchr.c: Likewise.
74626         * tests/test-memchr2.c: Likewise.
74627         * tests/test-memcmp.c: Likewise.
74628         * tests/test-memmem.c: Likewise.
74629         * tests/test-memrchr.c: Likewise.
74630         * tests/test-mkdir.c: Likewise.
74631         * tests/test-mkdirat.c: Likewise.
74632         * tests/test-mkfifo.c: Likewise.
74633         * tests/test-mkfifoat.c: Likewise.
74634         * tests/test-mknod.c: Likewise.
74635         * tests/test-nanosleep.c: Likewise.
74636         * tests/test-nl_langinfo.c: Likewise.
74637         * tests/test-obstack-printf.c: Likewise.
74638         * tests/test-open.c: Likewise.
74639         * tests/test-openat.c: Likewise.
74640         * tests/test-pipe-filter-gi1.c: Likewise.
74641         * tests/test-pipe-filter-gi2-main.c: Likewise.
74642         * tests/test-pipe-filter-ii1.c: Likewise.
74643         * tests/test-pipe-filter-ii2-main.c: Likewise.
74644         * tests/test-pipe2.c: Likewise.
74645         * tests/test-popen.h: Likewise.
74646         * tests/test-posixtm.c: Likewise.
74647         * tests/test-pread.c: Likewise.
74648         * tests/test-printf-frexp.c: Likewise.
74649         * tests/test-printf-frexpl.c: Likewise.
74650         * tests/test-printf-posix.c: Likewise.
74651         * tests/test-priv-set.c: Likewise.
74652         * tests/test-quotearg.c: Likewise.
74653         * tests/test-random_r.c: Likewise.
74654         * tests/test-rawmemchr.c: Likewise.
74655         * tests/test-rbtree_list.c: Likewise.
74656         * tests/test-rbtree_oset.c: Likewise.
74657         * tests/test-rbtreehash_list.c: Likewise.
74658         * tests/test-readlink.c: Likewise.
74659         * tests/test-remove.c: Likewise.
74660         * tests/test-rename.c: Likewise.
74661         * tests/test-renameat.c: Likewise.
74662         * tests/test-rmdir.c: Likewise.
74663         * tests/test-round1.c: Likewise.
74664         * tests/test-roundf1.c: Likewise.
74665         * tests/test-roundl.c: Likewise.
74666         * tests/test-safe-alloc.c: Likewise.
74667         * tests/test-sameacls.c: Likewise.
74668         * tests/test-set-mode-acl.c: Likewise.
74669         * tests/test-setenv.c: Likewise.
74670         * tests/test-sigaction.c: Likewise.
74671         * tests/test-signbit.c: Likewise.
74672         * tests/test-sleep.c: Likewise.
74673         * tests/test-snprintf-posix.c: Likewise.
74674         * tests/test-snprintf.c: Likewise.
74675         * tests/test-sprintf-posix.c: Likewise.
74676         * tests/test-stat-time.c: Likewise.
74677         * tests/test-stat.c: Likewise.
74678         * tests/test-strcasestr.c: Likewise.
74679         * tests/test-strchrnul.c: Likewise.
74680         * tests/test-strerror.c: Likewise.
74681         * tests/test-striconv.c: Likewise.
74682         * tests/test-striconveh.c: Likewise.
74683         * tests/test-striconveha.c: Likewise.
74684         * tests/test-strsignal.c: Likewise.
74685         * tests/test-strstr.c: Likewise.
74686         * tests/test-strtod.c: Likewise.
74687         * tests/test-strverscmp.c: Likewise.
74688         * tests/test-symlink.c: Likewise.
74689         * tests/test-symlinkat.c: Likewise.
74690         * tests/test-trunc1.c: Likewise.
74691         * tests/test-trunc2.c: Likewise.
74692         * tests/test-truncf1.c: Likewise.
74693         * tests/test-truncf2.c: Likewise.
74694         * tests/test-truncl.c: Likewise.
74695         * tests/test-uname.c: Likewise.
74696         * tests/test-unlink.c: Likewise.
74697         * tests/test-unlinkat.c: Likewise.
74698         * tests/test-unsetenv.c: Likewise.
74699         * tests/test-usleep.c: Likewise.
74700         * tests/test-utimens.c: Likewise.
74701         * tests/test-utimensat.c: Likewise.
74702         * tests/test-vasnprintf-posix.c: Likewise.
74703         * tests/test-vasnprintf-posix2.c: Likewise.
74704         * tests/test-vasnprintf.c: Likewise.
74705         * tests/test-vasprintf-posix.c: Likewise.
74706         * tests/test-vasprintf.c: Likewise.
74707         * tests/test-vdprintf-posix.c: Likewise.
74708         * tests/test-vfprintf-posix.c: Likewise.
74709         * tests/test-vprintf-posix.c: Likewise.
74710         * tests/test-vsnprintf-posix.c: Likewise.
74711         * tests/test-vsnprintf.c: Likewise.
74712         * tests/test-vsprintf-posix.c: Likewise.
74713         * tests/test-wcrtomb.c: Likewise.
74714         * tests/test-wcsnrtombs.c: Likewise.
74715         * tests/test-wcsrtombs.c: Likewise.
74716         * tests/test-wctype.c: Likewise.
74717         * tests/test-wcwidth.c: Likewise.
74718         * tests/test-xfprintf-posix.c: Likewise.
74719         * tests/test-xmemdup0.c: Likewise.
74720         * tests/test-xprintf-posix.c: Likewise.
74721         * tests/test-xvasprintf.c: Likewise.
74722         * tests/unicase/test-locale-language.c: Likewise.
74723         * tests/unicase/test-mapping-part1.h: Likewise.
74724         * tests/unicase/test-predicate-part1.h: Likewise.
74725         * tests/unicase/test-u8-casecmp.c: Likewise.
74726         * tests/unicase/test-u8-casecoll.c: Likewise.
74727         * tests/unicase/test-u8-casefold.c: Likewise.
74728         * tests/unicase/test-u8-is-cased.c: Likewise.
74729         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74730         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74731         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74732         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74733         * tests/unicase/test-u8-tolower.c: Likewise.
74734         * tests/unicase/test-u8-totitle.c: Likewise.
74735         * tests/unicase/test-u8-toupper.c: Likewise.
74736         * tests/unicase/test-u16-casecmp.c: Likewise.
74737         * tests/unicase/test-u16-casecoll.c: Likewise.
74738         * tests/unicase/test-u16-casefold.c: Likewise.
74739         * tests/unicase/test-u16-is-cased.c: Likewise.
74740         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74741         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74742         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74743         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74744         * tests/unicase/test-u16-tolower.c: Likewise.
74745         * tests/unicase/test-u16-totitle.c: Likewise.
74746         * tests/unicase/test-u16-toupper.c: Likewise.
74747         * tests/unicase/test-u32-casecmp.c: Likewise.
74748         * tests/unicase/test-u32-casecoll.c: Likewise.
74749         * tests/unicase/test-u32-casefold.c: Likewise.
74750         * tests/unicase/test-u32-is-cased.c: Likewise.
74751         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74752         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74753         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74754         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74755         * tests/unicase/test-u32-tolower.c: Likewise.
74756         * tests/unicase/test-u32-totitle.c: Likewise.
74757         * tests/unicase/test-u32-toupper.c: Likewise.
74758         * tests/unicase/test-ulc-casecmp.c: Likewise.
74759         * tests/unicase/test-ulc-casecoll.c: Likewise.
74760         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74761         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74762         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74763         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74764         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74765         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74766         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74767         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74768         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74769         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74770         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74771         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74772         * tests/unictype/test-bidi_byname.c: Likewise.
74773         * tests/unictype/test-bidi_name.c: Likewise.
74774         * tests/unictype/test-bidi_of.c: Likewise.
74775         * tests/unictype/test-bidi_test.c: Likewise.
74776         * tests/unictype/test-block_list.c: Likewise.
74777         * tests/unictype/test-block_of.c: Likewise.
74778         * tests/unictype/test-block_test.c: Likewise.
74779         * tests/unictype/test-categ_and.c: Likewise.
74780         * tests/unictype/test-categ_and_not.c: Likewise.
74781         * tests/unictype/test-categ_byname.c: Likewise.
74782         * tests/unictype/test-categ_name.c: Likewise.
74783         * tests/unictype/test-categ_none.c: Likewise.
74784         * tests/unictype/test-categ_of.c: Likewise.
74785         * tests/unictype/test-categ_or.c: Likewise.
74786         * tests/unictype/test-categ_test_withtable.c: Likewise.
74787         * tests/unictype/test-combining.c: Likewise.
74788         * tests/unictype/test-decdigit.c: Likewise.
74789         * tests/unictype/test-digit.c: Likewise.
74790         * tests/unictype/test-mirror.c: Likewise.
74791         * tests/unictype/test-numeric.c: Likewise.
74792         * tests/unictype/test-pr_byname.c: Likewise.
74793         * tests/unictype/test-pr_test.c: Likewise.
74794         * tests/unictype/test-predicate-part1.h: Likewise.
74795         * tests/unictype/test-scripts.c: Likewise.
74796         * tests/unictype/test-sy_c_ident.c: Likewise.
74797         * tests/unictype/test-sy_java_ident.c: Likewise.
74798         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74799         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74800         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74801         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74802         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74803         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74804         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74805         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74806         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74807         * tests/uninorm/test-compat-decomposition.c: Likewise.
74808         * tests/uninorm/test-composition.c: Likewise.
74809         * tests/uninorm/test-decomposing-form.c: Likewise.
74810         * tests/uninorm/test-decomposition.c: Likewise.
74811         * tests/uninorm/test-u8-nfc.c: Likewise.
74812         * tests/uninorm/test-u8-nfd.c: Likewise.
74813         * tests/uninorm/test-u8-nfkc.c: Likewise.
74814         * tests/uninorm/test-u8-nfkd.c: Likewise.
74815         * tests/uninorm/test-u8-normcmp.c: Likewise.
74816         * tests/uninorm/test-u8-normcoll.c: Likewise.
74817         * tests/uninorm/test-u16-nfc.c: Likewise.
74818         * tests/uninorm/test-u16-nfd.c: Likewise.
74819         * tests/uninorm/test-u16-nfkc.c: Likewise.
74820         * tests/uninorm/test-u16-nfkd.c: Likewise.
74821         * tests/uninorm/test-u16-normcmp.c: Likewise.
74822         * tests/uninorm/test-u16-normcoll.c: Likewise.
74823         * tests/uninorm/test-u32-nfc.c: Likewise.
74824         * tests/uninorm/test-u32-nfd.c: Likewise.
74825         * tests/uninorm/test-u32-nfkc.c: Likewise.
74826         * tests/uninorm/test-u32-nfkd.c: Likewise.
74827         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74828         * tests/uninorm/test-u32-normcmp.c: Likewise.
74829         * tests/uninorm/test-u32-normcoll.c: Likewise.
74830         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74831         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74832         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74833         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74834         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74835         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74836         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74837         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74838         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74839         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74840         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74841         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74842         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74843         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74844         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74845         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74846         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74847         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74848         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74849         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74850         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74851         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74852         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74853         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74854         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74855         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74856         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74857         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74858         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74859         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74860         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74861         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74862         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74863         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74864         * tests/uniwidth/test-u8-width.c: Likewise.
74865         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74866         * tests/uniwidth/test-u16-width.c: Likewise.
74867         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74868         * tests/uniwidth/test-u32-width.c: Likewise.
74869         * tests/uniwidth/test-uc_width.c: Likewise.
74870         * tests/uniwidth/test-uc_width2.c: Likewise.
74871         * modules/acl-tests (Files): Add tests/macros.h.
74872         * modules/areadlink-tests (Files): Likewise.
74873         * modules/areadlink-with-size-tests (Files): Likewise.
74874         * modules/areadlinkat-tests (Files): Likewise.
74875         * modules/areadlinkat-with-size-tests (Files): Likewise.
74876         * modules/argmatch-tests (Files): Likewise.
74877         * modules/argv-iter-tests (Files): Likewise.
74878         * modules/array-list-tests (Files): Likewise.
74879         * modules/array-mergesort-tests (Files): Likewise.
74880         * modules/array-oset-tests (Files): Likewise.
74881         * modules/avltree-list-tests (Files): Likewise.
74882         * modules/avltree-oset-tests (Files): Likewise.
74883         * modules/avltreehash-list-tests (Files): Likewise.
74884         * modules/base64-tests (Files): Likewise.
74885         * modules/binary-io-tests (Files): Likewise.
74886         * modules/bitrotate-tests (Files): Likewise.
74887         * modules/btowc-tests (Files): Likewise.
74888         * modules/byteswap-tests (Files): Likewise.
74889         * modules/c-ctype-tests (Files): Likewise.
74890         * modules/c-stack-tests (Files): Likewise.
74891         * modules/c-strcase-tests (Files): Likewise.
74892         * modules/c-strcasestr-tests (Files): Likewise.
74893         * modules/c-strstr-tests (Files): Likewise.
74894         * modules/canonicalize-lgpl-tests (Files): Likewise.
74895         * modules/canonicalize-tests (Files): Likewise.
74896         * modules/carray-list-tests (Files): Likewise.
74897         * modules/ceilf-tests (Files): Likewise.
74898         * modules/ceill-tests (Files): Likewise.
74899         * modules/chown-tests (Files): Likewise.
74900         * modules/cloexec-tests (Files): Likewise.
74901         * modules/copy-file-tests (Files): Likewise.
74902         * modules/count-one-bits-tests (Files): Likewise.
74903         * modules/dprintf-posix-tests (Files): Likewise.
74904         * modules/dup2-tests (Files): Likewise.
74905         * modules/dup3-tests (Files): Likewise.
74906         * modules/duplocale-tests (Files): Likewise.
74907         * modules/fbufmode-tests (Files): Likewise.
74908         * modules/fchdir-tests (Files): Likewise.
74909         * modules/fcntl-safer-tests (Files): Likewise.
74910         * modules/fcntl-tests (Files): Likewise.
74911         * modules/fdopendir-tests (Files): Likewise.
74912         * modules/fdutimensat-tests (Files): Likewise.
74913         * modules/fflush-tests (Files): Likewise.
74914         * modules/filevercmp-tests (Files): Likewise.
74915         * modules/flock-tests (Files): Likewise.
74916         * modules/floorf-tests (Files): Likewise.
74917         * modules/floorl-tests (Files): Likewise.
74918         * modules/fnmatch-tests (Files): Likewise.
74919         * modules/fopen-safer-tests (Files): Likewise.
74920         * modules/fopen-tests (Files): Likewise.
74921         * modules/fpending-tests (Files): Likewise.
74922         * modules/fprintf-posix-tests (Files): Likewise.
74923         * modules/fpurge-tests (Files): Likewise.
74924         * modules/freadable-tests (Files): Likewise.
74925         * modules/freadahead-tests (Files): Likewise.
74926         * modules/freading-tests (Files): Likewise.
74927         * modules/freadptr-tests (Files): Likewise.
74928         * modules/freadseek-tests (Files): Likewise.
74929         * modules/freopen-tests (Files): Likewise.
74930         * modules/frexp-nolibm-tests (Files): Likewise.
74931         * modules/frexp-tests (Files): Likewise.
74932         * modules/frexpl-nolibm-tests (Files): Likewise.
74933         * modules/frexpl-tests (Files): Likewise.
74934         * modules/fseek-tests (Files): Likewise.
74935         * modules/fseeko-tests (Files): Likewise.
74936         * modules/fstrcmp-tests (Files): Likewise.
74937         * modules/fsync-tests (Files): Likewise.
74938         * modules/ftell-tests (Files): Likewise.
74939         * modules/ftello-tests (Files): Likewise.
74940         * modules/func-tests (Files): Likewise.
74941         * modules/futimens-tests (Files): Likewise.
74942         * modules/fwritable-tests (Files): Likewise.
74943         * modules/fwriting-tests (Files): Likewise.
74944         * modules/getcwd-tests (Files): Likewise.
74945         * modules/getdate-tests (Files): Likewise.
74946         * modules/getdelim-tests (Files): Likewise.
74947         * modules/getdtablesize-tests (Files): Likewise.
74948         * modules/getgroups-tests (Files): Likewise.
74949         * modules/getline-tests (Files): Likewise.
74950         * modules/getndelim2-tests (Files): Likewise.
74951         * modules/glob-tests (Files): Likewise.
74952         * modules/hash-tests (Files): Likewise.
74953         * modules/i-ring-tests (Files): Likewise.
74954         * modules/iconv-tests (Files): Likewise.
74955         * modules/iconv_open-utf-tests (Files): Likewise.
74956         * modules/idpriv-drop-tests (Files): Likewise.
74957         * modules/idpriv-droptemp-tests (Files): Likewise.
74958         * modules/inet_ntop-tests (Files): Likewise.
74959         * modules/inet_pton-tests (Files): Likewise.
74960         * modules/isblank-tests (Files): Likewise.
74961         * modules/isfinite-tests (Files): Likewise.
74962         * modules/isinf-tests (Files): Likewise.
74963         * modules/isnan-tests (Files): Likewise.
74964         * modules/isnand-nolibm-tests (Files): Likewise.
74965         * modules/isnand-tests (Files): Likewise.
74966         * modules/isnanf-nolibm-tests (Files): Likewise.
74967         * modules/isnanf-tests (Files): Likewise.
74968         * modules/isnanl-nolibm-tests (Files): Likewise.
74969         * modules/isnanl-tests (Files): Likewise.
74970         * modules/lchown-tests (Files): Likewise.
74971         * modules/ldexpl-tests (Files): Likewise.
74972         * modules/link-tests (Files): Likewise.
74973         * modules/linkat-tests (Files): Likewise.
74974         * modules/linked-list-tests (Files): Likewise.
74975         * modules/linkedhash-list-tests (Files): Likewise.
74976         * modules/localename-tests (Files): Likewise.
74977         * modules/lseek-tests (Files): Likewise.
74978         * modules/lstat-tests (Files): Likewise.
74979         * modules/mbmemcasecmp-tests (Files): Likewise.
74980         * modules/mbmemcasecoll-tests (Files): Likewise.
74981         * modules/mbrtowc-tests (Files): Likewise.
74982         * modules/mbscasecmp-tests (Files): Likewise.
74983         * modules/mbscasestr-tests (Files): Likewise.
74984         * modules/mbschr-tests (Files): Likewise.
74985         * modules/mbscspn-tests (Files): Likewise.
74986         * modules/mbsinit-tests (Files): Likewise.
74987         * modules/mbsncasecmp-tests (Files): Likewise.
74988         * modules/mbsnrtowcs-tests (Files): Likewise.
74989         * modules/mbspbrk-tests (Files): Likewise.
74990         * modules/mbspcasecmp-tests (Files): Likewise.
74991         * modules/mbsrchr-tests (Files): Likewise.
74992         * modules/mbsrtowcs-tests (Files): Likewise.
74993         * modules/mbsspn-tests (Files): Likewise.
74994         * modules/mbsstr-tests (Files): Likewise.
74995         * modules/memchr-tests (Files): Likewise.
74996         * modules/memchr2-tests (Files): Likewise.
74997         * modules/memcmp-tests (Files): Likewise.
74998         * modules/memmem-tests (Files): Likewise.
74999         * modules/memrchr-tests (Files): Likewise.
75000         * modules/mkdir-tests (Files): Likewise.
75001         * modules/mkfifo-tests (Files): Likewise.
75002         * modules/mkfifoat-tests (Files): Likewise.
75003         * modules/mknod-tests (Files): Likewise.
75004         * modules/nanosleep-tests (Files): Likewise.
75005         * modules/nl_langinfo-tests (Files): Likewise.
75006         * modules/obstack-printf-tests (Files): Likewise.
75007         * modules/open-tests (Files): Likewise.
75008         * modules/openat-tests (Files): Likewise.
75009         * modules/pipe-filter-gi-tests (Files): Likewise.
75010         * modules/pipe-filter-ii-tests (Files): Likewise.
75011         * modules/pipe2-tests (Files): Likewise.
75012         * modules/popen-safer-tests (Files): Likewise.
75013         * modules/popen-tests (Files): Likewise.
75014         * modules/posixtm-tests (Files): Likewise.
75015         * modules/pread-tests (Files): Likewise.
75016         * modules/printf-frexp-tests (Files): Likewise.
75017         * modules/printf-frexpl-tests (Files): Likewise.
75018         * modules/printf-posix-tests (Files): Likewise.
75019         * modules/priv-set-tests (Files): Likewise.
75020         * modules/quotearg-tests (Files): Likewise.
75021         * modules/random_r-tests (Files): Likewise.
75022         * modules/rawmemchr-tests (Files): Likewise.
75023         * modules/rbtree-list-tests (Files): Likewise.
75024         * modules/rbtree-oset-tests (Files): Likewise.
75025         * modules/rbtreehash-list-tests (Files): Likewise.
75026         * modules/readlink-tests (Files): Likewise.
75027         * modules/remove-tests (Files): Likewise.
75028         * modules/rename-tests (Files): Likewise.
75029         * modules/renameat-tests (Files): Likewise.
75030         * modules/rmdir-tests (Files): Likewise.
75031         * modules/round-tests (Files): Likewise.
75032         * modules/roundf-tests (Files): Likewise.
75033         * modules/roundl-tests (Files): Likewise.
75034         * modules/safe-alloc-tests (Files): Likewise.
75035         * modules/setenv-tests (Files): Likewise.
75036         * modules/sigaction-tests (Files): Likewise.
75037         * modules/signbit-tests (Files): Likewise.
75038         * modules/sleep-tests (Files): Likewise.
75039         * modules/snprintf-posix-tests (Files): Likewise.
75040         * modules/snprintf-tests (Files): Likewise.
75041         * modules/sprintf-posix-tests (Files): Likewise.
75042         * modules/stat-tests (Files): Likewise.
75043         * modules/stat-time-tests (Files): Likewise.
75044         * modules/strcasestr-tests (Files): Likewise.
75045         * modules/strchrnul-tests (Files): Likewise.
75046         * modules/strerror-tests (Files): Likewise.
75047         * modules/striconv-tests (Files): Likewise.
75048         * modules/striconveh-tests (Files): Likewise.
75049         * modules/striconveha-tests (Files): Likewise.
75050         * modules/strsignal-tests (Files): Likewise.
75051         * modules/strstr-tests (Files): Likewise.
75052         * modules/strtod-tests (Files): Likewise.
75053         * modules/strverscmp-tests (Files): Likewise.
75054         * modules/symlink-tests (Files): Likewise.
75055         * modules/symlinkat-tests (Files): Likewise.
75056         * modules/trunc-tests (Files): Likewise.
75057         * modules/truncf-tests (Files): Likewise.
75058         * modules/truncl-tests (Files): Likewise.
75059         * modules/uname-tests (Files): Likewise.
75060         * modules/unicase/cased-tests (Files): Likewise.
75061         * modules/unicase/ignorable-tests (Files): Likewise.
75062         * modules/unicase/locale-language-tests (Files): Likewise.
75063         * modules/unicase/tolower-tests (Files): Likewise.
75064         * modules/unicase/totitle-tests (Files): Likewise.
75065         * modules/unicase/toupper-tests (Files): Likewise.
75066         * modules/unicase/u8-casecmp-tests (Files): Likewise.
75067         * modules/unicase/u8-casecoll-tests (Files): Likewise.
75068         * modules/unicase/u8-casefold-tests (Files): Likewise.
75069         * modules/unicase/u8-is-cased-tests (Files): Likewise.
75070         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
75071         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
75072         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
75073         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
75074         * modules/unicase/u8-tolower-tests (Files): Likewise.
75075         * modules/unicase/u8-totitle-tests (Files): Likewise.
75076         * modules/unicase/u8-toupper-tests (Files): Likewise.
75077         * modules/unicase/u16-casecmp-tests (Files): Likewise.
75078         * modules/unicase/u16-casecoll-tests (Files): Likewise.
75079         * modules/unicase/u16-casefold-tests (Files): Likewise.
75080         * modules/unicase/u16-is-cased-tests (Files): Likewise.
75081         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
75082         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
75083         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
75084         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
75085         * modules/unicase/u16-tolower-tests (Files): Likewise.
75086         * modules/unicase/u16-totitle-tests (Files): Likewise.
75087         * modules/unicase/u16-toupper-tests (Files): Likewise.
75088         * modules/unicase/u32-casecmp-tests (Files): Likewise.
75089         * modules/unicase/u32-casecoll-tests (Files): Likewise.
75090         * modules/unicase/u32-casefold-tests (Files): Likewise.
75091         * modules/unicase/u32-is-cased-tests (Files): Likewise.
75092         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
75093         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
75094         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
75095         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
75096         * modules/unicase/u32-tolower-tests (Files): Likewise.
75097         * modules/unicase/u32-totitle-tests (Files): Likewise.
75098         * modules/unicase/u32-toupper-tests (Files): Likewise.
75099         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
75100         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
75101         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
75102         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
75103         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
75104         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
75105         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
75106         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
75107         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
75108         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
75109         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
75110         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
75111         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
75112         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
75113         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
75114         * modules/unictype/bidicategory-name-tests (Files): Likewise.
75115         * modules/unictype/bidicategory-of-tests (Files): Likewise.
75116         * modules/unictype/bidicategory-test-tests (Files): Likewise.
75117         * modules/unictype/block-list-tests (Files): Likewise.
75118         * modules/unictype/block-of-tests (Files): Likewise.
75119         * modules/unictype/block-test-tests (Files): Likewise.
75120         * modules/unictype/category-C-tests (Files): Likewise.
75121         * modules/unictype/category-Cc-tests (Files): Likewise.
75122         * modules/unictype/category-Cf-tests (Files): Likewise.
75123         * modules/unictype/category-Cn-tests (Files): Likewise.
75124         * modules/unictype/category-Co-tests (Files): Likewise.
75125         * modules/unictype/category-Cs-tests (Files): Likewise.
75126         * modules/unictype/category-L-tests (Files): Likewise.
75127         * modules/unictype/category-Ll-tests (Files): Likewise.
75128         * modules/unictype/category-Lm-tests (Files): Likewise.
75129         * modules/unictype/category-Lo-tests (Files): Likewise.
75130         * modules/unictype/category-Lt-tests (Files): Likewise.
75131         * modules/unictype/category-Lu-tests (Files): Likewise.
75132         * modules/unictype/category-M-tests (Files): Likewise.
75133         * modules/unictype/category-Mc-tests (Files): Likewise.
75134         * modules/unictype/category-Me-tests (Files): Likewise.
75135         * modules/unictype/category-Mn-tests (Files): Likewise.
75136         * modules/unictype/category-N-tests (Files): Likewise.
75137         * modules/unictype/category-Nd-tests (Files): Likewise.
75138         * modules/unictype/category-Nl-tests (Files): Likewise.
75139         * modules/unictype/category-No-tests (Files): Likewise.
75140         * modules/unictype/category-P-tests (Files): Likewise.
75141         * modules/unictype/category-Pc-tests (Files): Likewise.
75142         * modules/unictype/category-Pd-tests (Files): Likewise.
75143         * modules/unictype/category-Pe-tests (Files): Likewise.
75144         * modules/unictype/category-Pf-tests (Files): Likewise.
75145         * modules/unictype/category-Pi-tests (Files): Likewise.
75146         * modules/unictype/category-Po-tests (Files): Likewise.
75147         * modules/unictype/category-Ps-tests (Files): Likewise.
75148         * modules/unictype/category-S-tests (Files): Likewise.
75149         * modules/unictype/category-Sc-tests (Files): Likewise.
75150         * modules/unictype/category-Sk-tests (Files): Likewise.
75151         * modules/unictype/category-Sm-tests (Files): Likewise.
75152         * modules/unictype/category-So-tests (Files): Likewise.
75153         * modules/unictype/category-Z-tests (Files): Likewise.
75154         * modules/unictype/category-Zl-tests (Files): Likewise.
75155         * modules/unictype/category-Zp-tests (Files): Likewise.
75156         * modules/unictype/category-Zs-tests (Files): Likewise.
75157         * modules/unictype/category-and-not-tests (Files): Likewise.
75158         * modules/unictype/category-and-tests (Files): Likewise.
75159         * modules/unictype/category-byname-tests (Files): Likewise.
75160         * modules/unictype/category-name-tests (Files): Likewise.
75161         * modules/unictype/category-none-tests (Files): Likewise.
75162         * modules/unictype/category-of-tests (Files): Likewise.
75163         * modules/unictype/category-or-tests (Files): Likewise.
75164         * modules/unictype/category-test-withtable-tests (Files): Likewise.
75165         * modules/unictype/combining-class-tests (Files): Likewise.
75166         * modules/unictype/ctype-alnum-tests (Files): Likewise.
75167         * modules/unictype/ctype-alpha-tests (Files): Likewise.
75168         * modules/unictype/ctype-blank-tests (Files): Likewise.
75169         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
75170         * modules/unictype/ctype-digit-tests (Files): Likewise.
75171         * modules/unictype/ctype-graph-tests (Files): Likewise.
75172         * modules/unictype/ctype-lower-tests (Files): Likewise.
75173         * modules/unictype/ctype-print-tests (Files): Likewise.
75174         * modules/unictype/ctype-punct-tests (Files): Likewise.
75175         * modules/unictype/ctype-space-tests (Files): Likewise.
75176         * modules/unictype/ctype-upper-tests (Files): Likewise.
75177         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
75178         * modules/unictype/decimal-digit-tests (Files): Likewise.
75179         * modules/unictype/digit-tests (Files): Likewise.
75180         * modules/unictype/mirror-tests (Files): Likewise.
75181         * modules/unictype/numeric-tests (Files): Likewise.
75182         * modules/unictype/property-alphabetic-tests (Files): Likewise.
75183         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
75184         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
75185         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
75186         Likewise.
75187         * modules/unictype/property-bidi-block-separator-tests (Files):
75188         Likewise.
75189         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
75190         Likewise.
75191         * modules/unictype/property-bidi-common-separator-tests (Files):
75192         Likewise.
75193         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75194         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75195         Likewise.
75196         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
75197         Likewise.
75198         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
75199         Likewise.
75200         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
75201         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
75202         Likewise.
75203         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
75204         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
75205         Likewise.
75206         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
75207         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
75208         * modules/unictype/property-bidi-segment-separator-tests (Files):
75209         Likewise.
75210         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
75211         * modules/unictype/property-byname-tests (Files): Likewise.
75212         * modules/unictype/property-combining-tests (Files): Likewise.
75213         * modules/unictype/property-composite-tests (Files): Likewise.
75214         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
75215         * modules/unictype/property-dash-tests (Files): Likewise.
75216         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
75217         * modules/unictype/property-default-ignorable-code-point-tests (Files):
75218         Likewise.
75219         * modules/unictype/property-deprecated-tests (Files): Likewise.
75220         * modules/unictype/property-diacritic-tests (Files): Likewise.
75221         * modules/unictype/property-extender-tests (Files): Likewise.
75222         * modules/unictype/property-format-control-tests (Files): Likewise.
75223         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
75224         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
75225         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
75226         * modules/unictype/property-hex-digit-tests (Files): Likewise.
75227         * modules/unictype/property-hyphen-tests (Files): Likewise.
75228         * modules/unictype/property-id-continue-tests (Files): Likewise.
75229         * modules/unictype/property-id-start-tests (Files): Likewise.
75230         * modules/unictype/property-ideographic-tests (Files): Likewise.
75231         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
75232         * modules/unictype/property-ids-trinary-operator-tests (Files):
75233         Likewise.
75234         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
75235         * modules/unictype/property-iso-control-tests (Files): Likewise.
75236         * modules/unictype/property-join-control-tests (Files): Likewise.
75237         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
75238         * modules/unictype/property-line-separator-tests (Files): Likewise.
75239         * modules/unictype/property-logical-order-exception-tests (Files):
75240         Likewise.
75241         * modules/unictype/property-lowercase-tests (Files): Likewise.
75242         * modules/unictype/property-math-tests (Files): Likewise.
75243         * modules/unictype/property-non-break-tests (Files): Likewise.
75244         * modules/unictype/property-not-a-character-tests (Files): Likewise.
75245         * modules/unictype/property-numeric-tests (Files): Likewise.
75246         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
75247         * modules/unictype/property-other-default-ignorable-code-point-tests
75248         (Files): Likewise.
75249         * modules/unictype/property-other-grapheme-extend-tests (Files):
75250         Likewise.
75251         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
75252         * modules/unictype/property-other-id-start-tests (Files): Likewise.
75253         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
75254         * modules/unictype/property-other-math-tests (Files): Likewise.
75255         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
75256         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
75257         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
75258         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
75259         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
75260         * modules/unictype/property-private-use-tests (Files): Likewise.
75261         * modules/unictype/property-punctuation-tests (Files): Likewise.
75262         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
75263         * modules/unictype/property-radical-tests (Files): Likewise.
75264         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
75265         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
75266         * modules/unictype/property-space-tests (Files): Likewise.
75267         * modules/unictype/property-terminal-punctuation-tests (Files):
75268         Likewise.
75269         * modules/unictype/property-test-tests (Files): Likewise.
75270         * modules/unictype/property-titlecase-tests (Files): Likewise.
75271         * modules/unictype/property-unassigned-code-value-tests (Files):
75272         Likewise.
75273         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
75274         * modules/unictype/property-uppercase-tests (Files): Likewise.
75275         * modules/unictype/property-variation-selector-tests (Files): Likewise.
75276         * modules/unictype/property-white-space-tests (Files): Likewise.
75277         * modules/unictype/property-xid-continue-tests (Files): Likewise.
75278         * modules/unictype/property-xid-start-tests (Files): Likewise.
75279         * modules/unictype/property-zero-width-tests (Files): Likewise.
75280         * modules/unictype/scripts-tests (Files): Likewise.
75281         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
75282         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
75283         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
75284         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
75285         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
75286         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
75287         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
75288         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
75289         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
75290         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
75291         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
75292         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
75293         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
75294         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
75295         * modules/uninorm/composition-tests (Files): Likewise.
75296         * modules/uninorm/decomposing-form-tests (Files): Likewise.
75297         * modules/uninorm/decomposition-tests (Files): Likewise.
75298         * modules/uninorm/filter-tests (Files): Likewise.
75299         * modules/uninorm/nfc-tests (Files): Likewise.
75300         * modules/uninorm/nfd-tests (Files): Likewise.
75301         * modules/uninorm/nfkc-tests (Files): Likewise.
75302         * modules/uninorm/nfkd-tests (Files): Likewise.
75303         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
75304         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
75305         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
75306         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
75307         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
75308         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
75309         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
75310         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
75311         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
75312         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
75313         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
75314         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
75315         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
75316         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
75317         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
75318         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
75319         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
75320         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
75321         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
75322         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
75323         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
75324         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
75325         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
75326         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
75327         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
75328         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
75329         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
75330         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
75331         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
75332         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
75333         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
75334         * modules/uniwidth/u8-width-tests (Files): Likewise.
75335         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
75336         * modules/uniwidth/u16-width-tests (Files): Likewise.
75337         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
75338         * modules/uniwidth/u32-width-tests (Files): Likewise.
75339         * modules/uniwidth/width-tests (Files): Likewise.
75340         * modules/unlink-tests (Files): Likewise.
75341         * modules/unsetenv-tests (Files): Likewise.
75342         * modules/usleep-tests (Files): Likewise.
75343         * modules/utimens-tests (Files): Likewise.
75344         * modules/utimensat-tests (Files): Likewise.
75345         * modules/vasnprintf-posix-tests (Files): Likewise.
75346         * modules/vasnprintf-tests (Files): Likewise.
75347         * modules/vasprintf-posix-tests (Files): Likewise.
75348         * modules/vasprintf-tests (Files): Likewise.
75349         * modules/vdprintf-posix-tests (Files): Likewise.
75350         * modules/vfprintf-posix-tests (Files): Likewise.
75351         * modules/vprintf-posix-tests (Files): Likewise.
75352         * modules/vsnprintf-posix-tests (Files): Likewise.
75353         * modules/vsnprintf-tests (Files): Likewise.
75354         * modules/vsprintf-posix-tests (Files): Likewise.
75355         * modules/wcrtomb-tests (Files): Likewise.
75356         * modules/wcsnrtombs-tests (Files): Likewise.
75357         * modules/wcsrtombs-tests (Files): Likewise.
75358         * modules/wctype-tests (Files): Likewise.
75359         * modules/wcwidth-tests (Files): Likewise.
75360         * modules/xmemdup0-tests (Files): Likewise.
75361         * modules/xprintf-posix-tests (Files): Likewise.
75362         * modules/xvasprintf-tests (Files): Likewise.
75364 2009-12-24  Eric Blake  <ebb9@byu.net>
75366         test-nanosleep: fix typo
75367         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75368         patch.
75369         Reported by Bruno Haible.
75371 2009-12-24  Bruno Haible  <bruno@clisp.org>
75373         Reduce namespace pollution on glibc systems.
75374         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75375         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75376         systems.
75377         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75378         <getopt.h> on glibc systems.
75379         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75380         systems.
75381         * lib/fcntl.c: Include <unistd.h> here instead.
75383 2009-12-24  Bruno Haible  <bruno@clisp.org>
75385         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75387 2009-12-24  Eric Blake  <ebb9@byu.net>
75389         tests: add signature checks
75390         * tests/signature.h (SIGNATURE_CHECK): New file.
75391         * modules/atexit-tests (Files): Use it.
75392         * modules/btowc-tests (Files): Likewise.
75393         * modules/canonicalize-lgpl-tests (Files): Likewise.
75394         * modules/ceilf-tests (Files): Likewise.
75395         * modules/ceill-tests (Files): Likewise.
75396         * modules/chown-tests (Files): Likewise.
75397         * modules/dprintf-posix-tests (Files): Likewise.
75398         * modules/dup2-tests (Files): Likewise.
75399         * modules/dup3-tests (Files): Likewise.
75400         * modules/duplocale-tests (Files): Likewise.
75401         * modules/fchdir-tests (Files): Likewise.
75402         * modules/fcntl-tests (Files): Likewise.
75403         * modules/fdopendir-tests (Files): Likewise.
75404         * modules/fflush-tests (Files): Likewise.
75405         * modules/flock-tests (Files): Likewise.
75406         * modules/floorf-tests (Files): Likewise.
75407         * modules/floorl-tests (Files): Likewise.
75408         * modules/fnmatch-tests (Files): Likewise.
75409         * modules/fopen-tests (Files): Likewise.
75410         * modules/fprintf-posix-tests (Files): Likewise.
75411         * modules/freopen-tests (Files): Likewise.
75412         * modules/frexp-nolibm-tests (Files): Likewise.
75413         * modules/frexp-tests (Files): Likewise.
75414         * modules/frexpl-nolibm-tests (Files): Likewise.
75415         * modules/frexpl-tests (Files): Likewise.
75416         * modules/fseek-tests (Files): Likewise.
75417         * modules/fseeko-tests (Files): Likewise.
75418         * modules/fsync-tests (Files): Likewise.
75419         * modules/ftell-tests (Files): Likewise.
75420         * modules/ftello-tests (Files): Likewise.
75421         * modules/futimens-tests (Files): Likewise.
75422         * modules/getaddrinfo-tests (Files): Likewise.
75423         * modules/getcwd-tests (Files): Likewise.
75424         * modules/getdelim-tests (Files): Likewise.
75425         * modules/getdtablesize-tests (Files): Likewise.
75426         * modules/getgroups-tests (Files): Likewise.
75427         * modules/gethostname-tests (Files): Likewise.
75428         * modules/getline-tests (Files): Likewise.
75429         * modules/getopt-posix-tests (Files): Likewise.
75430         * modules/gettimeofday-tests (Files): Likewise.
75431         * modules/glob-tests (Files): Likewise.
75432         * modules/iconv-tests (Files): Likewise.
75433         * modules/inet_ntop-tests (Files): Likewise.
75434         * modules/inet_pton-tests (Files): Likewise.
75435         * modules/isblank-tests (Files): Likewise.
75436         * modules/lchown-tests (Files): Likewise.
75437         * modules/ldexpl-tests (Files): Likewise.
75438         * modules/link-tests (Files): Likewise.
75439         * modules/linkat-tests (Files): Likewise.
75440         * modules/lseek-tests (Files): Likewise.
75441         * modules/lstat-tests (Files): Likewise.
75442         * modules/mbrtowc-tests (Files): Likewise.
75443         * modules/mbsinit-tests (Files): Likewise.
75444         * modules/mbsnrtowcs-tests (Files): Likewise.
75445         * modules/mbsrtowcs-tests (Files): Likewise.
75446         * modules/memchr-tests (Files): Likewise.
75447         * modules/memcmp-tests (Files): Likewise.
75448         * modules/memmem-tests (Files): Likewise.
75449         * modules/memrchr-tests (Files): Likewise.
75450         * modules/mkdir-tests (Files): Likewise.
75451         * modules/mkfifo-tests (Files): Likewise.
75452         * modules/mkfifoat-tests (Files): Likewise.
75453         * modules/mknod-tests (Files): Likewise.
75454         * modules/nanosleep-tests (Files): Likewise.
75455         * modules/nl_langinfo-tests (Files): Likewise.
75456         * modules/obstack-printf-tests (Files): Likewise.
75457         * modules/open-tests (Files): Likewise.
75458         * modules/openat-tests (Files): Likewise.
75459         * modules/perror-tests (Files): Likewise.
75460         * modules/pipe2-tests (Files): Likewise.
75461         * modules/poll-tests (Files): Likewise.
75462         * modules/popen-tests (Files): Likewise.
75463         * modules/posix_spawn-tests (Files): Likewise.
75464         * modules/posix_spawnp-tests (Files): Likewise.
75465         * modules/pread-tests (Files): Likewise.
75466         * modules/printf-posix-tests (Files): Likewise.
75467         * modules/pty-tests (Files): Likewise.
75468         * modules/random_r-tests (Files): Likewise.
75469         * modules/rawmemchr-tests (Files): Likewise.
75470         * modules/readlink-tests (Files): Likewise.
75471         * modules/remove-tests (Files): Likewise.
75472         * modules/rename-tests (Files): Likewise.
75473         * modules/renameat-tests (Files): Likewise.
75474         * modules/rmdir-tests (Files): Likewise.
75475         * modules/round-tests (Files): Likewise.
75476         * modules/roundf-tests (Files): Likewise.
75477         * modules/roundl-tests (Files): Likewise.
75478         * modules/select-tests (Files): Likewise.
75479         * modules/setenv-tests (Files): Likewise.
75480         * modules/sigaction-tests (Files): Likewise.
75481         * modules/sleep-tests (Files): Likewise.
75482         * modules/snprintf-posix-tests (Files): Likewise.
75483         * modules/snprintf-tests (Files): Likewise.
75484         * modules/sprintf-posix-tests (Files): Likewise.
75485         * modules/stat-tests (Files): Likewise.
75486         * modules/strcasestr-tests (Files): Likewise.
75487         * modules/strchrnul-tests (Files): Likewise.
75488         * modules/strerror-tests (Files): Likewise.
75489         * modules/strsignal-tests (Files): Likewise.
75490         * modules/strstr-tests (Files): Likewise.
75491         * modules/strtod-tests (Files): Likewise.
75492         * modules/strverscmp-tests (Files): Likewise.
75493         * modules/symlink-tests (Files): Likewise.
75494         * modules/symlinkat-tests (Files): Likewise.
75495         * modules/times-tests (Files): Likewise.
75496         * modules/trunc-tests (Files): Likewise.
75497         * modules/truncf-tests (Files): Likewise.
75498         * modules/truncl-tests (Files): Likewise.
75499         * modules/tsearch-tests (Files): Likewise.
75500         * modules/uname-tests (Files): Likewise.
75501         * modules/unlink-tests (Files): Likewise.
75502         * modules/unsetenv-tests (Files): Likewise.
75503         * modules/usleep-tests (Files): Likewise.
75504         * modules/utimensat-tests (Files): Likewise.
75505         * modules/vasprintf-tests (Files): Likewise.
75506         * modules/vdprintf-posix-tests (Files): Likewise.
75507         * modules/vfprintf-posix-tests (Files): Likewise.
75508         * modules/vprintf-posix-tests (Files): Likewise.
75509         * modules/vsnprintf-posix-tests (Files): Likewise.
75510         * modules/vsnprintf-tests (Files): Likewise.
75511         * modules/vsprintf-posix-tests (Files): Likewise.
75512         * modules/wcrtomb-tests (Files): Likewise.
75513         * modules/wcsnrtombs-tests (Files): Likewise.
75514         * modules/wcsrtombs-tests (Files): Likewise.
75515         * modules/wcwidth-tests (Files): Likewise.
75516         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
75517         * tests/test-isinf.c (isinf): Likewise.
75518         * tests/test-isnan.c (isnan): Likewise.
75519         * tests/test-signbit.c (signbit): Likewise.
75520         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
75521         declaration, either as macro or with correct signature.
75522         (select): Ensure function under test is declared with correct
75523         signature in correct header.
75524         * tests/test-atexit.c (atexit): Likewise.
75525         * tests/test-btowc.c (btowc): Likewise.
75526         * tests/test-canonicalize-lgpl.c (realpath)
75527         (canonicalize_file_name): Likewise.
75528         * tests/test-ceilf1.c (ceilf): Likewise.
75529         * tests/test-ceill.c (ceill): Likewise.
75530         * tests/test-chown.c (chown): Likewise.
75531         * tests/test-dprintf-posix.c (dprintf): Likewise.
75532         * tests/test-dup2.c (dup2): Likewise.
75533         * tests/test-dup3.c (dup3): Likewise.
75534         * tests/test-duplocale.c (duplocale): Likewise.
75535         * tests/test-fchdir.c (fchdir): Likewise.
75536         * tests/test-fchownat.c (fchownat): Likewise.
75537         * tests/test-fcntl.c (fcntl): Likewise.
75538         * tests/test-fdopendir.c (fdopendir): Likewise.
75539         * tests/test-fflush.c (fflush): Likewise.
75540         * tests/test-flock.c (flock): Likewise.
75541         * tests/test-floorf1.c (floorf): Likewise.
75542         * tests/test-floorl.c (floorl): Likewise.
75543         * tests/test-fnmatch.c (fnmatch): Likewise.
75544         * tests/test-fopen.c (fopen): Likewise.
75545         * tests/test-fprintf-posix.c (fprintf): Likewise.
75546         * tests/test-freopen.c (freopen): Likewise.
75547         * tests/test-frexp.c (frexp): Likewise.
75548         * tests/test-frexpl.c (frexpl): Likewise.
75549         * tests/test-fseek.c (fseek): Likewise.
75550         * tests/test-fseeko.c (fseeko): Likewise.
75551         * tests/test-fstatat.c (fstatat): Likewise.
75552         * tests/test-fsync.c (fsync): Likewise.
75553         * tests/test-ftell.c (ftell): Likewise.
75554         * tests/test-ftello.c (ftello): Likewise.
75555         * tests/test-futimens.c (futimens): Likewise.
75556         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
75557         (gai_strerror): Likewise.
75558         * tests/test-getcwd.c (getcwd): Likewise.
75559         * tests/test-getdelim.c (getdelim): Likewise.
75560         * tests/test-getdtablesize.c (getdtablesize): Likewise.
75561         * tests/test-getgroups.c (getgroups): Likewise.
75562         * tests/test-gethostname.c (gethostname): Likewise.
75563         * tests/test-getline.c (getline): Likewise.
75564         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
75565         Likewise.
75566         * tests/test-gettimeofday.c (gettimeofday): Likewise.
75567         * tests/test-glob.c (glob, globfree): Likewise.
75568         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
75569         * tests/test-inet_ntop.c (inet_ntop): Likewise.
75570         * tests/test-inet_pton.c (inet_pton): Likewise.
75571         * tests/test-isblank.c (isblank): Likewise.
75572         * tests/test-lchown.c (lchown): Likewise.
75573         * tests/test-ldexpl.c (ldexpl): Likewise.
75574         * tests/test-link.c (link): Likewise.
75575         * tests/test-linkat.c (linkat): Likewise.
75576         * tests/test-lseek.c (lseek): Likewise.
75577         * tests/test-lstat.c (lstat): Likewise.
75578         * tests/test-mbrtowc.c (mbrtowc): Likewise.
75579         * tests/test-mbsinit.c (mbsinit): Likewise.
75580         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
75581         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
75582         * tests/test-memchr.c (memchr): Likewise.
75583         * tests/test-memcmp.c (memcmp): Likewise.
75584         * tests/test-memmem.c (memmem): Likewise.
75585         * tests/test-memrchr.c (memrchr): Likewise.
75586         * tests/test-mkdir.c (mkdir): Likewise.
75587         * tests/test-mkdirat.c (mkdirat): Likewise.
75588         * tests/test-mkfifo.c (mkfifo): Likewise.
75589         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
75590         * tests/test-mknod.c (mknod): Likewise.
75591         * tests/test-nanosleep.c (nanosleep): Likewise.
75592         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
75593         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
75594         Likewise.
75595         * tests/test-open.c (open): Likewise.
75596         * tests/test-openat.c (openat): Likewise.
75597         * tests/test-perror.c (perror): Likewise.
75598         * tests/test-pipe2.c (pipe2): Likewise.
75599         * tests/test-poll.c (poll): Likewise.
75600         * tests/test-popen.c (popen, pclose): Likewise.
75601         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
75602         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
75603         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
75604         (posix_spawn_file_actions_destroy)
75605         (posix_spawn_file_actions_addclose)
75606         (posix_spawn_file_actions_addopen)
75607         (posix_spawn_file_actions_adddup2): Likewise.
75608         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75609         * tests/test-pread.c (pread): Likewise.
75610         * tests/test-printf-posix.c (printf): Likewise.
75611         * tests/test-pty.c (openpty, forkpty): Likewise.
75612         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75613         (random_r): Likewise.
75614         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75615         * tests/test-readlink.c (readlink): Likewise.
75616         * tests/test-remove.c (remove): Likewise.
75617         * tests/test-rename.c (rename): Likewise.
75618         * tests/test-renameat.c (renameat): Likewise.
75619         * tests/test-rmdir.c (rmdir): Likewise.
75620         * tests/test-round1.c (round): Likewise.
75621         * tests/test-roundf1.c (roundf): Likewise.
75622         * tests/test-roundl.c (roundl): Likewise.
75623         * tests/test-setenv.c (setenv): Likewise.
75624         * tests/test-sigaction.c (sigaction): Likewise.
75625         * tests/test-sleep.c (sleep): Likewise.
75626         * tests/test-snprintf.c (snprintf): Likewise.
75627         * tests/test-sprintf-posix.c (sprintf): Likewise.
75628         * tests/test-stat.c (stat): Likewise.
75629         * tests/test-stpncpy.c (stpncpy): Likewise.
75630         * tests/test-strcasestr.c (strcasestr): Likewise.
75631         * tests/test-strchrnul.c (strchrnul): Likewise.
75632         * tests/test-strerror.c (strerror): Likewise.
75633         * tests/test-strsignal.c (strsignal): Likewise.
75634         * tests/test-strstr.c (strstr): Likewise.
75635         * tests/test-strtod.c (strtod): Likewise.
75636         * tests/test-strverscmp.c (strverscmp): Likewise.
75637         * tests/test-symlink.c (symlink): Likewise.
75638         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
75639         * tests/test-times.c (times): Likewise.
75640         * tests/test-trunc1.c (trunc): Likewise.
75641         * tests/test-truncf1.c (truncf): Likewise.
75642         * tests/test-truncl.c (truncl): Likewise.
75643         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
75644         Likewise.
75645         * tests/test-uname.c (uname): Likewise.
75646         * tests/test-unlink.c (unlink): Likewise.
75647         * tests/test-unlinkat.c (unlinkat): Likewise.
75648         * tests/test-unsetenv.c (unsetenv): Likewise.
75649         * tests/test-usleep.c (usleep): Likewise.
75650         * tests/test-utimensat.c (utimensat): Likewise.
75651         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
75652         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
75653         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
75654         * tests/test-vprintf-posix.c (vprintf): Likewise.
75655         * tests/test-vsnprintf.c (vsnprintf): Likewise.
75656         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
75657         * tests/test-wcrtomb.c (wcrtomb): Likewise.
75658         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
75659         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
75660         * tests/test-wcwidth.c (wcwidth): Likewise.
75662         build: pull in conditional headers during GNULIB_POSIXCHECK
75663         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
75664         definitions from any conditionally-included headers.
75665         * lib/stdlib.in.h (includes): Likewise.
75666         * lib/unistd.in.h (includes): Likewise.
75668 2009-12-24  Bruno Haible  <bruno@clisp.org>
75670         * tests/test-argv-iter.c: Include header file being tested immediately
75671         after config.h.
75672         * tests/test-base64.c: Likewise.
75673         * tests/test-flock.c: Likewise.
75674         * tests/test-fsync.c: Likewise.
75675         * tests/test-getdate.c: Likewise.
75676         * tests/test-getndelim2.c: Likewise.
75677         * tests/test-isfinite.c: Likewise.
75678         * tests/test-isinf.c: Likewise.
75679         * tests/test-strerror.c: Likewise.
75680         * tests/test-strsignal.c: Likewise.
75682 2009-12-23  Eric Blake  <ebb9@byu.net>
75684         unistd: work around cygwin bug
75685         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75686         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75687         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75689 2009-12-23  Bruno Haible  <bruno@clisp.org>
75691         localename: More tests.
75692         * tests/test-localename.c (SIZEOF): New macro.
75693         (categories): New variable.
75694         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75695         test_locale_name_default): Add test w.r.t. thread locale.
75696         (test_locale_name_thread): New function.
75697         (main): Invoke it.
75699         localename: Make aware of thread locale.
75700         * lib/localename.h (gl_locale_name_thread): New declaration.
75701         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75702         behaviour with respect to thread locale.
75703         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75704         <langinfo.h>, glthread/lock.h.
75705         (SIZE_BITS): New macro.
75706         (string_hash): New function.
75707         (struct hash_node): New type.
75708         (HASH_TABLE_SIZE): New macro.
75709         (struniq_hash_table, struniq_lock): New variables.
75710         (struniq): New function.
75711         (gl_locale_name_thread): New function.
75712         (gl_locale_name): Invoke it.
75713         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75714         * modules/localename (Depends-on): Add lock.
75715         Reported by Mike Gran <spk121@yahoo.com>.
75717 2009-12-23  Eric Blake  <ebb9@byu.net>
75719         va-args: new module
75720         * modules/va-args: New file.
75721         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75722         * MODULES.html.sh (Core language properties): Mention it.
75724         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75725         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75726         named alias for __attribute__((__unused__)).
75727         * lib/chown.c: Update client.
75728         * lib/fchmodat.c: Likewise.
75729         * lib/fts.c: Likewise.
75730         * lib/getdate.y: Likewise.
75731         * lib/getgroups.c: Likewise.
75732         * lib/getopt.c: Likewise.
75733         * lib/getugroups.c: Likewise.
75734         * lib/mkdir.c: Likewise.
75735         * lib/mkfifo.c: Likewise.
75736         * lib/mkfifoat.c: Likewise.
75737         * lib/mknod.c: Likewise.
75738         * lib/mknodat.c: Likewise.
75739         * lib/readlink.c: Likewise.
75740         * lib/se-context.in.h: Likewise.
75741         * lib/se-selinux.in.h: Likewise.
75742         * lib/sockets.c: Likewise.
75743         * lib/symlink.c: Likewise.
75744         * lib/symlinkat.c: Likewise.
75745         * lib/unicodeio.c: Likewise.
75746         * lib/unistr.h: Likewise.
75747         * tests/test-areadlink.c: Likewise.
75748         * tests/test-areadlinkat.c: Likewise.
75749         * tests/test-filenamecat.c: Likewise.
75750         * tests/test-fseeko.c: Likewise.
75751         * tests/test-ftello.c: Likewise.
75752         * tests/test-getdate.c: Likewise.
75753         * tests/test-getgroups.c: Likewise.
75754         * tests/test-gethostname.c: Likewise.
75755         * tests/test-quotearg.c: Likewise.
75756         * tests/test-version-etc.c: Likewise.
75757         * tests/test-xalloc-die.c: Likewise.
75758         * tests/test-xfprintf-posix.c: Likewise.
75759         * tests/test-xprintf-posix.c: Likewise.
75760         * tests/test-xvasprintf.c: Likewise.
75762         tests: avoid compiler warnings
75763         * tests/test-fcntl.c (main): Delete unused parameters.
75764         * tests/test-freopen-safer.c (main): Likewise.
75765         * tests/test-xalloc-die.c (main): Mark unused parameters.
75766         * tests/test-fseeko.c (main): Likewise.
75767         * tests/test-ftello.c (main): Likewise.
75768         * tests/test-nanosleep.c (main): Avoid declaration warning.
75769         * tests/test-sleep.c (main): Likewise.
75770         * tests/test-unsetenv.c (main): Silence warning about string
75771         literal.
75772         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75774 2009-12-23  Bruno Haible  <bruno@clisp.org>
75776         * tests/test-localename.c (test_locale_name): New function, extracted
75777         from main. Also test mixed situations.
75778         (test_locale_name_posix, test_locale_name_environ,
75779         test_locale_name_default): New functions.
75780         (main): Invoke them all.
75781         * modules/localename-tests (configure.ac): Test for newlocale.
75783 2009-12-23  Bruno Haible  <bruno@clisp.org>
75785         unistd: Ensure getcwd gets declared before being overridden.
75786         * lib/unistd.in.h: Conditionally include <io.h>.
75788 2009-12-22  Bruno Haible  <bruno@clisp.org>
75790         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75791         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75792         (gl_WCHAR_H): Invoke it.
75793         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75794         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75795         Reported by Karl Berry <karl@freefriends.org>.
75797 2009-12-22  Eric Blake  <ebb9@byu.net>
75799         math, unistd: avoid redundant includes
75800         * lib/math.in.h (isnan): No need to re-include <math.h>.
75801         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75803         getsubopt: work around cygwin bug
75804         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75805         avoid conflicting with system getsubopt.
75806         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75807         bug.
75809         getopt: synchronize from glibc
75810         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75811         parameter order.  Adjust all callers.
75812         (_getopt_internal_r, main): Adjust quoting in error messages.
75813         Drop considerations for outdated POSIX 1003.2 error message.
75814         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75815         callers.
75816         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75818         test-getopt: test stderr behavior
75819         * modules/getopt-posix-tests (Depends-on): Add dup2.
75820         * tests/test-getopt.c (ASSERT): Avoid stderr.
75821         (main): Move stderr to a temporary file.
75822         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75823         Instead, add parameter to inform caller if output occurred.
75824         (test_getopt): Adjust all existing tests to expect silence, and
75825         add new tests of leading ":".
75826         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75827         glibc shortcomings with leading "-:" or "+:" in optstring.
75828         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75829         Likewise.
75830         * doc/posix-functions/getopt.texi (getopt): Likewise.
75832         test-getopt: enhance test
75833         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75834         supports optind=0.
75835         * tests/test-getopt.c (OPTIND_MIN): Move...
75836         * tests/test-getopt.h (OPTIND_MIN): ...here.
75837         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75838         Require that optind=0 works, since modern BSD supports it in
75839         addition to optreset, and since coreutils expects it.
75840         (test_getopt_long_only): New test.
75841         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75842         glibc shortcomings with 'W;', and enforcement of optind=0.
75843         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75844         Likewise.
75846 2009-12-21  Bruno Haible  <bruno@clisp.org>
75848         localename: Improvements for MacOS X and Cygwin.
75849         * lib/localename.h (gl_locale_name_environ): New declaration.
75850         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75851         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75852         (gl_locale_name_posix): Invoke it.
75853         (gl_locale_name_default): Add comments. Use Windows native API also on
75854         Cygwin.
75856 2009-12-21  Bruno Haible  <bruno@clisp.org>
75858         Update list of Win32 locale ids.
75859         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75860         (LANG_SAMI): Renamed from LANG_SAAMI.
75861         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75862         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75863         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75864         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75865         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75866         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75867         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75868         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75869         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75870         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75871         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75872         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75873         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75874         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75875         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75876         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75877         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75878         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75879         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75880         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75881         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75882         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75883         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75884         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75885         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75886         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75887         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75888         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75889         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75890         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75891         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75892         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75893         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75894         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75895         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75896         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75897         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75898         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75899         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75900         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75901         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75902         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75903         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75904         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75905         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75906         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75907         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75908         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75909         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75910         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75911         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75912         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75913         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75914         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75915         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75916         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75917         Add more languages and countries for Sami, Sorbian. Add more countries
75918         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75919         for Pashto. Change country for Syriac, Tswana.
75921 2009-12-21  Eric Blake  <ebb9@byu.net>
75923         test-utimens: avoid spurious failure
75924         * tests/test-chown.h (nap): Factor...
75925         * tests/nap.h: ...into new file.
75926         * tests/test-lchown.h (nap): Avoid duplication.
75927         * tests/test-utimens-common.h (nap): Use shared implementation,
75928         necessary on file systems with 1-second resolution.
75929         * modules/chown-tests (Files): Include new file.
75930         * modules/fdutimensat-tests (Files): Likewise.
75931         * modules/futimens-tests (Files): Likewise.
75932         * modules/lchown-tests (Files): Likewise.
75933         * modules/openat-tests (Files): Likewise.
75934         * modules/utimens-tests (Files): Likewise.
75935         * modules/utimensat-tests (Files): Likewise.
75937 2009-12-19  Eric Blake  <ebb9@byu.net>
75939         futimens, utimensat: work around Linux bug
75940         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75941         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75942         * lib/utimensat.c (rpl_utimensat): Work around it.
75943         * lib/futimens.c (rpl_futimens): Adjust comment.
75945         utimens: work around Linux ctime bug
75946         * lib/utimens.c (detect_ctime_bug): New helper function.
75947         (update_timespec): Differentiate between workaround needed for
75948         this bug vs. what is needed for systems that lack utimensat.
75949         (fdutimens, lutimens): Work around bug.
75951         utimens: check for ctime update
75952         * tests/test-utimens-common.h (check_ctime): Define.
75953         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75954         * tests/test-futimens.h (test_futimens): Likewise.
75955         * tests/test-lutimens.h (test_lutimens): Likewise.
75956         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75957         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75959 2009-12-19  Bruno Haible  <bruno@clisp.org>
75961         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75962         * tests/test-dprintf-posix2.sh: New file.
75963         * tests/test-dprintf-posix2.c: New file.
75964         * modules/dprintf-posix-tests (Files): Add them.
75965         (configure.ac): Check for getrlimit and setrlimit.
75966         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75968 2009-12-19  Bruno Haible  <bruno@clisp.org>
75970         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75971         * tests/test-fprintf-posix3.sh: New file.
75972         * tests/test-fprintf-posix3.c: New file.
75973         * modules/fprintf-posix-tests (Files): Add them.
75974         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75976 2009-12-19  Eric Blake  <ebb9@byu.net>
75978         dirfd: fix prototype
75979         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75980         * lib/dirfd.c (dirfd): Likewise.
75982         canonicalize: reduce memory usage
75983         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75984         allocation to size.
75985         Reported by Solar Designer <solar@openwall.com>.
75987 2009-12-19  Bruno Haible  <bruno@clisp.org>
75989         New module attribute 'Applicability'.
75990         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75991         * gnulib-tool: New option --extract-applicability.
75992         (func_usage): Document it.
75993         (sed_extract_prog): Recognize it.
75994         (func_get_applicability): New function.
75995         (func_import): Generalize handling of 'link-warning' module.
75996         * modules/link-warning (Applicability): New section.
75997         * modules/arg-nonnull (Applicability): New section.
75998         Repoted by Simon Josefsson <simon@josefsson.org>.
76000 2009-12-19  Bruno Haible  <bruno@clisp.org>
76002         fflush: tweak
76003         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
76004         * lib/fseeko.c (rpl_fseeko): Likewise.
76006 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
76008         * lib/gl_list.h: Fix typo in comment.
76010 2009-12-16  Eric Blake  <ebb9@byu.net>
76012         fcntl: use to simplify other modules
76013         * modules/cloexec (Depends-on): Add fcntl.
76014         * modules/fchdir (Depends-on): Likewise.
76015         * modules/fd-safer-flag (Depends-on): Likewise.
76016         * modules/unistd-safer (Depends-on): Likewise.
76017         * modules/dup3 (configure.ac): Set module indicator.
76018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
76019         missing.
76020         * lib/fchdir.c (_gl_register_dup): Fix comment.
76021         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
76022         * lib/dup-safer.c (dup_safer): Likewise.
76023         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
76024         * lib/dup3.c (dup3): Likewise.
76025         * tests/test-fchdir.c (main): Enhance test.
76026         Fixes a dup_cloexec bug reported by Ondřej Vašík.
76028         fcntl: port portions of fcntl to mingw
76029         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
76030         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
76031         replacement for mingw.
76032         * modules/fcntl (Description): Update.
76033         (Depends-on): Add dup2.
76034         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
76035         * modules/fcntl-h (Makefile.am): Substitute it.
76036         * lib/fcntl.in.h (fcntl): Update declaration.
76037         (F_DUPFD, F_GETFD): New macros, when needed.
76038         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76039         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
76040         * tests/test-fcntl.c (check_flags, main): Enhance test for items
76041         we now guarantee.
76043         fcntl: work around cygwin bug in F_DUPFD
76044         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
76045         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
76046         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
76047         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
76048         * doc/posix-functions/fcntl.texi (fcntl): Document it.
76050         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
76051         * modules/fcntl (Files): List new files.
76052         (configure.ac): Run a test.
76053         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
76054         * lib/fcntl.c (rpl_fcntl): Likewise.
76055         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
76056         (gl_FCNTL_H): Always replace fcntl.h.
76057         * modules/fcntl-h (Makefile.am): Substitute witnesses.
76058         * lib/fcntl.in.h (fcntl): Declare replacement.
76059         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
76060         needed, plus a witness.
76061         * doc/posix-functions/fcntl.texi (fcntl): Document this.
76062         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76063         * tests/test-fcntl.c: New file.
76064         * modules/fcntl-tests: Likewise.
76066         binary-io: avoid potential compilation warning
76067         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
76068         directives.
76070         fflush: avoid compilation error on NetBSD
76071         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
76072         between off_t and fpos_t, since the latter is sometimes a struct.
76073         * lib/fseeko.c (rpl_fseeko): Likewise.
76074         Reported by Alexander Nasonov <alnsn@yandex.ru>.
76076 2009-12-15  Eric Blake  <ebb9@byu.net>
76078         fcntl-h, stdio, sys_ioctl: fix declarations
76079         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
76080         function must not take arguments.
76081         * lib/sys_ioctl.in.h (ioctl): Likewise.
76082         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
76083         (open): Add a link warning.
76085 2009-12-15  Jim Meyering  <meyering@redhat.com>
76087         areadlink, areadlink-with-size: relax license to LGPLv2+
76088         * modules/areadlink (License): Relax to LGPLv2+.
76089         * modules/areadlink-with-size (License): Likewise.
76091 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
76092             Bruno Haible  <bruno@clisp.org>
76094         *printf: Fix memory leak.
76095         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
76096         * lib/vfprintf.c (vfprintf): Likewise.
76097         * lib/dprintf.c (dprintf): Likewise.
76098         * lib/vdprintf.c (vdprintf): Likewise.
76100 2009-12-14  Eric Blake  <ebb9@byu.net>
76102         accept4: adjust module dependencies
76103         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
76105         utimens: one more try at avoiding compiler warning
76106         * lib/utimens.c (lutimens): Lower scope of result.
76108 2009-12-13  Bruno Haible  <bruno@clisp.org>
76110         Move the malloc checking from module 'list' to new module 'xlist'.
76111         * modules/xlist: New file.
76112         * lib/gl_xlist.h: New file.
76113         * lib/gl_xlist.c: New file.
76114         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
76115         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
76116         gl_list_add_last, gl_list_add_before, gl_list_add_after,
76117         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
76118         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
76119         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
76120         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
76121         gl_sortedlist_nx_add): New declarations.
76122         (struct gl_list_implementation): Rename and change methods accordingly.
76123         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
76124         (gl_list_nx_create): Renamed from gl_list_create.
76125         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76126         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76127         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76128         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76129         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76130         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76131         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76132         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76133         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
76134         gl_list_create_empty.
76135         (gl_list_nx_create): Renamed from gl_list_create.
76136         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76137         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76138         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76139         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76140         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76141         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76142         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76143         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76144         * lib/gl_array_list.c: Don't include xalloc.h.
76145         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
76146         NULL upon out-of-memory.
76147         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
76148         out-of-memory.
76149         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
76150         Change return type to 'int'.
76151         (gl_array_nx_set_at): Renamed from gl_array_set_at.
76152         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76153         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
76154         upon out-of-memory.
76155         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
76156         upon out-of-memory.
76157         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
76158         upon out-of-memory.
76159         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
76160         upon out-of-memory.
76161         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
76162         out-of-memory.
76163         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
76164         Update.
76165         (gl_array_list_implementation): Update.
76166         * lib/gl_carray_list.c: Don't include xalloc.h.
76167         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
76168         Return NULL upon out-of-memory.
76169         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
76170         out-of-memory.
76171         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
76172         Change return type to 'int'.
76173         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
76174         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76175         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
76176         upon out-of-memory.
76177         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
76178         upon out-of-memory.
76179         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
76180         out-of-memory.
76181         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
76182         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
76183         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
76184         Update.
76185         (gl_carray_list_implementation): Update.
76186         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
76187         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
76188         gl_linked_create_empty. Return NULL upon out-of-memory.
76189         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
76190         out-of-memory.
76191         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76192         Change return type to 'int'. Return -1 upon out-of-memory.
76193         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76194         out-of-memory.
76195         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76196         upon out-of-memory.
76197         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
76198         upon out-of-memory.
76199         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
76200         NULL upon out-of-memory.
76201         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
76202         upon out-of-memory.
76203         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
76204         out-of-memory.
76205         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
76206         Update.
76207         * lib/gl_linked_list.c: Don't include xalloc.h.
76208         (gl_linked_list_implementation): Update.
76209         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
76210         (add_to_bucket): Change return type to 'int'.
76211         (gl_linkedhash_list_implementation): Update.
76212         * lib/gl_anytree_list1.h (free_subtree): New function.
76213         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
76214         gl_tree_create_empty. Return NULL upon out-of-memory.
76215         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
76216         Change return type to 'int'. Return -1 upon out-of-memory.
76217         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
76218         out-of-memory.
76219         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
76220         (gl_tree_remove_node): New function, moved here from
76221         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
76222         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
76223         Update.
76224         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
76225         malloc, not xmalloc. Return NULL upon out-of-memory.
76226         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76227         out-of-memory.
76228         (gl_tree_remove_node_from_tree): New function, extracted from
76229         gl_tree_remove_node.
76230         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76231         upon out-of-memory.
76232         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76233         out-of-memory.
76234         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76235         upon out-of-memory.
76236         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76237         upon out-of-memory.
76238         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76239         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
76240         not xmalloc. Return NULL upon out-of-memory.
76241         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76242         out-of-memory.
76243         (gl_tree_remove_node_from_tree): New function, extracted from
76244         gl_tree_remove_node.
76245         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76246         upon out-of-memory.
76247         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76248         out-of-memory.
76249         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76250         upon out-of-memory.
76251         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76252         upon out-of-memory.
76253         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76254         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
76255         gl_anytree_list1.h before gl_anyavltree_list2.h.
76256         (gl_avltree_list_implementation): Update.
76257         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
76258         gl_anytree_list1.h before gl_anyavltree_list2.h.
76259         (gl_rbtree_list_implementation): Update.
76260         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
76261         Change return type to 'int'. Return -1 upon out-of-memory. Use
76262         __builtin_expect.
76263         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
76264         (gl_avltreehash_list_implementation): Update.
76265         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
76266         (gl_rbtreehash_list_implementation): Update.
76267         * modules/array-list (Depends-on): Remove xalloc.
76268         * modules/carray-list (Depends-on): Likewise.
76269         * modules/linked-list (Depends-on): Likewise.
76270         * modules/linkedhash-list (Depends-on): Likewise.
76271         * modules/avltree-list (Depends-on): Likewise.
76272         * modules/rbtree-list (Depends-on): Likewise.
76273         * modules/avltreehash-list (Depends-on): Likewise.
76274         * modules/rbtreehash-list (Depends-on): Likewise.
76276         * modules/xsublist: New file.
76277         * lib/gl_xsublist.h: New file.
76278         * lib/gl_xsublist.c: New file.
76279         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
76280         (gl_sublist_nx_create): New declaration.
76281         * lib/gl_sublist.c: Don't include xalloc.h.
76282         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
76283         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
76284         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
76285         Change return type to 'int'. Return -1 upon out-of-memory.
76286         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
76287         upon out-of-memory.
76288         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
76289         NULL upon out-of-memory.
76290         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
76291         upon out-of-memory.
76292         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
76293         NULL upon out-of-memory.
76294         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
76295         NULL upon out-of-memory.
76296         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
76297         upon out-of-memory.
76298         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
76299         (gl_sublist_list_implementation): Update.
76300         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
76301         upon out-of-memory.
76302         * modules/sublist (Depends-on): Remove xalloc.
76304         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
76305         * tests/test-carray_list.c: Likewise.
76306         * tests/test-linked_list.c: Likewise.
76307         * tests/test-linkedhash_list.c: Likewise.
76308         * tests/test-avltree_list.c: Likewise.
76309         * tests/test-rbtree_list.c: Likewise.
76310         * tests/test-avltreehash_list.c: Likewise.
76311         * tests/test-rbtreehash_list.c: Likewise.
76312         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
76313         * modules/carray-list-tests (Makefile.am): Likewise.
76314         * modules/linked-list-tests (Makefile.am): Likewise.
76315         * modules/linkedhash-list-tests (Makefile.am): Likewise.
76316         * modules/avltree-list-tests (Makefile.am): Likewise.
76317         * modules/rbtree-list-tests (Makefile.am): Likewise.
76318         * modules/avltreehash-list-tests (Makefile.am): Likewise.
76319         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
76321         * NEWS: Mention the changes.
76323         * lib/clean-temp.c: Include gl_xlist.h.
76324         * modules/clean-temp (Depends-on): Add xlist.
76326         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
76327         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
76329         * tests/test-array_oset.c: Include gl_xlist.h.
76330         * modules/array-oset-tests (Depends-on): Add xlist.
76332         Reported by José E. Marchesi <jemarch@gnu.org>.
76334 2009-12-13  Bruno Haible  <bruno@clisp.org>
76336         Move the malloc checking from module 'oset' to new module 'xoset'.
76337         * modules/xoset: New file.
76338         * lib/gl_xoset.h: New file.
76339         * lib/gl_xoset.c: New file.
76340         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
76341         declarations.
76342         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
76343         (struct gl_oset_implementation): Rename and change methods accordingly.
76344         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
76345         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76346         'int'. Mark as __warn_unused_result__.
76347         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
76348         gl_oset_create_empty.
76349         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
76350         'int'.
76351         * lib/gl_array_oset.c: Don't include xalloc.h.
76352         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
76353         malloc, not xmalloc.
76354         (grow): Change return type to 'int'. Don't call xalloc_die.
76355         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
76356         to 'int'.
76357         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
76358         'int'.
76359         (gl_array_oset_implementation): Update.
76360         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
76361         gl_tree_create_empty.
76362         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76363         'int'.
76364         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76365         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76366         xmalloc.
76367         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76368         not xmalloc.
76369         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76370         xmalloc.
76371         (gl_avltree_oset_implementation): Update.
76372         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76373         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76374         xmalloc.
76375         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76376         not xmalloc.
76377         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76378         xmalloc.
76379         (gl_rbtree_oset_implementation): Update.
76380         * modules/array-oset (Depends-on): Remove xalloc.
76381         * modules/avltree-oset (Depends-on): Likewise.
76382         * modules/rbtree-oset (Depends-on): Likewise.
76383         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76384         * tests/test-avltree_oset.c: Likewise.
76385         * tests/test-rbtree_oset.c: Likewise.
76386         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76387         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76388         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76389         * NEWS: Mention the change.
76391 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76393         maint.mk: allow a project to override release-prep commands
76394         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76395         commands into a new rule.
76396         (release-prep): New rule.
76397         (release-prep-hook): New overridable variable.
76399 2009-12-13  Bruno Haible  <bruno@clisp.org>
76401         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76403 2009-12-13  Jim Meyering  <meyering@redhat.com>
76405         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76406         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76408 2009-12-12  Bruno Haible  <bruno@clisp.org>
76410         duplocale: Tweak.
76411         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76413 2009-12-12  Karl Berry  <karl@gnu.org>
76415         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76417 2009-12-12  Bruno Haible  <bruno@clisp.org>
76419         * m4/po.m4: Undo incorrect untabification.
76421 2009-12-12  Bruno Haible  <bruno@clisp.org>
76423         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76424         * modules/c-strtod (Depends-on): Add locale.
76425         * modules/c-strtold (Depends-on): Likewise.
76427 2009-12-12  Bruno Haible  <bruno@clisp.org>
76429         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76431 2009-12-11  Eric Blake  <ebb9@byu.net>
76433         setenv: relax requirement in light of POSIX ruling
76434         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76435         not NULL.
76436         * tests/test-setenv.c (main): Relax test.
76437         * tests/test-unsetenv.c (main): Likewise.
76438         * doc/posix-functions/setenv.texi (setenv): Document this.
76439         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76441 2009-12-11  Bruno Haible  <bruno@clisp.org>
76443         New module 'fd-safer-flag'.
76444         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76445         * lib/dup-safer.c (dup_safer_flag): Remove function.
76446         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76447         * lib/fd-safer.c (fd_safer_flag): Remove function.
76448         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76449         * modules/cloexec (configure.ac): Drop indicator macro.
76450         * modules/fd-safer-flag: New file.
76451         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76452         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76453         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76455 2009-12-11  Bruno Haible  <bruno@clisp.org>
76457         Tests for module 'nl_langinfo'.
76458         * modules/nl_langinfo-tests: New file.
76459         * tests/test-nl_langinfo.sh: New file.
76460         * tests/test-nl_langinfo.c: New file.
76462         New module 'nl_langinfo'.
76463         * lib/nl_langinfo.c: New file.
76464         * m4/nl_langinfo.m4: New file.
76465         * modules/nl_langinfo: New file.
76466         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76468 2009-12-11  Bruno Haible  <bruno@clisp.org>
76470         Tests for module 'langinfo'.
76471         * modules/langinfo-tests: New file.
76472         * tests/test-langinfo.c: New file.
76474         New module 'langinfo'.
76475         * lib/langinfo.in.h: New file.
76476         * m4/langinfo_h.m4: New file.
76477         * modules/langinfo: New file.
76478         * doc/posix-headers/langinfo.texi: Mention the new module.
76480 2009-12-11  Bruno Haible  <bruno@clisp.org>
76482         * lib/config.charset: Untabify.
76484 2009-12-11  Bruno Haible  <bruno@clisp.org>
76486         * modules/unistd-safer (configure.ac): Drop indicator macro.
76488 2009-12-11  Bruno Haible  <bruno@clisp.org>
76490         Move pipe2-safer code to its own file.
76491         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
76492         * lib/pipe-safer.c (pipe2_safer): Remove function.
76493         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
76494         (Makefile.am): Add it to lib_SOURCES.
76496 2009-12-10  Bruno Haible  <bruno@clisp.org>
76498         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
76500 2009-12-10  Bruno Haible  <bruno@clisp.org>
76502         Declare which arguments expect non-NULL values, for GCC and clang.
76503         * build-aux/arg-nonnull.h: New file.
76504         * modules/arg-nonnull: New file.
76505         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
76506         (inet_ntop, inet_pton): Use it.
76507         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
76508         (closedir, dirfd, opendir, scandir, alphasort): Use it.
76509         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
76510         (open, openat): Use it.
76511         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
76512         (fnmatch): Use it.
76513         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
76514         (getopt, getopt_long, getopt_long_only): Use it.
76515         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
76516         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
76517         Use it.
76518         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
76519         (iconv_open): Use it.
76520         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
76521         (strtoimax, strtoumax): Use it.
76522         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
76523         (duplocale): Use it.
76524         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
76525         (frexp, frexpl): Use it.
76526         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
76527         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
76528         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
76529         (tsearch, tfind, tdelete, twalk): Use it.
76530         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
76531         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
76532         sigpending): Use it.
76533         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
76534         (posix_spawn, posix_spawnp, posix_spawnattr_init,
76535         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76536         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
76537         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
76538         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
76539         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
76540         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
76541         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
76542         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
76543         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
76544         Use it.
76545         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
76546         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
76547         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
76548         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
76549         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
76550         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
76551         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
76552         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
76553         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
76554         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
76555         strtoull, unsetenv): Use it.
76556         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
76557         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
76558         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
76559         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
76560         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
76561         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
76562         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
76563         (strcasecmp, strncasecmp): Use it.
76564         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
76565         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
76566         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
76567         rpl_setsockopt): Use it.
76568         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
76569         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
76570         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
76571         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
76572         (gettimeofday): Use it.
76573         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
76574         (times): Use it.
76575         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
76576         (uname): Use it.
76577         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
76578         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
76579         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
76580         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
76581         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
76582         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
76583         unlinkat, write): Use it.
76584         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
76585         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
76586         * lib/argv-iter.h: Include arg-nonnull.h.
76587         (_ATTRIBUTE_NONNULL_): Remove macro.
76588         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
76589         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
76590         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
76591         optimization.
76592         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
76593         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
76594         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
76595         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
76596         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
76597         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
76598         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
76599         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
76600         * modules/arpa_inet (Depends-on): Add arg-nonnull.
76601         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
76602         * modules/dirent (Depends-on): Add arg-nonnull.
76603         (Makefile.am): Insert arg-nonnull.h into dirent.h.
76604         * modules/fcntl-h (Depends-on): Add arg-nonnull.
76605         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
76606         * modules/fnmatch (Depends-on): Add arg-nonnull.
76607         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
76608         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76609         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76610         * modules/glob (Depends-on): Add arg-nonnull.
76611         (Makefile.am): Insert arg-nonnull.h into glob.h.
76612         * modules/iconv_open (Depends-on): Add arg-nonnull.
76613         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76614         * modules/inttypes (Depends-on): Add arg-nonnull.
76615         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76616         * modules/locale (Depends-on): Add arg-nonnull.
76617         (Makefile.am): Insert arg-nonnull.h into locale.h.
76618         * modules/math (Depends-on): Add arg-nonnull.
76619         (Makefile.am): Insert arg-nonnull.h into math.h.
76620         * modules/netdb (Depends-on): Add arg-nonnull.
76621         (Makefile.am): Insert arg-nonnull.h into netdb.h.
76622         * modules/search (Depends-on): Add arg-nonnull.
76623         (Makefile.am): Insert arg-nonnull.h into search.h.
76624         * modules/signal (Depends-on): Add arg-nonnull.
76625         (Makefile.am): Insert arg-nonnull.h into signal.h.
76626         * modules/spawn (Depends-on): Add arg-nonnull.
76627         (Makefile.am): Insert arg-nonnull.h into spawn.h.
76628         * modules/stdio (Depends-on): Add arg-nonnull.
76629         (Makefile.am): Insert arg-nonnull.h into stdio.h.
76630         * modules/stdlib (Depends-on): Add arg-nonnull.
76631         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
76632         * modules/string (Depends-on): Add arg-nonnull.
76633         (Makefile.am): Insert arg-nonnull.h into string.h.
76634         * modules/strings (Depends-on): Add arg-nonnull.
76635         (Makefile.am): Insert arg-nonnull.h into strings.h.
76636         * modules/sys_socket (Depends-on): Add arg-nonnull.
76637         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
76638         * modules/sys_stat (Depends-on): Add arg-nonnull.
76639         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
76640         * modules/sys_time (Depends-on): Add arg-nonnull.
76641         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
76642         * modules/sys_times (Depends-on): Add arg-nonnull.
76643         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
76644         * modules/sys_utsname (Depends-on): Add arg-nonnull.
76645         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
76646         * modules/time (Depends-on): Add arg-nonnull.
76647         (Makefile.am): Insert arg-nonnull.h into time.h.
76648         * modules/unistd (Depends-on): Add arg-nonnull.
76649         (Makefile.am): Insert arg-nonnull.h into unistd.h.
76650         * modules/wchar (Depends-on): Add arg-nonnull.
76651         (Makefile.am): Insert arg-nonnull.h into wchar.h.
76652         * modules/argv-iter (Depends-on): Add arg-nonnull.
76653         * tests/test-canonicalize.c (null_ptr): New function.
76654         (main): Use it.
76655         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
76656         (main): Use it.
76657         * tests/test-memmem.c (null_ptr): New function.
76658         (main): Use it.
76659         Reported by Jim Meyering.
76661 2009-12-10  Bruno Haible  <bruno@clisp.org>
76663         Use spaces for indentation, not tabs.
76664         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
76665         * m4/*.m4: Untabify.
76666         * build-aux/*.h: Untabify.
76667         * tests/**/*.[hc]: Untabify.
76668         * README: New section "Indent with spaces, not TABs", based on
76669         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
76670         * NEWS: Mention the change.
76672 2009-12-10  Bruno Haible  <bruno@clisp.org>
76674         pty test: Fix link error.
76675         * modules/pty-tests (Makefile.am): Add the default LDADD value to
76676         test_pty_LDADD.
76678 2009-12-07  Simon Josefsson  <simon@josefsson.org>
76680         * modules/pty: New file.
76681         * modules/pty-tests: New file.
76682         * m4/pty.m4: New file.
76683         * tests/test-pty.c: New file.
76684         * doc/glibc-headers/pty.texi: Modified.
76685         * doc/glibc-functions/forkpty.texi: Modified.
76686         * doc/glibc-functions/openpty.texi: Modified.
76688 2009-12-10  Bruno Haible  <bruno@clisp.org>
76690         Avoid syntax error in C++ mode.
76691         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76693 2009-12-10  Bruno Haible  <bruno@clisp.org>
76695         Use sed with option -e.
76696         * gnulib-tool (func_version, func_emit_copyright_notice,
76697         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76698         option -e to sed.
76699         * modules/link-warning (Makefile.am): Likewise.
76701 2009-12-10  Jim Meyering  <meyering@redhat.com>
76703         mgetgroups: do not write bytes beyond end of malloc'd buffer
76704         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76705         username, we call getgroups with a one-element-shorter buffer,
76706         but still told it the length was original, max_n_groups.
76708 2009-12-09  Eric Blake  <ebb9@byu.net>
76710         cloexec: relax license
76711         * modules/cloexec (Maintainer): Add myself.
76712         (License): Use LGPL, not GPL.
76714         link-warning: optimize generation
76715         * modules/link-warning (Makefile.am): Reduce process usage.
76717 2009-12-09  Bruno Haible  <bruno@clisp.org>
76719         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76720         workaround was added on 2009-11-17.
76722 2009-12-09  Jim Meyering  <meyering@redhat.com>
76723             Bruno Haible  <bruno@clisp.org>
76725         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76726         * modules/link-warning (Makefile.am): Make the comment-removing sed
76727         command more robust in the face of bootstrap-prepended comment lines.
76729 2009-12-09  Bruno Haible  <bruno@clisp.org>
76731         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76732         most one group.
76734 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76735             Bruno Haible  <bruno@clisp.org>
76737         * build-aux/link-warning.h: Add copyright notice.
76738         * modules/link-warning (Makefile.am): Generate link-warning.h from
76739         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76740         * NEWS: Mention change in link-warning module.
76741         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76742         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76743         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76744         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76745         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76746         * modules/math (Makefile.am): Add dependency to math.h.
76747         * modules/search (Makefile.am): Add dependency to search.h.
76748         * modules/signal (Makefile.am): Add dependency to signal.h.
76749         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76750         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76751         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76752         * modules/string (Makefile.am): Add dependency to string.h.
76753         * modules/strings (Makefile.am): Add dependency to strings.h.
76754         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76755         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76756         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76757         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76758         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76759         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76760         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76761         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76762         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76764 2009-12-09  Bruno Haible  <bruno@clisp.org>
76766         fchdir: Optimize away rpl_fstat when possible.
76767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76768         REPLACE_OPEN_DIRECTORY.
76769         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76771 2009-12-09  Bruno Haible  <bruno@clisp.org>
76773         * lib/fchdir.c: Update comment.
76775 2009-12-09  Bruno Haible  <bruno@clisp.org>
76777         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76779 2009-12-08  Eric Blake  <ebb9@byu.net>
76781         fchdir: avoid memory leak on re-registration.
76782         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76784 2009-12-08  Jim Meyering  <meyering@redhat.com>
76786         init.sh: avoid Solaris 10 /bin/sh portability problem
76787         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76788         sourced script:
76789           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76790           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76791           bar
76792         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76793         and two tests used that idiom.
76794         * tests/init.sh: Update suggested usage comments.
76795         (path_prepend_): New function, to be used in place
76796         of the --src-path=DIR option.
76797         (setup_): Move PATH-prepending code into path_prepend_.
76798         * tests/test-pread.sh: Adapt to new usage.
76799         * tests/test-xalloc-die.sh: Likewise.
76801 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76803         * doc/gnulib.texi (Glibc pty.h): Add.
76804         * doc/glibc-functions/forkpty.texi: Add.
76805         * doc/glibc-functions/openpty.texi: Add.
76806         Suggested by Bruno Haible.
76808 2009-12-08  Eric Blake  <ebb9@byu.net>
76810         fchdir: fix logic bugs
76811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76812         * tests/test-fchdir.c (main): Enhance test.
76813         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76814         is in use.
76816         dup2: fix logic bugs
76817         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76818         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76819         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76820         exists.
76821         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76823 2009-12-07  Eric Blake  <ebb9@byu.net>
76825         unlink: fix m4 detection
76826         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76828         unistd-safer: add unit test
76829         * modules/unistd-safer-tests: New file.
76830         * tests/test-dup-safer.c: Likewise.
76831         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76832         * tests/test-dup2.c (setmode): Likewise.
76833         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76835         cloexec: preserve text vs. binary across dup_cloexec
76836         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76837         mode.
76838         * modules/dup2-tests (Depends-on): Add binary-io.
76839         * modules/cloexec-tests (Depends-on): Likewise.
76840         * tests/test-dup2.c (setmode, is_mode): New helpers.
76841         (main): Add tests that translation mode is preserved.
76842         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76843         Reported by Bruno Haible.
76845         mgetgroups: reduce duplicate listings
76846         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76847         resulting array.
76848         * tests/test-chown.h (test_chown): Simplify client.
76849         * tests/test-lchown.h (test_lchown): Likewise.
76851 2009-12-06  Bruno Haible  <bruno@clisp.org>
76853         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76854         value.
76856 2009-12-06  Bruno Haible  <bruno@clisp.org>
76858         * lib/progname.c: Include stdio.h, stdlib.h.
76859         (set_program_name): Reject a NULL argument.
76861 2009-12-05  Eric Blake  <ebb9@byu.net>
76863         pipe2-safer: new module
76864         * modules/pipe2-safer: New file.
76865         * lib/unistd-safer.h (pipe2_safer): New prototype.
76866         * lib/unistd--.h (pipe2): New wrapper.
76867         * lib/pipe-safer.c (pipe2_safer): New function.
76868         * modules/pipe (Depends-on): Add pipe2-safer.
76869         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76871         stdlib-safer: preserve cloexec flag for mkostemp[s]
76872         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76873         fd_safer_flag.
76875         unistd-safer: allow preservation of cloexec status via flag
76876         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76877         prototypes.
76878         * lib/dup-safer.c (dup_safer_flag): New function.
76879         * lib/fd-safer.c (fd_safer_flag): Likewise.
76880         * modules/cloexec (configure.ac): Set witness.
76882         test-dup2: enhance test
76883         * modules/dup2-tests (Depends-on): Add cloexec.
76884         * tests/test-dup2.c (main): Enhance test.
76886         cloexec: add dup_cloexec
76887         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76888         header and comments.
76889         * lib/cloexec.c (set_cloexec_flag): Add comments.
76890         (dup_cloexec): New function, with mingw implementation borrowed
76891         from...
76892         * lib/w32spawn.h (dup_noinherit): ...here.
76893         * modules/execute (Depends-on): Add cloexec.
76894         * modules/pipe (Depends-on): Likewise.
76895         * modules/cloexec (Depends-on): Add dup2.
76896         * modules/cloexec-tests (Files): New file.
76897         * tests/test-cloexec.c: Likewise.
76899         test-xalloc-die: fix test for mingw
76900         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76901         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76902         directory and .exe suffix off argv[0] output.
76904         test-fseeko: fix test for mingw
76905         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76906         than undefining fseek, so test will pass on mingw.
76908 2009-12-05  Bruno Haible  <bruno@clisp.org>
76910         * lib/progname.h (set_program_name): Clarify specification.
76911         * lib/progname.c (set_program_name): Likewise.
76912         Reported by Jim Meyering.
76914 2009-12-05  Jim Meyering  <meyering@redhat.com>
76916         maint.mk: backslash-escape parens in default regexp
76917         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76918         backslash-escape the literal parentheses.
76920         maint.mk: news-date-check: use grep -E
76921         * top/maint.mk (today): Define a Make variable, not a...
76922         (news-date-check): ...shell variable.
76923         (news-date-regexp): Use the Make variable.
76924         Use grep's -E option.  Change the failing diagnostic to mention
76925         the variable, $(news-date-regexp).
76927 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76929         maintainer-makefile: allow customization of NEWS entry format
76930         * top/maint.mk (news-date-regexp): New overridable variable.
76931         (news-date-check): Use it.
76933 2009-12-04  Eric Blake  <ebb9@byu.net>
76935         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76936         * lib/mgetgroups.h (xgetgroups): New prototype.
76937         * lib/mgetgroups.c (xgetgroups): New wrapper.
76938         (mgetgroups): Handle ENOSYS.
76939         * modules/mgetgroups (Depends-on): Add realloc.
76940         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76942         mgetgroups: avoid argument promotion issues with -1
76943         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76944         for invalid gid_t.
76945         * tests/test-chown.h (getegid, test_chown): Likewise.
76946         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76948 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76950         exclude: Fix header file problems.
76951         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76953 2009-12-01  Jim Meyering  <meyering@redhat.com>
76955         fts: fts_open: do not let an empty string cause immediate failure
76956         This is required in support of GNU rm, for which the command
76957         "rm A '' B" must process and remove both A and B, in spite of
76958         the empty string argument.
76959         * lib/fts.c (fts_open): Do not let the presence of an empty string
76960         cause fts_open to fail immediately.  Most fts-using tools must be
76961         able to process all arguments, in order, and can be expected to
76962         diagnose such arguments themselves.
76964 2009-11-30  Eric Blake  <ebb9@byu.net>
76966         utimens: fix compilation error
76967         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76968         Declare variable at right scope.
76970 2009-11-29  Jim Meyering  <meyering@redhat.com>
76972         bootstrap: handle perl-5.11's changed --version output
76973         * build-aux/bootstrap (get_version): Handle perl separately,
76974         since perl-5.11's --version output is different.
76976 2009-11-28  Jim Meyering  <meyering@redhat.com>
76978         userspec: depend on the inttostr module, too
76979         * modules/userspec (Depends-on): Add inttostr.
76981         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76982         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76983         number of MAXUID when it evaluates to (uid_t) -1.
76984         Likewise for group ID.  Reported by Matt McCutchen in
76985         <http://savannah.gnu.org/bugs/?28113>
76987         userspec: reformat to use spaces, not TABs
76988         * lib/userspec.c: Expand TABs to spaces.
76989         Add Emacs' "indent-tabs-mode: nil" hint.
76991 2009-11-27  Eric Blake  <ebb9@byu.net>
76993         getopt-gnu: flush out another BSD bug
76994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76995         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76996         flush out BSD bug.
76997         * tests/test-getopt.h (test_getopt): End lists with NULL.
76998         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76999         (test_getopt_long_posix): Enhance test.
77000         * modules/getopt-posix-tests (Depends-on): Add stdbool.
77001         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
77002         getopt-gnu.
77003         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77004         Likewise.
77006 2009-11-27  Simon Josefsson  <simon@josefsson.org>
77008         * modules/idpriv-droptemp-tests (Notice): Fix text.
77010 2009-11-27  Jim Meyering  <meyering@redhat.com>
77012         test-xalloc-die: avoid spurious failure due to libtool argv difference
77013         In a libtool-enabled project, this test would fail due to a difference
77014         in the emitted program name, e.g.,
77015         -test-xalloc-die: memory exhausted
77016         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
77017         Use program to avoid that.
77018         * modules/xalloc-die-tests (Depends-on): Add progname.
77019         * tests/test-xalloc-die.c: Include progname.h".
77020         (program_name): Remove decl.
77021         (main): Call set_program_name.
77022         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
77024 2009-11-26  Richard Jones  <rjones@redhat.com>
77026         w32sock: leave win32 error in place.
77027         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
77029 2009-11-26  Eric Blake  <ebb9@byu.net>
77031         init.sh: suggest to use skip_ and fail_ functions in comments
77032         * tests/init.sh: Add a sentence.
77034 2009-11-25  Bruno Haible  <bruno@clisp.org>
77036         init.sh: add documentation in comments
77037         * tests/init.sh: Add some developer and user documentation.
77039 2009-11-26  Jim Meyering  <meyering@redhat.com>
77041         init.sh: accommodate even those who specify bogus srcdir manually
77042         * tests/init.sh: Normally, srcdir is guaranteed by automake and
77043         configure-time tests to be sanitized, so that there is no need to
77044         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
77045         (with no double quotes) suffices.  However, since tests may be
77046         invoked manually, and since you may explicitly set srcdir to the
77047         name of a directory containing spaces, do quote its uses here.
77048         * tests/test-pread.sh: Likewise.
77049         Suggested by Bruno Haible.
77051         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
77052         * tests/test-pread.sh: Write no data into the pipe, because
77053         test-pread actually reads none.  This avoids a diagnostic,
77054         "bash: echo: write error: Broken pipe", that arises in the unusual
77055         event something is ignoring SIGPIPE, and might be interpreted
77056         as some sort of failure.  Reported by Bruno Haible.
77058 2009-11-25  Jim Meyering  <meyering@redhat.com>
77060         test-pread: cover failure with ESPIPE and EINVAL
77061         * tests/test-pread.c (main): Test for failure, too.
77062         * tests/test-pread.sh: Invoke with stdin on a pipe.
77063         Suggested by Eric Blake.
77065         pread: improvement and fix
77066         * modules/pread (Depends-on): Depend on lseek, for portability to
77067         e.g., mingw.  Suggested by Eric Blake.
77068         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
77070         unistd.in.h: correct declaration of pread
77071         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
77072         Reported by Richard W.M. Jones.
77074         test-pread.sh: distribute the test script
77075         * modules/pread-tests (Files): Include test-pread.sh.
77077         test-pread.sh: clean up
77078         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
77079         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
77080         That is unnecessary, since it's always ".".
77081         Suggestion from Eric Blake.
77083         test-pread.sh: make executable
77084         * tests/test-pread.sh: Set executable bit.
77085         Reported by Eric Blake.
77087         correct typo in test-pread.sh
77088         * tests/test-pread.sh: Add #! line.
77090         test pread
77091         * tests/test-pread.c: New file.
77092         * tests/test-pread.sh: Likewise.
77093         * modules/pread-tests: Likewise.
77095         pread: new module
77096         * modules/pread: New file.
77097         * lib/unistd.in.h (pread): Define/declare.
77098         * lib/pread.c (pread): New file.
77099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
77100         * modules/unistd (Makefile.am): Substitute witnesses.
77101         * doc/posix-functions/pread.texi (pread): Update.
77102         * MODULES.html.sh: Add pread.
77104 2009-11-25  Jim Meyering  <meyering@redhat.com>
77106         tests/init.sh: new file to be used via most *.sh tests
77107         * tests/init.sh: New file.
77109 2009-11-25  Eric Blake  <ebb9@byu.net>
77111         utimens: work around older Linux failure with symlinks
77112         * lib/utimens.c (lutimensat_works_really): New variable.
77113         (fdutimens, lutimens): Use it to manage kernels that support
77114         nanosecond times on files, but not on symlinks.
77115         Reported by Ondřej Vašík.
77117         utimes: fix configure grammar
77118         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
77120 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
77122         regex: Fix fastmap for multibyte character ranges.
77123         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
77124         characters when a multibyte character range is included.
77126 2009-11-22  Andy Wingo  <wingo@pobox.com>
77128         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
77129         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
77131 2009-11-24  Bruno Haible  <bruno@clisp.org>
77133         doc: Most *_l functions exist in MacOS X 10.5.
77134         * doc/posix-functions/duplocale.texi: Update platforms list.
77135         * doc/posix-functions/freelocale.texi: Likewise.
77136         * doc/posix-functions/newlocale.texi: Likewise.
77137         * doc/posix-functions/uselocale.texi: Likewise.
77138         * doc/posix-functions/isalnum_l.texi: Likewise.
77139         * doc/posix-functions/isalpha_l.texi: Likewise.
77140         * doc/posix-functions/isblank_l.texi: Likewise.
77141         * doc/posix-functions/iscntrl_l.texi: Likewise.
77142         * doc/posix-functions/isdigit_l.texi: Likewise.
77143         * doc/posix-functions/isgraph_l.texi: Likewise.
77144         * doc/posix-functions/islower_l.texi: Likewise.
77145         * doc/posix-functions/isprint_l.texi: Likewise.
77146         * doc/posix-functions/ispunct_l.texi: Likewise.
77147         * doc/posix-functions/isspace_l.texi: Likewise.
77148         * doc/posix-functions/isupper_l.texi: Likewise.
77149         * doc/posix-functions/iswalnum_l.texi: Likewise.
77150         * doc/posix-functions/iswalpha_l.texi: Likewise.
77151         * doc/posix-functions/iswblank_l.texi: Likewise.
77152         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77153         * doc/posix-functions/iswctype_l.texi: Likewise.
77154         * doc/posix-functions/iswdigit_l.texi: Likewise.
77155         * doc/posix-functions/iswgraph_l.texi: Likewise.
77156         * doc/posix-functions/iswlower_l.texi: Likewise.
77157         * doc/posix-functions/iswprint_l.texi: Likewise.
77158         * doc/posix-functions/iswpunct_l.texi: Likewise.
77159         * doc/posix-functions/iswspace_l.texi: Likewise.
77160         * doc/posix-functions/iswupper_l.texi: Likewise.
77161         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77162         * doc/posix-functions/isxdigit_l.texi: Likewise.
77163         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
77164         * doc/posix-functions/strcasecmp_l.texi: Likewise.
77165         * doc/posix-functions/strcoll_l.texi: Likewise.
77166         * doc/posix-functions/strfmon_l.texi: Likewise.
77167         * doc/posix-functions/strftime_l.texi: Likewise.
77168         * doc/posix-functions/strncasecmp_l.texi: Likewise.
77169         * doc/posix-functions/strxfrm_l.texi: Likewise.
77170         * doc/posix-functions/tolower_l.texi: Likewise.
77171         * doc/posix-functions/toupper_l.texi: Likewise.
77172         * doc/posix-functions/towctrans_l.texi: Likewise.
77173         * doc/posix-functions/towlower_l.texi: Likewise.
77174         * doc/posix-functions/towupper_l.texi: Likewise.
77175         * doc/posix-functions/wcscoll_l.texi: Likewise.
77176         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77177         * doc/posix-functions/wctrans_l.texi: Likewise.
77178         * doc/posix-functions/wctype_l.texi: Likewise.
77179         * doc/glibc-functions/strptime_l.texi: Likewise.
77180         * doc/glibc-functions/strtod_l.texi: Likewise.
77181         * doc/glibc-functions/strtof_l.texi: Likewise.
77182         * doc/glibc-functions/strtol_l.texi: Likewise.
77183         * doc/glibc-functions/strtold_l.texi: Likewise.
77184         * doc/glibc-functions/strtoll_l.texi: Likewise.
77185         * doc/glibc-functions/strtoul_l.texi: Likewise.
77186         * doc/glibc-functions/strtoull_l.texi: Likewise.
77187         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77188         * doc/glibc-functions/wcstod_l.texi: Likewise.
77189         * doc/glibc-functions/wcstof_l.texi: Likewise.
77190         * doc/glibc-functions/wcstol_l.texi: Likewise.
77191         * doc/glibc-functions/wcstold_l.texi: Likewise.
77192         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77193         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77194         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77196 2009-11-24  Bruno Haible  <bruno@clisp.org>
77198         duplocale: Fix logic bug.
77199         * lib/duplocale.c: Don't include <langinfo.h>.
77200         (_NL_LOCALE_NAME): Remove macro.
77201         (rpl_duplocale): Use setlocale instead of nl_langinfo.
77202         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
77204 2009-11-23  Jim Meyering  <meyering@redhat.com>
77206         test-update-copyright: don't hard-code /usr/bin/perl
77207         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
77208         perl to print the current year.  Gilles Espinasse reported that
77209         the replaced use of perl was hard-coded as /usr/bin/perl.
77211 2009-11-23  Bruno Haible  <bruno@clisp.org>
77213         duplocale: Add support for glibc 2.3.x.
77214         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
77216 2009-11-22  Bruno Haible  <bruno@clisp.org>
77218         vasnprintf: Tiny optimization.
77219         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
77220         MacOS X.
77222 2009-11-22  Bruno Haible  <bruno@clisp.org>
77224         Tests for module 'duplocale'.
77225         * modules/duplocale-tests: New file.
77226         * tests/test-duplocale.c: New file.
77228         New module 'duplocale'.
77229         * m4/duplocale.m4: New file.
77230         * lib/locale.in.h (duplocale): New declaration.
77231         * lib/duplocale.c: New file.
77232         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
77233         gl_LOCALE_H_DEFAULTS): New macros.
77234         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
77235         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
77236         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
77237         REPLACE_DUPLOCALE.
77238         * modules/duplocale: New file.
77239         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
77241 2009-11-22  Bruno Haible  <bruno@clisp.org>
77243         * modules/locale-tests (configure.ac): Test for newlocale function.
77244         * tests/test-locale.c: When the system has extended locale functions,
77245         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
77247         locale: Make locale_t available when possible.
77248         * lib/locale.in.h: Include <xlocale.h> when it exists.
77249         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
77250         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
77251         * modules/locale (Depends-on): Add extensions.
77252         (Makefile.am): Also substitute HAVE_XLOCALE_H.
77253         * doc/posix-headers/locale.texi: Document the problem with locale_t.
77255 2009-11-22  Bruno Haible  <bruno@clisp.org>
77257         Add comments.
77258         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
77259         invocation.
77260         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77261         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
77262         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77264 2009-11-22  Bruno Haible  <bruno@clisp.org>
77266         error: account for the possibility of freopen (stdout).
77267         * lib/error.c: Include <unistd.h>.
77268         (flush_stdout): New function, extracted from error and error_at_line.
77269         Determine stdout's fd dynamically.
77270         (error, error_at_line): Invoke flush_stdout.
77271         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
77272         * modules/error (Depends-on): Add unistd.
77274 2009-11-22  Bruno Haible  <bruno@clisp.org>
77276         diffseq: Add comment.
77277         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
77279 2009-11-22  Jim Meyering  <meyering@redhat.com>
77281         c-stack: avoid defining an unused static function
77282         * lib/c-stack.c (find_stack_direction): Do not define this function
77283         when it will not be used.
77285         diffseq: avoid spurious gcc warnings
77286         * lib/diffseq.h (IF_LINT2): Define.
77287         (compareseq): Use it to initialize two members of "part".
77288         This avoids two used-uninitialized warnings.
77290 2009-11-21  Jim Meyering  <meyering@redhat.com>
77292         c-stack: avoid "ignoring return value of `write'" warning
77293         * lib/c-stack.c: Include "ignore-value.h".
77294         (die): Explicitly ignore each write return value.
77295         * modules/c-stack (Depends-on): Add ignore-value.
77297 2009-11-21  Bruno Haible  <bruno@clisp.org>
77299         diffseq: reduce scope of variable 'best'.
77300         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
77301         variable, earlier used for two different purposes.
77303 2009-11-21  Jim Meyering  <meyering@redhat.com>
77305         diffseq: remove useless assignment to "best"
77306         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
77307         assignment.  At that point "best" is already guaranteed to be zero.
77309 2009-11-20  Eric Blake  <ebb9@byu.net>
77311         build: mention ftp redirector in release announcements
77312         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
77313         values that used to come from cfg.mk; mention FTP redirect URL.
77314         * build-aux/announce-gen: Mention the mirror list.
77315         Suggested by Karl Berry.
77317         nanosleep: improve port to mingw
77318         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
77319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
77320         LIB_NANOSLEEP, but only when needed.
77321         * modules/select (Link): Document LIBSOCKET.
77322         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
77323         enough.
77325         nanosleep: work around cygwin bug
77326         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
77327         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
77328         bug.
77329         (getnow): Delete, not needed.
77330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
77331         LIB_CLOCK_GETTIME.
77332         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
77333         clock-time, gettime.
77334         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
77335         bug.
77336         * modules/nanosleep-tests: New test.
77337         * tests/test-nanosleep.c: New file.
77339         sleep: work around cygwin bug
77340         * lib/sleep.c (rpl_sleep): Work around the bug.
77341         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
77342         (gl_PREREQ_SLEEP): Delete unused macro.
77343         * modules/sleep (Depends-on): Add verify.
77344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77345         * modules/unistd (Makefile.am): Substitute witness.
77346         * lib/unistd.in.h (sleep): Update prototype.
77347         * doc/posix-functions/sleep.texi (sleep): Document the bug.
77348         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
77349         * modules/sleep-tests (Depends-on): Check for alarm.
77351 2009-11-20  Jim Meyering  <meyering@redhat.com>
77353         maint.mk: improve sc_prohibit_magic_number_exit
77354         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
77355         so it does not match uses like System.exit(1).
77356         Add comments showing how to correct all offenders.
77358 2009-11-19  Eric Blake  <ebb9@byu.net>
77360         xalloc-die-tests: add missing library
77361         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77363         test-xvasprintf: silence compiler warnings
77364         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77365         empty string from gcc.
77367 2009-11-19  Jim Meyering  <meyering@redhat.com>
77369         xfreopen: new module, from coreutils
77370         * modules/xfreopen: New module.
77371         * lib/xfreopen.c: New file.
77372         * lib/xfreopen.h: New file.
77373         * MODULES.html.sh (File stream based Input/Output"): Add it.
77375 2009-11-19  Eric Blake  <ebb9@byu.net>
77377         manywarnings: depend on warnings
77378         * modules/manywarnings (Depends-on): Add warnings.
77380         build: avoid compiler warnings
77381         * lib/select.c (rpl_select): Delete unused variable.
77382         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77384 2009-11-18  Eric Blake  <ebb9@byu.net>
77386         tests: avoid false negative with --with-packager
77387         * tests/test-version-etc.sh: Discard packager information.
77388         * tests/test-argp-version-etc-1.sh: Likewise.
77389         Reported by Mike Frysinger.
77391         utimens: fix regression on Solaris
77392         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77393         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77394         can only change fd timestamps via futimesat.  Instead, use an
77395         additional witness macro to avoid BSD bug.
77396         Reported by Jim Meyering.
77398 2009-11-17  Eric Blake  <ebb9@byu.net>
77400         usleep: use it to simplify tests
77401         * modules/stat-time-tests (Depends-on): Add usleep.
77402         (configure.ac): Drop usleep check.
77403         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77404         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77405         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77406         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77407         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77408         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77409         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77410         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77411         Likewise.
77412         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77413         * tests/test-lchown.h (nap): Likewise.
77414         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77415         * tests/test-stat-time.c (nap): Likewise.
77416         * tests/test-utimens-common.h (nap): Update comments.
77418         usleep: new module
77419         * modules/usleep: New file.
77420         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77421         * lib/usleep.c (usleep): Likewise.
77422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77423         * modules/unistd (Makefile.am): Substitute witnesses.
77424         * lib/unistd.in.h (usleep): Add declaration.
77425         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77426         * MODULES.html.sh (Date and time): Likewise.
77427         * modules/usleep-tests (Depends-on): New test.
77428         * tests/test-usleep.c: New file.
77430         chown: work around OpenBSD bug
77431         * lib/chown.c (rpl_chown): Work around the bug.
77432         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77433         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77434         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77435         * modules/chown (Depends-on): Add stdbool.
77436         * modules/lchown (Depends-on): Likewise.
77437         * doc/posix-functions/chown.texi (chown): Document the bug.
77438         * doc/posix-functions/lchown.texi (lchown): Likewise.
77439         * tests/test-lchown.h (test_chown): Relax test.
77441         mkstemp: avoid conflict with C++ keyword template
77442         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77443         * lib/mkostemp.c (mkostemp): Likewise.
77444         * lib/mkostemps.c (mkostemps): Likewise.
77445         * lib/mkstemp.c (mkstemp): Likewise.
77446         * lib/mkstemps.c (mkstemps): Likewise.
77448         xalloc-die-tests: optimize
77449         * tests/test-xalloc-die.sh: Reduce number of processes.
77451 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77453         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77454         patch from ludo@gnu.org (Ludovic Courtès).
77456 2009-11-17  Jim Meyering  <meyering@redhat.com>
77458         version-etc: use proper license string
77459         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77460         * modules/version-etc-fsf: Likewise.
77462 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77464         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77465         printed to stdout.  Deal with EOL differences.
77467 2009-11-17  Eric Blake  <ebb9@byu.net>
77469         unsetenv: work around Solaris bug
77470         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77471         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77472         Reported by Jim Meyering.
77474         vasnprintf: avoid compiler warnings
77475         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
77476         variables.
77477         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
77479 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77481         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
77482         settings since xalloc-die is no longer the self test,
77483         xalloc-die.sh is.
77485 2009-11-17  Jim Meyering  <meyering@redhat.com>
77487         test-xalloc-die.sh: make the code agree with the commit log
77488         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
77489         at the end, just in case you happen to have a test-xalloc-die
77490         program in some other PATH directory.
77492         test-xalloc-die.sh: fix a portability bug
77493         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
77494         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
77495         Otherwise, argv[0] (as often seen in diagnostics) would be too
77496         system-dependent, sometimes with, and sometimes without the leading "./".
77498         version-etc-fsf: relax license to LGPLv3+
77499         * modules/version-etc-fsf (License): Relax license.
77501 2009-11-16  Eric Blake  <ebb9@byu.net>
77503         xalloc-die-tests: avoid printing null pointer
77504         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
77505         shell script.
77506         * tests/test-xalloc-die.c (program_name): Declare.
77507         * tests/test-xalloc-die.sh (tmpfiles): New file.
77509         setenv, unsetenv: work around various bugs
77510         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
77511         (setenv) [HAVE_SETENV]: Work around bugs.
77512         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
77513         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
77514         for bugs.
77515         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
77516         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
77517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
77518         * modules/stdlib (Makefile.am): Update substitutions.
77519         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
77520         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
77521         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77522         * modules/setenv-tests: New test.
77523         * modules/unsetenv-tests: Likewise.
77524         * tests/test-setenv.c: New file.
77525         * tests/test-unsetenv.c: Likewise.
77527 2009-11-16  Jim Meyering  <meyering@redhat.com>
77529         version-etc: relax license to LGPLv3+
77530         * modules/version-etc (License): Relax license.
77532         better AC_REQUIRE expanded-before-required-warning avoidance
77533         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
77534         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
77535         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
77536         which is no longer needed.
77538 2009-11-16  Eric Blake  <ebb9@byu.net>
77540         test-freading: clean up temporary file
77541         * tests/test-freading.c (main): Remove file on success, and use
77542         ASSERT more liberally.
77543         Reported by Jim Meyering.
77545 2009-11-16  Jim Meyering  <meyering@redhat.com>
77547         avoid new AC_REQUIRE expanded-before-required warnings
77548         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
77549         merely using it.
77550         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
77551         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
77553 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77555         * tests/test-xalloc-die.c: New file.
77556         * modules/xalloc-die-tests: New file.
77557         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
77558         XFAIL_TESTS so it can be appended by modules.
77560 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77562         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
77563         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
77565 2009-11-14  Eric Blake  <ebb9@byu.net>
77567         fnmatch: avoid compiler warning
77568         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
77569         to silence compiler warning about mismatch signedness in ?:.
77570         Reported by Robert Millan.
77572         intprops: add double-inclusion guard
77573         * lib/intprops.h: Allow idempotent includes.
77574         Suggested by Bruce Korb.
77576         openat: detect Solaris fchownat bug
77577         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
77578         penalizing glibc chownat when only lchownat is broken.
77579         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
77580         trailing slash bugs.
77581         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
77582         * modules/openat-tests (Files): Include more files.
77583         (Depends-on): Add mgetgroups, sleep, stat-time.
77584         (configure.ac): Add additional checks.
77585         (Makefile.am): Build new test.
77586         * tests/test-fchownat.c: New file.
77588         lchown: detect Solaris and FreeBSD bug
77589         * lib/lchown.c (rpl_lchown): Work around bug.
77590         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
77591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77592         * modules/unistd (Makefile.am): Populate it.
77593         * lib/unistd.in.h (lchown): Update declaration.
77594         * doc/posix-functions/lchown.texi (lchown): Document the bug.
77595         * modules/lchown-tests: New file.
77596         * tests/test-lchown.h (test_lchown): Likewise.
77597         * tests/test-lchown.c (main): Likewise.
77599         chown: detect Solaris and FreeBSD bug
77600         * lib/chown.c (rpl_chown): Work around bug.
77601         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
77602         (gl_PREREQ_CHOWN): Delete.
77603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77604         * modules/unistd (Makefile.am): Populate it.
77605         * lib/unistd.in.h (chown): Update declaration.
77606         * lib/lchown.c (chown): Update client.
77607         * modules/lchown (Depends-on): Add lstat.
77608         * doc/posix-functions/chown.texi (chown): Document the bug.
77609         * doc/posix-functions/getgroups.texi (getgroups): Document
77610         getgroups pitfall.
77611         * modules/chown-tests: New file.
77612         * tests/test-chown.h (test_chown): Likewise.
77613         * tests/test-chown.c (main): Likewise.
77615 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
77617         gnulib-tool: correctly detect absence of m4 directories
77618         * gnulib-tool: Avoid extra newline on data passed to wc -l.
77620 2009-11-14  Jim Meyering  <meyering@redhat.com>
77622         maint.mk: Prohibit inclusion of "xalloc.h" without use.
77623         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77625 2009-11-14  John W. Eaton  <jwe@gnu.org>
77627         strftime.h: wrap function declaration in extern "C" block
77628         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
77630 2009-11-13  Eric Blake  <ebb9@byu.net>
77632         getgroups: avoid compiler warning
77633         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
77635         getgroups: work around FreeBSD bug
77636         * lib/getgroups.c (rpl_getgroups): Work around the bug.
77637         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
77638         * doc/posix-functions/getgroups.texi (getgroups): Document it.
77639         * tests/test-getgroups.c (main): Fix buffer overrun.
77641         getgroups: avoid compilation failure
77642         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
77643         * modules/getgroups (Depends-on): Add stdint.
77645 2009-11-13  Jim Meyering  <meyering@redhat.com>
77647         test-getgroups: avoid compilation failure
77648         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
77650 2009-11-13  Eric Blake  <ebb9@byu.net>
77652         mgetgroups: new module, taken from coreutils
77653         * modules/mgetgroups: New file.
77654         * lib/mgetgroups.h: Likewise.
77655         * lib/mgetgroups.c (mgetgroups): Likewise.
77656         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
77657         * MODULES.html.sh (Users and groups): Mention it.
77659         getgroups: don't expose GETGROUPS_T to user
77660         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
77661         an element at a time if GETGROUPS_T is wrong size.
77662         * lib/getugroups.h (getugroups): Change signature.
77663         * lib/unistd.in.h (getgroups): Likewise.
77664         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
77665         signature needs fixing.
77666         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
77667         AC_TYPE_GETGROUPS.
77668         * modules/group-member (Depends-on): Add getgroups.
77669         * lib/group-member.c (group_info, get_group_info): Use gid_t.
77670         (group_member): Rely on getgroups replacement.
77671         * lib/getugroups.c (getugroups): Use gid_t.
77672         * tests/test-getgroups.c (main): Likewise.
77673         * NEWS: Mention the signature change.
77674         * doc/posix-functions/getgroups.texi (getgroups): Mention the
77675         problem with signature.
77676         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
77677         GETGROUPS_T is still useful for setgroups.
77679         getgroups, getugroups: provide stubs for mingw
77680         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77681         * lib/getugroups.c (getugroups): Likewise.
77682         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77683         function.  Modernize replacement scheme.
77684         (gl_PREREQ_GETGROUPS): Delete.
77685         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77686         * modules/getgroups (configure.ac): Declare witness.
77687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77688         * modules/unistd (Depends-on): Substitute witness.
77689         * lib/unistd.in.h (getgroups): Declare replacement.
77691         getgroups: avoid calling exit
77692         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77693         drop xalloc.
77694         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77695         dependencies.
77696         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77697         exiting, in the rare case of malloc failure.
77699         getgroups: fix logic error
77700         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77701         has more than 20 groups.
77702         * modules/getgroups-tests: New test.
77703         * tests/test-getgroups.c: New file.
77705 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77707         * tests/test-base64.c: Improve.
77709 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77711         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77712         Blake <ebb9@byu.net>.
77714 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77716         * tests/test-xvasprintf.c: Add %s%s related checks.
77718 2009-11-12  Eric Blake  <ebb9@byu.net>
77720         version-etc: match standards.texi style
77721         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77722         and use <> only for URLs.
77724 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77726         fts: do not fail on a submount during traversal
77727         * lib/fts.c (fts_build): Read the stat info again after opening
77728         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77729         Original report at http://bugzilla.redhat.com/501848.
77731 2009-11-12  Jim Meyering  <meyering@redhat.com>
77733         bootstrap: sync from coreutils
77734         * build-aux/bootstrap (bootstrap_epilogue): New function.
77735         Use git_modules_config in one more place.  This make bootstrap's
77736         --gnulib-srcdir option more useful for testing.
77738         bootstrap: generalize autoheader check
77739         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77740         AC_CONFIG_HEADERS.
77742 2009-11-11  Eric Blake  <ebb9@byu.net>
77744         mkfifoat: use new modules for Solaris and BSD bugs
77745         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77746         * lib/mkfifoat.c (mknodat): Split...
77747         * lib/mknodat.c (mknodat): ...into new file.
77748         * modules/mkfifoat (Files): Ship new file.
77749         (Depends-on): Add mkfifo, mknod.
77750         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77751         (Depends-on): Add symlink.
77752         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77753         redundant with test_mkfifo.h.
77754         (do_mkfifoat, do_mknodat): New helpers.
77756         mknod: new module
77757         * modules/mknod: New file.
77758         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77759         * lib/mknod.c (mknod): Likewise.
77760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77761         defaults.
77762         * modules/sys_stat (Makefile.am): Substitute them.
77763         * lib/sys_stat.in.h (mknod): Declare replacement.
77764         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77765         Document it.
77766         * doc/posix-functions/mknod.texi (mknod): Likewise.
77767         * modules/mknod-tests: New test.
77768         * tests/test-mknod.c: Likewise.
77770         mkfifo: new module
77771         * modules/mkfifo: New file.
77772         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77773         * lib/mkfifo.c (mkfifo): Likewise.
77774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77775         defaults.
77776         * modules/sys_stat (Makefile.am): Substitute them.
77777         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77778         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77779         Document it.
77780         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77781         * modules/mkfifo-tests: New test.
77782         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77783         from test-mkfifoat.c.
77784         * tests/test-mkfifo.c: New file.
77786         readlink: detect FreeBSD bug
77787         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77788         slash on symlink.
77789         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77790         * tests/test-readlink.h (test_readlink): Enhance test.
77792         symlink: detect FreeBSD bug
77793         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77794         slash on symlink.
77795         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77796         * tests/test-symlink.h (test_symlink): Enhance test.
77798 2009-11-10  Eric Blake  <ebb9@byu.net>
77800         link: detect FreeBSD bug
77801         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77802         symlink.
77803         * doc/posix-functions/link.texi (link): Document the bug.
77804         * tests/test-link.h (test_link): Enhance test.
77805         * tests/test-linkat.c (main): Update caller.
77807         unlink, remove: detect FreeBSD bug
77808         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77809         slash on symlink.
77810         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77811         * doc/posix-functions/remove.texi (remove): Likewise.
77812         * tests/test-unlink.h (test_unlink): Enhance test.
77813         * tests/test-remove.c (main): Likewise.
77815 2009-11-09  Eric Blake  <ebb9@byu.net>
77817         rename: detect FreeBSD bug
77818         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77819         slash on symlink.
77820         * modules/renameat-tests (Depends-on): Add filenamecat.
77821         * tests/test-rename.h (test_rename): Allow one more errno.
77822         * tests/test-renameat.c (main): Likewise.
77823         * doc/posix-functions/rename.texi (rename): Document the bug.
77825         open: detect FreeBSD bug
77826         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77827         symlink.
77828         * doc/posix-functions/open.texi (open): Document the bug.
77829         * doc/posix-functions/utimes.texi (utimes): Likewise.
77830         * tests/test-open.h (test_open): Add parameters, and test symlink
77831         handling.
77832         * tests/test-open.c (main): Adjust caller.
77833         * tests/test-fcntl-safer.c (main): Likewise.
77834         * modules/open-tests (Depends-on): Add stdbool, symlink.
77835         * modules/fcntl-safer-tests (Depends-on): Likewise.
77836         * tests/test-openat.c (main): Add test-open tests.
77838         stat: detect FreeBSD bug
77839         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77840         symlink.
77841         * doc/posix-functions/stat.texi (stat): Document the bug.
77842         * tests/test-stat.h (test_stat_func): Add argument.
77843         * tests/test-stat.c (main): Adjust caller.
77844         * tests/test-fstatat.c (main): Likewise.
77845         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77846         Reported by Jim Meyering.
77848 2009-11-09  James Youngman  <jay@gnu.org>
77850         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77851         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77853 2009-11-08  Jim Meyering  <meyering@redhat.com>
77855         utimens: remove invalid futimesat call
77856         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77857         It used the file descriptor of the target file as the DIR_FD
77858         parameter and NULL as the file name.  That caused failure with
77859         errno == EFAULT on FreeBSD-8.0-rc2
77861 2009-11-07  Eric Blake  <ebb9@byu.net>
77863         fflush, freadseek: use fseeko, not fseek
77864         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77865         (clear_ungetc_buffer): Avoid potential problems on large files.
77866         * lib/freadseek.c (freadseek): Likewise.
77867         * modules/freadseek (Depends-on): Add fseeko.
77868         * modules/fseek (configure.ac): Set a witness.
77869         * tests/test-fflush.c (main): Use fseeko.
77870         * tests/test-fpurge.c (fseek): Disable link warning.
77871         * tests/test-freadable.c (fseek): Likewise.
77872         * tests/test-freading.c (fseek): Likewise.
77873         * tests/test-fseeko.c (fseek): Likewise.
77874         * tests/test-ftell.c (fseek): Likewise.
77875         * tests/test-ftello.c (fseek): Likewise.
77876         * tests/test-fwritable.c (fseek): Likewise.
77877         * tests/test-fwriting.c (fseek): Likewise.
77879 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77881         * modules/memchr (Depends-on): Drop getpagesize dependency.
77883 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77885         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77886         Reported by Ludovic Courtès.
77887         * build-aux/pmccabe2html: Improve example usage.
77888         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77890 2009-11-06  Jim Meyering  <meyering@redhat.com>
77892         do-release-commit-and-tag: New module.
77893         Automate the release-commit and tag process.
77894         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77895         * modules/do-release-commit-and-tag: New file.
77896         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77898 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77900         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77901         because test-select.c uses inet_pton.
77903 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77905         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77906         GETADDRINFO_LIB.  Bump serial number.
77907         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77908         Suggested by Eric Blake <ebb9@byu.net>.
77910 2009-11-05  Eric Blake  <ebb9@byu.net>
77912         strtod: detect darwin bug
77913         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77914         Reported by Leo Davis.
77916         freopen-safer: new module
77917         * modules/freopen-safer: New module.
77918         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77919         * lib/freopen-safer.c (freopen_safer): New file.
77920         * lib/stdio-safer.h (freopen_safer): New declaration.
77921         * lib/stdio--.h (freopen): New override.
77922         * MODULES.html.sh (File stream based Input/Output): Mention it.
77923         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77924         freopen-safer module.
77925         * doc/posix-functions/stderr.texi (stderr): Likewise.
77926         * doc/posix-functions/stdin.texi (stdin): Likewise.
77927         * doc/posix-functions/stdout.texi (stdout): Likewise.
77928         * modules/freopen-safer-tests: New test.
77929         * tests/test-reopen-safer.c: New file.
77931 2009-11-05  Jim Meyering  <meyering@redhat.com>
77933         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77934         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77936 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77938         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77940 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77942         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77944 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77946         Fix link error.
77947         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77948         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77950 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77952         * tests/test-func.c: Also test value of __func__.
77954 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77956         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77957         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77959 2009-11-05  Bruno Haible  <bruno@clisp.org>
77961         Fix link error.
77962         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77963         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77964         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77966 2009-11-05  Bruno Haible  <bruno@clisp.org>
77968         Tests for module 'inet_pton'.
77969         * modules/inet_pton-tests: New file.
77970         * tests/test-inet_pton.c: New file.
77972 2009-11-05  Bruno Haible  <bruno@clisp.org>
77974         Tests for module 'inet_ntop'.
77975         * modules/inet_ntop-tests: New file.
77976         * tests/test-inet_ntop.c: New file.
77978 2009-11-04  Eric Blake  <ebb9@byu.net>
77980         stdlib-safer: wrap all mkstemp variants
77981         * modules/mkostemp (configure.ac): Set witness.
77982         * modules/mkostemps (configure.ac): Likewise.
77983         * modules/mkstemps (configure.ac): Likewise.
77984         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77985         (mkstemps_safer): Wrap more functions.
77986         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77987         wrapping.
77988         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77989         (mkstemps_safer): Implement the wrappers.
77991         mkstemps, mkostemps: new modules
77992         * modules/mkostemps: New module.
77993         * modules/mkstemps: Likewise.
77994         * lib/mkostemps.c (mkostemps): New file.
77995         * lib/mkstemps.c (mkstemps): Likewise.
77996         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77997         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77999         * modules/stdlib (Makefile.am): Substitute them.
78000         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
78001         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
78002         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
78003         * doc/gnulib.texi (Glibc stdlib.h): Include them.
78004         * MODULES.html.sh (File system functions): Mention them.
78006         tempname: resync from glibc
78007         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
78008         same values for __GT_FILE as glibc.  Abort even when assertions
78009         are disabled.
78010         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
78011         match its value otherwise.  Allow idempotent inclusion.
78012         * lib/mkdtemp.c (mkdtemp): Adjust caller.
78013         * lib/mkostemp.c (mkostemp): Likewise.
78014         * lib/mkstemp.c (mkstemp): Likewise.
78015         * lib/tmpfile.c (tmpfile): Likewise.
78016         * NEWS: Document this.
78018         utimens: fix use of futimens on older Linux
78019         * lib/utimens.c (fdutimens): Use updated, rather than original,
78020         timespec to avoid bug in older Linux kernel.
78021         Reported by Simon Josefsson.
78023 2009-11-04  Bruno Haible  <bruno@clisp.org>
78025         Make num_processors more flexible and consistent.
78026         * lib/nproc.h (enum nproc_query): New type.
78027         (num_processors): Add a 'query' argument.
78028         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
78029         (num_processors): Add a 'query' argument. Test the value of the
78030         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
78031         mingw, count the number of CPUs available for the current process.
78032         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
78033         Check for sched_getaffinity and sched_getaffinity_np.
78034         * modules/nproc (Depends-on): Add c-ctype, extensions.
78035         * NEWS: Mention the change.
78037 2009-11-03  Bruno Haible  <bruno@clisp.org>
78039         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
78041 2009-11-03  Jim Meyering  <meyering@redhat.com>
78043         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
78044         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
78045         if it is defined.
78047 2009-11-02  Eric Blake  <ebb9@byu.net>
78049         mktime, timegm: share common declaration
78050         * lib/mktime-internal.h: New file.
78051         * lib/mktime.c: Use it rather than open-coding a declaration.
78052         * lib/timegm.c: Likewise.
78053         * modules/mktime (Files): Ship it.
78054         * modules/timegm (Files): Likewise.
78055         Suggested by Bruno Haible.
78057         test-update-copyright: update test to match script changes
78058         * tests/test-update-copyright.sh: Avoid hard-coding perl
78059         location.  Don't update *.bak created by earlier runs.
78061 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78062             Simon Josefsson  <simon@josefsson.org>
78063             Bruno Haible  <bruno@clisp.org>
78065         Fix link error on Solaris 8.
78066         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
78067         also in libnsl. Define also INET_PTON_LIB.
78068         * modules/inet_pton (Link): New section.
78070 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78071             Bruno Haible  <bruno@clisp.org>
78073         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
78074         * modules/inet_ntop (Link): New section.
78075         Reported by Boyan Kasarov <bkasarov@gmail.com>.
78077 2009-11-02  Eric Blake  <ebb9@byu.net>
78079         maint: avoid compiler warnings in m4 macros
78080         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
78081         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
78083 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78085         * m4/pmccabe2html.m4: Remove file.
78086         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
78087         function.  Change maintainer.
78088         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
78089         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
78090         Courtès).
78092 2009-10-31  Eric Blake  <ebb9@byu.net>
78094         fseeko: fix m4 regression
78095         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
78096         regression from 2009-10-27.
78097         Reported by Ralf Wildenhues.
78099 2009-10-31  Jim Meyering  <meyering@redhat.com>
78101         inttostr: aesthetics and improved (compile-time) safety
78102         Define inttype_is_signed rather than inttype_is_unsigned,
78103         since the sole use is via "#if inttype_is_signed".
78104         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
78105         inttype_is_unsigned.
78106         * lib/offtostr.c (inttype_is_signed): Likewise.
78107         * lib/uinttostr.c (inttype_is_signed): Likewise.
78108         * lib/umaxtostr.c (inttype_is_signed): Likewise.
78109         * lib/inttostr.c (inttostr): Use verify to cross-check the
78110         inttype_is_signed value and the signedness of the actual type.
78111         * modules/inttostr (Depends-on): Add verify.
78113 2009-10-30  Eric Blake  <ebb9@byu.net>
78115         build: avoid compiler warnings
78116         * lib/fchmodat.c (lchmod): Mark unused variables.
78117         * lib/getopt.c (_getopt_initialize): Likewise.
78118         * lib/mktime.c (__mktime_internal): Provide prototype.
78119         * lib/inttostr.c (inttostr): Avoid compiler warning even with
78120         older gcc that do not understand #pragma GCC diagnostic.
78121         * lib/uinttostr.c (inttype_is_unsigned): Define.
78122         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
78124 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
78126         stat: fix compilation on AIX
78127         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
78128         only see struct stat64.
78130 2009-10-30  Eric Blake  <ebb9@byu.net>
78132         exclude: make more robust
78133         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
78134         rather than masking a coding bug.
78135         Suggested by Bruno Haible.
78137 2009-10-30  Jim Meyering  <meyering@redhat.com>
78139         perl scripts: remove #!/usr/bin/perl in favor of more portable...
78140         Rather than putting #!/usr/bin/perl on the first line,
78141         start with a variant of what's recommended by "man perlrun" that
78142         invokes the first "perl" program from your shell's search path.
78143         * build-aux/gitlog-to-changelog: Replace #!... as above.
78144         Add a "Local Variables" perl mode setting.
78145         Prompted by a patch from Ludovic Courtès.
78146         Improved by Eric Blake.
78147         * build-aux/useless-if-before-free: Likewise.
78148         * build-aux/announce-gen: Likewise.
78149         * build-aux/update-copyright: Likewise.
78151 2009-10-29  Eric Blake  <ebb9@byu.net>
78153         filenamecat-lgpl: adjust clients
78154         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
78155         filenamecat.
78156         * modules/renameat (Depends-on): Likewise.
78158         filenamecat: split into filenamecat-lgpl
78159         * modules/filenamecat-lgpl: New module.
78160         * modules/filenamecat (Files): Move library-safe files into
78161         filenamecat-lgpl.
78162         (Depends-on): Add filenamecat-lgpl.
78163         (configure.ac): Declare witness.
78164         * lib/filenamecat.h (file_name_concat): Only declare when using
78165         GPL module.
78166         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
78167         Move...
78168         * lib/filenamecat-lgpl.c: ...into new file.
78169         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
78170         (gl_FILE_NAME_CONCAT): Use it.
78171         * MODULES.html.sh (File system functions): Mention new module.
78173         argp: avoid memory leak
78174         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
78175         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
78176         base_name, since the latter malloc()s and can call exit().
78177         Leak introduced 2006-07-03.
78179         dirname-lgpl: adjust clients that don't need full dirname
78180         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
78181         * modules/filenamecat (Depends-on): Likewise.
78182         * modules/linkat (Depends-on): Likewise.
78183         * modules/mkancesdirs (Depends-on): Likewise.
78184         * modules/mkdir (Depends-on): Likewise.
78185         * modules/openat (Depends-on): Likewise.
78186         * modules/savewd (Depends-on): Likewise.
78187         * modules/rename (Depends-on): Likewise.
78188         (License): Relax license.
78189         * modules/mkdir-tests (Depends-on): Drop progname.
78190         (Makefile.am): Delete unneeded LDADD.
78191         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78193         dirname: split into dirname-lgpl
78194         * modules/dirname-lgpl: New module.
78195         * modules/dirname (Files): Move library-safe files into
78196         dirname-lgpl.
78197         (Depends-on): Add dirname-lgpl.
78198         (configure.ac): Declare witness.
78199         * modules/double-slash-root (License): Relax license.
78200         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
78201         module.
78202         * lib/dirname.c (dir_len, mdir_name): Move...
78203         * lib/dirname-lgpl.c: ...into new file.
78204         * lib/basename.c (last_component, base_len): Move...
78205         * lib/basename-lgpl.c: ...into new file.
78206         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
78207         (gl_DIRNAME): Use it.
78208         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
78209         Mention new module.
78210         * modules/dirname-tests (Depends-on): Add progname.
78211         * tests/test-dirname.c (program_name): Delete.
78213         mkdir: make safe for libraries
78214         * modules/mkdir (Depends-on): Drop xalloc.
78215         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
78216         exit.
78218         tests: avoid some compiler warnings
78219         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
78220         literals.
78221         * tests/test-memchr.c (main): Avoid type mismatch.
78222         * tests/test-arpa_inet.c (main): Avoid unused parameters.
78223         * tests/test-base64.c (main): Likewise.
78224         * tests/test-getdelim.c (main): Likewise.
78225         * tests/test-gethostname.c (main): Likewise.
78226         * tests/test-getline.c (main): Likewise.
78227         * tests/test-netinet_in.c (main): Likewise.
78228         * tests/test-select.c (open_server_socket, main): Likewise.
78229         * tests/test-select-stdin.c (main): Likewise.
78230         * tests/test-sockets.c (main): Likewise.
78231         * tests/test-strsignal.c (main): Likewise.
78232         * tests/test-sys_select.c (main): Likewise.
78233         * tests/test-sys_socket.c (main): Likewise.
78234         * tests/test-u64.c (main): Likewise.
78235         * tests/test-xfprintf-posix.c (main): Likewise.
78236         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
78238         sockets: avoid compiler warning
78239         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
78241         maint: detect usage(1) and other suspicious exits
78242         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
78244 2009-10-29  Jim Meyering  <meyering@redhat.com>
78246         timespec: long-to-int truncation could make timespec_cmp malfunction
78247         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78248         a multiple of 2^32 nanoseconds as no difference.
78250 2009-10-28  Jim Meyering  <meyering@redhat.com>
78252         fprintftime: wrap macro code argument in "do {...} while(0)"
78253         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
78254         cpy macro must be a statement that can be followed by a semicolon.
78255         Now that the else clause contains a comment and is hence longer
78256         than one line, I require curly braces.  That in turn requires
78257         that we wrap this code block in the standard do...while(0).
78259         fprintftime: remove stray semicolon from previous change
78260         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
78262         fprintftime: avoid a warning about ignored fwrite return value
78263         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
78264         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
78265         that is unsafe.
78266         * modules/fprintftime (Depends-on): Add ignore-value.
78268         exclude: avoid an unwarranted warning
78269         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
78271 2009-10-27  Eric Blake  <ebb9@byu.net>
78273         fseek: avoid compilation failure when fflush is replaced
78274         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
78275         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
78276         module is in use.
78277         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
78278         module is not in use; since REPLACE_FSEEK worked otherwise.
78279         (GNULIB_FTELLO): Likewise for ftell.
78280         Reported by Ian Beckwith and others.
78282 2009-10-27  Bruno Haible  <bruno@clisp.org>
78284         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
78285         Reported by Jim Meyering.
78287 2009-10-27  Jim Meyering  <jim@meyering.net>
78288             Bruno Haible  <bruno@clisp.org>
78290         Avoid warning despite dropping the return value of fwrite.
78291         * lib/unicodeio.c: Include ignore-value.h.
78292         (fwrite_success_callback): Explicitly ignore fwrite's return value.
78293         * modules/unicodeio (Depends-on): Add ignore-value.
78295 2009-10-26  Eric Blake  <ebb9@byu.net>
78297         areadlinkat: fix fallback path
78298         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
78299         pointer and zero.
78301 2009-10-22  Pádraig Brady  <P@draigBrady.com>
78303         Use a better IO block size for modern systems
78304         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
78305         * lib/md2.c: Likewise.
78306         * lib/md4.c: Likewise.
78307         * lib/md5.c: Likewise.
78308         * lib/sha1.c: Likewise.
78309         * lib/sha256.c: Likewise.
78310         * lib/sha512.c: Likewise.
78312 2009-10-22  Eric Blake  <ebb9@byu.net>
78314         tests: avoid several compiler warnings
78315         * tests/test-getcwd.c (main): Avoid buffer underflow.
78316         * tests/test-getdate.c (main): String literals are not safe with
78317         putenv, so use setenv.  Declare unused argument.
78318         * modules/getdate-tests (Depends-on): Add setenv.
78319         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
78320         problems with string literals in char *.
78321         * tests/test-hash.c (main): Avoid shadowing declaration.
78322         (insert_new): Treat string literals as char const *.
78323         * tests/test-getopt.h (test_getopt): Likewise.
78324         (getopt_loop): Alter types to minimize casting elsewhere.
78325         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
78326         (test_getopt_long_posix): Likewise.
78327         (do_getopt_long): Add wrapper to minimize casting.
78328         * tests/test-atexit.c (clear_temp_file): Use void.
78329         * tests/test-areadlink-with-size.c (main): Declare unused
78330         arguments.
78331         * tests/test-areadlink.c (main): Likewise.
78332         * tests/test-areadlinkat-with-size.c (main): Likewise.
78333         * tests/test-areadlinkat.c (main): Likewise.
78334         * tests/test-canonicalize-lgpl.c (main): Likewise.
78335         * tests/test-canonicalize.c (main): Likewise.
78336         * tests/test-dirent-safer.c (main): Likewise.
78337         * tests/test-dirname.c (main): Likewise.
78338         * tests/test-dup2.c (main): Likewise.
78339         * tests/test-fchdir.c (main): Likewise.
78340         * tests/test-fcntl-h.c (main): Likewise.
78341         * tests/test-fcntl-safer.c (main): Likewise.
78342         * tests/test-fdopendir.c (main): Likewise.
78343         * tests/test-fdutimensat.c (main): Likewise.
78344         * tests/test-fflush.c (main): Likewise.
78345         * tests/test-filenamecat.c (main): Likewise.
78346         * tests/test-filevercmp.c (main): Likewise.
78347         * tests/test-fopen-safer.c (main): Likewise.
78348         * tests/test-fopen.c (main): Likewise.
78349         * tests/test-fpending.c (main): Likewise.
78350         * tests/test-fpurge.c (main): Likewise.
78351         * tests/test-freading.c (main): Likewise.
78352         * tests/test-fstatat.c (main): Likewise.
78353         * tests/test-fsync.c (main): Likewise.
78354         * tests/test-futimens.c (main): Likewise.
78355         * tests/test-getndelim2.c (main): Likewise.
78356         * tests/test-gettimeofday.c (main): Likewise.
78357         * tests/test-getopt.c (main): Likewise.
78358         * tests/test-i-ring.c (main): Likewise.
78359         * tests/test-inttypes.c (main): Likewise.
78360         * tests/test-link.c (main): Likewise.
78361         * tests/test-lstat.c (main): Likewise.
78362         * tests/test-math.c (main): Likewise.
78363         * tests/test-md5.c (main): Likewise.
78364         * tests/test-memchr2.c (main): Likewise.
78365         * tests/test-memrchr.c (main): Likewise.
78366         * tests/test-mkdir.c (main): Likewise.
78367         * tests/test-mkdirat.c (main): Likewise.
78368         * tests/test-mkfifoat.c (main): Likewise.
78369         * tests/test-open.c (main): Likewise.
78370         * tests/test-openat-safer.c (main): Likewise.
78371         * tests/test-openat.c (main): Likewise.
78372         * tests/test-quotearg.c (main): Likewise.
78373         * tests/test-rawmemchr.c (main): Likewise.
78374         * tests/test-readlink.c (main): Likewise.
78375         * tests/test-remove.c (main): Likewise.
78376         * tests/test-rename.c (main): Likewise.
78377         * tests/test-renameat.c (main): Likewise.
78378         * tests/test-rmdir.c (main): Likewise.
78379         * tests/test-sha1.c (main): Likewise.
78380         * tests/test-signal.c (main): Likewise.
78381         * tests/test-sigaction.c (main): Likewise.
78382         * tests/test-stat.c (main): Likewise.
78383         * tests/test-stat-time.c (main): Likewise.
78384         * tests/test-stddef.c (main): Likewise.
78385         * tests/test-stdint.c (main): Likewise.
78386         * tests/test-stdio.c (main): Likewise.
78387         * tests/test-stdlib.c (main): Likewise.
78388         * tests/test-strchrnul.c (main): Likewise.
78389         * tests/test-strerror.c (main): Likewise.
78390         * tests/test-string.c (main): Likewise.
78391         * tests/test-strtod.c (main): Likewise.
78392         * tests/test-strverscmp.c (main): Likewise.
78393         * tests/test-symlink.c (main): Likewise.
78394         * tests/test-symlinkat.c (main): Likewise.
78395         * tests/test-sys_stat.c (main): Likewise.
78396         * tests/test-sys_time.c (main): Likewise.
78397         * tests/test-time.c (main): Likewise.
78398         * tests/test-unistd.c (main): Likewise.
78399         * tests/test-unlink.c (main): Likewise.
78400         * tests/test-unlinkat.c (main): Likewise.
78401         * tests/test-utimens.c (main): Likewise.
78402         * tests/test-utimensat.c (main): Likewise.
78403         * tests/test-version-etc.c (main): Likewise.
78404         * tests/test-wchar.c (main): Likewise.
78405         * tests/test-wctype.c (main): Likewise.
78406         * tests/test-xprintf-posix.c (main): Likewise.
78407         * tests/test-posixtm.c (main): Likewise.
78408         (STREQ): Delete unused macro.
78409         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78410         shadowed variables.
78411         * tests/test-memchr.c (main): Likewise.
78413 2009-10-21  Eric Blake  <ebb9@byu.net>
78415         areadlinkat: avoid failure on older glibc
78416         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78417         rather than mis-comparing 0 against FUNC_RESULT of char*.
78419 2009-10-21  Bruno Haible  <bruno@clisp.org>
78421         * modules/stpncpy (License): Relicense under LGPLv2+.
78422         Reported by David Lutterkort <lutter@redhat.com>.
78424 2009-10-20  Eric Blake  <ebb9@byu.net>
78426         utimensat: work around Solaris 9 bug
78427         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78428         has trailing slash bugs.
78429         * tests/test-lutimens.h (test_lutimens): Enhance test.
78430         * tests/test-utimens.h (test_utimens): Likewise.
78431         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78432         * doc/posix-functions/utimes.texi (utimes): Likewise.
78433         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78434         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78435         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78436         * doc/posix-functions/futimens.texi (futimens): Likewise.
78438         fdutimensat: new module
78439         * modules/fdutimensat: New file.
78440         * lib/fdutimensat.c (fdutimensat): Likewise.
78441         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78442         * MODULES.html.sh (File system functions): Mention module.
78443         * modules/fdutimensat-tests: New test.
78444         * tests/test-fdutimensat.c: Likewise.
78446         doc: regenerate INSTALL
78447         * doc/INSTALL: Reflect recent autoconf update.
78448         * doc/INSTALL.ISO: Likewise.
78449         * doc/INSTALL.UTF-8: Likewise.
78451 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78453         acl: warn if ACL support is not detected
78454         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78456 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78458         * lib/nproc.h: Add extern "C" block for C++.
78460 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78461             Bruno Haible  <bruno@clisp.org>
78463         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78464         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78465         * doc/posix-functions/isalpha.texi: Likewise.
78466         * doc/posix-functions/isblank.texi: Likewise.
78467         * doc/posix-functions/iscntrl.texi: Likewise.
78468         * doc/posix-functions/isdigit.texi: Likewise.
78469         * doc/posix-functions/isgraph.texi: Likewise.
78470         * doc/posix-functions/islower.texi: Likewise.
78471         * doc/posix-functions/isprint.texi: Likewise.
78472         * doc/posix-functions/ispunct.texi: Likewise.
78473         * doc/posix-functions/isspace.texi: Likewise.
78474         * doc/posix-functions/isupper.texi: Likewise.
78475         * doc/posix-functions/isxdigit.texi: Likewise.
78477 2009-10-18  Bruno Haible  <bruno@clisp.org>
78479         Tests for module 'isblank'.
78480         * modules/isblank-tests: New file.
78481         * tests/test-isblank.c: New file.
78483         New module 'isblank'.
78484         * lib/isblank.c: New file.
78485         * m4/isblank.m4: New file.
78486         * modules/isblank: New file.
78487         * doc/posix-functions/isblank.texi: Mention the new module.
78489 2009-10-18  Bruno Haible  <bruno@clisp.org>
78491         New module 'ctype'.
78492         * lib/ctype.in.h: New file.
78493         * m4/ctype.m4: New file.
78494         * modules/ctype: New file.
78495         * doc/posix-headers/ctype.texi: Mention the new module.
78497 2009-10-18  Jim Meyering  <meyering@redhat.com>
78499         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
78500         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
78501         right after its initialization, rather than farther down.
78502         Keeping these in close proximity makes it easier to ensure
78503         that each such variable is initialized.  E.g.,
78505             LIB_CLOCK_GETTIME=
78506             AC_SUBST([LIB_CLOCK_GETTIME])
78508         This change also increments these serial numbers.
78509         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
78510         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78511         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78513 2009-10-18  Bruno Haible  <bruno@clisp.org>
78515         Don't let environment variables perturb build.
78516         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
78517         (gl_PREREQ_GETHRXTIME): ... not here.
78519 2009-10-18  Bruno Haible  <bruno@clisp.org>
78521         Avoid symlink attack in localcharset module.
78522         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
78523         (O_NOFOLLOW): Define fallback.
78524         (get_charset_aliases): Don't open the file if it is a symbolic link.
78525         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
78526         gl_FCNTL_H.
78527         (gl_FCNTL_H): Require it.
78528         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
78529         * modules/localcharset (Files): Add m4/fcntl_h.m4.
78530         Reported by Fergal Glynn <fglynn@veracode.com>.
78532 2009-10-18  Bruno Haible  <bruno@clisp.org>
78534         Implement nproc for mingw.
78535         * lib/nproc.c: Include <windows.h>
78536         (num_processors): On native Windows platforms, try GetSystemInfo.
78538 2009-10-18  Bruno Haible  <bruno@clisp.org>
78540         Implement nproc for IRIX.
78541         * lib/nproc.c: Include <sys/sysmp.h>.
78542         (num_processors): On IRIX systems, try sysmp.
78543         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
78545 2009-10-18  Bruno Haible  <bruno@clisp.org>
78547         Implement nproc for HP-UX.
78548         * lib/nproc.c: Include <sys/pstat.h>
78549         (num_processors): On HP-UX systems, try pstat_getdynamic.
78550         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
78551         pstat_getdynamic.
78553 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
78554             Bruno Haible  <bruno@clisp.org>
78556         Implement nproc for NetBSD, OpenBSD.
78557         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
78558         (ARRAY_SIZE): New macro.
78559         (num_processors): On BSD systems, try sysctl of HW_NCPU.
78560         * m4/nproc.m4: New file.
78561         * modules/nproc (Files): Add m4/nproc.m4.
78562         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
78563         (Makefile.am): Instead, augment lib_SOURCES.
78565 2009-10-18  Bruno Haible  <bruno@clisp.org>
78567         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
78568         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
78569         sys/param.h.
78571 2009-10-16  Eric Blake  <ebb9@byu.net>
78573         utimensat: new module
78574         * modules/utimensat: New file.
78575         * lib/utimensat.c (utimensat): Likewise.
78576         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
78577         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
78578         so we can work around Linux bugs.
78579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78580         * modules/sys_stat (Makefile.am): Substitute them.
78581         * lib/sys_stat.in.h (utimensat): Declare it.
78582         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78583         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78584         * modules/utimensat-tests: New test.
78585         * tests/test-utimensat.c: Likewise.
78587         utimens: let lutimens work on non-symlinks
78588         * lib/utimens.c (lutimens): Fall back to utimens rather than
78589         failing with ENOSYS, when file is not a symlink.
78590         (utimens): Reduce redirection.
78591         * tests/test-lutimens.h (test_lutimens): Update test to cover
78592         non-symlinks.
78593         * tests/test-utimens.h (test_utimens): Update test to cover
78594         symlinks.
78595         * tests/test-utimens.c (main): Update caller.
78597         utimens: cache whether utimensat syscall works
78598         * lib/utimens.c (utimensat_works_really): New cache variable.
78599         (fdutimens, lutimens): Use it to avoid failing syscall.
78601         test-stat-time, test-utimens: improve portability
78602         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
78603         ext4 on alpha, and for cygwin.
78604         * tests/test-utimens-common.h: New file.
78605         (nap): Factor delays into single function.
78606         * tests/test-lutimens.h (test_lutimens): Use new header.
78607         * tests/test-futimens.h (test_futimens): Likewise.
78608         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78609         timestamps to occur from same machine, as was done previously for
78610         test_utimens.
78611         * modules/utimens-tests (Files): Ship new file.
78612         * modules/futimens-tests (Files): Likewise.
78613         Reported in part by Jim Meyering.
78615         sys_stat: sort replacement declarations
78616         * lib/sys_stat.in.h: Sort declarations.
78617         * lib/futimens.c (futimens): Fix typo.
78619 2009-10-15  Jim Meyering  <meyering@redhat.com>
78621         don't let environment settings perturb build
78622         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
78623         could cause a configure-time and/or build-time malfunction.
78624         Typically, a configure-time function-in-library test is performed
78625         via code like this:
78627           LIB_VAR=
78628           AC_SUBST([LIB_VAR])
78629           prefix_saved_LIBS=$LIBS
78630             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
78631                        [test "$ac_cv_search_FUNC" = "none required" ||
78632                         LIB_VAR=$ac_cv_search_FUNC])
78633           LIBS=$prefix_saved_LIBS
78635         However, in each of the files affected by this change, the LIB_VAR=
78636         initialization was omitted.  Thus, when set in the environment, its
78637         value would propagate into generated Makefiles when FUNC is not found
78638         in LIB_NAME.
78639         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
78640         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78643 2009-10-14  Eric Blake  <ebb9@byu.net>
78645         fchdir: avoid infinite recursion in mingw
78646         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
78647         recursing.
78649         test-stat-time: port to mingw
78650         * tests/test-stat-time.c (force_unlink): Return a value.
78651         (test_ctime) [W32]: Fix compilation error.
78652         (nap): Don't call usleep with too large an argument.  Use
78653         force_unlink.
78654         * doc/pastposix-functions/usleep.texi (usleep): Document the
78655         portability issue.
78657 2009-10-13  Jim Meyering  <meyering@redhat.com>
78659         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
78660         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
78661         * modules/pipe-filter-ii: Likewise.
78662         * modules/sys_socket-tests: Likewise.
78663         * modules/tsearch-tests: Likewise.
78664         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
78665         (check): Depend on it.
78667 2009-10-12  Eric Blake  <ebb9@byu.net>
78669         utimens-tests: port to NFS file systems
78670         * tests/test-utimens.h (test_utimens): Refactor utimecmp
78671         comparisons to avoid spurious failures from timestamp drift
78672         between NFS machines.
78674 2009-10-12  Eric Blake  <ebb9@byu.net>
78676         stat-time-tests: minor cleanups
78677         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
78678         * tests/test-stat-time.c (nap): Separate assignment from call.
78679         Suggested by Paolo Bonzini and Bruno Haible.
78681         sys_stat: guarantee struct timespec
78682         * lib/sys_stat.in.h (includes): Always include <time.h>
78683         * modules/sys_stat (Depends-on): Add time.
78684         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78685         mode_t permission values.
78686         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78687         get at subsecond timestamps.
78689 2009-10-10  Eric Blake  <ebb9@byu.net>
78691         futimens: new module
78692         * modules/futimens: New file.
78693         * lib/futimens.c (futimens): Likewise.
78694         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78695         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78696         we can work around Linux bugs.
78697         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78698         * modules/sys_stat (Makefile.am): Substitute them.
78699         * lib/sys_stat.in.h (futimens): Declare it.
78700         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78701         * doc/posix-functions/futimens.texi (futimens): Likewise.
78702         * modules/futimens-tests: New test.
78703         * tests/test-futimens.c: Likewise.
78705         utimens: introduce fdutimens
78706         * lib/utimens.h (fdutimens): New prototype.
78707         * lib/utimens.c (gl_futimens): Move guts...
78708         (fdutimens): ...to new interface.
78709         * tests/test-utimens.c (do_fdutimens): Use it.
78711         utimens: add UTIME_NOW and UTIME_OMIT support
78712         * lib/utimens.c (validate_timespec, update_timespec): New helper
78713         functions.
78714         (gl_futimens, lutimens): Use them.
78715         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78716         stdbool, sys_stat.
78717         (Link): Mention resulting library dependency.
78718         * modules/utimecmp (Link): Likewise.
78719         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78720         (Makefile.am): Pick up library dependency.
78721         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78722         definition.
78723         * tests/test-sys_stat.c: Test the definitions.
78724         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78725         * NEWS: Document library dependency.
78727         utimecmp: support symlink timestamps
78728         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78729         hashing when possible.  Use pathconf when available.
78730         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78731         * modules/utimecmp (Depends-on): Add lstat.
78733         utimens: add lutimens interface
78734         * lib/utimens.c (lutimens): New function.
78735         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78736         * lib/utimens.h (lutimens): Declare new interface.
78737         * tests/test-utimens.c (main): Enhance test.
78738         * tests/test-lutimens.h (test_lutimens): New file.
78739         * modules/utimens-tests (Files): Distribute it.
78740         (Depends-on): Add symlink.
78741         (configure.ac): Check for usleep.
78743         utimens: validate futimens usage
78744         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78745         fewer syscalls on failure later on.  Avoid compiler warning on
78746         mingw.
78747         * modules/utimens (Depends-on): Add dup2.
78749         utimens: add test
78750         * modules/utimens-tests: New test.
78751         * tests/test-utimens.h: New file.
78752         * tests/test-futimens.h: Likewise.
78753         * tests/test-utimens.c: Likewise.
78755         doc: mention timestamp portability issues
78756         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78757         instead.
78758         * doc/posix-functions/utime.texi (utime): Likewise.
78759         * doc/posix-functions/utimes.texi (utimes): Likewise.
78760         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78761         instead.
78762         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78763         module.
78764         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78765         Mention weakness with symlink timestamps.
78766         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78767         to utimensat/futimens instead.
78768         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78770         test-dup2: enhance test
78771         * tests/test-dup2.c (main): Also check AT_FDCWD.
78773         test-stat-time: avoid more spurious failures
78774         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78775         xfs; and avoid race if the two timestamps cross quantization edge.
78777         relocatable: prefer 'file system' over 'filesystem'
78778         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78779         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78780         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78781         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78782         * lib/relocatable.c (compute_curr_prefix): Likewise.
78784 2009-10-10  Jim Meyering  <meyering@redhat.com>
78786         stat-time-tests: check for the usleep function
78787         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78789 2009-10-10  Bruno Haible  <bruno@clisp.org>
78791         * modules/xnanosleep: Put the Link section after the Include section.
78793 2009-10-09  Eric Blake  <ebb9@byu.net>
78795         dup2: work around FreeBSD 6.1 bug
78796         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78797         * doc/posix-functions/dup2.texi (dup2): Document it.
78798         Reported by Nelson H. F. Beebe and Jim Meyering.
78800         test-stat-time: port to buggy NFS clients
78801         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78802         (test_ctime): Also skip test if mtime and ctime are skewed.
78804         maint: prefer 'file system' over 'filesystem'
78805         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78806         * doc/posix-functions/lstat.texi (lstat): Likewise.
78807         * lib/file-has-acl.c (file_has_acl): Likewise.
78808         * lib/fwriteerror.c [TEST]: Likewise.
78809         * tests/test-areadlink.h (test_areadlink): Likewise.
78810         * tests/test-areadlinkat-with-size.c (main): Likewise.
78811         * tests/test-areadlinkat.c (main): Likewise.
78812         * tests/test-canonicalize-lgpl.c (main): Likewise.
78813         * tests/test-canonicalize.c (main): Likewise.
78814         * tests/test-fstatat.c (main): Likewise.
78815         * tests/test-linkat.c (main): Likewise.
78816         * tests/test-lstat.h (test_lstat_func): Likewise.
78817         * tests/test-mkdir.h (test_mkdir): Likewise.
78818         * tests/test-readlink.h (test_readlink): Likewise.
78819         * tests/test-remove.c (main): Likewise.
78820         * tests/test-rename.h (test_rename): Likewise.
78821         * tests/test-renameat.c (main): Likewise.
78822         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78823         * tests/test-symlink.h (test_symlink): Likewise.
78824         * tests/test-symlinkat.c (main): Likewise.
78825         * tests/test-unlink.h (test_unlink_func): Likewise.
78826         * tests/test-unlinkat.c (main): Likewise.
78828         maint: make realtime library usage explicit
78829         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78830         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78831         * modules/settime (Link): Likewise.
78832         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78834         test-stat-time: speed up execution
78835         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78836         warning on mingw.
78837         (nap): New helper function.
78838         (prepare_test): Use it to reduce sleep time.
78839         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78840         execution.
78841         * modules/stat-time-tests (configure.ac): Check for usleep.
78843 2009-10-09  Jim Meyering  <meyering@redhat.com>
78845         selinux-h: always use getfilecon wrappers
78846         * lib/getfilecon.c: New file.
78847         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78848         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78849         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78850         (fgetfilecon): Provide a stub.
78851         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78852         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78853         file unconditionally.
78854         When <selinux/selinux.h> is found, arrange to use wrappers.
78855         * modules/selinux-h (Files): Add getfilecon.c.
78856         (Makefile.am): Substitute include-next-related bits
78857         into the now-always-generated selinux/selinux.h file.
78858         * doc/glibc-functions/lgetfilecon.texi: New file.
78859         * doc/glibc-functions/fgetfilecon.texi: New file.
78860         * doc/glibc-functions/getfilecon.texi: New file.
78861         * doc/glibc-functions/getfilecon-desc.texi: New file.
78862         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78863         which to pull in the new files.
78864         * MODULES.html.sh (Misc): Add selinux-h.
78866 2009-10-08  Jim Meyering  <meyering@redhat.com>
78868         unistd: fix comment typo
78869         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78871 2009-10-08  Eric Blake  <ebb9@byu.net>
78873         areadlink: use SIZE_MAX consistently
78874         * modules/areadlink (Depends-on): Add stdint.
78875         * modules/areadlink-with-size (Depends-on): Likewise.
78876         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78877         gives NULL; drop sys/types, since unistd gives size_t; and add
78878         stdint for SIZE_MAX.
78879         (SIZE_MAX): Rely on headers.
78880         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78881         and add stdint.
78882         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78883         (SIZE_MAX): Likewise.
78884         (INITIAL_BUF_SIZE): Turn into enum.
78885         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78887 2009-10-08  Jim Meyering  <meyering@redhat.com>
78889         areadlinkat: avoid compilation failure
78890         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78891         Fix typo in comment.
78893 2009-10-07  Eric Blake  <ebb9@byu.net>
78895         areadlinkat-with-size: new module
78896         * modules/areadlinkat-with-size: New module.
78897         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78898         * lib/areadlink.h (areadlinkat): Declare it.
78899         * MODULES.html.sh (File system functions): Mention it.
78900         * modules/areadlinkat-with-size-tests: New test.
78901         * tests/test-areadlinkat-with-size.c: New file.
78903         xreadlinkat: new module
78904         * modules/xreadlinkat: New module.
78905         * lib/xreadlinkat.c (xreadlinkat): New file.
78906         * lib/xreadlink.h (xreadlinkat): Declare it.
78907         * MODULES.html.sh (File system functions): Mention it.
78909         areadlinkat: new module
78910         * lib/at-func.c (FUNC_FAIL): New define.
78911         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78912         * modules/areadlinkat: New module.
78913         * lib/linkat.c (areadlinkat): Move...
78914         * lib/areadlinkat.c (areadlinkat): ...to new file.
78915         * lib/areadlink.h (areadlinkat): Declare it.
78916         * modules/linkat (Depends-on): Add areadlinkat.
78917         * MODULES.html.sh (File system functions): Mention it.
78918         * modules/areadlinkat-tests: New test.
78919         * tests/test-areadlinkat.c: New file.
78921         areadlink, areadlink-with-size: add tests
78922         * modules/areadlink-tests: New test.
78923         * modules/areadlink-with-size-tests: Likewise.
78924         * tests/test-areadlink.h: New file.
78925         * tests/test-areadlink.c: Likewise.
78926         * tests/test-areadlink-with-size.c: Likewise.
78928         maint: minor cleanups
78929         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78930         _UNUSED_PARAMETER_ instead.
78931         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78932         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78933         * modules/linkat-tests (Files): Distribute test-link.h.
78935         openat, utimens: whitespace cleanup
78936         * lib/openat.c: Prefer space throughout, rather than mix of 8
78937         spaces vs. tabs.
78938         * lib/at-func.c: Likewise.
78939         * lib/utimens.c: Likewise.
78941         openat: avoid using wrong fd
78942         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78943         working directory chooses same fd.
78944         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78946         mkdir, mkdirat: fix cygwin 1.5.x bug
78947         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78948         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78949         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78950         bug.
78951         (gl_PREREQ_MKDIR): Delete unused macro.
78952         * modules/mkdir (Files): Track file rename.
78953         (configure.ac): Update macro name.
78954         * modules/openat (Depends-on): Add mkdir.
78955         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78957         mkdir, mkdirat: add tests
78958         * modules/mkdir-tests: New test.
78959         * tests/test-mkdir.h: New file.
78960         * tests/test-mkdir.c: Likewise.
78961         * tests/test-mkdirat.c: Likewise.
78962         * modules/openat-tests (Files): Add new files.
78963         (Makefile.am): Run new test.
78965 2009-10-06  Eric Blake  <ebb9@byu.net>
78967         doc: tweak *at function documentation
78968         * doc/posix-functions/faccessat.texi (faccessat): Mention
78969         known issue with replacement.
78970         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78971         * doc/posix-functions/linkat.texi (linkat): Likewise.
78972         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78973         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78974         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78975         * doc/posix-functions/renameat.texi (renameat): Likewise.
78976         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78978         openat: fix GNU/Hurd bug in unlinkat
78979         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78980         broken.
78981         * doc/posix-functions/unlink.texi (unlink): Document this.
78982         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78984         fdopendir: fix GNU/Hurd bug
78985         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78986         allowing non-directory fds.
78987         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78988         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78989         * modules/dirent (Makefile.am): Substitute it.
78990         * lib/dirent.in.h (fdopendir): Declare replacement.
78991         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78992         * tests/test-fdopendir.c (main): Test something other than
78993         /dev/null, since on Hurd that behaves like a directory.
78995         test-symlink: port to GNU/Hurd
78996         * tests/test-symlink.h (test_symlink): Relax expected errno.
78998         doc: tweak more cygwin information
78999         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
79000         now compatible with glibc.
79001         * doc/posix-functions/getopt.texi (getopt): Likewise.
79003         getopt-gnu: add another test
79004         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
79005         guarantee behavior relied on by m4.
79006         * tests/test-getopt.c (main): Use it.
79007         * modules/getopt-posix-tests (Depends-on): Add setenv.
79008         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
79010         getopt: fix compilation on darwin
79011         * lib/getopt.in.h (includes): Leave breadcrumbs during system
79012         include.
79013         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
79014         Reported by Ludovic Courtès.
79016 2009-10-06  Bruno Haible  <bruno@clisp.org>
79018         * modules/size_max (Description): Discourage its use.
79019         Reported by Simon Josefsson.
79021 2009-10-06  Jim Meyering  <meyering@redhat.com>
79023         linkat: avoid compilation failure
79024         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
79026 2009-10-05  Eric Blake  <ebb9@byu.net>
79028         linkat: support Linux 2.6.17
79029         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
79030         linkat on Linux, but allow cache variable override.
79031         * lib/linkat.c (rpl_linkat): Define override.
79032         * modules/linkat (Depends-on): Add symlinkat.
79033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
79034         * modules/unistd (Makefile.am): Substitute it.
79035         * lib/unistd.in.h (linkat): Declare replacement.
79036         Reported by Pádraig Brady.
79038         quotearg: port test to systems with C.UTF-8 locale
79039         * tests/test-quotearg.c (struct result_strings): Add another
79040         member, differentiating between C.ASCII and C.UTF-8 handling.
79041         (compare_strings): Add parameter.
79042         (main): Adjust all callers.
79044         getopt: avoid clash with FreeBSD _getopt_internal
79045         * lib/getopt.in.h (_getopt_internal): Override the name.
79046         * lib/getopt_int.h (includes): Pick up any overrides.
79047         Reported by Reuben Thomas.
79049         hash: allow C89 compilation
79050         * lib/hash.c (check_tuning): Move declaration before statement.
79051         Reported by Reuben Thomas.
79053 2009-10-05  Karl Berry  <karl@gnu.org>
79055         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
79057 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
79058             Bruno Haible  <bruno@clisp.org>
79060         * lib/uname.c (uname): Use a table-driven algorithm to compute
79061         Windows NT versions.
79063 2009-10-04  Bruno Haible  <bruno@clisp.org>
79065         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
79066         program_invocation_short_name.
79067         * modules/progname (configure.ac): Test for presence of
79068         program_invocation_short_name.
79069         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79071 2009-10-04  Bruno Haible  <bruno@clisp.org>
79073         * lib/progname.c (set_program_name): Fix comment.
79074         Reported by Jim Meyering.
79076 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79077             Bruno Haible  <bruno@clisp.org>
79079         * lib/uname.c: Include <string.h>.
79080         (uname): Do only one call to GetVersionEx in the common case.
79082 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79083             Bruno Haible  <bruno@clisp.org>
79085         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
79086         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
79087         (uname): Add support for Windows CE and various non-x86 CPU types.
79089 2009-10-03  Bruno Haible  <bruno@clisp.org>
79091         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
79092         invocation to tests/configure.ac.
79093         Reported by Ian Beckwith <ianb@erislabs.net>.
79095 2009-10-02  Eric Blake  <ebb9@byu.net>
79097         fchdir: avoid compiler warning
79098         * lib/fchdir.c (canonicalize_file_name)
79099         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
79101         test-open: support mingw errno values
79102         * tests/test-open.h (test_open): Relax test.
79103         * tests/test-fopen.h (test_fopen): Likewise.
79104         * tests/test-openat-safer.c (main): Likewise.
79106         open: fix opening directory on mingw
79107         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
79109         test-open: on GNU/Hurd, /dev/null is a directory
79110         * tests/test-fopen.h (main): Rename...
79111         (test_fopen): ...to this.  Use a guaranteed non-directory when
79112         confirming open behavior on trailing slash.
79113         * tests/test-openat-safer.c (main): Likewise.
79114         * tests/test-open.h (main): Likewise....
79115         (test_open): ...to this.
79116         * tests/test-fopen.c (main): Adjust caller.
79117         * tests/test-fopen-safer.c (main): Likewise.
79118         * tests/test-open.c (main): Likewise.
79119         * tests/test-fcntl-safer.c (main): Likewise.
79120         Reported by Samuel Thibault.
79122         rename, fchdir: don't ignore chdir failure
79123         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
79124         * lib/rename.c (rpl_rename) [W32]: Likewise.
79125         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
79126         an empty destination directory if source cannot be renamed,
79127         although there is still possibility for failure.
79128         * doc/posix-functions/rename.texi (rename): Document the race.
79129         Reported by Jim Meyering.
79131         maint: cleanup whitespace in recent commits
79132         * lib/rename.c (rpl_rename): Remove tabs.
79133         * tests/test-link.h (test_link): Likewise.
79134         * lib/fchdir.c (get_name): Likewise.
79135         Reported by Jim Meyering.
79137 2009-10-02  Ben Pfaff  <blp@gnu.org>
79139         relocatable-prog-wrapper: Add missing dependency on
79140         double-slash-root.
79141         * modules/relocatable-prog-wrapper: Add dependency.
79142         Reported by Ian Beckwith <ianb@erislabs.net>.
79144 2009-10-02  Eric Blake  <ebb9@byu.net>
79146         renameat: fix Solaris bugs
79147         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
79148         needed fixing.
79149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
79150         * modules/stdio (Makefile.am): Substitute it.
79151         * lib/stdio.in.h (renameat): Declare replacement.
79152         * lib/renameat.c (rpl_renameat): Implement fix.
79154         renameat: new module
79155         * modules/renameat: New file.
79156         * lib/renameat.c (renameat): Likewise.
79157         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
79158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79159         * modules/stdio (Makefile.am): Substitute them.
79160         * lib/stdio.in.h (renameat): Declare it.
79161         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79162         * doc/posix-functions/renameat.texi (renameat): Likewise.
79163         * modules/renameat-tests: New test.
79164         * tests/test-renameat.c: Likewise.
79166         rename: fix mingw bugs
79167         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
79168         directory overwrite bugs.
79170         rename: fix another cygwin 1.5 bug
79171         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
79172         checks.
79173         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
79174         unnecessary cygwin workarounds.  Also work around bug with moving
79175         full directory onto an empty one.
79176         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
79178         rename-dest-slash: merge into rename module
79179         * modules/rename-dest-slash (Status): Mark obsolete.
79180         (Depends-on): Add rename.
79181         (Files): Let rename do it all.
79182         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
79183         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
79184         * m4/rename-dest-slash.m4: ...so this file can be deleted.
79185         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
79186         * lib/rename.c (rpl_rename): Update comments.
79188         rename: fix cygwin 1.5.x bugs
79189         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
79190         * lib/rename.c (rpl_rename): Work around them.
79191         * modules/rename (Depends-on): Add same-inode.
79193         rename: fix Solaris 10 bug
79194         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79195         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79196         was the only bug.
79198         rename: fix Solaris 9 bug
79199         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
79200         on non-directory.  Avoid calling exit.
79201         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
79202         strdup.
79203         * modules/rename-tests (Depends-on): Drop lstat.
79204         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79205         (gl_PREREQ_RENAME): Delete unused macro.
79207         rename-dest-slash: fix NetBSD bug
79208         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
79209         links.
79210         * modules/rename-dest-slash (Depends-on): Add same-inode.
79212         rename-tests: new test, exposes several platform bugs
79213         * modules/rename-tests: New file.
79214         * tests/test-rename.h: Likewise.
79215         * tests/test-rename.c: Likewise.
79216         * doc/posix-functions/rename.texi (rename): Improve documentation,
79217         including bugs that will eventually be fixed in gnulib.
79219 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
79221         * lib/uname.c: Include <stdlib.h>
79222         (uname): Assume version info is available.
79224 2009-10-02  Jim Meyering  <meyering@redhat.com>
79226         gnu-web-doc-update: correct --help output
79227         * build-aux/gnu-web-doc-update: Make --help output relevant.
79229         gnu-web-doc-update: add standard options
79230         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
79232         gnu-web-doc-update: New module.
79233         Use this script to automatically update the on-line web documentation
79234         for your GNU project at http://www.gnu.org/software/$pkg/manual/
79235         * modules/gnu-web-doc-update: New file, from coreutils.
79236         * build-aux/gnu-web-doc-update: New script.
79238 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
79240         link: LoadLibrary is not needed.
79241         * lib/link.c: Use GetModuleHandle.
79243 2009-10-01  Eric Blake  <ebb9@byu.net>
79245         getopt: bump serial number
79246         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
79247         change.
79249         tests: tighten link, rmdir, and remove tests
79250         * tests/test-link.h (includes): No need to use <config.h> here.
79251         Clean up if directory hard link was created, otherwise test for
79252         trailing '.'.
79253         * tests/test-linkat.c (main): Simplify.
79254         * tests/test-remove.c (main): Enhance test for trailing '.'.
79255         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79257 2009-10-01  Jim Meyering  <meyering@redhat.com>
79259         maint.mk: requiring "make major" was annoying, for a "minor" release.
79260         What is intended is "stable", to contrast with alpha and beta,
79261         so require "make stable", not "make major".
79262         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
79263         (get_tool_versions): Likewise.
79264         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
79266 2009-09-30  Ben Pfaff  <blp@gnu.org>
79268         Fix broken build of replacement for Windows tmpfile().
79269         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
79270         flags argument added along with the 'mkostemp' module.
79272 2009-09-28  Bruno Haible  <bruno@clisp.org>
79274         Avoid identifier clash with POSIX function 'remove' defined as a macro.
79275         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
79276         to 'remove_elt'.
79277         (gl_list_remove): Update.
79278         * lib/gl_list.c (gl_list_remove): Update.
79279         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
79280         to 'remove_elt'.
79281         (gl_oset_remove): Update.
79282         * lib/gl_list.c (gl_oset_remove): Update.
79283         Reported by Eric Blake.
79285 2009-09-28  Eric Blake  <ebb9@byu.net>
79287         doc: mention yet more cygwin 1.7 status
79288         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
79289         cygwin.
79290         * doc/glibc-functions/execvpe.texi (execvpe): New file.
79291         * doc/gnulib.texi (Glibc unistd.h): Mention it.
79293         argp: fix test failure
79294         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
79295         that are not upper-case.  Pass correct range to tolower.
79297 2009-09-27  Jim Meyering  <meyering@redhat.com>
79299         test-yesno: work around sparc-dash here-document infelicity
79300         Without this change, the literal \177 byte in a here document
79301         would make dash 0.5.5.1-3 access uninitialized memory.
79302         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
79303         Instead, use a marker, "@", and filter through tr to create the desired
79304         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
79306 2009-09-27  Bruno Haible  <bruno@clisp.org>
79308         Disable untested support for new flavours of ACLs on AIX.
79309         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
79310         progress.
79311         * lib/set-mode-acl.c (qset_acl): Likewise.
79313 2008-12-07  Bruno Haible  <bruno@clisp.org>
79315         Add support for new flavours of ACLs on AIX. (Untested.)
79316         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
79317         (file_has_acl): Add support for newer AIX.
79318         * lib/set-mode-acl.c (qset_acl): Likewise.
79319         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
79320         Rainer Tammer <tammer@tammer.net>.
79322 2009-09-26  Eric Blake  <ebb9@byu.net>
79324         argp: fix compilation of getopt
79325         * lib/getopt.in.h (includes): Use different guard than glibc.
79326         Reported by Sergey Poznyakoff.
79328         doc: mention more cygwin 1.7 status
79329         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
79330         bug.
79331         * doc/posix-functions/execl.texi (execl): Likewise.
79332         * doc/posix-functions/execle.texi (execle): Likewise.
79333         * doc/posix-functions/execlp.texi (execlp): Likewise.
79334         * doc/posix-functions/execv.texi (execv): Likewise.
79335         * doc/posix-functions/execve.texi (execve): Likewise.
79336         * doc/posix-functions/execvp.texi (execvp): Likewise.
79337         * doc/glibc-functions/canonicalize_file_name.texi
79338         (canonicalize_file_name): Cygwin 1.7 now provides this.
79339         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
79340         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
79341         on AT_SYMLINK_NOFOLLOW.
79343 2009-09-24  Eric Blake  <ebb9@byu.net>
79345         test-linkat: make test more robust
79346         * tests/test-linkat.c (main): Avoid collision with EEXIST.
79348         getopt: fix inclusion guards for cygwin
79349         * modules/getopt-posix (Depends-on): Add include-next.
79350         (Makefile.am): Substitute more items in replacement header.
79351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
79352         <getopt.h>.
79353         * lib/getopt.in.h (includes): Use split inclusion guard, and
79354         prefer <getopt.h> over include <unistd.h> when one is present.
79355         (option): Also override name of 'struct option'.
79357         same-inode: revert prior change; it is not yet ready
79358         * NEWS: Undo mention of this change.
79359         * lib/same-inode.h (same-inode.h): Undo tri-state change.
79360         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79361         * lib/cycle-check.c (cycle_check): Likewise.
79362         * lib/same.c (same_name): Likewise.
79363         * lib/at-func2.c (at_func2): Likewise.
79365 2009-09-23  Eric Blake  <ebb9@byu.net>
79367         linkat: new module
79368         * modules/linkat: New file.
79369         * lib/at-func2.c (at_func2): Likewise.
79370         * lib/linkat.c (linkat): Likewise.
79371         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79372         * lib/openat-priv.h (at_func2): Add declaration.
79373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79374         * modules/unistd (Makefile.am): Substitute them.
79375         * lib/unistd.in.h (linkat): Declare it.
79376         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79377         * doc/posix-functions/linkat.texi (linkat): Likewise.
79378         * doc/posix-functions/link.texi (link): Tweak wording.
79379         * tests/test-link.c (main): Move guts...
79380         * tests/test-link.h (test_link): ...into new file.
79381         * modules/linkat-tests: New test.
79382         * tests/test-linkat.c: Likewise.
79383         * modules/link-tests (Files): Ship new file.
79384         (Depends-on): Add stdbool.
79386         dirname: add library-safe mdir_name
79387         * lib/dirname.h (mdir_name): New prototype.
79388         * lib/dirname.c (dir_name): Move guts...
79389         (mdir_name): ...to new function that avoids xalloc_die.
79391         fchdir: another mingw fix
79392         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79393         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79394         on mingw (where it has not yet been ported), and make it optional
79395         elsewhere.
79396         (_gl_register_fd): Use it.
79398         same-inode: make SAME_INODE tri-state, to port to mingw
79399         * NEWS: Mention this change.
79400         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79401         st_ino always being 0.
79402         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79403         * lib/cycle-check.c (cycle_check): Likewise.
79404         * lib/same.c (same_name): Likewise.
79406         lstat: avoid mingw compilation error
79407         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79408         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79409         lstat ourselves.
79410         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79411         was adequate.
79412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79413         the checks for lstat.
79414         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79416         link: fix test failure on Solaris 9
79417         * lib/link.c (rpl_link): Don't assume link will catch bogus
79418         trailing slash on source.
79420         test-symlinkat: enhance test
79421         * tests/test-readlink.c (main): Move guts...
79422         * tests/test-readlink.h (test_readlink): ...into new file.
79423         * tests/test-symlink.c (main): Move guts...
79424         * tests/test-symlink.h (test_symlink): ...into new file.
79425         * tests/test-symlinkat.c (main): Use new files for further
79426         coverage.
79427         (do_symlink, do_readlink): New helper functions.
79428         * modules/symlink-tests (Files): Ship new file.
79429         (Depends-on): Add stdbool.
79430         * modules/readlink-tests (Files): Ship new file.
79431         (Depends-on): Add stdbool.
79432         * modules/symlinkat-tests (Files): Use new files.
79434 2009-09-23  Eric Blake  <ebb9@byu.net>
79436         readlink: document portability issue with symlink length
79437         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79438         systems have bogus st_size on symlinks, and mention the
79439         areadlink-with-size module.
79440         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79441         * doc/posix-functions/readlink.texi (readlink): Mention the
79442         areadlink module, and ERANGE failure.
79443         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79444         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79446         readlink: fix Solaris 9 bug with trailing slash
79447         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79448         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79449         * doc/posix-functions/readlink.texi (readlink): Document this.
79450         * modules/readlink-tests: New test.
79451         * tests/test-readlink.c: Likewise.
79453         readlink: fix cygwin 1.5.x bug with return type
79454         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79455         * lib/unistd.in.h (readlink): Use ssize_t.
79456         * lib/readlink.c (readlink): Likewise.
79457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79458         * modules/unistd (Makefile.am): Substitute it.
79459         * lib/unistd.in.h (readlink): Declare replacement.
79460         * doc/posix-functions/readlink.texi (readlink): Document this.
79462         symlink: use throughout gnulib
79463         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79464         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79465         symlink is not used.
79466         * modules/symlinkat (Depends-on): Add symlink.
79467         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79468         * modules/canonicalize-tests (Depends-on): Likewise.
79469         * modules/lstat-tests (Depends-on): Likewise.
79470         * modules/openat-tests (Depends-on): Likewise.
79471         * modules/remove-tests (Depends-on): Likewise.
79472         * modules/rmdir-tests (Depends-on): Likewise.
79473         * modules/unlink-tests (Depends-on): Likewise.
79474         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
79475         * tests/test-canonicalize.c (symlink): Likewise.
79476         * tests/test-fstatat.c (symlink): Likewise.
79477         * tests/test-lstat.c (symlink): Likewise.
79478         * tests/test-remove.c (symlink): Likewise.
79479         * tests/test-rmdir.c (symlink): Likewise.
79480         * tests/test-unlink.c (symlink): Likewise.
79481         * tests/test-unlinkat.c (symlink): Likewise.
79483         symlink: new module, for Solaris 9 bug
79484         * modules/symlink: New file.
79485         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
79486         * lib/symlink.c: Likewise.
79487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
79488         * modules/unistd (Makefile.am): Substitute them.
79489         * lib/unistd.in.h (symlink): Declare replacement.
79490         * MODULES.html.sh (File system functions): Mention it.
79491         * doc/posix-functions/symlink.texi (symlink): Likewise.
79492         * modules/symlink-tests: New test.
79493         * tests/test-symlink.c: Likewise.
79495 2009-09-23  Bruno Haible  <bruno@clisp.org>
79497         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
79498         when needed.
79499         Test case: gnulib-tool --import --with-tests atexit inttypes.
79500         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
79502 2009-09-23  Bruno Haible  <bruno@clisp.org>
79504         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
79505         subcommand, not in a subshell.
79507 2009-09-22  Eric Blake  <ebb9@byu.net>
79509         unistd: sort replacement declarations
79510         * lib/unistd.in.h: Sort declarations.
79512         open, openat: minor optimization
79513         * lib/open.c (open): If open succeeded, len is non-zero.
79514         * lib/openat.c (rpl_openat): Likewise.
79516         link-follow: ensure correct result
79517         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
79518         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
79519         distinguish between possible failures.
79521 2009-09-21  Eric Blake  <ebb9@byu.net>
79523         fts: avoid compiler warning
79524         * lib/fts.c (dirent_inode_sort_may_be_useful)
79525         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
79527 2009-09-19  Bruno Haible  <bruno@clisp.org>
79529         * lib/progreloc.c (canonicalize_file_name): New declaration.
79531 2009-09-19  Eric Blake  <ebb9@byu.net>
79533         link: fix quoting
79534         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
79536         openat: fix openat bugs on Solaris 9
79537         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
79538         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
79539         * modules/openat (Depends-on): Add open.
79540         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
79541         * modules/fcntl-h (Makefile.am): Substitute it.
79542         * lib/fcntl.in.h (openat): Declare replacement.
79543         * doc/posix-functions/openat.texi (openat): Document this.
79545         openat: move fstatat and unlinkat into correct files
79546         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
79547         compiled.
79548         * lib/openat.c (fstatat, unlinkat): Move...
79549         * lib/fstatat.c (fstatat): ...into correct files.
79550         * lib/unlinkat.c (unlinkat): Likewise.
79552         openat: fix unlinkat bugs on Solaris 9
79553         * lib/unlinkat.c (unlinkat): New file.
79554         * modules/openat (Depends-on): Add unlink.
79555         (Files): Distribute it.
79556         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
79557         trailing slash behavior is broken.
79558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79559         * modules/unistd (Makefile.am): Substitute it.
79560         * lib/unistd.in.h (unlinkat): Declare replacement.
79561         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
79563         openat: fix fstatat bugs on Solaris 9
79564         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
79565         stat.
79566         * doc/posix-functions/fstatat.texi (fstatat): Document this.
79568         test-unlinkat: enhance test, to expose Solaris 9 bug
79569         * tests/test-unlink.c (main): Factor guts...
79570         * tests/test-unlink.h (test_rmdir_func): ...into new file.
79571         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
79572         * tests/test-rmdir.c (main): Adjust caller.
79573         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
79574         (unlinker): New helper function.
79575         (rmdirat): Enhance check.
79576         * modules/rmdir-tests (Depends-on): Add stdbool.
79577         * modules/unlink-tests (Depends-on): Likewise.
79578         (Files): Add test-unlink.h.
79579         * modules/openat-tests (Files): Likewise.
79580         (Depends-on): Add unlinkdir.
79582         test-fstatat: new test, to expose Solaris 9 bugs
79583         * tests/test-stat.c (main): Factor guts...
79584         * tests/test-stat.h (test_stat_func): ...into new file.
79585         * tests/test-lstat.c (main): Factor guts...
79586         * tests/test-lstat.h (test_lstat_func): ...into new file.
79587         * tests/test-fstatat.c: New file.
79588         * modules/stat-tests (Files): Add test-stat.h.
79589         * modules/lstat-tests (Files): Add test-lstat.h.
79590         (Depends-on): Add stdbool.
79591         * modules/openat-tests (Depends-on): Add pathmax.
79592         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
79593         (Makefile.am): Run new test.
79595         remove: new module, for mingw and Solaris 9 bugs
79596         * modules/remove: New file.
79597         * lib/remove.c: Likewise.
79598         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
79599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79600         * modules/stdio (Makefile.am): Use them.
79601         * lib/stdio.in.h (remove): Declare replacement.
79602         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79603         * doc/posix-functions/remove.texi (remove): Likewise.
79604         * modules/remove-tests: New test.
79605         * tests/test-remove.c: Likewise.
79607         unlink: new module, for Solaris 9 bug
79608         * modules/unlink: New file.
79609         * lib/unlink.c: Likewise.
79610         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79612         * modules/unistd (Makefile.am): Use them.
79613         * lib/unistd.in.h (stat): Declare replacement.
79614         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79615         * doc/posix-functions/unlink.texi (unlink): Likewise.
79616         * modules/unlink-tests: New test.
79617         * tests/test-unlink.c: Likewise.
79619         lstat: fix Solaris 9 bug
79620         * lib/lstat.c (lstat): Also check for trailing slash on
79621         non-symlink, non-directories.  Use stat module to simplify logic.
79622         * doc/posix-functions/lstat.texi (lstat): Document it.
79623         * modules/lstat-tests (Depends-on): Add errno, same-inode.
79624         (configure.ac): Check for symlink.
79625         * tests/test-lstat.c (main): Add more tests.
79627         stat: add as dependency to other modules
79628         * modules/chown (Depends-on): Add stat.
79629         * modules/euidaccess (Depends-on): Likewise.
79630         * modules/fchdir (Depends-on): Likewise.
79631         * modules/isdir (Depends-on): Likewise.
79632         * modules/link (Depends-on): Likewise.
79633         * modules/lstat (Depends-on): Likewise.
79634         * modules/mkdir-p (Depends-on): Likewise.
79635         * modules/modechange (Depends-on): Likewise.
79636         * modules/open (Depends-on): Likewise.
79637         * modules/readlink (Depends-on): Likewise.
79638         * modules/same (Depends-on): Likewise.
79640         stat: fix Solaris 9 bug
79641         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
79642         slash.
79643         * lib/stat.c (rpl_stat): Work around it.
79644         * doc/posix-functions/stat.texi (stat): Update documentation.
79646         stat: new module, for mingw bug
79647         * modules/stat: New file.
79648         * lib/stat.c: Likewise.
79649         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
79650         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79651         * modules/sys_stat (Makefile.am): Use them.
79652         * lib/sys_stat.in.h (stat): Declare replacement.
79653         * lib/openat.c (fstatat): Deal with lstat and stat being function
79654         macros.
79655         * modules/openat (Depends-on): Add inline.
79656         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79657         * doc/posix-functions/stat.texi (stat): Likewise.
79658         * modules/stat-tests: New test.
79659         * tests/test-stat.c: Likewise.
79661 2009-09-19  Jim Meyering  <meyering@redhat.com>
79663         syntax-check: detect unnecessary inclusion of canonicalize.h
79664         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
79666 2009-09-19  Eric Blake  <ebb9@byu.net>
79668         canonicalize-lgpl: adjust clients to use correct header
79669         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79670         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
79671         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
79672         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
79673         * lib/progreloc.c (includes): Likewise.
79675 2009-09-19  Jim Meyering  <meyering@redhat.com>
79677         test-posixtm.c: correct a comment
79678         * tests/test-posixtm.c: Correct first-line comment.
79679         Spotted by Eric Blake.
79681 2009-09-16  Jim Meyering  <meyering@redhat.com>
79683         posixtm-tests: make T const-correct; add a test case
79684         * tests/test-posixtm.c (T): Declare const.
79685         Add a test for -(2^31+1).
79686         Remove useless can-succeed-only-in-2002 test.
79688         posixtm-tests: adjust the sole failing test
79689         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79690         expected output matches what mktime now produces.  Cross-checked via
79691         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79693         posixtm: move #ifdef'd tests into a new module
79694         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79695         * tests/test-posixtm.c: ... this new file.
79696         * modules/posixtm-tests: New module.
79698 2009-09-19  Eric Blake  <ebb9@byu.net>
79700         openat: simplify use of at-func.c
79701         * lib/at-func.c (includes): Include prerequisites here, to
79702         simplify requirements on client files.
79703         * lib/openat-priv.h: Add double-inclusion guard.
79704         * lib/faccessat.c (includes): Simplify.
79705         * lib/fchmodat.c (includes): Likewise.
79706         * lib/fchownat.c (includes): Likewise.
79707         * lib/mkdirat.c (includes): Likewise.
79708         * lib/mkfifoat.c (includes): Likewise.
79709         * lib/symlinkat.c (includes): Likewise.
79711         openat: allow return of fd 0
79712         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79713         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79714         unistd-safer.
79715         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79716         <fcntl.h>; this module does not leak fds.
79717         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79718         must be allowed to return 0, leaving openat_safer to add the
79719         safety.
79720         (openat_permissive): Avoid writing to just-opened fd 2 if
79721         restoring the current directory fails.
79722         * lib/openat-die.c (openat_restore_fail): Add comment.
79723         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79724         (save_cwd): Guarantee safe fd, but without use of open_safer.
79725         * tests/test-openat.c: New test.
79726         * modules/openat-tests (Files, Makefile.am): Distribute and build
79727         new file.
79729         relocatable-prog-wrapper: fix build
79730         * modules/relocatable-prog-wrapper (Files): Update name of
79731         canonicalize m4 file, broken on 2009-09-17.
79732         Reported by emad hajjar <aleppos@hotmail.com>.
79734 2009-09-19  Bruno Haible  <bruno@clisp.org>
79736         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79737         * lib/safe-alloc.c: Likewise.
79738         Reported by Ian Beckwith <ianb@erislabs.net>.
79740 2009-09-18  Bruno Haible  <bruno@clisp.org>
79742         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79743         Reported by <erobles@sensacd.com.mx>.
79745 2009-09-17  Eric Blake  <ebb9@byu.net>
79747         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79748         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79749         slashes when checking if last component is missing.
79750         * tests/test-canonicalize.c (main): Test this.
79752         canonicalize, canonicalize-lgpl: honor // if distinct from /
79753         * modules/canonicalize (Files): Add double-slash-root.m4.
79754         * modules/canonicalize-lgpl (Files): Likewise.
79755         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79756         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79757         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79758         fallback definition.
79759         (canonicalize_filename_mode): Use it to protect //.
79760         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79761         (__realpath): Likewise.
79762         * tests/test-canonicalize.c (main): Test this.
79763         * tests/test-canonicalize-lgpl.c (main): Likewise.
79764         * modules/canonicalize-tests (Depends-on): Add same-inode.
79765         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79767         canonicalize-lgpl: fix glibc bug with trailing slash
79768         * m4/canonicalize-lgpl.m4: Move contents...
79769         * m4/canonicalize.m4: ...here.
79770         (gl_CANONICALIZE_LGPL): Factor realpath check...
79771         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79772         glibc 2.3.5 bug, fixed 2005-04-27.
79773         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79774         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79775         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79776         * modules/canonicalize-lgpl (Files): Manage file rename.
79777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79778         * modules/stdlib (Makefile.am): Substitute witness.
79779         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79780         is needed.
79781         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79782         replacement is required.
79783         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79784         * doc/glibc-functions/canonicalize_file_name.texi
79785         (canonicalize_file_name): Document this.
79786         * doc/posix-functions/realpath.texi (realpath): Likewise.
79788         canonicalize-lgpl: reject non-directory with trailing slash
79789         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79790         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79791         catches failures in glibc 2.3.5.
79792         * tests/test-canonicalize.c (main): Likewise.
79794         canonicalize-lgpl: use native realpath if it works
79795         * lib/canonicalize-lgpl.c (realpath): Guard with
79796         FUNC_REALPATH_WORKS.
79797         * lib/stdlib.in.h (realpath): Make declaration optional based on
79798         HAVE_REALPATH.
79799         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79800         native realpath works.
79801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79802         * modules/stdlib (Makefile.am): Substitute witness.
79804         canonicalize, canonicalize-lgpl: use <stdlib.h>
79805         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79806         (Include): Mention <stdlib.h>.
79807         (configure.ac): Mention functions we provide.
79808         * modules/canonicalize (configure.ac): Likewise.
79809         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79810         realpath if canonicalize_file_name is missing.
79811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79812         * modules/stdlib (Makefile.am): Substitute witnesses.
79813         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79814         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79815         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79816         * NEWS: Document this.
79817         * doc/glibc-functions/canonicalize_file_name.texi
79818         (canonicalize_file_name): Likewise.
79819         * doc/posix-functions/realpath.texi (realpath): Likewise.
79820         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79822         test-canonicalize: consolidate into single C program
79823         * tests/test-canonicalize.sh: Delete; move setup into...
79824         * tests/test-canonicalize.c (main): ...the program, making it
79825         easier to run in debugger.  Add some tests.
79826         * modules/canonicalize-tests (Files): Remove unused file.
79827         (Depends-on): Add progname.
79828         (configure.ac, Makefile.am): Simplify.
79830         test-canonicalize-lgpl: consolidate into single C program
79831         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79832         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79833         easier to run in debugger.  Add some tests.
79834         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79835         (configure.ac, Makefile.am): Simplify.
79837         canonicalize: avoid resolvepath
79838         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79839         unnecessary checks.
79840         * lib/canonicalize.c (includes): Simplify.
79841         (canonicalize_file_name): Drop resolvepath implementation.
79842         * modules/canonicalize (Depends-on): Drop filenamecat.
79844         canonicalize: don't lose errno
79845         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79846         over calls to free.
79848         canonicalize: simplify errno handling
79849         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79850         assignment.
79852         canonicalize, canonicalize-lgpl: update module dependencies
79853         * modules/canonicalize (Depends-on): Add extensions, lstat,
79854         pathmax, stdlib.
79855         (Files): Drop pathmax.h.
79856         (configure.ac): Adjust macro name.
79857         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79858         lstat, stdlib, sys_stat.
79859         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79860         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79861         extensions.
79862         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79863         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79864         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79865         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79866         declaration, if available.
79867         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79868         we can rely on the readlink module.
79869         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79870         (includes): Use <unistd.h> unconditionally.
79872 2009-09-17  Eric Blake  <ebb9@byu.net>
79874         maint: make Include sections of modules consistent
79875         * modules/alloca: Use only header name; no need to list #include.
79876         * modules/alloca-opt: Likewise.
79877         * modules/arpa_inet: Likewise.
79878         * modules/canon-host: Likewise.
79879         * modules/configmake: Likewise.
79880         * modules/dirent: Likewise.
79881         * modules/eealloc: Likewise.
79882         * modules/environ: Likewise.
79883         * modules/fchdir: Likewise.
79884         * modules/fcntl: Likewise.
79885         * modules/fcntl-h: Likewise.
79886         * modules/gethrxtime: Likewise.
79887         * modules/gettime: Likewise.
79888         * modules/ignore-value: Likewise.
79889         * modules/inet_ntop: Likewise.
79890         * modules/inet_pton: Likewise.
79891         * modules/inttypes: Likewise.
79892         * modules/isnand-nolibm: Likewise.
79893         * modules/isnanf-nolibm: Likewise.
79894         * modules/mbchar: Likewise.
79895         * modules/mbfile: Likewise.
79896         * modules/mbiter: Likewise.
79897         * modules/mbuiter: Likewise.
79898         * modules/netdb: Likewise.
79899         * modules/netinet_in: Likewise.
79900         * modules/nproc: Likewise.
79901         * modules/pagealign_alloc: Likewise.
79902         * modules/poll: Likewise.
79903         * modules/printf-frexp: Likewise.
79904         * modules/pthread: Likewise.
79905         * modules/putenv: Likewise.
79906         * modules/random_r: Likewise.
79907         * modules/relocatable-prog: Likewise.
79908         * modules/search: Likewise.
79909         * modules/select: Likewise.
79910         * modules/selinux-h: Likewise.
79911         * modules/settime: Likewise.
79912         * modules/signal: Likewise.
79913         * modules/size_max: Likewise.
79914         * modules/socklen: Likewise.
79915         * modules/ssize_t: Likewise.
79916         * modules/stdarg: Likewise.
79917         * modules/stdbool: Likewise.
79918         * modules/stddef: Likewise.
79919         * modules/stdint: Likewise.
79920         * modules/stdio: Likewise.
79921         * modules/stdlib: Likewise.
79922         * modules/string: Likewise.
79923         * modules/strings: Likewise.
79924         * modules/sys_file: Likewise.
79925         * modules/sys_ioctl: Likewise.
79926         * modules/sys_select: Likewise.
79927         * modules/sys_socket: Likewise.
79928         * modules/sys_stat: Likewise.
79929         * modules/sys_time: Likewise.
79930         * modules/sys_times: Likewise.
79931         * modules/sys_utsname: Likewise.
79932         * modules/sys_wait: Likewise.
79933         * modules/sysexits: Likewise.
79934         * modules/time: Likewise.
79935         * modules/times: Likewise.
79936         * modules/tmpfile: Likewise.
79937         * modules/trim: Likewise.
79938         * modules/unistd: Likewise.
79939         * modules/wchar: Likewise.
79940         * modules/wctype: Likewise.
79942 2009-09-17  Bruno Haible  <bruno@clisp.org>
79944         Make getdate.y compile on QNX and NetBSD 5 / i386.
79945         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79946         TIME_T_FITS_IN_LONG_INT.
79947         * lib/getdate.y (long_time_t): New type.
79948         (relative_time): Change type of 'seconds' field to long_time_t.
79949         (get_date): Update types of local variables. Check against overflow
79950         during conversion from long_time_t to time_t.
79951         Reported by Matt Kraai <kraai@ftbfs.org>
79952         and Hasso Tepper <hasso@netbsd.org>.
79954 2009-09-17  Bruno Haible  <bruno@clisp.org>
79956         * modules/COPYING: Update copyright years.
79957         * modules/README: Likeiwse.
79958         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79959         Reported by Ian Beckwith <ianb@erislabs.net>.
79961 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79963         * users.txt: Update references for gnuit package.
79965 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79967         * m4/getdelim.m4: Fix typo in copyright line.
79969 2009-09-17  Bruno Haible  <bruno@clisp.org>
79971         * lib/atoll.c: Use the standard header with GPL copyright.
79972         * lib/argz.in.h: Likewise.
79973         * lib/glob.c: Likewise.
79974         * lib/glob-libc.h: Likewise.
79975         * lib/random_r.c: Likewise.
79976         * lib/siglist.h: Likewise.
79977         * lib/strsignal.c: Likewise.
79978         Reported by Ian Beckwith <ianb@erislabs.net>.
79980 2009-09-17  Eric Blake  <ebb9@byu.net>
79982         rmdir: ensure correct dependency order
79983         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79985 2009-09-17  Bruno Haible  <bruno@clisp.org>
79987         Disable assertion that fails on NetBSD 5 / i386.
79988         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79989         Reported by Sam Steingold <sds@gnu.org>
79990         and Hasso Tepper <hasso@netbsd.org>.
79992 2009-09-16  Eric Blake  <ebb9@byu.net>
79994         unlinkdir: port to mingw
79995         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79996         on which no one can unlink a directory.
79998         stdlib: sort witness names
79999         * modules/stdlib (Makefile.am): Sort replacements.
80000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80001         * lib/stdlib.in.h: Likewise.
80003         parse-duration-tests: avoid link failure
80004         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
80005         LIBINTL.
80006         Reported by Tom G. Christensen.
80008         openat-tests: ensure unlinkat behaves like rmdir
80009         * tests/test-rmdir.c (main): Factor guts...
80010         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
80011         * modules/rmdir-tests (Files): Ship new file.
80012         * modules/openat-tests: New test.
80013         * tests/test-unlinkat.c: Likewise.
80015         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
80016         * modules/rmdir-errno (Status, Notice): Now obsolete.
80018         rmdir: work around cygwin 1.5.x and mingw bugs
80019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
80020         * lib/rmdir.c (rmdir): Work around it.
80021         * modules/rmdir (Status, Notice): No longer obsolete.
80022         (Files): Add dos.m4.
80023         (Depends-on): Add unistd.
80024         (configure.ac): Set witnesses.
80025         (License): Relax to LGPLv2+.
80026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
80027         * modules/unistd (Makefile.am): Substitute witnesses.
80028         * lib/unistd.in.h (rmdir): Declare replacement.
80029         * doc/posix-functions/rmdir.texi (rmdir): Document this.
80030         * modules/rmdir-tests: New tests.
80031         * tests/test-rmdir.c: Likewise.
80033 2009-09-15  Eric Blake  <ebb9@byu.net>
80035         fchdir: improve use of replacement functions
80036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
80037         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
80038         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
80039         REPLACE_CLOSEDIR.
80040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
80041         * modules/sys_stat (Makefile.am): Substitute correct witness.
80042         * modules/dirent (Makefile.am): Likewise.
80043         * modules/unistd (Makefile.am): Likewise.
80044         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
80045         * lib/unistd.in.h (dup): Likewise.
80046         * lib/sys_stat.in.h (fstat): Likewise.
80048         maint: ignore gnulib-tool temp files
80049         * .gitignore: Ignore files created during gnulib-tool --test.
80051 2009-09-13  Jim Meyering  <meyering@redhat.com>
80053         posixtm: don't reject a time that specify "60" as the number of seconds
80054         * lib/posixtm.c (posixtime): The code to reject invalid dates
80055         would also reject a time specified with the .60 suffix.
80056         But POSIX allows that, in order to accommodate leap seconds.
80057         So don't reject it.
80058         (main): Adjust tests accordingly.
80059         * modules/posixtm (Depends-on): Add stpcpy.
80061 2009-09-11  Jim Meyering  <meyering@redhat.com>
80063         announce-gen: include [$release_type] in emitted Subject:
80064         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
80065         e.g., [stable] in the emitted Subject: line.
80067 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80069         Remove obsolete macros from several modules.
80070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
80071         obsolete Autoconf macros with their modern counterparts.
80072         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
80073         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
80074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
80075         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
80076         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
80077         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
80079         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80080         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
80081         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
80082         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
80083         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
80084         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
80085         * m4/sockets.m4 (gl_SOCKETS): Likewise.
80086         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
80087         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
80088         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80089         * m4/time_r.m4 (gl_TIME_R): Likewise.
80090         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
80091         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
80092         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80094         Fix copyright header in build-aux scripts.
80095         * build-aux/git-version-gen: Fix copyright header to match GPLv3
80096         recommendation.
80097         * build-aux/ncftpput-ftp: Likewise.
80098         * build-aux/update-copyright: Likewise.
80100 2009-09-09  Eric Blake  <ebb9@byu.net>
80102         test-link: allow Linux choice of errno
80103         * tests/test-link.c (main): Relax test for alternate error.
80105         strndup: fix improper m4 caching
80106         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
80107         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
80108         (gl_PREREQ_STRNDUP): Delete.
80109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
80110         * modules/string (Makefile.am): Substitute it.
80111         * lib/string.in.h (strndup): Modernize prototype.
80113         getcwd: port to mingw
80114         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
80115         different from the POSIX assumptions made throughout the getcwd
80116         module; fortunately, the mingw getcwd does not need replacement.
80117         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
80118         * modules/getcwd-tests: New test.
80119         * tests/test-getcwd.c: Likewise.
80121         link: fix platform bugs
80122         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
80123         * lib/link.c (link): Work around them.  Fix related mingw bug.
80124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
80125         * modules/unistd (Makefile.am): Substitute it.
80126         * lib/unistd.in.h (link): Declare replacement.
80127         * doc/posix-functions/link.texi (link): Document this.
80128         * modules/link (Depends-on): Add strdup-posix, sys_stat.
80130         test-link: consolidate into single C program, test more cases
80131         * tests/test-link.sh: Delete.
80132         * tests/test-link.c: Test more error conditions.  Exposes bugs on
80133         at least Cygwin and Solaris.
80134         * modules/link-tests (Files): Remove unused file.
80135         (Depends-on): Add errno, sys_stat.
80136         (Makefile.am): Simplify.
80138 2009-09-08  Bruno Haible  <bruno@clisp.org>
80140         Work around towlower, towupper bug on mingw.
80141         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
80142         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
80143         * doc/posix-functions/towlower.texi: Mention the mingw bug.
80144         * doc/posix-functions/towupper.texi: Likewise.
80145         Reported by Eric Blake.
80147 2009-09-08  Jim Meyering  <meyering@redhat.com>
80149         build: don't try to run autoheader if we don't use it
80150         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
80151         is not used in configure.ac.
80153 2009-09-08  Eric Blake  <ebb9@byu.net>
80155         euidaccess: fix compilation error
80156         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
80158         rawmemchr: relax license
80159         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
80160         okay.
80161         Reported by Jim Meyering.
80163         mkfifoat: new module
80164         * modules/mkfifoat: New file.
80165         * lib/mkfifoat.c: Likewise.
80166         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
80167         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80168         * modules/sys_stat (Makefile.am): Use them.
80169         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
80170         * MODULES.html.sh (File system functions): Mention module.
80171         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80172         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80173         * modules/mkfifoat-tests: New test.
80174         * tests/test-mkfifoat.c: Likewise.
80176         strchrnul: relax license
80177         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
80178         okay.
80179         Reported by Jim Meyering.
80181 2009-09-08  Eric Blake  <ebb9@byu.net>
80183         fstatat: fix compilation on Solaris
80184         * lib/fstatat.c (includes): Add fcntl.h.
80185         Reported by Pádraig Brady.
80187 2009-09-07  Eric Blake  <ebb9@byu.net>
80189         rename: modernize replacement
80190         * modules/rename (Depends-on): Add stdio.
80191         (configure.ac): Declare witness.
80192         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80193         stdio take care of replacement.
80194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80195         * modules/stdio (Makefile.am): Substitute them.
80196         * lib/stdio.in.h (rename): Declare replacement.
80197         * lib/rename.c (includes): Allow cross-compilation to non-windows
80198         machines.
80199         * doc/posix-functions/rename.texi (rename): Improve
80200         documentation.
80202         stdio: sort witness names
80203         * modules/stdio (Makefile.am): Sort replacements.
80204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80205         * lib/stdio.in.h: Likewise.
80207         getcwd: minor cleanups
80208         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
80209         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
80211         openat: provide more convenience names
80212         * modules/faccessat (configure.ac): Add C witness.
80213         * lib/unistd.in.h (readlinkat): Fix typo.
80214         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
80215         convenience wrappers.
80216         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
80217         wrappers in syntax checks.
80219 2009-09-06  Eric Blake  <ebb9@byu.net>
80221         doc: fix comments in recent patches
80222         * lib/faccessat.c: Mention correct function.
80223         * lib/fchmodat.c: Likewise.
80224         * lib/fchownat.c: Likewise.
80225         * lib/symlinkat.c: Likewise.
80226         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
80227         constants.
80229         faccessat, symlinkat: continue cleanup of previous patch
80230         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
80231         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80232         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
80233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
80234         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
80235         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
80236         set.
80238 2009-09-06  Bruno Haible  <bruno@clisp.org>
80240         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
80241         (fstatat): Declare if GNULIB_FSTATAT is set.
80242         (mkdirat): Declare if GNULIB_MKDIRAT is set.
80243         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
80244         (unlinkat): Declare if GNULIB_UNLINKAT is set.
80245         * modules/fcntl-h (Files): Remove m4/openat.m4.
80246         * modules/sys_stat (Files): Remove m4/openat.m4.
80247         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
80248         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
80249         * modules/unistd (Files): Remove m4/openat.m4.
80250         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
80251         GNULIB_OPENAT.
80252         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
80253         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
80254         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
80255         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
80256         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
80257         gl_OPENAT_DEFAULTS.
80258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
80259         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
80260         Don't require gl_OPENAT_DEFAULTS.
80261         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
80262         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
80263         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
80264         (gl_OPENAT_DEFAULTS): Remove macro.
80266 2009-09-06  Bruno Haible  <bruno@clisp.org>
80268         * modules/openat (configure.ac): Remove unneeded witness.
80270 2009-09-06  Bruno Haible  <bruno@clisp.org>
80272         Set errno to ENOSYS when a function is entirely unsupported.
80273         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
80274         EOPNOTSUPP.
80275         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80276         * modules/chown (Depends-on): Remove errno.
80278 2009-09-06  Bruno Haible  <bruno@clisp.org>
80280         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
80282 2009-09-06  Bruno Haible  <bruno@clisp.org>
80284         * lib/sys_stat.in.h: Fix preprocessor command indentation.
80286 2009-09-06  Ben Pfaff  <blp@gnu.org>
80287             Bruno Haible  <bruno@clisp.org>
80289         Work around a glibc bug in strtok_r.
80290         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
80291         Undefine if UNDEFINE_STRTOK_R is set.
80292         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
80293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80294         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
80295         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
80296         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
80297         UNDEFINE_STRTOK_R.
80298         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
80300 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
80302         exclude: minor fix
80303         * lib/exclude.c: Include wctype.h
80305 2009-09-06  Akim Demaille  <demaille@gostai.com>
80307         bootstrap: improve error message
80308         * build-aux/bootstrap (find_tool): Upon failure, report the list
80309         of candidates.
80310         Honor the initial value of the envvar.
80312 2009-09-05  Eric Blake  <ebb9@byu.net>
80314         symlinkat: new module
80315         * modules/symlinkat: New file.
80316         * lib/symlinkat.c: Likewise.
80317         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
80318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80319         * modules/unistd (Makefile.am): Use them.
80320         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
80321         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
80322         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
80323         * MODULES.html.sh (File system functions): Mention module.
80324         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80325         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80326         * modules/symlinkat-tests: New test.
80327         * tests/test-symlinkat.c: Likewise.
80329         test-openat-safer: add more checks
80330         * tests/test-openat-safer.c (main): Check more code paths.
80332 2009-09-05  Jim Meyering  <meyering@redhat.com>
80334         syntax-check: detect unnecessary inclusion of openat.h
80335         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
80337 2009-09-05  Bruno Haible  <bruno@clisp.org>
80339         Support towlower, towupper.
80340         * doc/posix-functions/towlower.texi: Mention module wctype.
80341         * doc/posix-functions/towupper.texi: Likewise.
80342         * lib/wctype.in.h (towlower, towupper): New functions.
80343         * tests/test-wctype.c: Include stdio.h, stdlib.h.
80344         (ASSERT): New macro.
80345         (e): New variable.
80346         (main): Test also towlower, towupper. Test WEOF argument.
80347         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
80349 2009-09-05  Bruno Haible  <bruno@clisp.org>
80351         Fix conversion behaviour when the input is invalid.
80352         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
80353         mark occurring in first pass of indirect conversion.
80354         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
80355         input.
80356         Found by clang's static analyzer.
80358 2009-09-05  Bruno Haible  <bruno@clisp.org>
80360         * tests/test-striconveh.c (main): Test indirect conversion on platforms
80361         where direct conversion is possible.
80363 2009-09-04  Eric Blake  <ebb9@byu.net>
80365         openat: fail with ENOENT on empty name
80366         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80367         buffer.
80369         link-follow: fix logic bug in prior patch
80370         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80371         reversed sense of yes and no in prior patch.  Avoid confusing
80372         compilation failure with desired semantics.
80374         link-follow: accommodate mingw and cross-compilation
80375         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80376         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80377         cross-compilation results to -1, to make linkat easier to
80378         implement when cross-compiling.  Trivially support mingw.
80379         * modules/link-follow (configure.ac): Call new name.
80380         * NEWS: Mention this.
80382 2009-09-03  Eric Blake  <ebb9@byu.net>
80384         faccessat: compile replacement
80385         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80386         needed.
80388         fts: fix compilation error
80389         * lib/fts.c (includes): Re-add "openat.h", for
80390         openat_needs_fchdir.
80392         faccessat: new module
80393         * modules/faccessat: New file.
80394         * lib/faccessat.c: Likewise.
80395         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80397         * modules/unistd (Makefile.am): Use it.
80398         * lib/unistd.in.h (faccessat): Declare it.
80399         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80400         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80401         * MODULES.html.sh (File system functions): Mention it.
80402         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80403         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80405         euidaccess: prefer POSIX over non-standard implementation
80406         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80407         * lib/euidaccess.c (euidaccess): Use it if available.
80409         openat: make template easier to use
80410         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80411         AT_FUNC_F2 to be undefined.
80412         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80413         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80414         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80415         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80416         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80417         Likewise.
80418         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80419         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80420         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80421         Likewise.
80423         openat: declare in POSIX headers
80424         * NEWS: Mention this.
80425         * modules/openat (configure.ac): Declare witnesses.
80426         (Depends-on): Add fcntl-h, sys_stat, unistd.
80427         (Include): Mention correct headers.
80428         * modules/fcntl-h (Depends-on): Add link-warning.
80429         (Files): Add openat.m4.
80430         (Makefile.am): Substitute witnesses.
80431         * modules/sys_stat (Files, Makefile.am): Likewise.
80432         * modules/unistd (Files, Makefile.am): Likewise.
80433         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80434         (gl_OPENAT_DEFAULTS): New macro.
80435         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80437         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80438         (SYS_STAT_H): Remove unused variable.
80439         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80440         * lib/fcntl--.h (includes): Remove unneeded header.
80441         * lib/openat-safer.c (includes): Likewise.
80442         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80443         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80444         appropriate headers.
80445         (__OPENAT_PREFIX): Delete.
80446         * lib/fcntl.in.h (openat): Provide declaration.
80447         (AT_FDCWD): Fix Solaris bug.
80448         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80449         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80450         * lib/fchmodat.c (includes):  Adjust to find declaration.
80451         * lib/fchownat.c (includes): Likewise.
80452         * lib/mkdirat.c (includes): Likewise.
80453         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80454         still visible.
80456 2009-09-02  Eric Blake  <ebb9@byu.net>
80458         errno: use consistently
80459         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80460         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80461         * lib/canonicalize.c (ELOOP): Likewise.
80462         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80463         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80464         * lib/lchown.c (EOPNOTSUPP): Likewise.
80465         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80466         * lib/savewd.c (ESTALE): Likewise.
80467         * lib/settime.c (ENOSYS): Likewise.
80468         * lib/utimens.c (ENOSYS): Likewise.
80469         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80470         * lib/chdir-safer.c (ELOOP): Likewise.
80471         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80472         * modules/c-stack (Depends-on): Add errno.
80473         * modules/canonicalize (Depends-on): Likewise.
80474         * modules/chdir-safer (Depends-on): Likewise.
80475         * modules/fdopendir (Depends-on): Likewise.
80476         * modules/inet_ntop (Depends-on): Likewise.
80477         * modules/inet_pton (Depends-on): Likewise.
80478         * modules/lchown (Depends-on): Likewise.
80479         * modules/openat (Depends-on): Likewise.
80480         * modules/savewd (Depends-on): Likewise.
80481         * modules/settime (Depends-on): Likewise.
80482         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
80484         fts: avoid leaking fds
80485         * modules/fts (Depends-on): Add cloexec.
80486         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
80487         flag.
80489         fts: make directory fds more robust
80490         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
80491         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
80493         backupfile, chdir-long, fts, savedir: make safer
80494         * lib/backupfile.c (includes): Use "dirent--.h", since
80495         numbered_backup can write to stderr during readdir.
80496         * lib/savedir.c (includes): Likewise.
80497         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
80498         emulation can write to stderr on failure.
80499         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
80500         * lib/getcwd.c: Document why opendir_safer is unused.
80501         * lib/glob.c: Likewise.
80502         * lib/scandir.c: Likewise.
80503         * lib/openat-proc.c: Likewise, for open_safer.
80504         * modules/backupfile (Depends-on): Add dirent-safer.
80505         * modules/savedir (Depends-on): Likewise.
80506         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
80507         * modules/chdir-long (Depends-on): Add openat-safer.
80509         openat-safer: new module
80510         * modules/openat-safer: New file.
80511         * lib/openat-safer.c: Likewise.
80512         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
80513         * lib/fcntl-safer.h (openat_safer): Declare.
80514         * lib/fcntl--.h (openat): Override.
80515         * MODULES.html.sh (File descriptor based I/O): Mention it.
80516         * lib/openat.h: Add double-inclusion guards.
80517         * lib/openat.c (includes): Only include "fcntl-safer.h", not
80518         "fcntl--.h", so we can implement openat.
80519         * modules/openat-safer-tests: New test.
80520         * tests/test-openat-safer.c: New file.
80522         dirent-safer: new module
80523         * modules/dirent-safer: New file.
80524         * lib/dirent--.h: Likewise.
80525         * lib/dirent-safer.h: Likewise.
80526         * lib/opendir-safer.c: Likewise.
80527         * m4/dirent-safer.m4: Likewise.
80528         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
80529         * modules/dirent-safer-tests: New test.
80530         * tests/test-dirent-safer.c: New file.
80531         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
80533         fdopendir: optimize on mingw
80534         * lib/unistd.in.h (_gl_directory_name): New prototype.
80535         * lib/fchdir.c (_gl_directory_name): Implement it.
80536         (fchdir): Use it to simplify implementation.
80537         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
80538         fchdir, when available, to avoid calling [f]chdir().
80540         fdopendir: split into its own module
80541         * lib/openat.c (fdopendir): Move...
80542         * lib/fdopendir.c: ...into new file.
80543         * modules/fdopendir: New module.
80544         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
80545         * modules/openat (Depends-on): Add fdopendir.
80546         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
80547         fdopendir here.
80548         * modules/savedir (Depends-on): Only need fdopendir, not full
80549         openat.
80550         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
80551         * lib/openat.h (fdopendir): Drop prototype.
80552         * lib/dirent.in.h (fdopendir): Provide prototype.
80553         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
80554         * modules/dirent (Makefile.am): Substitute them.
80555         * MODULES.html.sh (File system functions): Mention it.
80556         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
80557         * modules/fdopendir-tests: New file.
80558         * tests/test-fdopendir.c: Likewise.
80560         fchdir: use more consistent macro convention
80561         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
80562         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
80563         REPLACE_FCHDIR, rather than relying on config.h macros.
80564         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
80565         inside a single make-time REPLACE_FCHDIR block, rather than using
80566         the config.h FCHDIR_REPLACEMENT.
80567         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
80568         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
80569         Manage fstat replacement.
80570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
80571         REPLACE_FCHDIR.
80572         * modules/sys_stat (Files): Add m4/unistd_h.m4.
80573         (Makefile.am): Substitute REPLACE_FCHDIR.
80574         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
80575         FCHDIR_REPLACEMENT.
80576         * lib/dup-safer.c (dup_safer): Likewise.
80577         * lib/dup2.c (rpl_dup2): Likewise.
80578         * lib/dup3.c (rpl_dup3): Likewise.
80579         * lib/open.c (rpl_open): Likewise.
80581         fchdir: simplify error handling, and support dup3
80582         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
80583         stdbool, malloc-posix, realloc-posix.
80584         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
80585         (ensure_dirs_slot): Return false on allocation failure.
80586         (rpl_dup2): Delete.
80587         (_gl_register_dup): New function.
80588         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
80589         (_gl_register_fd): Close fd on allocation failure.
80590         * lib/fcntl.in.h (_gl_register_fd): Update signature.
80591         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
80592         prototype.
80593         (rpl_dup2_fchdir): Delete prototype.
80594         * lib/open.c (open): Update caller.
80595         * lib/dup2.c (dup2): Track fchdir metadata.
80596         * lib/dup3.c (dup3): Likewise.
80597         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
80598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
80600 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80602         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
80603         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
80604         don't pass arguments to AC_OUTPUT.
80606 2009-09-02  Bruno Haible  <bruno@clisp.org>
80608         * modules/mkdtemp (License): Relicense under LGPLv2+.
80609         Reported by Paolo Bonzini.
80611 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80613         Replace uses of obsolete autoconf macros in Jim's modules.
80614         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80615         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80616         can evoke a warning from autoconf when run with -Wobsolete
80617         enabled.  They were declared obsolete for good reasons (see
80618         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
80619         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
80620         should not continue using the deprecated macros.
80621         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
80622         obsolete Autoconf macros with modern counterparts.
80623         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80624         * m4/dos.m4 (gl_AC_DOS): Likewise.
80625         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
80626         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
80627         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
80628         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
80629         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
80630         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
80631         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
80632         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
80633         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
80634         Likewise.
80635         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
80636         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80637         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
80638         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
80639         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
80640         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80642 2009-09-01  Eric Blake  <ebb9@byu.net>
80644         fchdir: fix off-by-one bug in previous patch
80645         * lib/fchdir.c (rpl_fstat): Use correct bounds.
80646         (_gl_unregister_fd): Delete useless if.
80648 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
80650         maint.mk: sort the list of syntax-check rules
80651         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
80652         easier to get a sense of progress when the rules are run sequentially
80653         and take a long time.
80655 2009-09-01  Simon Josefsson  <simon@josefsson.org>
80657         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
80658         * modules/netinet_in: Likewise.
80659         * modules/sys_file: Likewise.
80660         * modules/sys_ioctl: Likewise.
80661         * modules/sys_select: Likewise.
80662         * modules/sys_socket: Likewise.
80663         * modules/sys_stat: Likewise.
80664         * modules/sys_time: Likewise.
80665         * modules/sys_times: Likewise.
80666         * modules/sys_utsname: Likewise.
80667         * modules/sys_wait: Likewise.
80669 2009-09-01  Jim Meyering  <meyering@redhat.com>
80671         fts: help ensure that return values are not ignored
80672         * lib/fts_.h (__GNUC_PREREQ): Define.
80673         (__attribute_warn_unused_result__): Define.
80674         (fts_children, fts_close, fts_open, fts_read): Declare with
80675         __attribute_warn_unused_result__.
80677         fts: fts_close now fails also when closing a dir file descriptor fails
80678         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80679         and propagate to caller, along with errno.
80681         announce-gen: correct formatting in --help output
80682         * build-aux/announce-gen (usage): Move the one-line description in
80683         --help output "up", to where it belongs, just after Usage:.
80685 2009-08-31  Eric Blake  <ebb9@byu.net>
80687         fchdir: port to mingw
80688         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80689         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80690         opened, then use a substitute.
80691         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80692         replacement.
80693         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80694         (_gl_register_fd): No need to check stat if open already filters
80695         all directories.
80696         (fchdir): Fix error condition to match POSIX.
80697         * modules/fchdir (Depends-on): Add sys_stat.
80698         * doc/posix-functions/open.texi (open): Document the limitation.
80699         * modules/fchdir-tests: New file.
80700         * tests/test-fchdir.c: Likewise.
80702         canonicalize: allow cross-testing from cygwin to mingw
80703         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80704         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80705         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80706         Likewise.
80707         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80708         target does not support symlinks.
80709         * tests/test-canonicalize-lgpl.sh: Likewise.
80711         chown: avoid compilation warning on mingw
80712         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80713         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80714         mingw.
80715         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80716         * modules/chown (Depends-on): Add errno.
80718 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80720         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80721         command.
80723 2009-08-31  Jim Meyering  <meyering@redhat.com>
80725         canonicalize: remove useless initialization
80726         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80727         initialization of local, "end".
80729 2009-08-30  Bruno Haible  <bruno@clisp.org>
80731         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80732         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80733         ENOSYS.
80735 2009-08-30  Bruno Haible  <bruno@clisp.org>
80737         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80738         /usr/xpg4/bin/tr when it exists.
80739         * tests/test-pipe-filter-gi1.sh: Likewise.
80741 2009-08-30  Bruno Haible  <bruno@clisp.org>
80743         Work around deficient /usr/bin/id program on Solaris.
80744         * tests/test-file-has-acl.sh (ID): New variable.
80745         * tests/test-set-mode-acl.sh (ID): Likewise.
80746         * tests/test-copy-acl.sh (ID): Likewise.
80747         * tests/test-copy-file.sh (ID): Likewise.
80749 2009-08-30  Bruno Haible  <bruno@clisp.org>
80751         New module 'xstriconveh'.
80752         * lib/xstriconveh.h: New file.
80753         * lib/xstriconveh.c: New file.
80754         * modules/xstriconveh: New file.
80756 2009-08-30  Bruno Haible  <bruno@clisp.org>
80758         Make it easier to use mem_cd_iconveh.
80759         * lib/striconveh.h (iconveh_t): New type.
80760         (iconveh_open, iconveh_close): New declarations.
80761         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80762         with a single 'const iconveh_t *' argument.
80763         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80764         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80765         with a single 'const iconveh_t *' argument.
80766         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80767         * tests/test-striconveh.c (main): Update.
80768         * NEWS: Mention the change.
80770 2009-08-30  Bruno Haible  <bruno@clisp.org>
80772         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80773         problem.
80775 2009-08-30  Bruno Haible  <bruno@clisp.org>
80777         Work around iconv_open problem on Solaris.
80778         * lib/iconv_open-solaris.gperf: New file.
80779         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80780         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80781         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80782         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80783         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80784         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80786 2009-08-29  Jim Meyering  <meyering@redhat.com>
80788         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80789         * top/maint.mk (cvs-check): Remove target; it was just an alias
80790         to the better-named vc-diff-check.
80791         (maintainer-distcheck): Remove rule.  It was used only from
80792         the (alpha/beta/major) target, and all of its commands but one
80793         were coreutils-specific.
80794         (vc-dist): Remove rule.
80795         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80796         Run vc-diff-check, not vc-dist.
80797         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80799 2009-08-27  Bruno Haible  <bruno@clisp.org>
80801         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80802         of 0.
80804 2009-08-27  Bruno Haible  <bruno@clisp.org>
80806         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80807         compilers.
80808         * doc/func.texi: Document the SunPRO C bug.
80810 2009-08-27  Bruno Haible  <bruno@clisp.org>
80812         Fix link error on Solaris.
80813         * tests/test-parse-duration.c (xstrdup): Remove function.
80815 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80817         ignore-value: handle pointer types, too
80818         * lib/ignore-value.h (__attribute__): Remove definition.
80819         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80820         of a more concise and more-often effective "(void) i" statement.
80821         (ignore_ptr): New function to suppress warnings from functions that
80822         return pointers, and to make it explicit that one function doesn't
80823         handle all cases.
80825 2009-08-25  Bruno Haible  <bruno@clisp.org>
80827         dup2: work around a Linux bug.
80828         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80829         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80830         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80831         Reported by Simon Josefsson.
80833 2009-08-25  Jim Meyering  <meyering@redhat.com>
80835         libguestfs uses gnulib
80836         * users.txt: Add libguestfs.
80838 2009-08-24  Eric Blake  <ebb9@byu.net>
80840         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80841         * lib/pipe2.c (includes): Add binary-io.h.
80842         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80844 2009-08-24  Bruno Haible  <bruno@clisp.org>
80846         Tolerate declared but missing accept4 syscall.
80847         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80848         available.
80849         * lib/sys_socket.in.h (accept4): If the function is already present,
80850         override it.
80851         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80852         * modules/accept4 (Makefile.am): Compile accept4.c always.
80853         Reported by Paolo Bonzini and Eric Blake.
80855 2009-08-23  Bruno Haible  <bruno@clisp.org>
80857         New module 'accept4'.
80858         * lib/sys_socket.in.h (accept4): New declaration.
80859         * lib/accept4.c: New file.
80860         * m4/accept4.m4: New file.
80861         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80862         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80863         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80864         HAVE_ACCEPT4.
80865         * modules/accept4: New file.
80866         * doc/glibc-functions/accept4.texi: Mention the new module.
80868 2009-08-24  Jim Meyering  <meyering@redhat.com>
80870         progname: also set global program_invocation_name, when possible
80871         Before this change, a libtool-enabled program that calls glibc's
80872         error function would report the program name as
80873         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80874         * modules/progname (configure.ac): Check for a declaration of
80875         program_invocation_name.
80876         * lib/progname.c:  Include <errno.h>.
80877         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80878         Set program_invocation_name.
80880 2009-08-23  Bruno Haible  <bruno@clisp.org>
80882         * lib/dup3.c: Include <string.h>.
80884 2009-08-23  Bruno Haible  <bruno@clisp.org>
80886         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80887         * lib/pipe2.c (pipe2): Likewise.
80888         Suggested by Eric Blake.
80890 2009-08-23  Bruno Haible  <bruno@clisp.org>
80892         Tolerate declared but missing dup3 syscall.
80893         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80894         * lib/unistd.in.h (dup3): If the function is already present,
80895         override it.
80896         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80897         * modules/dup3 (Makefile.am): Compile dup3.c always.
80898         Reported by Paolo Bonzini.
80900 2009-08-23  Bruno Haible  <bruno@clisp.org>
80902         Tolerate declared but missing pipe2 syscall.
80903         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80904         available.
80905         * lib/unistd.in.h (pipe2): If the function is already present,
80906         override it.
80907         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80908         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80909         Reported by Paolo Bonzini.
80911 2009-08-23  Bruno Haible  <bruno@clisp.org>
80913         * lib/pipe2.c (pipe2): Move #ifs inside function.
80915 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80917         quotearg: document limitations of quote_these_too
80918         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80919         those limitations are created.
80920         * lib/quotearg.h (set_char_quoting): Document that digits and
80921         letters that are special after backslash are not permitted.
80922         (quotearg_char): Cross-reference set_char_quoting documentation.
80924 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80926         quotearg: implement custom_quoting_style
80927         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80928         right_quote fields.
80929         (set_custom_quoting): New public function.
80930         (quotearg_buffer_restyled): Add left_quote and right_quote
80931         arguments, handle them very much like locale quoting, and update
80932         all uses.
80933         (quotearg_n_custom): New public function.
80934         (quotearg_n_custom_mem): New public function.
80935         (quotearg_custom): New public function.
80936         (quotearg_custom_mem): New public function.
80937         * lib/quotearg.h: Prototype and document new public functions.
80938         (enum quoting_style): For escape_quoting_style and
80939         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80940         ignored even though they're otherwise like c_quoting_style.
80941         Add custom_quoting_style member and document with comparison to
80942         clocale_quoting_style.
80943         * tests/test-quotearg.c (custom_quotes): New array.
80944         (custom_results): New array.
80945         (main): Extend to test custom quoting.
80947 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80949         quotearg: fix right quote escaping when it's in quote_these_too
80950         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80951         quote, be sure to prepend only one backslash.
80952         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80953         (main): Test it.
80955 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80957         quotearg-tests: test escaping of embedded locale quotes
80958         * tests/test-quotearg.c (struct result_strings): Add member for
80959         new input.
80960         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80961         (inputs): Add new input.
80962         (results_g): Add expected results.
80963         (flag_results): Likewise.
80964         (locale_results): Likewise.
80965         (compare_strings): Check those.
80967 2009-08-23  Bruno Haible  <bruno@clisp.org>
80969         Tests for module 'dup3'.
80970         * modules/dup3-tests: New file.
80971         * tests/test-dup3.c: New file.
80973         New module 'dup3'.
80974         * lib/unistd.in.h (dup3): New declaration.
80975         * lib/dup3.c: New file.
80976         * m4/dup3.m4: New file.
80977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80978         HAVE_DUP3.
80979         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80980         * modules/dup3: New file.
80981         * doc/glibc-functions/dup3.texi: Mention the new module.
80983 2009-08-23  Bruno Haible  <bruno@clisp.org>
80985         Tweak the dup2 test.
80986         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80987         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80988         the test file is still empty. Fix argument order of lseek.
80990 2009-08-23  Bruno Haible  <bruno@clisp.org>
80992         Avoid test link errors when the modules getopt-gnu, gettext are used.
80993         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80996 2009-08-23  Bruno Haible  <bruno@clisp.org>
80998         Fix getdtablesize() on mingw.
80999         * lib/getdtablesize.c (getdtablesize): Implement differently.
81000         * lib/unistd.in.h (getdtablesize): Improve comment.
81002 2009-08-23  Bruno Haible  <bruno@clisp.org>
81004         New module 'mkostemp'.
81005         Based on Ulrich Drepper's 2007-08-10 change in glibc.
81006         * lib/stdlib.in.h (mksotemp): New declaration.
81007         * lib/mkostemp.c: New file, from glibc with modifications.
81008         * lib/tempname.h (GT_FILE): Remove outdated comment.
81009         (gen_tempname): Add flags argument.
81010         * lib/tempname.c (__GT_BIGFILE): Remove macro.
81011         (__GT_FILE): Map to 1.
81012         (small_open, large_open): Remove macros.
81013         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
81014         * lib/mkstemp.c (mkstemp): Update.
81015         * lib/mkdtemp.c (mkdtemp): Likewise.
81016         * m4/mkostemp.m4: New file.
81017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
81018         HAVE_MKOSTEMP.
81019         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
81020         HAVE_MKOSTEMP.
81021         * modules/mkostemp: New file, based on modules/mkstemp.
81022         * doc/glibc-functions/mkostemp.texi: Mention the new module.
81023         * NEWS: Mention the change.
81025 2009-08-23  Bruno Haible  <bruno@clisp.org>
81027         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
81028         Reported by Eric Blake.
81030 2009-08-23  Bruno Haible  <bruno@clisp.org>
81032         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
81033         Reported by Eric Blake.
81035 2009-08-23  Bruno Haible  <bruno@clisp.org>
81037         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
81038         * modules/pipe2 (Depends-on): Likewise.
81040 2009-08-23  Eric Blake  <ebb9@byu.net>
81042         fcntl-h: add O_TTY_INIT support
81043         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
81044         * tests/test-fcntl-h.c (o): Test it.
81045         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81047         fcntl-h: rename from fcntl, in preparation for fcntl(2)
81048         * modules/fcntl: Move <fcntl.h> header replacement...
81049         * modules/fcntl-h: ...to new name, so as not to collide with
81050         like-named function.
81051         * tests/test-fcntl.c: Rename...
81052         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
81053         * modules/fcntl-tests: Rename...
81054         * modules/fcntl-h-tests: ...to this.  Update test file name.
81055         * modules/chdir-long (Depends-on): Update clients.
81056         * modules/chdir-safer (Depends-on): Likewise.
81057         * modules/fcntl-safer (Depends-on): Likewise.
81058         * modules/fts (Depends-on): Likewise.
81059         * modules/mkancesdirs (Depends-on): Likewise.
81060         * modules/mkdir-p (Depends-on): Likewise.
81061         * modules/open (Depends-on): Likewise.
81062         * modules/savewd (Depends-on): Likewise.
81063         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
81064         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81066 2009-08-22  Bruno Haible  <bruno@clisp.org>
81068         * modules/binary-io (License): Relicense under LGPL.
81069         * modules/pipe2 (License): Likewise.
81071 2009-08-22  Bruno Haible  <bruno@clisp.org>
81073         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
81074         return value.
81075         * lib/pipe-filter-gi.c (filter_init): Likewise.
81076         Reported by Eric Blake.
81078 2009-08-22  Bruno Haible  <bruno@clisp.org>
81080         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
81081         * modules/pipe (Depends-on): Add pipe2.
81083 2009-08-22  Bruno Haible  <bruno@clisp.org>
81085         Tests for module 'pipe2'.
81086         * modules/pipe2-tests: New file.
81087         * tests/test-pipe2.c: New file.
81089         New module 'pipe2'.
81090         * lib/unistd.in.h (pipe2): New declaration.
81091         * lib/pipe2.c: New file.
81092         * m4/pipe2.m4: New file.
81093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
81094         HAVE_PIPE2.
81095         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
81096         * modules/pipe2: New file.
81097         * doc/glibc-functions/pipe2.texi: Mention the new module.
81099 2009-08-22  Bruno Haible  <bruno@clisp.org>
81101         Reference some new glibc functions.
81102         * doc/glibc-functions/accept4.texi: New file.
81103         * doc/glibc-functions/dup3.texi: New file.
81104         * doc/glibc-functions/mkostemp.texi: New file.
81105         * doc/glibc-functions/pipe2.texi: New file.
81106         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
81107         (Glibc sys/socket.h): Refer to accept4.
81108         (Glibc unistd.h): Refer to dup3, pipe2.
81109         Reported by Eric Blake.
81111 2009-08-22  Jim Meyering  <meyering@redhat.com>
81112             Bruno Haible  <bruno@clisp.org>
81114         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
81115         This makes it so packages using automake-1.11's silent-rules option
81116         can print e.g., a single "GEN    configmake.h" line, rather than
81117         the 30+ statements that perform the job.  If you want to see the
81118         actual commands, you can still run "make V=1".
81119         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81120         so that make output is abbreviated when those variables are defined
81121         appropriately.
81122         * modules/argz: Likewise.
81123         * modules/arpa_inet: Likewise.
81124         * modules/byteswap: Likewise.
81125         * modules/configmake: Likewise.
81126         * modules/dirent: Likewise.
81127         * modules/errno: Likewise.
81128         * modules/fcntl: Likewise.
81129         * modules/float: Likewise.
81130         * modules/fnmatch: Likewise.
81131         * modules/getopt-posix: Likewise.
81132         * modules/glob: Likewise.
81133         * modules/iconv_open: Likewise.
81134         * modules/inttypes: Likewise.
81135         * modules/localcharset: Likewise.
81136         * modules/locale: Likewise.
81137         * modules/math: Likewise.
81138         * modules/netdb: Likewise.
81139         * modules/netinet_in: Likewise.
81140         * modules/poll: Likewise.
81141         * modules/posix_spawnp-tests: Likewise.
81142         * modules/sched: Likewise.
81143         * modules/search: Likewise.
81144         * modules/selinux-h: Likewise.
81145         * modules/signal: Likewise.
81146         * modules/spawn: Likewise.
81147         * modules/stdarg: Likewise.
81148         * modules/stdbool: Likewise.
81149         * modules/stddef: Likewise.
81150         * modules/stdint: Likewise.
81151         * modules/stdio: Likewise.
81152         * modules/stdlib: Likewise.
81153         * modules/string: Likewise.
81154         * modules/strings: Likewise.
81155         * modules/sys_file: Likewise.
81156         * modules/sys_ioctl: Likewise.
81157         * modules/sys_select: Likewise.
81158         * modules/sys_socket: Likewise.
81159         * modules/sys_stat: Likewise.
81160         * modules/sys_time: Likewise.
81161         * modules/sys_times: Likewise.
81162         * modules/sys_utsname: Likewise.
81163         * modules/sys_wait: Likewise.
81164         * modules/sysexits: Likewise.
81165         * modules/time: Likewise.
81166         * modules/unistd: Likewise.
81167         * modules/wchar: Likewise.
81168         * modules/wctype: Likewise.
81170 2009-08-22  Jim Meyering  <meyering@redhat.com>
81172         announce-gen: detect write failure
81173         * build-aux/announce-gen: Add Coda at end.
81174         Remove equivalent-but-more-verbose block at top.
81176 2009-08-19  Akim Demaille  <demaille@gostai.com>
81178         bootstrap: --help to stdout.
81179         * bootstrap (usage): Don't send --help to stderr.
81180         Use a here doc instead of a long string.
81182 2009-08-21  Eric Blake  <ebb9@byu.net>
81184         test-popen-safer: split from test-popen
81185         * tests/test-popen.c (main): Move...
81186         * tests/test-popen.h: ...into new file.
81187         * tests/test-popen-safer2.c: New file.
81188         * modules/popen-tests (Files): Add test-popen.h.
81189         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
81190         Suggested by Bruno Haible.
81192         test-fcntl-safer: split from test-open
81193         * tests/test-open.c (main): Move...
81194         * tests/test-open.h: ...into new file.
81195         * tests/test-fcntl-safer.c: New file.
81196         * modules/open-tests (Files): Add test-open.h.
81197         * modules/fcntl-safer-tests: New file.
81198         Suggested by Bruno Haible.
81200         test-fopen-safer: split from test-fopen
81201         * tests/test-fopen.c (main): Move...
81202         * tests/test-fopen.h: ...into new file.
81203         * tests/test-fopen-safer.c: New file.
81204         * modules/fopen-tests (Files): Add test-fopen.h.
81205         * modules/fopen-safer-tests: New file.
81206         Suggested by Bruno Haible.
81208 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81210         popen-safer: test O_CLOEXEC at run-time.
81211         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
81213 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81215         fcntl: move more flags to the header
81216         * lib/cloexec.c: Do not define FD_CLOEXEC here.
81217         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
81218         * lib/fcntl.in.h: Do both things here.
81220 2009-08-21  Jim Meyering  <meyering@redhat.com>
81222         consistently remove $@-t before redirecting to it
81223         * modules/argz: Remove $@-t and $@ before redirecting to the former.
81224         * modules/alloca-opt: Likewise.
81225         * modules/byteswap: Likewise.
81226         * modules/fnmatch: Likewise.
81227         * modules/getopt-posix: Likewise.
81228         * modules/glob: Likewise.
81229         * modules/poll: Likewise.
81230         * modules/posix_spawnp-tests: Likewise.
81231         * modules/sys_socket: Likewise.
81232         * modules/sysexits: Likewise.
81234 2009-08-21  Eric Blake  <ebb9@byu.net>
81236         popen: simplify access to original popen
81237         * lib/popen.c (rpl_popen): No need to worry about popen being a
81238         macro.
81239         Reported by Bruno Haible.
81241 2009-08-20  Eric Blake  <ebb9@byu.net>
81243         build: avoid some compiler warnings
81244         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
81245         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
81246         type.
81247         (new_exclude_segment, excluded_file_pattern_p)
81248         (excluded_file_name_p): Reduce scope.
81249         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
81250         old-style declaration.
81252 2009-08-20  Simon Josefsson  <simon@josefsson.org>
81254         * tests/test-exclude1.sh: Handle Windows EOL.
81255         * tests/test-exclude2.sh: Likewise.
81256         * tests/test-exclude3.sh: Likewise.
81257         * tests/test-exclude4.sh: Likewise.
81258         * tests/test-exclude5.sh: Likewise.
81259         * tests/test-exclude6.sh: Likewise.
81260         * tests/test-exclude7.sh: Likewise.
81262 2009-08-19  Akim Demaille  <demaille@gostai.com>
81264         bootstrap: find sha1sum when named gsha1sum.
81265         * bootstrap (find_tool): New.
81266         ($SHA1SUM): New.
81267         Use it.
81269 2009-08-20  Jim Meyering  <meyering@redhat.com>
81271         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
81272         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
81273         expression that converts "." in a file name to "\." in the resulting
81274         regexp.  Start with a dummy statement, so that prior shell variable
81275         definitions are expanded portably.  Reported by Simon Josefsson.
81277 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
81279         Fix polling for writeability of a screen buffer.
81280         * lib/poll.c: Distinguish input and screen buffers for the
81281         Win32 implementation.
81282         * lib/select.c: Likewise.
81284 2009-08-19  Eric Blake  <ebb9@byu.net>
81286         popen-safer: prevent popen from clobbering std descriptors
81287         * modules/popen-safer: New file.
81288         * lib/popen-safer.c: Likewise.
81289         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
81290         * lib/stdio--.h (popen): Provide override.
81291         * lib/stdio-safer.h (popen_safer): Provide declaration.
81292         * tests/test-popen.c (includes): Partially test this.
81293         * modules/popen-safer-tests: New file, for more tests.
81294         * tests/test-popen-safer.c: Likewise.
81295         * MODULES.html.sh (file stream based Input/Output): Mention it.
81297         tests: test some of the *-safer modules
81298         * modules/fopen-safer (Depends-on): Add fopen.
81299         * modules/fcntl-safer (Depends-on): Add fcntl.
81300         * modules/stdlib-safer (Depends-on): Add stdlib.
81301         (configure.ac): Set indicator.
81302         * modules/unistd-safer (configure.ac): Likewise.
81303         * modules/tmpfile-safer (configure.ac): Likewise.
81304         (Depends-on): Add tmpfile.
81305         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
81306         active.
81307         * tests/test-fopen.c (includes): Test safer versions when they are
81308         in use.
81309         * tests/test-open.c (includes): Likewise.
81311         popen: fix cygwin 1.5 bug when stdin closed
81312         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
81313         * modules/popen: New file.
81314         * modules/popen-tests: Likewise.
81315         * tests/test-popen.c: Likewise.
81316         * m4/popen.m4: Likewise.
81317         * lib/popen.c: Likewise.
81318         * lib/stdio.in.h (popen): New declaration.
81319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
81320         * modules/stdio (Makefile.am): Likewise.
81321         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
81323 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
81325         maint.mk: give full control over update-copyright exclusions
81326         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
81327         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
81328         (update-copyright): Don't force inclusion of top-level
81329         ChangeLog.  Don't force exclusion of all COPYING files, but make
81330         them the default exclusion instead.
81332 2009-08-16  Bruno Haible  <bruno@clisp.org>
81334         Fix test failures on Solaris 10.
81335         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
81336         tests when Solaris iconv() is used.
81337         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81338         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81339         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81340         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81341         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81343 2009-08-16  Bruno Haible  <bruno@clisp.org>
81345         Fix test failures on Solaris 10.
81346         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
81347         'tr' program and pass it as first argument.
81348         * tests/test-pipe-filter-gi1.sh: Likewise.
81349         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
81350         program as first argument.
81351         * tests/test-pipe-filter-gi1.c (main): Likewise.
81353 2009-08-16  Eric Blake  <ebb9@byu.net>
81355         fpurge: fix previous commits
81356         * modules/fpurge (Makefile.am): Make replacement conditional,
81357         partially reverting 2007-04-29 change; missed in previous
81358         attempt.
81359         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
81360         is missing.
81362 2009-08-16  Bruno Haible  <bruno@clisp.org>
81364         Clarify fpurge's effect on the file position.
81365         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81366         * tests/test-fpurge.c (main): Make a second pass for checking the file
81367         position.
81369 2009-08-16  Bruno Haible  <bruno@clisp.org>
81371         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81372         declaration of fpurge is missing.
81373         * tests/test-fpurge.c (main): Check that the file has not more contents
81374         than expected. Close the file before removing it.
81376 2009-08-15  Eric Blake  <ebb9@byu.net>
81378         fpurge: don't wrap working cygwin implementation
81379         * lib/fpurge.c (fpurge): Fix comment typo.
81380         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81381         1.7 to avoid replacement.
81382         * tests/test-fpurge.c (main): Enhance test.
81384 2009-08-15  Eric Blake  <ebb9@byu.net>
81385         and Jim Meyering  <meyering@redhat.com>
81387         test-update-copyright: skip if perl is insufficient
81388         * tests/test-update-copyright.sh: Failure to run maintainer tool
81389         should not cause testsuite failure on cygwin 1.5.
81391 2009-08-14  Eric Blake  <ebb9@byu.net>
81393         doc: mention more functions added in cygwin 1.7.0
81394         * doc/posix-headers/limits.texi (limits.h): Update for recent
81395         cygwin additions.
81396         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81397         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81398         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81399         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81400         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81402 2009-08-14  Eric Blake  <ebb9@byu.net>
81404         maint.mk: simplify update-copyright rule
81405         * top/maint.mk (update-copyright-local): Delete, and document how
81406         to do it in cfg.mk instead.
81407         (update-copyright-exclude-regexp): Delete, and document how to do
81408         it in .x-update-copyright instead.
81409         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81410         exclude ChangeLog.
81412 2009-08-14  Bruno Haible  <bruno@clisp.org>
81414         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81416 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81418         maint.mk: support update-copyright-env
81419         * top/maint.mk (update-copyright-env): Define place-holder.
81420         (update-copyright): Expand $(update-copyright-env) before
81421         invoking update-copyright.
81423 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81425         update-copyright: implement forced reformatting
81426         * build-aux/update-copyright: Implement and document
81427         UPDATE_COPYRIGHT_FORCE.
81428         * tests/test-update-copyright.sh: Test it.
81430 2009-08-14  Eric Blake  <ebb9@byu.net>
81431         and Bruno Haible  <bruno@clisp.org>
81433         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81434         * tests/test-locale.c: Revert previous patch related to NULL.
81435         * tests/test-stdio.c: Likewise.
81436         * tests/test-stdlib.c: Likewise.
81437         * tests/test-string.c: Likewise.
81438         * tests/test-unistd.c: Likewise.
81439         * modules/time-tests (Depends-on): Add verify.
81440         * modules/wchar-tests (Depends-on): Likewise.
81441         * tests/test-time.c: Test for NULL compliance.
81442         * tests/test-wchar.c: Likewise.
81443         * modules/locale (Depends-on): Add stddef.
81444         * modules/stdio (Depends-on): Likewise.
81445         * modules/stdlib (Depends-on): Likewise.
81446         * modules/string (Depends-on): Likewise.
81447         * modules/time (Depends-on): Likewise.
81448         * modules/unistd (Depends-on): Likewise.
81449         * modules/wchar (Depends-on): Likewise.
81450         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81451         * lib/stdlib.in.h (includes): Likewise.
81452         * lib/string.in.h (includes): Likewise.
81453         * lib/time.in.h (includes): Likewise.
81454         * lib/unistd.in.h (includes): Likewise.
81455         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81456         replaced.
81457         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81458         * m4/stddef_h.m4: New file.
81459         * modules/stddef: Likewise.
81460         * lib/stddef.in.h: Likewise.
81461         * modules/stddef-tests: Likewise.
81462         * tests/test-stddef.c: Likewise.
81463         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81464         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81465         * doc/posix-headers/locale.texi (locale.h): Likewise.
81466         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81467         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81468         * doc/posix-headers/string.texi (string.h): Likewise.
81469         * doc/posix-headers/time.texi (time.h): Likewise.
81470         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81471         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
81473 2009-08-14  Eric Blake  <ebb9@byu.net>
81475         doc: improve git diff of texinfo files
81476         * .gitattributes: Add rule for *.texi files, with hint on how to
81477         use it.
81478         Copied from m4, and based on a report by Bruno Haible.
81480 2009-08-14  Bruno Haible  <bruno@clisp.org>
81482         Disable multithread support by default on Cygwin 1.5.x for real.
81483         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
81485 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81487         update-copyright: much ado about intervals
81488         * build-aux/update-copyright: Implement and document
81489         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
81490         of copyright year intervals.
81491         Also, document UPDATE_COPYRIGHT_YEAR.
81492         * tests/test-update-copyright.sh: Test it.
81494         update-copyright: convert 2-digit to 4-digit years
81495         * build-aux/update-copyright: Implement and document.
81496         * tests/test-update-copyright.sh: Update.
81498 2009-08-14  Jim Meyering  <meyering@redhat.com>
81500         test-exclude: avoid coreutils "make check" failure
81501         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
81502         just as in test-argmatch.c.
81504 2009-08-13  Eric Blake  <ebb9@byu.net>
81506         test-dup2: fix bad assumption
81507         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
81508         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
81510         test-version-etc: fix CRLF portability issue
81511         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
81512         recognize \r.
81513         * tests/test-argp-version-etc-1.sh: Likewise.
81515         getopt: update client modules
81516         * modules/argp (Depends-on): Use getopt-gnu.
81517         * modules/git-merge-changelog (Depends-on): Likewise.
81518         * modules/long-options (Depends-on): Likewise.
81519         * modules/xstrtol (Depends-on): Likewise.
81521 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81523         * tests/test-version-etc.sh: Don't fail on different
81524         project/version.  Don't fail on CRLF differences.  Rewrite to use
81525         multiple -e instead of multiple sed forks, suggested by Eric Blake
81526         <ebb9@byu.net>.
81527         * tests/test-argp-version-etc-1.sh: Likewise.
81529 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81531         * tests/test-version-etc.sh: Don't fail on different
81532         project/version.
81534 2009-08-12  Bruno Haible  <bruno@clisp.org>
81536         Tests for modules 'getopt-posix', 'getopt-gnu'.
81537         * modules/getopt-posix-tests: New file.
81538         * tests/test-getopt.c: New file.
81539         * tests/test-getopt.h: New file.
81540         * tests/test-getopt_long.h: New file.
81542         New modules 'getopt-posix', 'getopt-gnu'.
81543         * modules/getopt-gnu: New file, renamed from modules/getopt.
81544         * modules/getopt-posix: New file.
81545         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
81546         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
81547         (gl_GETOPT): Remove macro.
81548         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
81549         Disable the test against BSD systems that declare optreset. Test
81550         against mingw bug. Test against lack of support of optional arguments
81551         on many platforms.
81552         * doc/glibc-headers/getopt.texi: Update module name and list of
81553         relevant platforms.
81554         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
81555         'getopt-gnu' and more portability problems.
81556         * NEWS: Mention the changes.
81558 2009-08-12  Bruno Haible  <bruno@clisp.org>
81560         Ensure that optarg etc. get declared by <unistd.h>.
81561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
81562         AC_USE_SYSTEM_EXTENSIONS.
81563         * modules/getopt (Depends-on): Add 'extensions'.
81565 2009-08-12  Bruno Haible  <bruno@clisp.org>
81567         Avoid test link errors.
81568         * modules/pipe-filter-ii-tests (Makefile.am): Define
81569         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
81570         * modules/pipe-filter-gi-tests (Makefile.am): Define
81571         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
81572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81574 2009-08-12  Bruno Haible  <bruno@clisp.org>
81576         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
81577         gl_GETOPT_SUBSTITUTE before.
81578         (gl_GETOPT): Use it.
81579         * m4/argp.m4 (gl_ARGP): Update.
81580         Reported by Sergey Poznyakoff.
81582         * m4/getopt.m4: Reorder macros.
81583         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
81584         (gl_GETOPT_SUBSTITUTE): Remove macro.
81586 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81588         Minor improvement in gitlog-to-changelog
81590         * build-aux/gitlog-to-changelog: New option `--format' makes
81591         output format string configurable.
81593 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81595         Optimize exclude: use hash tables for non-wildcard patterns.
81597         * lib/exclude.c: Include hash.h and mbuiter.h
81598         (struct exclude_pattern, exclude_segment): New data types.
81599         (struct exclude): Rewrite.
81600         (fnmatch_pattern_has_wildcards): New function.
81601         (new_exclude_segment, free_exclude_segment): New functions.
81602         (excluded_file_pattern_p, excluded_file_name_p): New functions.
81603         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
81604         * lib/exclude.h (is_fnmatch_pattern): New prototype.
81605         * modules/exclude: Depend on hash and mbuiter.
81607         * modules/exclude-tests: New file.
81608         * tests/test-exclude.c: New file.
81609         * tests/test-exclude1.sh: New file.
81610         * tests/test-exclude2.sh: New file.
81611         * tests/test-exclude3.sh: New file.
81612         * tests/test-exclude4.sh: New file.
81613         * tests/test-exclude5.sh: New file.
81614         * tests/test-exclude6.sh: New file.
81615         * tests/test-exclude7.sh: New file.
81617 2009-08-12  Bruno Haible  <bruno@clisp.org>
81619         Ensure that getopt() gets declared by <unistd.h>.
81620         * lib/unistd.in.h: Conditionally include getopt.h.
81621         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
81622         Set GNULIB_UNISTD_H_GETOPT.
81623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81624         GNULIB_UNISTD_H_GETOPT.
81625         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
81627 2009-08-12  Bruno Haible  <bruno@clisp.org>
81629         Clarify logic.
81630         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
81631         gl_replace_getopt instead of GETOPT_H.
81633 2009-08-12  Bruno Haible  <bruno@clisp.org>
81635         * m4/getopt.m4: Add comments.
81637 2009-08-12  Bruno Haible  <bruno@clisp.org>
81639         Disable multithread support by default on Cygwin 1.5.x.
81640         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
81641         set gl_use_threads=no if not specified otherwise.
81643 2009-08-11  Bruno Haible  <bruno@clisp.org>
81645         Avoid compilation error on NetBSD 5.0.
81646         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
81647         * tests/test-stdio.c: Likewise.
81648         * tests/test-stdlib.c: Likewise.
81649         * tests/test-string.c: Likewise.
81650         * tests/test-unistd.c: Likewise.
81651         Reported by Greg Troxel <gdt@ir.bbn.com>
81652         at <https://savannah.gnu.org/support/?106973>.
81654 2009-08-11  Bruno Haible  <bruno@clisp.org>
81656         * modules/dup2-tests (Depends-on): Remove close.
81658         Undo 2009-07-19 commit.
81659         * modules/acl-tests (Depends-on): Remove close.
81660         * modules/binary-io-tests (Depends-on): Likewise.
81661         * modules/closein-tests (Depends-on): Likewise.
81662         * modules/flock-tests (Depends-on): Likewise.
81663         * modules/fsync-tests (Depends-on): Likewise.
81664         * modules/lseek-tests (Depends-on): Likewise.
81665         * modules/pipe-tests (Depends-on): Likewise.
81666         * modules/posix_spawn-tests (Depends-on): Likewise.
81667         * modules/posix_spawnp-tests (Depends-on): Likewise.
81668         * modules/stat-time-tests (Depends-on): Likewise.
81669         * modules/yesno-tests (Depends-on): Likewise.
81671 2009-08-10  Bruno Haible  <bruno@clisp.org>
81673         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
81675 2009-08-10  Bruno Haible  <bruno@clisp.org>
81677         Fix a gcc warning.
81678         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
81680 2009-08-10  Bruno Haible  <bruno@clisp.org>
81682         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81683         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81684         not only the first time.
81685         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81686         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81687         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81688         is 1, not only the first time.
81690 2009-08-10  Bruno Haible  <bruno@clisp.org>
81692         Make it possible to use module 'gethostname' without module 'close'.
81693         * lib/unistd.in.h (close): Evoke a link error only if
81694         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81696         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81697         * modules/unistd (Makefile.am): Substitute
81698         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81699         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81700         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81701         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81702         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81703         * modules/sys_ioctl (Makefile.am): Substitute
81704         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81705         * modules/socket (configure.ac): On native Windows, set
81706         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81707         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81708         Reported by Sam Steingold <sds@gnu.org>.
81710 2009-08-10  Bruno Haible  <bruno@clisp.org>
81712         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81713         * modules/ioctl (configure.ac): Likewise.
81715 2009-08-10  Bruno Haible  <bruno@clisp.org>
81717         Avoid collision between gnulib wrapper and libintl wrapper.
81718         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81719         already defined in intl/printf.c.
81720         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81721         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81723 2009-08-09  Bruno Haible  <bruno@clisp.org>
81725         Make <sys/select.h> really self-contained, also on Solaris 10.
81726         * lib/sys_select.in.h: Include <string.h>.
81727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81728         Solaris 10 problem.
81729         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81730         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81731         Reported by Jim Meyering.
81733 2009-08-09  Bruno Haible  <bruno@clisp.org>
81735         Avoid warnings from 'aclocal' that are due to a use of macro name
81736         AM_XGETTEXT_OPTION that is not defined in automake.
81737         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81738         automake.
81739         * modules/error (configure.ac): Likewise.
81740         * modules/propername (configure.ac): Likewise.
81741         * modules/vasprintf (configure.ac): Likewise.
81742         * modules/verror (configure.ac): Likewise.
81743         * modules/xprintf (configure.ac): Likewise.
81744         * modules/xvasprintf (configure.ac): Likewise.
81746 2009-08-08  Bruno Haible  <bruno@clisp.org>
81748         Avoid compilation error in C++ mode.
81749         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81750         Reported by Sam Steingold <sds@gnu.org>.
81752 2009-08-08  Bruno Haible  <bruno@clisp.org>
81754         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81755         for the various Unix platforms.
81756         * doc/posix-headers/limits.texi: Update platforms list regarding
81757         HOST_NAME_MAX.
81758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81760 2009-08-07  Jim Meyering  <meyering@redhat.com>
81762         selinux-at: fix typo in a comment
81763         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81764         Spotted by Paolo Bonzini.
81766         selinux-at: remove redundant m4 code, add documentation
81767         * modules/selinux-at (configure.ac): Remove redundant code.
81768         LIB_SELINUX is already set via the dependent module, selinux-h.
81769         (Include): Add quotes around selinux-at.h.
81770         * lib/selinux-at.h: Add documentation.
81771         Reported by Bruno Haible in
81772         http://marc.info/?l=gnulib-bug&m=124958988300749
81774 2009-08-07  Bruno Haible  <bruno@clisp.org>
81776         Avoid link error on MacOS X 10.3 and 10.4.
81777         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81778         on non-ELF systems.
81779         * lib/argp-pv.c (argp_program_version): Likewise.
81780         Reported by Simon Josefsson.
81782 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81784         * tests/test-version-etc.sh: Use $EXEEXT.
81786 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81788         update-copyright: update documentation to point to maint.mk
81789         * build-aux/update-copyright: Here.
81791 2009-08-06  Jim Meyering  <meyering@redhat.com>
81793         maint.mk: support update-copyright-local
81794         * top/maint.mk (update-copyright-local): Define place-holder.
81795         (update-copyright): Depend on $(update-copyright-local).
81797 2009-08-06  Jim Meyering  <meyering@redhat.com>
81799         selinux-at: new module
81800         Initially written for coreutils, this module will soon be
81801         used by findutils, too.
81802         * MODULES.html.sh [Misc]: Add selinux-at.
81803         * lib/selinux-at.h: New file, from coreutils.
81804         * lib/selinux-at.c: Likewise.
81805         * modules/selinux-at: Likewise.
81806         (License): Change from LGPL to GPL, since it depends
81807         on the GPL'd openat module.
81809         doc: update README
81810         * README: Remove references to cogito.
81811         Remove cvs-repo-updating instructions from 2007.
81812         Don't imply that CVS is better if you have limited disk space.
81814 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81816         update-copyright: support C-style comments
81817         * build-aux/update-copyright: Implement and document.
81818         * tests/test-update-copyright.sh: Test.
81820 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81822         update-copyright: support omitted "(C)"
81823         * build-aux/update-copyright: Implement and document.  Also,
81824         allow variable whitespace before "(C)".
81825         * tests/test-update-copyright.sh: Test.
81827 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81829         update-copyright: don't trip on non-FSF copyright statements
81830         * build-aux/update-copyright: Fix so that the first correctly
81831         formatted FSF copyright statement is recognized no matter what
81832         appears before it.  Update documentation.
81833         * tests/test-update-copyright.sh: Test that.
81835 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81837         update-copyright: clean up code a little
81838         * build-aux/update-copyright: Append "_re" to the name of any
81839         variable holding a regular expression.
81840         Replace "old" and "new" with "stmt" in variable names.
81841         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81842         handled correctly.
81843         Format code more consistently.
81845 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81847         update-copyright-tests: improve portability
81848         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81849         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81851 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81853         update-copyright: support @copyright{} and &copy;
81854         * build-aux/update-copyright: Implement and document.
81855         * tests/test-update-copyright.sh: Test.
81857 2009-08-04  Jim Meyering  <meyering@redhat.com>
81859         update-copyright-tests: correctly test EOL=\r\n handling
81860         * tests/test-update-copyright.sh: Put \r at the end of some lines
81861         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81863         maint.mk: make update-copyright exclusion list more configurable
81864         * top/maint.mk (update-copyright): Default to excluding COPYING,
81865         but allow an override, in case someone does want to update that file.
81867         maint.mk: don't update copyright date in COPYING
81868         * top/maint.mk (update-copyright): Exclude COPYING.
81870         maint.mk: add a copyright-updating rule
81871         * top/maint.mk (update-copyright): New rule.
81872         Derived from coreutils/Makefile.am.
81874         update-copyright: rename some variables
81875         * build-aux/update-copyright: Rename a few variables for clarity.
81876         Tweak syntax.  List Joel E. Denny as coauthor.
81878 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81880         update-copyright: fix bug for 2-digit last year and add tests
81881         * build-aux/update-copyright: Fix bug.
81882         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81883         specified.
81884         * modules/update-copyright-tests: New
81885         * tests/test-update-copyright.sh: New.
81887 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81889         update-copyright: handle leading tabs in line prefix
81890         * build-aux/update-copyright: Count leading tabs as 8 spaces
81891         when computing margin.  This helps with the formatting of
81892         ChangeLogs, for example.
81893         Fix documentation a little.
81895 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81897         update-copyright: support EOL=\r\n
81898         * build-aux/update-copyright: Implement that.
81900 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81902         update-copyright: automatically format copyright statements
81903         * build-aux/update-copyright: Implement that.
81904         Also, be a little more predictable and safer by always failing
81905         when the full copyright format is not perfectly recognized as an
81906         unbroken whole.  Discussed at
81907         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81908         Rewrite documentation.
81910 2009-08-03  Bruno Haible  <bruno@clisp.org>
81912         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81914 2009-08-02  Bruno Haible  <bruno@clisp.org>
81916         Tests for module 'uname'.
81917         * modules/uname-tests: New file.
81918         * tests/test-uname.c: New file.
81920         New module 'uname'.
81921         * lib/uname.c: New file.
81922         * m4/uname.m4: New file.
81923         * modules/uname: New file.
81924         * doc/posix-functions/uname.texi: Mention the new module.
81926 2009-08-02  Bruno Haible  <bruno@clisp.org>
81928         Tests for module 'sys_utsname'.
81929         * modules/sys_utsname-tests: New file.
81930         * tests/test-sys_utsname.c: New file.
81932         New module 'sys_utsname'.
81933         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81934         * m4/sys_utsname_h.m4: New file.
81935         * modules/sys_utsname: New file.
81936         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81938 2009-08-02  Bruno Haible  <bruno@clisp.org>
81940         Implicitly initialize the sockets library.
81941         * lib/gethostname.c: Include sockets.h.
81942         (rpl_gethostname): Invoke gl_sockets_startup.
81943         * lib/socket.c: Include sockets.h.
81944         (rpl_socket): Invoke gl_sockets_startup.
81945         * modules/gethostname (Depends-on): Add sockets.
81946         * modules/socket (Depends-on): Likewise.
81947         * tests/test-poll.c: Don't include sockets.h.
81948         (main): Don't invoke gl_sockets_startup.
81949         * tests/test-select.c: Don't include sockets.h.
81950         (main): Don't invoke gl_sockets_startup.
81952 2009-08-02  Bruno Haible  <bruno@clisp.org>
81954         Allow multiple calls to gl_sockets_startup.
81955         * lib/sockets.c (initialized_sockets_version): New variable.
81956         (gl_sockets_startup): Do nothing if already called for this or a higher
81957         version.
81958         (gl_sockets_cleanup): Reset initialized_sockets_version.
81960 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81962         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81963         different project/version.
81965 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81966             Bruno Haible  <bruno@clisp.org>
81968         Tests for module 'pipe-filter-gi'.
81969         * modules/pipe-filter-gi-tests: New file.
81970         * tests/test-pipe-filter-gi1.sh: New file.
81971         * tests/test-pipe-filter-gi1.c: New file.
81972         * tests/test-pipe-filter-gi2.sh: New file.
81973         * tests/test-pipe-filter-gi2-main.c: New file.
81974         * tests/test-pipe-filter-gi2-child.c: New file.
81976         New module 'pipe-filter-gi'.
81977         * lib/pipe-filter-gi.c: New file.
81978         * modules/pipe-filter-gi: New file.
81980 2009-08-02  Bruno Haible  <bruno@clisp.org>
81981             Paolo Bonzini  <bonzini@gnu.org>
81983         Tests for module 'pipe-filter-ii'.
81984         * modules/pipe-filter-ii-tests: New file.
81985         * tests/test-pipe-filter-ii1.sh: New file.
81986         * tests/test-pipe-filter-ii1.c: New file.
81987         * tests/test-pipe-filter-ii2.sh: New file.
81988         * tests/test-pipe-filter-ii2-main.c: New file.
81989         * tests/test-pipe-filter-ii2-child.c: New file.
81991         New module 'pipe-filter-ii'.
81992         * lib/pipe-filter.h: New file.
81993         * lib/pipe-filter-ii.c: New file.
81994         * lib/pipe-filter-aux.h: New file.
81995         * modules/pipe-filter-ii: New file.
81997 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81999         * lib/gc-libgcrypt.c: Change copyright to FSF.
82000         * lib/gc-gnulib.c: Likewise.
82002 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
82004         * lib/gethostname.c: Include limits.h.
82006 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82007             Bruno Haible  <bruno@clisp.org>
82009         Ensure HOST_NAME_MAX as part of the gethostname module.
82010         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
82011         define also HOST_NAME_MAX.
82012         * tests/test-gethostname.c: Include <limits.h>.
82013         (main): Check also HOST_NAME_MAX.
82014         * doc/posix-headers/limits.texi: Document the mingw problem.
82016 2009-08-02  Bruno Haible  <bruno@clisp.org>
82018         * lib/gethostname.c (gethostname): Fix handling of large len argument.
82019         Add comments.
82021 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82023         * lib/gethostname.c: Add Windows wrapper.
82024         * m4/gethostname.m4: Look for gethostname in -lws2_32.
82025         * modules/gethostname: Depend on sys_socket & errno, for also
82026         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
82027         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
82029 2009-07-31  Jim Meyering  <meyering@redhat.com>
82031         getloadavg: fix symbol name in comment
82032         * lib/getloadavg.c: Correct a typo I introduced when adding
82033         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
82034         Matt Kraai spotted the problem.
82036 2009-07-29  Matt Kraai  <mkraai@beckman.com>
82038         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
82039         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
82040         code also if ! defined N_NAME_POINTER.
82041         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
82042         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
82043         but the n_name member is a 12-byte array.
82045 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
82047         update-copyright: generalize comment handling
82048         * build-aux/update-copyright: Handle copyright statements
82049         within more comment styles.
82050         Document usage.
82051         Report any file with an external copyright holder or parse failure.
82053 2009-07-29  Jim Meyering  <meyering@redhat.com>
82055         mktime: correct setting of REPLACE_MKTIME
82056         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
82058         update-copyright: new module
82059         * modules/update-copyright: New file.
82060         * build-aux/update-copyright: New file.
82061         * MODULES.html.sh (maint+release support): Add update-copyright.
82063 2009-07-27  Bruno Haible  <bruno@clisp.org>
82065         Fix compilation error when <ctime> is used and mktime is replaced.
82066         * lib/time.in.h (mktime): New declaration.
82067         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
82068         REPLACE_MKTIME instead of defining mktime in config.h.
82069         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
82070         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
82071         Reported by Ross McFarland <rwmcfa1@neces.com>.
82073 2009-07-27  Bruno Haible  <bruno@clisp.org>
82075         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
82076         Reported by Matt Kraai <mkraai@beckman.com>.
82078 2009-07-25  Jim Meyering  <meyering@redhat.com>
82080         maint.mk: avoid warnings about missing files
82081         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
82082         diagnostic when .prev-version does not exist.
82083         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
82084         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
82085         nonexistent cfg.mk.
82086         Suggestions from Simon Josefsson.
82088 2009-07-25  Bruno Haible  <bruno@clisp.org>
82090         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
82091         defined as macros. Needed on QNX 6.4.1.
82092         Reported by Matt Kraai <mkraai@beckman.com>.
82094 2009-07-23  Jim Meyering  <meyering@redhat.com>
82096         maint.mk: invoke "make dist" with a working value of XZ_OPT
82097         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
82099 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
82101         Make fseeko.c compile on QNX.
82102         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
82104 2009-07-22  Peter Simons  <simons@cryp.to>
82106         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
82107         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
82108         * lib/md4.h: Likewise.
82109         * lib/md5.h: Likewise.
82110         * lib/sha1.h: Likewise.
82111         * lib/sha256.h: Likewise.
82112         * lib/sha512.h: Likewise.
82114         tests-sha1: don't assign literal string to 'char *' variable
82115         * tests/test-sha1.c (main): Declare locals with "const" to match
82116         attributes of the right hand side.
82118 2009-07-21  Eric Blake  <ebb9@byu.net>
82120         dup2: fix more mingw problems
82121         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
82122         fd to itself.
82123         * doc/posix-functions/dup2.texi (dup2): Document the bug.
82124         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
82125         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
82126         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
82127         care of mingw bugs.
82129 2009-07-21  Jim Meyering  <meyering@redhat.com>
82131         vc-list-files: avoid failure when /bin/sh is dash
82132         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
82133         On some Debian based systems, /bin/sh is a symlink to dash, and running
82134         this command would omit the "/" following each 'tests' prefix:
82135           dash -x build-aux/vc-list-files -C . tests
82136         That is because bash and dash work differently:
82137           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
82138           bash ok
82139           dash odd
82141 2009-07-21  Eric Blake  <ebb9@byu.net>
82143         dup2-tests: test previous patch
82144         * modules/dup2-tests: New file.
82145         * tests/test-dup2.c: Likewise.
82146         * tests/test-open.c (main): Avoid unspecified behavior.
82147         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
82148         test.
82150         dup2: work around mingw and cygwin 1.5 bug
82151         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
82152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
82153         * modules/unistd (Makefile.am): Substitute it.
82154         * lib/unistd.in.h (dup2): Declare the replacement.
82155         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
82156         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
82157         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
82158         * modules/execute (Depends-on): Add dup2.
82159         * modules/fseterr (Depends-on): Likewise.
82160         * modules/pipe (Depends-on): Likewise.
82161         * modules/posix_spawn-internal (Depends-on): Likewise.
82163 2009-07-21  Bruno Haible  <bruno@clisp.org>
82165         * modules/.gitattributes: New file.
82167 2009-07-20  Bruno Haible  <bruno@clisp.org>
82169         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
82170         (main): Use it.
82172 2009-07-20  Eric Blake  <ebb9@byu.net>
82174         test-pipe: make a bit more robust.
82175         * tests/test-pipe.c (myerr): Allow error messages regardless of
82176         what we do to stderr.
82177         (test_pipe): Rearrange to avoid deadlock.
82178         (child_main): Try a larger read, to ensure we avoided deadlock.
82179         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
82180         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
82181         if misused.
82183 2009-07-19  Jim Meyering  <meyering@redhat.com>
82185         fts: avoid false-positive cycle-detection
82186         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
82187         for each new command line argument.
82189 2009-07-19  Bruno Haible  <bruno@clisp.org>
82191         Fix build error on mingw with the modules sys_select and unistd.
82192         * modules/acl-tests (Depends-on): Add close.
82193         * modules/binary-io-tests (Depends-on): Likewise.
82194         * modules/closein-tests (Depends-on): Likewise.
82195         * modules/flock-tests (Depends-on): Likewise.
82196         * modules/fsync-tests (Depends-on): Likewise.
82197         * modules/lseek-tests (Depends-on): Likewise.
82198         * modules/pipe-tests (Depends-on): Likewise.
82199         * modules/posix_spawn-tests (Depends-on): Likewise.
82200         * modules/posix_spawnp-tests (Depends-on): Likewise.
82201         * modules/stat-time-tests (Depends-on): Likewise.
82202         * modules/yesno-tests (Depends-on): Likewise.
82204 2009-07-19  Bruno Haible  <bruno@clisp.org>
82206         Unify conditionals.
82207         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
82208         macros, not at the compiler macros.
82209         * lib/pipe.c: Likewise.
82210         * lib/execute.c: Likewise.
82211         * lib/spawni.c: Likewise.
82213 2009-07-19  Bruno Haible  <bruno@clisp.org>
82215         Fix handling of closed stdin/stdout/stderr on mingw.
82216         * lib/w32spawn.h: Include unistd.h.
82217         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
82218         file descriptor with O_NOINHERIT flag.
82219         (fd_safer_noinherit): New function, based on fd-safer.c.
82220         (dup_safer_noinherit): New function, based on dup-safer.c.
82221         (undup_safer_noinherit): New function.
82222         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
82223         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
82224         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
82225         instead of fd_safer.
82226         * tests/test-pipe.c: Include <windows.h>.
82227         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
82228         result.
82230         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
82231         from main.
82232         (test_pipe): Pass an extra argument for disambiguation.
82233         (main): Invoke parent_main or child_main.
82235         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
82236         consistently.
82238 2009-07-18  Eric Blake  <ebb9@byu.net>
82240         test-pipe: fix mingw build
82241         * tests/test-pipe.c (main): Avoid fcntl on mingw.
82243 2009-07-18  Bruno Haible  <bruno@clisp.org>
82245         * modules/pipe-tests (Makefile.am): Fix typo.
82247 2009-07-18  Eric Blake  <ebb9@byu.net>
82249         error: fix mingw build
82250         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
82251         Reported by Bruno Haible.
82253         error: avoid undefined use of stdout
82254         * lib/error.c (error, error_at_line): Check that fd 1 is open
82255         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
82256         is handling faults and the close_stdout module wants to report the
82257         detection of closed stdout as an error.
82259 2009-07-17  Eric Blake  <ebb9@byu.net>
82261         pipe: be robust in face of closed fds
82262         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
82263         should cause child to misbehave.
82264         * modules/pipe-tests: New module.
82265         * tests/test-pipe.c: New file.
82266         * tests/test-pipe.sh: New file.
82267         Reported by Akim Demaille.
82269 2009-07-14  Bruno Haible  <bruno@clisp.org>
82271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
82272         Reported by anonymous kc.
82274 2009-07-07  Jim Meyering  <meyering@redhat.com>
82276         maint.mk: don't look for translatable strings in *.m4 or *.mk
82277         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
82278         when searching for translatable strings.
82280 2009-07-05  Jim Meyering  <meyering@redhat.com>
82282         remove superfluous parentheses in STREQ definition
82283         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
82284         * lib/getugroups.c (STREQ): Likewise.
82285         * lib/fnmatch.c (STREQ): Likewise.
82286         Spotted by Bruno Haible.
82288 2009-07-04  Jim Meyering  <meyering@redhat.com>
82290         argv-iter: new module
82291         * MODULES.html.sh: Add argv-iter.
82292         * lib/argv-iter.c, lib/argv-iter.h: New files.
82293         * modules/argv-iter: New file.
82294         * modules/argv-iter-tests: New file.
82295         * tests/test-argv-iter.c: Test it.
82297 2009-07-04  Bruno Haible  <bruno@clisp.org>
82299         Fix assertion.
82300         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
82301         contains more exact copies of a given entry than file2, leave the extra
82302         copies unpaired rather than aborting.
82303         Reported by Eric Blake.
82305 2009-07-02  Bruno Haible  <bruno@clisp.org>
82307         Speedup git-merge-changelog for git cherry-pick.
82308         * lib/git-merge-changelog.c (struct entries_mapping): New type.
82309         (entries_mapping_get): New function, extracted from compute_mapping.
82310         (entries_mapping_reverse_get): New function.
82311         (compute_mapping): Add a 'full' argument. Return the result in a
82312         'struct entries_mapping'.
82313         (main): Update. Access the mappings through entries_mapping_get.
82314         Reported by Eric Blake.
82316 2009-07-02  Bruno Haible  <bruno@clisp.org>
82318         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
82319         best_i.
82321 2009-07-02  Bruno Haible  <bruno@clisp.org>
82323         Speed up approximate search for matching ChangeLog entries.
82324         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
82325         argument. Call fstrcmp_bounded instead of fstrcmp.
82326         (compute_mapping, try_split_merged_entry, main): Update callers.
82328 2009-07-02  Bruno Haible  <bruno@clisp.org>
82330         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
82332 2009-06-30  Bruno Haible  <bruno@clisp.org>
82334         Reduce the number of uc_is_cased calls.
82335         * lib/unicase.h (casing_suffix_context_t): Add
82336         'first_char_except_ignorable' field.
82337         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
82338         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
82339         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
82340         Update initializer.
82341         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
82342         case-ignorable characters.
82343         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
82344         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
82345         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
82346         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
82347         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
82349 2009-06-30  Bruno Haible  <bruno@clisp.org>
82351         Tests for module 'unicase/ignorable'.
82352         * modules/unicase/ignorable-tests: New file.
82353         * tests/unicase/test-ignorable.c: New file, generated by
82354         gen-uni-tables.
82356         Tests for module 'unicase/cased'.
82357         * modules/unicase/cased-tests: New file.
82358         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
82359         * tests/unicase/test-predicate-part1.h: New file, derived from
82360         tests/unictype/test-predicate-part1.h.
82361         * tests/unicase/test-predicate-part2.h: New file, same as
82362         tests/unictype/test-predicate-part2.h.
82364         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82365         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82366         (output_casing_properties): New function.
82367         (main): Call it.
82368         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82369         * lib/unicase/cased.c: Include unictype/bitmap.h.
82370         (uc_is_cased): Define through a bitmap lookup.
82371         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82372         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82373         (uc_is_case_ignorable): Define through a bitmap lookup.
82374         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82375         lib/unictype/bitmap.h.
82376         (Depends-on): Add inline. Clean up.
82377         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82378         lib/unictype/bitmap.h.
82379         (Depends-on): Add inline. Clean up.
82380         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82381         recognition.
82382         * tests/unicase/test-u16-tolower.c (main): Likewise.
82383         * tests/unicase/test-u32-tolower.c (main): Likewise.
82385 2009-06-30  Bruno Haible  <bruno@clisp.org>
82387         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82388         * lib/unicase/u16-casemap.c: Likewise.
82389         * lib/unicase/u32-casemap.c: Likewise.
82391 2009-06-29  Bruno Haible  <bruno@clisp.org>
82393         Define u32_casefold as a wrapper around u32_ct_casefold.
82394         * lib/unicase/u32-casefold.c: Update.
82395         * modules/unicase/u32-casefold (Depends-on): Add
82396         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82397         unicase/empty-suffix-context. Clean up.
82399         Define u16_casefold as a wrapper around u16_ct_casefold.
82400         * lib/unicase/u16-casefold.c: Update.
82401         * modules/unicase/u16-casefold (Depends-on): Add
82402         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82403         unicase/empty-suffix-context. Clean up.
82405         Define u8_casefold as a wrapper around u8_ct_casefold.
82406         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82407         * lib/unicase/u8-casefold.c: Update.
82408         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82409         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82411         Define u32_totitle as a wrapper around u32_ct_totitle.
82412         * lib/unicase/u32-totitle.c: Update.
82413         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82414         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82416         Define u16_totitle as a wrapper around u16_ct_totitle.
82417         * lib/unicase/u16-totitle.c: Update.
82418         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82419         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82421         Define u8_totitle as a wrapper around u8_ct_totitle.
82422         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82423         functions.
82424         (FUNC): Delegate to U_CT_TOTITLE.
82425         * lib/unicase/u8-totitle.c: Update.
82426         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82427         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82429         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82430         invocation.
82431         * modules/unicase/u32-tolower (Depends-on): Add
82432         unicase/empty-prefix-context, unicase/empty-suffix-context.
82434         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82435         invocation.
82436         * modules/unicase/u16-tolower (Depends-on): Add
82437         unicase/empty-prefix-context, unicase/empty-suffix-context.
82439         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82440         * modules/unicase/u8-tolower (Depends-on): Add
82441         unicase/empty-prefix-context, unicase/empty-suffix-context.
82443         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82444         invocation.
82445         * modules/unicase/u32-toupper (Depends-on): Add
82446         unicase/empty-prefix-context, unicase/empty-suffix-context.
82448         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82449         invocation.
82450         * modules/unicase/u16-toupper (Depends-on): Add
82451         unicase/empty-prefix-context, unicase/empty-suffix-context.
82453         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82454         * modules/unicase/u8-toupper (Depends-on): Add
82455         unicase/empty-prefix-context, unicase/empty-suffix-context.
82457         New module 'unicase/u32-ct-casefold'.
82458         * lib/unicase/u32-ct-casefold.c: New file.
82459         * modules/unicase/u32-ct-casefold: New file.
82461         New module 'unicase/u16-ct-casefold'.
82462         * lib/unicase/u16-ct-casefold.c: New file.
82463         * modules/unicase/u16-ct-casefold: New file.
82465         New module 'unicase/u8-ct-casefold'.
82466         * lib/unicase/u8-ct-casefold.c: New file.
82467         * lib/unicase/u-ct-casefold.h: New file, derived from
82468         lib/unicase/u-casefold.h.
82469         * modules/unicase/u8-ct-casefold: New file.
82471         New module 'unicase/u32-ct-totitle'.
82472         * lib/unicase/u32-ct-totitle.c: New file.
82473         * modules/unicase/u32-ct-totitle: New file.
82475         New module 'unicase/u16-ct-totitle'.
82476         * lib/unicase/u16-ct-totitle.c: New file.
82477         * modules/unicase/u16-ct-totitle: New file.
82479         New module 'unicase/u8-ct-totitle'.
82480         * lib/unicase/u8-ct-totitle.c: New file.
82481         * lib/unicase/u-ct-totitle.h: New file, derived from
82482         lib/unicase/u-totitle.h.
82483         * modules/unicase/u8-ct-totitle: New file.
82485         New module 'unicase/u32-ct-tolower'.
82486         * lib/unicase/u32-ct-tolower.c: New file.
82487         * modules/unicase/u32-ct-tolower: New file.
82489         New module 'unicase/u16-ct-tolower'.
82490         * lib/unicase/u16-ct-tolower.c: New file.
82491         * modules/unicase/u16-ct-tolower: New file.
82493         New module 'unicase/u8-ct-tolower'.
82494         * lib/unicase/u8-ct-tolower.c: New file.
82495         * modules/unicase/u8-ct-tolower: New file.
82497         New module 'unicase/u32-ct-toupper'.
82498         * lib/unicase/u32-ct-toupper.c: New file.
82499         * modules/unicase/u32-ct-toupper: New file.
82501         New module 'unicase/u16-ct-toupper'.
82502         * lib/unicase/u16-ct-toupper.c: New file.
82503         * modules/unicase/u16-ct-toupper: New file.
82505         New module 'unicase/u8-ct-toupper'.
82506         * lib/unicase/u8-ct-toupper.c: New file.
82507         * modules/unicase/u8-ct-toupper: New file.
82509         Add context arguments to u*_casemap functions.
82510         * lib/unicase/unicasemap.h: Include unicase.h.
82511         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
82512         suffix_context arguments.
82513         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
82514         functions.
82515         (FUNC): Add prefix_context and suffix_context arguments. Use
82516         uc_is_cased and uc_is_case_ignorable.
82517         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
82518         * lib/unicase/u16-casemap.c: Likewise.
82519         * lib/unicase/u32-casemap.c: Likewise.
82520         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
82521         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82522         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
82523         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82524         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
82525         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82527         New module 'unicase/u32-suffix-context'.
82528         * lib/unicase/u32-suffix-context.c: New file.
82529         * modules/unicase/u32-suffix-context: New file.
82531         New module 'unicase/u16-suffix-context'.
82532         * lib/unicase/u16-suffix-context.c: New file.
82533         * modules/unicase/u16-suffix-context: New file.
82535         New module 'unicase/u8-suffix-context'.
82536         * lib/unicase/u8-suffix-context.c: New file.
82537         * lib/unicase/u-suffix-context.h: New file.
82538         * modules/unicase/u8-suffix-context: New file.
82540         New module 'unicase/empty-suffix-context'.
82541         * lib/unicase/empty-suffix-context.c: New file.
82542         * modules/unicase/empty-suffix-context: New file.
82544         New module 'unicase/u32-prefix-context'.
82545         * lib/unicase/u32-prefix-context.c: New file.
82546         * modules/unicase/u32-prefix-context: New file.
82548         New module 'unicase/u16-prefix-context'.
82549         * lib/unicase/u16-prefix-context.c: New file.
82550         * modules/unicase/u16-prefix-context: New file.
82552         New module 'unicase/u8-prefix-context'.
82553         * lib/unicase/u8-prefix-context.c: New file.
82554         * lib/unicase/u-prefix-context.h: New file.
82555         * lib/unicase/context.h: New file.
82556         * modules/unicase/u8-prefix-context: New file.
82558         New module 'unicase/empty-prefix-context'.
82559         * lib/unicase/empty-prefix-context.c: New file.
82560         * modules/unicase/empty-prefix-context: New file.
82562         New module 'unicase/ignorable'.
82563         * lib/unicase/ignorable.c: New file.
82564         * modules/unicase/ignorable: New file.
82566         New module 'unicase/cased'.
82567         * lib/unicase/caseprop.h: New file.
82568         * lib/unicase/cased.c: New file.
82569         * modules/unicase/cased: New file.
82571         New functions for case mapping of substrings.
82572         * lib/unicase.h (casing_prefix_context_t): New type.
82573         (unicase_empty_prefix_context): New variable.
82574         (u8_casing_prefix_context, u16_casing_prefix_context,
82575         u32_casing_prefix_context, u8_casing_prefixes_context,
82576         u16_casing_prefixes_context, u32_casing_prefixes_context): New
82577         declarations.
82578         (casing_suffix_context_t): New type.
82579         (unicase_empty_suffix_context): New variable.
82580         (u8_casing_suffix_context, u16_casing_suffix_context,
82581         u32_casing_suffix_context, u8_casing_suffixes_context,
82582         u16_casing_suffixes_context, u32_casing_suffixes_context,
82583         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
82584         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
82585         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
82586         declarations.
82588 2009-06-28  Jim Meyering  <meyering@redhat.com>
82590         boostrap: indent only with spaces
82591         * build-aux/bootstrap: Indent only with spaces, never TABs.
82593         bootstrap: split long lines
82594         * build-aux/bootstrap: Keep line length < 80.
82596         bootstrap: sync from coreutils
82597         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
82598         just as autoreconf does.  Verify a list of prerequisite
82599         package-name,version-number pairs if defined in bootstrap.conf.
82600         Refer to README-prereq, if prerequisites are not satisfied.
82602 2009-06-27  Eric Blake  <ebb9@byu.net>
82604         tests: add test for bogus NULL definition
82605         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
82606         * tests/test-stdlib.c: Likewise.
82607         * tests/test-string.c: Likewise.
82608         * tests/test-locale.c: Likewise.
82609         * tests/test-unistd.c: Likewise.
82610         * modules/stdio-tests (Depends-on): Add verify.
82611         * modules/stdlib-tests (Depends-on): Likewise.
82612         * modules/string-tests (Depends-on): Likewise.
82613         * modules/locale-tests (Depends-on): Likewise.
82614         * modules/unistd-tests (Depends-on): Likewise.
82616 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
82618         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
82619         self-explaining comment.
82620         * m4/selinux-selinux-h: Update serial.
82621         (gl_LIBSELINUX): New macro, adding a warning for missing development
82622         packages to code extracted from...
82623         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
82624         Add warning for missing development packages here, too.
82626 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
82628         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
82630 2009-06-25  Eric Blake  <ebb9@byu.net>
82632         version-etc: fix regression
82633         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
82634         gcc.
82635         (version_etc): Use it, to catch bugs with trailing NULL.
82636         * lib/version-etc.c (version_etc_arn): Delete unused argument.
82637         (version_etc_va): Fix logic bug.
82638         * modules/version-etc-tests: Add test.
82639         * tests/test-version-etc.c: New file.
82640         * tests/test-version-etc.sh: Likewise.
82642 2009-06-25  Sam Steingold  <sds@gnu.org>
82644         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
82645         mbtowc declaration.
82647 2009-06-25  Eric Blake  <ebb9@byu.net>
82649         fpurge: migrate into <stdio.h>
82650         * lib/fpurge.h: Delete...
82651         * lib/stdio.in.h (fpurge): ...and declare here, instead.
82652         * lib/fpurge.c (fpurge): Change declaring header.
82653         * modules/fpurge (Files): Drop deleted file.
82654         (Depends-on): Add stdio.
82655         (configure.ac): Set witness.
82656         * modules/stdio (Makefile.am): Support fpurge macros.
82657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82658         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
82659         * lib/fflush.c: Update client.
82660         * tests/test-fpurge.c: Likewise.
82661         * NEWS: Mention the change.
82663 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82665         * lib/argp-version-etc.c (program_authors): Add const
82666         qualifier.
82667         * lib/version-etc.c: Fix typos in the comments.
82668         * modules/argp-version-etc: Depends on version-etc.
82670 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82672         argp-version-etc: new module.
82674         * lib/argp-version-etc.c: New file.
82675         * lib/argp-version-etc.h: New file.
82676         * modules/argp-version-etc: New file.
82677         * modules/argp-version-etc-tests: New file.
82678         * tests/test-argp-version-etc.c: New test.
82679         * tests/test-argp-version-etc-1.sh: New test.
82681 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82683         Provide additional interfaces and documentation for version-etc
82684         module.
82686         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82687         interfaces.
82688         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82689         prototypes.
82691 2009-06-24  Bruno Haible  <bruno@clisp.org>
82693         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82694         HAVE_LIB${NAME} macro.
82695         Reported by Sam Steingold <sds@gnu.org>.
82697 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82699         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82700         needed.
82702 2009-06-21  Bruno Haible  <bruno@clisp.org>
82704         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82705         work.
82706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82707         together with LIB${NAME}, LTLIB${NAME}.
82708         Reported by Sam Steingold <sds@gnu.org>.
82710 2009-06-20  Jim Meyering  <meyering@redhat.com>
82712         tests: make sc_require_test_exit_idiom more generic
82713         * top/maint.mk (Exit_witness_file): New overridable variable.
82714         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82715         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82717 2009-06-19  Jim Meyering  <meyering@redhat.com>
82719         hash: reverse order of src/dst parameters in an internal interface
82720         * lib/hash.c (transfer_entries): Reverse order of parameters to
82721         put DST before SRC.  Adjust callers.
82723         tests: test-hash: avoid wholesale duplication
82724         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82725         Instead, use a loop and add a single conditional.
82727         tests: test-hash: allow seed selection via a command line argument
82728         * tests/test-hash.c (get_seed): New function.
82729         (main): Use it.
82731 2009-06-19  Eric Blake  <ebb9@byu.net>
82733         hash: avoid memory leak on allocation failure
82734         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82735         failure.  Factor repeated algorithm...
82736         (transfer_entries): ...into new helper routine.
82737         (hash_delete): React to hash_rehash return value.
82739         hash: reduce memory pressure in hash_rehash no-op case
82740         * lib/hash.c (next_prime): Avoid overflow.
82741         (hash_initialize): Factor bucket size computation...
82742         (compute_bucket_size): ...into new helper function.
82743         (hash_rehash): Use new function and open coding to reduce memory
82744         pressure, and avoid a memory leak in USE_OBSTACK code.
82745         Reported by Jim Meyering.
82747 2009-06-18  Eric Blake  <ebb9@byu.net>
82749         hash: make rotation more obvious
82750         * modules/hash (Depends-on): Add bitrotate and stdint.
82751         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82752         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82753         (SIZE_MAX): Rely on headers for definition.
82754         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82755         (raw_hasher): Use rotr_sz.
82756         Suggested by Jim Meyering.
82758         hash: fix memory leak in last patch
82759         * lib/hash.c (hash_rehash): Avoid memory leak.
82761         hash: avoid no-op rehashing
82762         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82764         hash: provide default callback functions
82765         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82766         (hash_initialize): Use them as defaults.
82767         * tests/test-hash.c (main): Test this.
82769         hash: minor optimization
82770         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82771         when possible.
82772         (hash_initialize): Document this promise.
82773         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82774         * tests/test-hash.c (hash_compare_strings): Test this.
82776 2009-06-18  Bruno Haible  <bruno@clisp.org>
82778         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82779         going to be replaced anyway.
82781 2009-06-18  Bruno Haible  <bruno@clisp.org>
82783         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82784         in one place.
82785         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82786         be replaced anyway.
82788 2009-06-18  Eric Blake  <ebb9@byu.net>
82790         hash: check for resize before insertion
82791         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82792         threshold before insertion, so that a pathological hash_rehash
82793         that fills every bucket can still trigger another rehash.
82795 2009-06-18  Jim Meyering  <meyering@redhat.com>
82797         hash-tests: add a loop around the small tests
82798         * tests/test-hash.c (main): Repeat small tests with selected
82799         small initial table sizes.
82801 2009-06-17  Eric Blake  <ebb9@byu.net>
82803         hash: minor cleanups
82804         * lib/hash.h (hash_entry): Make opaque, by moving...
82805         * lib/hash.c (hash_entry): ...here.
82806         (hash_insert): Clarify restrictions on what can be inserted.
82807         (hash_get_next): Clarify when it is safe to remove an element
82808         during traversal.
82809         (check_tuning): Skip verification when tuning is known safe.
82810         (hash_initialize): Clarify restrictions on tuning.
82812 2009-06-17  Jim Meyering  <jim@meyering.net>
82813         and Eric Blake  <ebb9@byu.net>
82815         hash-tests: new module
82816         * modules/hash-tests: New file.
82817         * tests/test-hash.c: New file.
82819 2009-06-17  Eric Blake  <ebb9@byu.net>
82821         strstr-simple: document new module
82822         * MODULES.html.sh: Document new module.
82824         strstr, strcasestr: replace on platforms with broken memchr
82825         * modules/strstr: Split into...
82826         * modules/strstr-simple: ...new module that does not care about
82827         performance, but does care about glibc bug.
82828         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82829         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82830         if platform memchr is broken, per Debian bug 521737.
82831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82832         memchr.
82833         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82834         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82835         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82836         * modules/mountlist (Depends-on): Add strstr-simple.
82837         * modules/gen-uni-tables (Depends-on): Likewise.
82838         * modules/argz (Depends-on): Add strstr.
82840 2009-06-17  Bruno Haible  <bruno@clisp.org>
82842         * modules/posix_spawn-internal (Depends-on): Add errno.
82844 2009-06-17  Bruno Haible  <bruno@clisp.org>
82846         Define missing ESTALE on Interix 3.5.
82847         * lib/errno.in.h (ESTALE): Assign a value if missing.
82848         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82849         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82850         missing.
82851         * doc/posix-headers/errno.texi: Mention the Interix bug.
82852         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82854 2009-06-15  Eric Blake  <ebb9@byu.net>
82856         memchr, memchr2: add valgrind exception
82857         * lib/memchr.valgrind: New file.
82858         * lib/memchr2.valgrind: New file.
82859         * modules/memchr (Files): Distribute valgrind file.
82860         * modules/memchr2 (Files): Likewise.
82862         docs: memchr is no longer obsolete
82863         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82864         * lib/string.in.h (memchr): Simplify logic.
82866 2009-06-14  Jim Meyering  <meyering@redhat.com>
82868         link-follow: fix the "checking..." message to not mention trailing slash
82869         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82870         never considered trailing slashes.
82872 2009-06-14  Bruno Haible  <bruno@clisp.org>
82874         * m4/memchr.m4: Mention also the bug on IA-64.
82875         * doc/posix-functions/memchr.texi: Likewise.
82877 2009-06-12  Eric Blake  <ebb9@byu.net>
82879         memchr: detect broken x86_64 and alpha implementations
82880         * modules/memchr-tests (Depends-on): Move mmap detection...
82881         * modules/memchr (Depends-on): ...here.
82882         (configure.ac): Set indicator.
82883         * lib/string.in.h (memchr): Declare replacement.
82884         * modules/string (Makefile.am): Trigger replacement.
82885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82886         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82887         bugs.
82888         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82889         * modules/getpagesize (License): Relax license.
82891 2009-06-11  Bruno Haible  <bruno@clisp.org>
82893         * lib/idpriv.h: Add more references.
82895 2009-06-08  Bruno Haible  <bruno@clisp.org>
82897         Tests for module 'idpriv-droptemp'.
82898         * modules/idpriv-droptemp-tests: New file.
82899         * tests/test-idpriv-droptemp.sh: New file.
82900         * tests/test-idpriv-droptemp.su.sh: New file.
82901         * tests/test-idpriv-droptemp.c: New file.
82903         New module 'idpriv-droptemp'.
82904         * lib/idpriv-droptemp.c: New file.
82905         * modules/idpriv-droptemp: New file.
82907 2009-06-08  Bruno Haible  <bruno@clisp.org>
82909         Tests for module 'idpriv-drop'.
82910         * modules/idpriv-drop-tests: New file.
82911         * tests/test-idpriv-drop.sh: New file.
82912         * tests/test-idpriv-drop.su.sh: New file.
82913         * tests/test-idpriv-drop.c: New file.
82915         New module 'idpriv-drop'.
82916         * lib/idpriv.h: New file.
82917         * lib-idpriv-drop.c: New file.
82918         * m4/idpriv.m4: New file.
82919         * modules/idpriv-drop: New file.
82921 2009-06-08  Bruno Haible  <bruno@clisp.org>
82923         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82924         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82925         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82926         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82927         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82928         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82929         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82931 2009-06-08  Eric Blake  <ebb9@byu.net>
82933         test-strstr: use memory fence, when possible
82934         * tests/test-strstr.c (main): Use memory fence, in order to be
82935         more likely to trigger Debian bug 521737.
82936         * modules/strstr-tests (Files): Pull in additional files.
82938         memchr: no longer obsolete, for wider field testing
82939         * modules/memchr (Status, Notice): Delete, this module is no
82940         longer obsolete.
82941         * modules/vasnprintf (Depends-on): Add memchr.
82943 2009-06-07  Jim Meyering  <meyering@redhat.com>
82945         hash: declare some functions with the warn_unused_result attribute
82946         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82948 2009-06-07  Bruno Haible  <bruno@clisp.org>
82950         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82951         Reported by Eric Blake.
82953 2009-06-06  Eric Blake  <ebb9@byu.net>
82955         test-alignof: fix typo with long double
82956         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82957         compiler error.
82959 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82961         Escape non-texinfo { and }s.
82962         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82963         markup error.
82965 2009-06-04  Jim Meyering  <meyering@redhat.com>
82967         gitlog-to-changelog: don't infloop on an empty commit log
82968         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82969         Reported by Boris Petersen <transacid@centerim.org>.
82971 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82973         version-etc: extend for packagers
82974         Add three new configure options, intended for packagers:
82975           --with-packager="packager name"
82976           --with-packager-version="packager-specific version"
82977           --with-packager-bug-reports="packager bug reporting"
82978         An example with coreutils:
82979           $ ./configure \
82980             --with-packager=Gentoo \
82981             --with-packager-bug-report=http://bugs.gentoo.org/ \
82982             --with-packager-version="patchset 1.6"
82983           $ ./src/ls --version | head -n2
82984           ls (GNU coreutils) 7.1-dirty
82985           Packaged by Gentoo (patchset 1.6)
82986         Note that the bug reporting info via --help doesn't show up because
82987         coreutils uses its own custom emit_bug_reporting_address() implementation
82988         in src/system.h.  If it didn't, it'd look like:
82989           $ ./src/ls --help | tail -n4
82990           Report bugs to <bug-coreutils@gnu.org>.
82991           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82992           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82993           General help using GNU software: <http://www.gnu.org/gethelp/>.
82994         * lib/version-etc.c: Print new information, if provided.
82995         * m4/version-etc.m4: New file.
82996         * modules/version-etc (Files): Add m4/version-etc.m4.
82997         (configure.ac): Add gl_VERSION_ETC.
82999 2009-05-31  Bruno Haible  <bruno@clisp.org>
83001         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
83002         and 'int64_t'.
83003         * modules/alignof-tests (Dependencies): Add stdint.
83004         Reported by Eric Blake.
83006 2009-05-31  Bruno Haible  <bruno@clisp.org>
83008         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
83009         restriction due to compiler bugs.
83010         Reported by Eric Blake.
83012 2009-05-31  Simon Josefsson  <simon@josefsson.org>
83013             Bruno Haible  <bruno@clisp.org>
83015         Fix test-alignof failure.
83016         * lib/alignof.h (alignof_slot): New macro.
83017         (alignof_type): New macro, with the same semantics as the previous
83018         'alignof'.
83019         (alignof): Alias to alignof_slot.
83020         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
83021         check that the results are usable as constant expressions.
83023 2009-05-31  Bruno Haible  <bruno@clisp.org>
83025         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
83026         * tests/test-memchr.c (main): Check that memchr does not read past the
83027         first occurrence of the byte.
83028         * tests/test-strstr.c (main): Update comment.
83029         Suggested by Eric Blake.
83031 2009-05-30  Bruno Haible  <bruno@clisp.org>
83033         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
83034         detail how to use dumpbin.
83035         Reported by David Byron <dbyron@dbyron.com>.
83037 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83039         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
83041 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83043         * m4/manywarnings.m4: Add GCC 4.4 warnings.
83045 2009-05-28  Bruno Haible  <bruno@clisp.org>
83047         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
83048         build-aux/ files.
83050 2009-05-28  Simon Josefsson  <simon@josefsson.org>
83052         * gnulib-tool (func_import): Transform license on build-aux/ files too.
83054 2009-05-27  Simon Josefsson  <simon@josefsson.org>
83056         * gnulib-tool (sed_transform_main_lib_file)
83057         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
83058         regexps.
83060 2009-05-26  Simon Josefsson  <simon@josefsson.org>
83062         * tests/test-strstr.c: Add another self-test.
83063         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
83064         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
83066 2009-05-23  Bruno Haible  <bruno@clisp.org>
83068         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
83069         change.
83071 2009-05-21  Bruno Haible  <bruno@clisp.org>
83073         Simplify use of mode_t varargs.
83074         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
83075         uses 'mode_t' or 'int'.
83076         * lib/openat.c (openat): Likewise.
83077         * lib/open-safer.c (open_safer): Likewise.
83078         * m4/mode_t.m4: New file.
83079         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
83080         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
83081         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
83082         * modules/open (Files): Add m4/mode_t.m4.
83083         * modules/openat (Files): Likewise.
83084         * modules/fcntl-safer (Files): Likewise.
83085         Suggested by Eric Blake.
83087 2009-05-21  Pádraig Brady  <P@draigbrady.com>
83089         * doc/glibc-functions/fallocate.texi: New file.
83090         * doc/gnulib.texi: Include it.
83092 2009-05-21  Eric Blake  <ebb9@byu.net>
83093             Bruno Haible  <bruno@clisp.org>
83095         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
83096         invocations.
83097         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83099 2009-05-21  Eric Blake  <ebb9@byu.net>
83100             Bruno Haible  <bruno@clisp.org>
83102         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
83103         include_next. Fix of 2008-11-20 commit.
83104         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
83105         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
83106         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
83107         NEXT_MATH_H.
83108         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
83109         instead of NEXT_MATH_H.
83111 2009-05-21  Bruno Haible  <bruno@clisp.org>
83113         Avoid redefinition warnings for SIZE_MAX.
83114         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
83115         Reported by Simon Josefsson.
83117 2009-05-21  Bruno Haible  <bruno@clisp.org>
83119         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
83120         AC_CACHE_VAL.
83122 2009-05-20  Bruno Haible  <bruno@clisp.org>
83124         Make zeroptr.h work on mingw.
83125         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
83126         mprotect.
83127         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
83128         * modules/memchr2-tests (configure.ac): Likewise.
83129         * modules/memcmp-tests (configure.ac): Likewise.
83130         * modules/memmem-tests (configure.ac): Likewise.
83131         * modules/memrchr-tests (configure.ac): Likewise.
83132         Reported by Simon Josefsson.
83134 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83136         * tests/test-glob.c: Include string.h for strcmp prototype.
83138 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83140         * modules/getdelim (Depends-on): Add explicit stdint, although it
83141         was implicitly already pulled in via realloc-posix.
83142         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
83144 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83146         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
83147         G. Christensen" <tgc@jupiterrise.com>.
83148         * m4/sys_socket_h.m4: Check for sa_family_t.
83149         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
83150         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
83151         * tests/test-sys_socket.c: Check that sa_family_t works.
83153 2009-05-18  Eric Blake  <ebb9@byu.net>
83155         maint.mk: allow gnulib_dir in VPATH build
83156         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
83158 2009-05-15  Jim Meyering  <meyering@redhat.com>
83160         maint.mk: Give gnulib_dir a default definition.
83161         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
83162         Thus, most packages no longer need to specify this variable in cfg.mk
83164 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
83166         rename.m4: fix typos that would make non-mingw cross-configure fail
83167         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
83169 2009-05-13  Eric Blake  <ebb9@byu.net>
83171         mmap-anon: avoid out-of-order autoconf expansion
83172         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
83173         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
83174         * modules/memchr-tests (Depends-on): Add extensions.
83175         * modules/memchr2-tests (Depends-on): Add extensions.
83176         * modules/memcmp-tests (Depends-on): Add extensions.
83177         * modules/memmem-tests (Depends-on): Add extensions.
83178         * modules/memrchr-tests (Depends-on): Add extensions.
83180 2009-05-13  Bruno Haible  <bruno@clisp.org>
83182         Make some tests ISO C 99 compliant.
83183         * tests/zerosize-ptr.h: New file.
83184         * tests/test-memchr.c: Include zerosize-ptr.h.
83185         (main): Use a zero-size object pointer instead of NULL.
83186         * tests/test-memchr2.c: Include zerosize-ptr.h.
83187         (main): Use a zero-size object pointer instead of NULL.
83188         * tests/test-memcmp.c: Include zerosize-ptr.h.
83189         (main): Use a zero-size object pointer instead of NULL.
83190         * tests/test-memmem.c: Include zerosize-ptr.h.
83191         (main): Use a zero-size object pointer instead of NULL.
83192         * tests/test-memrchr.c: Include zerosize-ptr.h.
83193         (main): Use a zero-size object pointer instead of NULL.
83194         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83195         m4/mmap-anon.m4.
83196         (Depends-on): Add getpagesize.
83197         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83198         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
83199         m4/mmap-anon.m4.
83200         (Depends-on): Add getpagesize.
83201         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83202         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
83203         m4/mmap-anon.m4.
83204         (Depends-on): Add getpagesize.
83205         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83206         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
83207         m4/mmap-anon.m4.
83208         (Depends-on): Add getpagesize.
83209         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83210         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
83211         m4/mmap-anon.m4.
83212         (Depends-on): Add getpagesize.
83213         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83215 2009-05-12  Bruno Haible  <bruno@clisp.org>
83217         Tests for module 'alignof'.
83218         * modules/alignof-tests: New file.
83219         * tests/test-alignof.c: New file.
83221 2009-05-12  Bruno Haible  <bruno@clisp.org>
83223         Fix alignof macro.
83224         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
83225         vendor compilers that are always correct.
83227 2009-05-12  Bruno Haible  <bruno@clisp.org>
83229         Make the MAP_ANONYMOUS detection work on HP-UX 11.
83230         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
83231         not whether its fully works.
83233 2009-05-12  Bruno Haible  <bruno@clisp.org>
83235         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
83237 2009-05-12  Jim Meyering  <meyering@redhat.com>
83239         * top/maint.mk: Adjust backslash alignment.
83241 2009-05-11  Simon Josefsson  <simon@josefsson.org>
83243         * top/maint.mk: Make $(srcdir)/build-aux configurable.
83245 2009-05-11  Eric Blake  <ebb9@byu.net>
83247         argp: avoid undefined behavior
83248         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
83249         macros.
83251 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83253         * tests/test-vc-list-files-git.sh: Do git config of user.email and
83254         user.name to prevent git commit from complaining.
83256 2009-05-10  Bruno Haible  <bruno@clisp.org>
83258         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
83259         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
83260         it rewrites every file name only once.
83261         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
83263 2009-05-08  Bruno Haible  <bruno@clisp.org>
83265         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
83266         instead of 'max'.
83268 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83270         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
83271         sockaddr_storage test.
83273 2009-05-07  Simon Josefsson  <simon@josefsson.org>
83275         * modules/sys_socket (Makefile.am): Substitute
83276         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
83277         * m4/sys_socket_h.m4: Check for sockaddr_storage.
83278         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
83279         * tests/test-sys_socket.c: Check sockaddr_storage.
83281 2009-05-08  Bruno Haible  <bruno@clisp.org>
83283         New module 'alignof'.
83284         * lib/alignof.h: New file.
83285         * modules/alignof: New file.
83287 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83288             Bruno Haible  <bruno@clisp.org>
83290         Fix test-file-has-acl on FreeBSD.
83291         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
83292         mask is implicitly added.
83293         * tests/test-file-has-acl.c: Include <signal.h>.
83294         (main): Terminate the test after 5 seconds.
83295         * modules/acl-tests (configure.ac): Check for alarm function.
83297 2009-05-04  Bruno Haible  <bruno@clisp.org>
83299         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
83300         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
83301         * modules/errno (configure.ac): Drop AC_REQUIRE.
83302         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
83303         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
83305 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83307         * modules/glob-tests: New module.
83308         * tests/test-glob.c: Add.
83310 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83312         * modules/fnmatch-tests: New module.
83313         * tests/test-fnmatch.c: Add.
83315 2009-05-04  Eric Blake  <ebb9@byu.net>
83317         maint: make the new no-submodule-changes rule VPATH-safe
83318         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
83320 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83321             Bruno Haible  <bruno@clisp.org>
83323         acl: Fix infinite loop on FreeBSD.
83324         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
83325         of return value from acl_get_entry.
83326         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
83327         Likewise.
83329 2009-05-03  Bruno Haible  <bruno@clisp.org>
83331         * lib/acl-internal.h (acl_entries): Clarify return value.
83332         * lib/acl_entries.c (acl_entries): Likewise.
83334 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83336         Bug fix in acl module.
83337         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
83339 2009-05-03  Bruno Haible  <bruno@clisp.org>
83341         Create gperf-generated file in the source dir, not in the build dir.
83342         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
83343         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
83344         * modules/unicase/locale-language (unicase/locale-languages.h):
83345         Likewise.
83346         * modules/unicase/special-casing (unicase/special-casing-table.h):
83347         Likewise.
83348         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
83349         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
83350         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
83351         Reported by Ralf Wildenhues.
83353 2009-05-03  Bruno Haible  <bruno@clisp.org>
83355         * modules/fnmatch (Description, configure.ac): Taken from
83356         fnmatch-posix.
83357         * modules/fnmatch-posix: Turn into a symbolic reference to the
83358         'fnmatch' module, and deprecate.
83359         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
83361 2009-05-03  Bruno Haible  <bruno@clisp.org>
83363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83364         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83365         Reported by Ralf Wildenhues.
83367 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83369         * m4/fnmatch.m4: Fix fnmatch re-define.
83371 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83373         priv-set: new module and tests; adapt write-any-file
83374         * lib/priv-set.c: New file.
83375         * lib/priv-set.h: New file.
83376         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83377         * lib/write-any-file.c: Simplify by using priv-set module.
83378         * m4/priv-set.m4: New file.
83379         * modules/priv-set: New file.
83380         * modules/unlinkdir: Add dependency on priv-set module.
83381         * modules/write-any-file: Likewise.
83383         Tests for module 'priv-set'.
83384         * modules/priv-set-tests: New file.
83385         * tests/test-priv-set.c: New file.
83387 2009-05-03  Jim Meyering  <meyering@redhat.com>
83388             Bruno Haible  <bruno@clisp.org>
83390         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83391         use the converted UTF-8 variant of the name instead.
83393 2009-05-03  Jim Meyering  <meyering@redhat.com>
83395         tests: tighten some getdate tests
83396         * tests/test-getdate.c (main): Tighten tests: require equality,
83397         not just greater than.  Set TZ envvar to UTC0.
83399 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83401         getdate: correctly interpret "next monday" when run on a Monday
83402         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83403         that e.g., "next tues" (when run on a tuesday) results in a date
83404         that is one week in the future, and not today's date.
83405         I.e., add a week when the wday is the same as the current one.
83406         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83407         and earlier by Martin Bernreuther and Jan Minář.
83408         * tests/test-getdate.c (main): Check that "next DAY" is always in
83409         the future and that "last DAY" is always in the past.
83411 2009-05-02  Jim Meyering  <meyering@redhat.com>
83413         build: ensure that a release build fails when a submodule is unclean
83414         * top/maint.mk (no-submodule-changes): New rule.
83415         (alpha beta major): Depend on it.
83417 2009-05-02  Bruno Haible  <bruno@clisp.org>
83419         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83420         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83421         shell variable gl_fnmatch_required to detect which variant is
83422         requested.
83423         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83424         gl_FUNC_FNMATCH_POSIX.
83425         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83426         exclude fnmatch-posix.
83428 2009-05-02  Bruno Haible  <bruno@clisp.org>
83430         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83431         * modules/mbsrtowcs (License): Change to LGPLv2+.
83432         * modules/strnlen1 (License): Likewise.
83433         Reported by Simon Josefsson.
83435 2009-05-02  Bruno Haible  <bruno@clisp.org>
83437         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83438         "cross".
83439         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83440         gnulib-tool was called with option --source-base=lib.
83442 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83444         Use automake *-local hooks without commands, for extensibility.
83445         * modules/localcharset (Makefile.am): Rename install-exec-local
83446         rule to install-exec-localcharset, and make it a prerequisite of
83447         install-exec-local.  Likewise, rename the uninstall-local rule to
83448         uninstall-localcharset, and make it a prerequisite of the former.
83450 2009-05-01  Bruno Haible  <bruno@clisp.org>
83452         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83453         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83454         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83456         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83457         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83458         m4/locale-zh.m4, m4/codeset.m4.
83460         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83461         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83462         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83463         m4/locale-zh.m4.
83465         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83466         REPLACE_WCRTOMB if mbstate_t must be replaced.
83467         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83468         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83470 2009-05-01  Bruno Haible  <bruno@clisp.org>
83472         Avoid compiler warnings when redefining macros defined by <libintl.h>.
83473         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
83474         dngettext, dcngettext, textdomain, bindtextdomain,
83475         bind_textdomain_codeset): Undefine before redefining.
83477 2009-04-30  Bruno Haible  <bruno@clisp.org>
83479         Fix bug introduced on 2009-04-25.
83480         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
83481         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
83482         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
83483         is defined.
83484         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
83485         is defined.
83486         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
83487         is defined.
83488         Reported by Elbert_Pol <elbert.pol@gmail.com>.
83490 2009-04-28  Bruno Haible  <bruno@clisp.org>
83492         Comment tweaks.
83493         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
83494         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
83495         * lib/unicase.h (u*_casexfrm): Likewise.
83496         Reported by Paolo Bonzini.
83498 2009-04-28  Bruno Haible  <bruno@clisp.org>
83500         Fix a compilation error.
83501         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
83502         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83503         Reported by Jim Meyering.
83505 2009-04-27  Bruno Haible  <bruno@clisp.org>
83507         New module 'libunistring'.
83508         * modules/libunistring: New file.
83509         * m4/libunistring.m4: New file.
83510         * MODULES.html.sh (Unicode string functions): Add it.
83512 2009-04-27  Eric Blake  <ebb9@byu.net>
83514         maint.mk: allow package-specific header to provide <config.h>
83515         * top/maint.mk (sc_require_config_h): New variable.
83516         (sc_require_config_h, sc_require_config_h_first): Use it.
83518 2009-04-27  Simon Josefsson  <simon@josefsson.org>
83520         * top/maint.mk (sc_avoid_if_before_free): Except
83521         useless-if-before-free script.
83523 2009-04-27  Eric Blake  <ebb9@byu.net>
83525         maintainer-makefile: depend on all required helper scripts
83526         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
83527         useless-if-before-free.
83528         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
83529         version, rather than assuming gnulib checkout is available.
83530         Reported by Simen Josefsson.
83532 2009-04-26  Bruno Haible  <bruno@clisp.org>
83534         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
83535         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
83536         "../" or "..".
83538 2009-04-26  Bruno Haible  <bruno@clisp.org>
83540         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
83541         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
83542         AC_LIB_HAVE_LINKFLAGS.
83544 2009-04-26  Bruno Haible  <bruno@clisp.org>
83546         Simplify calling convention of u*_conv_from_encoding.
83547         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
83548         u32_conv_from_encoding): Expect a resultbuf argument and return the
83549         result directly as a pointer.
83550         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
83551         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
83552         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
83553         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
83554         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
83555         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83556         Update.
83557         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
83558         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83559         * lib/vasnprintf.c (VASNPRINTF): Update.
83560         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
83561         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
83562         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
83563         * NEWS: Mention the change.
83565 2009-04-26  Bruno Haible  <bruno@clisp.org>
83567         Simplify calling convention of u*_conv_to_encoding.
83568         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83569         u32_conv_to_encoding): Expect a resultbuf argument and return the
83570         result directly as a pointer.
83571         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83572         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
83573         freeing scaled_offsets if mem_iconveha failed.
83574         * lib/unicase/u-casexfrm.h (FUNC): Update.
83575         * lib/uninorm/u-normxfrm.h (FUNC): Update.
83576         * lib/vasnprintf.c (VASNPRINTF): Update.
83577         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
83578         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
83579         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
83580         * NEWS: Mention the change.
83582 2009-04-26  Bruno Haible  <bruno@clisp.org>
83584         Avoid test failures on AIX and OSF/1.
83585         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
83586         malloc(0).
83587         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83588         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83589         Likewise.
83590         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
83591         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
83592         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
83593         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
83594         * doc/posix-functions/malloc.texi: Document the portability problem
83595         related to malloc(0).
83597 2009-04-26  Bruno Haible  <bruno@clisp.org>
83599         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
83600         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
83601         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
83603 2009-04-25  Bruno Haible  <bruno@clisp.org>
83605         Avoid link error when creating a namespace clean library.
83606         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
83607         as macro with arguments if already defined as an alias.
83608         * lib/signbitf.c (gl_signbitf): Don't undefine.
83609         * lib/signbitd.c (gl_signbitd): Don't undefine.
83610         * lib/signbitl.c (gl_signbitl): Don't undefine.
83612 2009-04-25  Jim Meyering  <meyering@redhat.com>
83614         vc-list-files: fix another quoting bug
83615         * build-aux/vc-list-files: Avoid sed backslash expansion
83616         of pathological directory names.
83618 2009-04-25  Eric Blake  <ebb9@byu.net>
83620         vc-list-files: fix shell quoting error
83621         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
83622         timestamp.
83624 2009-04-25  Jim Meyering  <meyering@redhat.com>
83626         vc-list-files: restore lost functionality with subdir argument
83627         * build-aux/vc-list-files: When given a non-"." sub-directory
83628         argument, substitute the $dir/ prefix back onto each resulting name.
83629         Otherwise, coreutils' root_tests check would fail.
83631 2009-04-24  Eric Blake  <ebb9@byu.net>
83633         vc-list-files: ignore git symlinks
83634         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
83635         than ls-files, to ignore git symlinks.
83637         maint.mk: import improvements from m4
83638         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
83639         (move_if_change): Delete unused macro.
83640         (news-date-check, vc-diff-check): Support VPATH builds.
83641         (announcement): Likewise.  Split --bootstrap-tools list...
83642         (boostrap-tools): ...into separate list, which can be overridden
83643         in cfg.mk.
83644         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
83645         requiring dependency on useless-if-before-free module.
83646         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
83647         Support VPATH builds.
83649 2009-04-24  Jim Meyering  <meyering@redhat.com>
83651         maint.mk: remove coreutils-specific rules and variables
83652         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
83653         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
83654         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
83656         maint.mk: remove obsolete rule
83657         * top/maint.mk (rel-check): Remove rule.
83658         (WGET, WGETFLAGS): Remove now-unused variables.
83660 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83662         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
83663         consistency.
83665         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
83666         '$(PATH_SEPARATOR)' instead of ':'.
83668 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83670         * lib/getopt1.c (main): Use 'const' for static array.
83672 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83674         * top/maint.mk: Sync with coreutils.
83675         * NEWS: Explain incompatibilities.
83677 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83678             Bruno Haible  <bruno@clisp.org>
83680         Fix cross-compilation results.
83681         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83682         statement, as third argument of AC_TRY_RUN.
83683         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83684         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83685         Likewise.
83686         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83687         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83688         Likewise.
83689         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83690         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83691         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83693 2009-04-20  Bruno Haible  <bruno@clisp.org>
83695         Avoid test failure on mingw.
83696         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83698 2009-04-20  Bruno Haible  <bruno@clisp.org>
83700         Avoid compilation error on mingw.
83701         * modules/localename-tests (Depends-on): Add locale.
83703 2009-04-19  Bruno Haible  <bruno@clisp.org>
83705         Support for building a shared library on Windows platforms.
83706         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83707         (main): Test the presence of UNINORM_NFC here.
83708         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83709         (main): Test the presence of UNINORM_NFD here.
83710         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83711         (main): Test the presence of UNINORM_NFKC here.
83712         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83713         (main): Test the presence of UNINORM_NFKD here.
83715 2009-04-19  Bruno Haible  <bruno@clisp.org>
83717         Avoid a compiler warning.
83718         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83719         Change type of variable 'sequence'.
83721 2009-04-19  Bruno Haible  <bruno@clisp.org>
83723         * modules/configmake (Makefile.am): When the contents of configmake.h
83724         does not change, arrange to preserve its modification time.
83726 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83728         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83729         gettext domain.
83731 2009-04-16  Jim Meyering  <meyering@redhat.com>
83733         useless-if-before-free: improve conversion code
83734         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83735         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83737 2009-04-14  Bruno Haible  <bruno@clisp.org>
83739         * modules/fcntl (Depends-on): Add extensions.
83740         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83742 2009-04-12  Ben Pfaff  <blp@gnu.org>
83744         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83745         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83747 2009-03-20  Ben Pfaff  <blp@gnu.org>
83749         Make rename replace existing destinations on Windows.
83750         * m4/rename.m4: Add test for Mingw.
83751         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83752         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83753         * doc/posix-functions/rename.texi: Document.
83755 2009-04-10  Bruno Haible  <bruno@clisp.org>
83757         New include file "iconveh.h".
83758         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83759         * lib/striconveh.h: Include it.
83760         (enum iconv_ilseq_handler): Remove definition.
83761         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83762         striconveh.h.
83763         * lib/striconveha.c: Include striconveh.h.
83764         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83765         * modules/striconveh (Files): Add lib/iconveh.h.
83766         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83767         lib/striconveh.h.
83769 2009-04-10  Bruno Haible  <bruno@clisp.org>
83771         * lib/uniconv.h: Update comment.
83773 2009-04-10  Bruno Haible  <bruno@clisp.org>
83775         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83776         always.
83777         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83778         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83779         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83780         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83781         "unistring-notinline.h", so that the function gets defined always.
83782         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83783         * lib/unistr/u8-uctomb.c: Likewise.
83784         * lib/unistr/u16-mbtouc.c: Likewise.
83785         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83786         * lib/unistr/u16-uctomb.c: Likewise.
83787         * lib/unistr/u32-mbtouc.c: Likewise.
83788         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83789         * lib/unistr/u32-uctomb.c: Likewise.
83791 2009-04-10  Bruno Haible  <bruno@clisp.org>
83793         Mark 'utime' obsolete.
83794         * modules/utime (Status, Notice): New sections.
83795         Suggested by Jim Meyering.
83797         Fix cross-compile guess for utime test.
83798         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83799         autoconf.
83800         * doc/posix-functions/utime.texi: Give more precisions.
83801         Reported by Jan <ipif@ymail.com>.
83803 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83805         filevercmp: correct today's change
83806         * lib/filevercmp.c: Also handle coreutils' test inputs.
83807         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83809         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83810         for reporting it.
83811         * lib/filevercmp.c: Special handle for "", "." and "..".
83812         * tests/test-filevercmp.c: Enlarge the set suite.
83814 2009-04-07  Jim Meyering  <meyering@redhat.com>
83816         useless-if-before-free: show how to remove braced useless free, too
83817         * build-aux/useless-if-before-free: still only in a comment, though.
83819 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83821         maint.mk: import changes to syntax-check macros from coreutils
83822         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83823         Use them in the relevant macros.
83825 2009-04-06  Bruno Haible  <bruno@clisp.org>
83827         Fix unportable use of bit-fields.
83828         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83829         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83830         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83832 2009-04-06  Bruno Haible  <bruno@clisp.org>
83834         Avoid test failures on AIX and OSF/1.
83835         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83836         that malloc(0) = NULL.
83837         * tests/unicase/test-u8-tolower.c (check): Likewise.
83838         * tests/unicase/test-u8-totitle.c (check): Likewise.
83839         * tests/unicase/test-u8-toupper.c (check): Likewise.
83840         * tests/unicase/test-u16-casefold.c (check): Likewise.
83841         * tests/unicase/test-u16-tolower.c (check): Likewise.
83842         * tests/unicase/test-u16-totitle.c (check): Likewise.
83843         * tests/unicase/test-u16-toupper.c (check): Likewise.
83844         * tests/unicase/test-u32-casefold.c (check): Likewise.
83845         * tests/unicase/test-u32-tolower.c (check): Likewise.
83846         * tests/unicase/test-u32-totitle.c (check): Likewise.
83847         * tests/unicase/test-u32-toupper.c (check): Likewise.
83848         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83849         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83850         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83851         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83852         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83853         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83854         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83855         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83856         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83857         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83858         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83859         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83861 2009-04-05  Bruno Haible  <bruno@clisp.org>
83863         Work around an autoconf limitation.
83864         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83865         comment line if it would be longer than 3 KB.
83867 2009-04-05  Bruno Haible  <bruno@clisp.org>
83869         Avoid test failure with libiconv-1.13.
83870         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83871         of the expected test results.
83873 2009-04-05  Bruno Haible  <bruno@clisp.org>
83875         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83876         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83877         that it should be installed.
83879 2009-04-05  Bruno Haible  <bruno@clisp.org>
83881         * gnulib-tool: New option --copy-file.
83882         (func_usage): Document it.
83883         (func_dest_tmpfilename): Moved out of func_import.
83884         (func_add_file, func_update_file): New functions, extracted from
83885         func_import.
83886         (func_import): Update.
83888 2009-04-05  Karl Berry  <karl@gnu.org>
83890         * README: prominently mention gnulib-tool.
83891         Rearrange sections so getting the code is near the top.
83893 2009-04-05  Bruno Haible  <bruno@clisp.org>
83895         * lib/unicase.h: Mention u*_cmp2.
83896         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83897         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83898         * lib/unicase/ulc-casecmp.c: Likewise.
83899         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83900         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83901         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83902         unistr/u8-cmp.
83903         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83904         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83905         unistr/u16-cmp.
83906         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83907         unistr/u32-cmp.
83909         * lib/uninorm.h: Mention u*_cmp2.
83910         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83911         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83912         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83913         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83914         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83915         unistr/u8-cmp.
83916         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83917         unistr/u16-cmp.
83918         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83919         unistr/u32-cmp.
83921         New module 'unistr/u32-cmp2'.
83922         * lib/unistr/u32-cmp2.c: New file.
83923         * modules/unistr/u32-cmp2: New file.
83925         New module 'unistr/u16-cmp2'.
83926         * lib/unistr/u16-cmp2.c: New file.
83927         * modules/unistr/u16-cmp2: New file.
83929         New module 'unistr/u8-cmp2'.
83930         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83931         * lib/unistr/u8-cmp2.c: New file.
83932         * lib/unistr/u-cmp2.h: New file.
83933         * modules/unistr/u8-cmp2: New file.
83935 2009-04-05  Bruno Haible  <bruno@clisp.org>
83937         * lib/unictype.h (uc_property_is_valid): New macro.
83938         * tests/unictype/test-pr_byname.c (main): Use it.
83940         * lib/unistr.h: Doc fixes.
83941         * lib/uniconv.h: Doc fixes.
83942         * lib/unictype.h: Doc fixes.
83944 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83946         Port coreutils 7.2 to Solaris 8.
83948         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83949         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83950         for Solaris 8.  This is a bit of a hack, as it means it's the
83951         caller's responsibility to add -lnsl if needed, but most likely it
83952         won't be needed since only getaddrinfo uses this and getaddrinfo
83953         isn't needed on Solaris 8.
83955         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83956         problem to Solaris 8 encountered with coreutils 7.2, which
83957         resulted in a message "fnmatch.c:292: warning: passing argument 4
83958         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83959         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83961 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83963         * m4/ld-version-script.m4: Add FIXME comment.
83965 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83967         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83968         SOVERSION variable.
83970 2009-04-02  Bruno Haible  <bruno@clisp.org>
83972         * Makefile (info, html, dvi, pdf): Combine the rules.
83973         Suggested by Jim Meyering.
83975 2009-04-01  Bruno Haible  <bruno@clisp.org>
83977         * Makefile (info, html, dvi, pdf): New targets.
83978         Reported by Reuben Thomas <rrt@sc3d.org>.
83980 2009-04-01  Bruno Haible  <bruno@clisp.org>
83982         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83983         can be put into PATH.
83984         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83986 2009-04-01  Bruno Haible  <bruno@clisp.org>
83988         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83990 2009-04-01  Bruno Haible  <bruno@clisp.org>
83992         Rename module 'visibility'.
83993         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83994         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83995         * doc/gnulib.texi: Update.
83996         * MODULES.html.sh (Misc): Update.
83997         * NEWS: Mention the change.
83999 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84001         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
84002         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
84003         Eric Blake <ebb9@byu.net> for review.
84004         * MODULES.html.sh: Add lib-msvc-compat.
84005         * doc/gnulib.texi: Link to new section.
84006         * m4/ld-output-def.m4: New file.
84007         * doc/ld-output-def.texi: New file.
84009 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84011         Rename ld-version-script to lib-symbol-versions.  Suggested by
84012         Bruno Haible <bruno@clisp.org>.
84013         * modules/ld-version-script: Renamed to lib-symbol-versions.
84014         * doc/ld-version-script.texi: Fix module name.
84015         * MODULES.html.sh: Add lib-symbol-versions.
84017 2009-03-31  Simon Josefsson  <simon@josefsson.org>
84019         * modules/u64-tests: New file.
84020         * tests/test-u64.c: New file.
84022 2009-03-04  Simon Josefsson  <simon@josefsson.org>
84024         * MODULES.html.sh: Mention u64.
84025         * modules/u64: New module.
84026         * modules/crypto/sha512: Depend on u64 module instead of providing
84027         u64.h.
84029 2009-03-27  Eric Blake  <ebb9@byu.net>
84031         test-strerror: make debugging EAI_SYSTEM easier
84032         * modules/getaddrinfo-tests (Depends-on): Add strerror.
84033         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
84034         failure was EAI_SYSTEM.
84036 2009-03-25  Bruno Haible  <bruno@clisp.org>
84038         Fix a problem with --enable-relocatable on Solaris 7.
84039         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
84040         since 2008-02-24.
84042 2009-03-25  Eric Blake  <ebb9@byu.net>
84044         test-sockets: avoid gcc warning
84045         * tests/test-sockets.c (main): Silence compiler warning.
84047 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
84049         New modules nproc, pthread, contributed by Glen Lenker.
84051         * MODULES.html.sh: Add pthread, nproc.
84052         * lib/nproc.c: New file.
84053         * lib/nproc.h: New file.
84054         * lib/pthread.in.h: New file.
84055         * m4/pthread.m4: New file.
84056         * modules/nproc: New file.
84057         * modules/pthread: New file.
84059 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84061         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
84062         New variable.
84064 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
84066         filevercmp: handle simple~ and numbered.~3~ backup suffixes
84067         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
84068         * tests/test-filevercmp.c: Add tests for backup suffixes.
84070 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84072         * modules/stdlib (Depends-on): Add stdint, needed when defining
84073         struct random_data on, for example, HP-UX 10.20.  Reported by
84074         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84076 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84078         * lib/readline.c (readline): Call fflush on stdout after printing
84079         prompt.
84081 2009-03-20  Bruno Haible  <bruno@clisp.org>
84083         Remove dependency from 'close' module to -lws2_32 on native Windows.
84084         * lib/close-hook.h: New file.
84085         * lib/close-hook.c: New file.
84086         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
84087         w32sock.h.
84088         (_gl_close_fd_maybe_socket): Remove function.
84089         (rpl_close): Invoke execute_all_close_hooks instead of
84090         _gl_close_fd_maybe_socket.
84091         * lib/sockets.c: Include close-hook.h, w32sock.h.
84092         (close_fd_maybe_socket): New function, essentially from lib/close.c.
84093         (close_sockets_hook): New variable.
84094         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
84095         (gl_sockets_cleanup): Unregister it.
84096         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
84097         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
84098         * modules/close-hook: New file.
84099         * modules/close (Files): Remove lib/w32sock.h.
84100         (Depends-on): Add close-hook.
84101         (Link): Remove section.
84102         * modules/sockets (Files): Add lib/w32sock.h.
84103         (Depends-on): Add close-hook.
84104         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
84105         invocation.
84106         * NEWS: Mention that LIB_CLOSE is gone.
84108 2009-03-23  Eric Blake  <ebb9@byu.net>
84110         signal-tests: test previous patch
84111         * tests/test-signal.c: New file.
84112         * modules/signal-tests: Likewise.
84114         signal.h: always support 'volatile sig_atomic_t'
84115         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
84116         (gl_SIGNAL_H_DEFAULTS): Add a default.
84117         * modules/signal (Makefile.am): Substitute if needed.
84118         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
84119         users can blindly add volatile.
84120         * doc/posix-headers/signal.texi (signal.h): Document it.
84121         Reported by Matthew Woehlke.
84123 2009-03-23  Jim Meyering  <meyering@redhat.com>
84125         pathmax: PATH_MAX: use pathconf only when available
84126         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
84127         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
84128         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
84129         This avoids a link failure in a PSP cross-compilation environment
84130         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
84132         * lib/vasnprintf.c (divide): Fix typo in comment.
84134 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84136         * gnulib-tool (func_filter_filelist): Fix comment.
84138 2009-03-20  Bruno Haible  <bruno@clisp.org>
84140         Make sockets.h self-contained.
84141         * lib/sockets.c: Include sockets.h first.
84142         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
84144 2009-03-19  Eric Blake  <ebb9@byu.net>
84146         doc: mention more functions added in cygwin 1.7.0
84147         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
84148         addition.
84149         * doc/posix-functions/log2f.texi: Likewise.
84151 2009-03-19  Jim Meyering  <meyering@redhat.com>
84153         fsusage: avoid syntax error due to statement-before-declaration
84154         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
84155         after all declarations.  Reported by Matthew Woehlke in
84156         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
84158 2009-03-18  Eric Blake  <ebb9@byu.net>
84160         build-aux/compile: sync from automake
84161         * build-aux/compile: New file, from automake.
84162         * config/srclist.txt: Mention build-aux/compile.
84164 2009-03-17  Bruno Haible  <bruno@clisp.org>
84166         * lib/git-merge-changelog.c: Fix typo in comment.
84167         Reported by Reuben Thomas <rrt@sc3d.org>.
84169 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
84171         * m4/regex.m4: update and improve help for
84172         --without-included-regex.
84174 2009-03-17  Simon Josefsson  <simon@josefsson.org>
84176         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
84177         failure on missing include files.
84179 2009-03-17  Eric Blake  <ebb9@byu.net>
84181         doc: mention more functions added in cygwin 1.7.0
84182         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
84183         addition.
84184         * doc/posix-functions/fwscanf.texi: Likewise.
84185         * doc/posix-functions/swprintf.texi: Likewise.
84186         * doc/posix-functions/swscanf.texi: Likewise.
84187         * doc/posix-functions/vfwprintf.texi: Likewise.
84188         * doc/posix-functions/vfwscanf.texi: Likewise.
84189         * doc/posix-functions/vswprintf.texi: Likewise.
84190         * doc/posix-functions/vswscanf.texi: Likewise.
84191         * doc/posix-functions/vwprintf.texi: Likewise.
84192         * doc/posix-functions/vwscanf.texi: Likewise.
84193         * doc/posix-functions/wcscasecmp.texi: Likewise.
84194         * doc/posix-functions/wcsdup.texi: Likewise.
84195         * doc/posix-functions/wcsftime.texi: Likewise.
84196         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84197         * doc/posix-functions/wprintf.texi: Likewise.
84198         * doc/posix-functions/wscanf.texi: Likewise.
84199         * doc/glibc-functions/gethostbyname2.texi: Likewise.
84201 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84203         maint.mk: really add $(AM_MAKEFLAGS)
84204         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
84205         was inadvertently omitted in the last commit.
84206         Spotted by Bruno Haible.
84208         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
84209         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
84210         $(AM_MAKEFLAGS)' rather than plain `make'.
84212         gnulib-tool: execute $MAKE not make
84213         * gnulib-tool: Default $MAKE to 'make'.
84214         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
84215         than make.  Initialize $MAKE in the do-autobuild script.
84217         gnulib-tool: use $MAKE not make in generated files
84218         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
84219         make, in generated files.  Initialize $MAKE in the do-autobuild
84220         script.
84222         * top/GNUmakefile (_have-git-version-gen): Fix typo.
84224         GNUmakefile: disable parallelism only for multiple, recursive targets
84225         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
84226         additions in the Makefile.
84227         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
84228         by Automake.
84229         (.NOTPARALLEL): Only disable parallel builds if multiple targets
84230         are listed on the command line and at least one of them is
84231         listed in $(ALL_RECURSIVE_TARGETS).
84233 2009-03-14  Bruno Haible  <bruno@clisp.org>
84235         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
84236         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
84237         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
84238         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
84239         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
84240         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
84241         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
84242         unistr/u8-uctomb.
84243         * modules/unistr/u8-strchr (Depends-on): Likewise.
84244         * modules/unistr/u8-strrchr (Depends-on): Likewise.
84245         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
84246         unistr/u16-uctomb.
84247         * modules/unistr/u16-strchr (Depends-on): Likewise.
84248         * modules/unistr/u16-strrchr (Depends-on): Likewise.
84250 2009-03-12  Bruno Haible  <bruno@clisp.org>
84252         Work around select() bug on Interix 3.5.
84253         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
84254         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
84255         * m4/select.m4: New file.
84256         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
84257         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
84258         * modules/select (Files): Add m4/select.m4.
84259         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
84260         * modules/nanosleep (Depends-on): Add select.
84261         * modules/poll (Depends-on): Likewise.
84262         * doc/posix-functions/select.texi: Mention the Interix bug.
84263         Reported by Markus Duft <mduft@gentoo.org>.
84265         * lib/select.c: Renamed from lib/winsock-select.c.
84266         * modules/select (Files): Add lib/select.c, remove
84267         lib/winsock-select.c.
84268         (configure.ac): Update.
84270 2009-03-12  Jim Meyering  <meyering@redhat.com>
84272         avoid gcc warnings about unused macro definitions
84273         * lib/readtokens.c (STREQ): Remove unused definition.
84274         * lib/xmalloc.c (SIZE_MAX): Likewise.
84275         * lib/openat-die.c (N_): Likewise.
84276         * lib/mountlist.c (SIZE_MAX): Remove definition.
84277         Instead, include <stdint.h>.
84278         * lib/readutmp.c: Likewise.
84279         * modules/readutmp (Depends-on): Add stdint.
84280         * modules/mountlist (Depends-on): Add stdint.
84281         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
84283 2009-03-10  Bruno Haible  <bruno@clisp.org>
84285         Tests for module 'mbmemcasecoll'.
84286         * modules/mbmemcasecoll-tests: New file.
84287         * tests/test-mbmemcasecoll1.sh: New file.
84288         * tests/test-mbmemcasecoll2.sh: New file.
84289         * tests/test-mbmemcasecoll3.sh: New file.
84290         * tests/test-mbmemcasecoll.c: New file.
84292         New module 'mbmemcasecoll'.
84293         * lib/mbmemcasecoll.h: New file.
84294         * lib/mbmemcasecoll.c: New file.
84295         * modules/mbmemcasecoll: New file.
84297         * tests/test-mbmemcasecmp.h: New file, extracted from
84298         tests/test-mbmemcasecmp.c.
84299         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
84300         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
84301         (main): Update.
84302         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
84304 2009-03-09  Bruno Haible  <bruno@clisp.org>
84306         Tests for module 'mbmemcasecmp'.
84307         * modules/mbmemcasecmp-tests: New file.
84308         * tests/test-mbmemcasecmp1.sh: New file.
84309         * tests/test-mbmemcasecmp2.sh: New file.
84310         * tests/test-mbmemcasecmp3.sh: New file.
84311         * tests/test-mbmemcasecmp.c: New file.
84313         New module 'mbmemcasecmp'.
84314         * lib/mbmemcasecmp.h: New file.
84315         * lib/mbmemcasecmp.c: New file.
84316         * modules/mbmemcasecmp: New file.
84318 2009-03-09  Bruno Haible  <bruno@clisp.org>
84320         Tests for module 'unicase/ulc-casecoll'.
84321         * modules/unicase/ulc-casecoll-tests: New file.
84322         * tests/unicase/test-ulc-casecoll1.sh: New file.
84323         * tests/unicase/test-ulc-casecoll2.sh: New file.
84324         * tests/unicase/test-ulc-casecoll.c: New file.
84326         New module 'unicase/ulc-casecoll'.
84327         * lib/unicase.h (ulc_casecoll): New declaration.
84328         * lib/unicase/ulc-casecoll.c: New file.
84329         * modules/unicase/ulc-casecoll: New file.
84331         New module 'unicase/ulc-casexfrm'.
84332         * lib/unicase.h (ulc_casexfrm): New declaration.
84333         * lib/unicase/ulc-casexfrm.c: New file.
84334         * modules/unicase/ulc-casexfrm: New file.
84336 2009-03-09  Bruno Haible  <bruno@clisp.org>
84338         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
84339         invocations.
84341         * m4/mbscasecmp.m4: Remove file.
84342         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
84343         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
84345         * m4/mbscasestr.m4: Remove file.
84346         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
84347         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
84349         * m4/mbschr.m4: Remove file.
84350         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
84351         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
84353         * m4/mbscspn.m4: Remove file.
84354         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
84355         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
84357         * m4/mbslen.m4: Remove file.
84358         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
84359         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
84361         * m4/mbsncasecmp.m4: Remove file.
84362         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84363         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84365         * m4/mbsnlen.m4: Remove file.
84366         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84367         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84369         * m4/mbspbrk.m4: Remove file.
84370         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84371         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84373         * m4/mbspcasecmp.m4: Remove file.
84374         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84375         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84377         * m4/mbsrchr.m4: Remove file.
84378         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84379         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84381         * m4/mbssep.m4: Remove file.
84382         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84383         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84385         * m4/mbsspn.m4: Remove file.
84386         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84387         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84389         * m4/mbsstr.m4: Remove file.
84390         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84391         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84393         * m4/mbstok_r.m4: Remove file.
84394         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84395         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84397         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84399         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84400         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84402         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84404 2009-03-08  Bruno Haible  <bruno@clisp.org>
84406         Tests for module 'unicase/ulc-casecmp'.
84407         * modules/unicase/ulc-casecmp-tests: New file.
84408         * tests/unicase/test-ulc-casecmp1.sh: New file.
84409         * tests/unicase/test-ulc-casecmp2.sh: New file.
84410         * tests/unicase/test-ulc-casecmp.c: New file.
84412         New module 'unicase/ulc-casecmp'.
84413         * lib/unicase.h (ulc_casecmp): New declaration.
84414         * lib/unicase/ulc-casecmp.c: New file.
84415         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84416         'const SRC_UNIT *'.
84417         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84418         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84419         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84420         * modules/unicase/ulc-casecmp: New file.
84422         Tests for module 'unicase/u32-is-cased'.
84423         * modules/unicase/u32-is-cased-tests: New file.
84424         * tests/unicase/test-u32-is-cased.c: New file.
84426         Tests for module 'unicase/u16-is-cased'.
84427         * modules/unicase/u16-is-cased-tests: New file.
84428         * tests/unicase/test-u16-is-cased.c: New file.
84430         Tests for module 'unicase/u8-is-cased'.
84431         * modules/unicase/u8-is-cased-tests: New file.
84432         * tests/unicase/test-u8-is-cased.c: New file.
84433         * tests/unicase/test-is-cased.h: New file.
84435         New module 'unicase/u32-is-cased'.
84436         * lib/unicase/u32-is-cased.c: New file.
84437         * modules/unicase/u32-is-cased: New file.
84439         New module 'unicase/u16-is-cased'.
84440         * lib/unicase/u16-is-cased.c: New file.
84441         * modules/unicase/u16-is-cased: New file.
84443         New module 'unicase/u8-is-cased'.
84444         * lib/unicase/u8-is-cased.c: New file.
84445         * lib/unicase/u-is-cased.h: New file.
84446         * modules/unicase/u8-is-cased: New file.
84448         Tests for module 'unicase/u32-is-casefolded'.
84449         * modules/unicase/u32-is-casefolded-tests: New file.
84450         * tests/unicase/test-u32-is-casefolded.c: New file.
84452         Tests for module 'unicase/u16-is-casefolded'.
84453         * modules/unicase/u16-is-casefolded-tests: New file.
84454         * tests/unicase/test-u16-is-casefolded.c: New file.
84456         Tests for module 'unicase/u8-is-casefolded'.
84457         * modules/unicase/u8-is-casefolded-tests: New file.
84458         * tests/unicase/test-u8-is-casefolded.c: New file.
84459         * tests/unicase/test-is-casefolded.h: New file.
84461         New module 'unicase/u32-is-casefolded'.
84462         * lib/unicase/u32-is-casefolded.c: New file.
84463         * modules/unicase/u32-is-casefolded: New file.
84465         New module 'unicase/u16-is-casefolded'.
84466         * lib/unicase/u16-is-casefolded.c: New file.
84467         * modules/unicase/u16-is-casefolded: New file.
84469         New module 'unicase/u8-is-casefolded'.
84470         * lib/unicase/u8-is-casefolded.c: New file.
84471         * modules/unicase/u8-is-casefolded: New file.
84473         Tests for module 'unicase/u32-is-titlecase'.
84474         * modules/unicase/u32-is-titlecase-tests: New file.
84475         * tests/unicase/test-u32-is-titlecase.c: New file.
84477         Tests for module 'unicase/u16-is-titlecase'.
84478         * modules/unicase/u16-is-titlecase-tests: New file.
84479         * tests/unicase/test-u16-is-titlecase.c: New file.
84481         Tests for module 'unicase/u8-is-titlecase'.
84482         * modules/unicase/u8-is-titlecase-tests: New file.
84483         * tests/unicase/test-u8-is-titlecase.c: New file.
84484         * tests/unicase/test-is-titlecase.h: New file.
84486         New module 'unicase/u32-is-titlecase'.
84487         * lib/unicase/u32-is-titlecase.c: New file.
84488         * modules/unicase/u32-is-titlecase: New file.
84490         New module 'unicase/u16-is-titlecase'.
84491         * lib/unicase/u16-is-titlecase.c: New file.
84492         * modules/unicase/u16-is-titlecase: New file.
84494         New module 'unicase/u8-is-titlecase'.
84495         * lib/unicase/u8-is-titlecase.c: New file.
84496         * modules/unicase/u8-is-titlecase: New file.
84498         Tests for module 'unicase/u32-is-lowercase'.
84499         * modules/unicase/u32-is-lowercase-tests: New file.
84500         * tests/unicase/test-u32-is-lowercase.c: New file.
84502         Tests for module 'unicase/u16-is-lowercase'.
84503         * modules/unicase/u16-is-lowercase-tests: New file.
84504         * tests/unicase/test-u16-is-lowercase.c: New file.
84506         Tests for module 'unicase/u8-is-lowercase'.
84507         * modules/unicase/u8-is-lowercase-tests: New file.
84508         * tests/unicase/test-u8-is-lowercase.c: New file.
84509         * tests/unicase/test-is-lowercase.h: New file.
84511         New module 'unicase/u32-is-lowercase'.
84512         * lib/unicase/u32-is-lowercase.c: New file.
84513         * modules/unicase/u32-is-lowercase: New file.
84515         New module 'unicase/u16-is-lowercase'.
84516         * lib/unicase/u16-is-lowercase.c: New file.
84517         * modules/unicase/u16-is-lowercase: New file.
84519         New module 'unicase/u8-is-lowercase'.
84520         * lib/unicase/u8-is-lowercase.c: New file.
84521         * modules/unicase/u8-is-lowercase: New file.
84523         Tests for module 'unicase/u32-is-uppercase'.
84524         * modules/unicase/u32-is-uppercase-tests: New file.
84525         * tests/unicase/test-u32-is-uppercase.c: New file.
84527         Tests for module 'unicase/u16-is-uppercase'.
84528         * modules/unicase/u16-is-uppercase-tests: New file.
84529         * tests/unicase/test-u16-is-uppercase.c: New file.
84531         Tests for module 'unicase/u8-is-uppercase'.
84532         * modules/unicase/u8-is-uppercase-tests: New file.
84533         * tests/unicase/test-u8-is-uppercase.c: New file.
84534         * tests/unicase/test-is-uppercase.h: New file.
84536         New module 'unicase/u32-is-uppercase'.
84537         * lib/unicase/u32-is-uppercase.c: New file.
84538         * modules/unicase/u32-is-uppercase: New file.
84540         New module 'unicase/u16-is-uppercase'.
84541         * lib/unicase/u16-is-uppercase.c: New file.
84542         * modules/unicase/u16-is-uppercase: New file.
84544         New module 'unicase/u8-is-uppercase'.
84545         * lib/unicase/u8-is-uppercase.c: New file.
84546         * modules/unicase/u8-is-uppercase: New file.
84548         New module 'unicase/u32-is-invariant'.
84549         * lib/unicase/u32-is-invariant.c: New file.
84550         * modules/unicase/u32-is-invariant: New file.
84552         New module 'unicase/u16-is-invariant'.
84553         * lib/unicase/u16-is-invariant.c: New file.
84554         * modules/unicase/u16-is-invariant: New file.
84556         New module 'unicase/u8-is-invariant'.
84557         * lib/unicase/u8-is-invariant.c: New file.
84558         * lib/unicase/invariant.h: New file.
84559         * lib/unicase/u-is-invariant.h: New file.
84560         * modules/unicase/u8-is-invariant: New file.
84562         Tests for module 'unicase/u32-casecoll'.
84563         * modules/unicase/u32-casecoll-tests: New file.
84564         * tests/unicase/test-u32-casecoll.c: New file.
84566         Tests for module 'unicase/u16-casecoll'.
84567         * modules/unicase/u16-casecoll-tests: New file.
84568         * tests/unicase/test-u16-casecoll.c: New file.
84570         Tests for module 'unicase/u8-casecoll'.
84571         * modules/unicase/u8-casecoll-tests: New file.
84572         * tests/unicase/test-u8-casecoll.c: New file.
84574         New module 'unicase/u32-casecoll'.
84575         * lib/unicase/u32-casecoll.c: New file.
84576         * modules/unicase/u32-casecoll: New file.
84578         New module 'unicase/u16-casecoll'.
84579         * lib/unicase/u16-casecoll.c: New file.
84580         * modules/unicase/u16-casecoll: New file.
84582         New module 'unicase/u8-casecoll'.
84583         * lib/unicase/u8-casecoll.c: New file.
84584         * lib/unicase/u-casecoll.h: New file.
84585         * modules/unicase/u8-casecoll: New file.
84587         New module 'unicase/u32-casexfrm'.
84588         * lib/unicase/u32-casexfrm.c: New file.
84589         * modules/unicase/u32-casexfrm: New file.
84591         New module 'unicase/u16-casexfrm'.
84592         * lib/unicase/u16-casexfrm.c: New file.
84593         * modules/unicase/u16-casexfrm: New file.
84595         New module 'unicase/u8-casexfrm'.
84596         * lib/unicase/u8-casexfrm.c: New file.
84597         * lib/unicase/u-casexfrm.h: New file.
84598         * modules/unicase/u8-casexfrm: New file.
84600         Tests for module 'unicase/u32-casecmp'.
84601         * modules/unicase/u32-casecmp-tests: New file.
84602         * tests/unicase/test-u32-casecmp.c: New file.
84604         Tests for module 'unicase/u16-casecmp'.
84605         * modules/unicase/u16-casecmp-tests: New file.
84606         * tests/unicase/test-u16-casecmp.c: New file.
84608         Tests for module 'unicase/u8-casecmp'.
84609         * modules/unicase/u8-casecmp-tests: New file.
84610         * tests/unicase/test-u8-casecmp.c: New file.
84611         * tests/unicase/test-casecmp.h: New file.
84613         New module 'unicase/u32-casecmp'.
84614         * lib/unicase/u32-casecmp.c: New file.
84615         * modules/unicase/u32-casecmp: New file.
84617         New module 'unicase/u16-casecmp'.
84618         * lib/unicase/u16-casecmp.c: New file.
84619         * modules/unicase/u16-casecmp: New file.
84621         New module 'unicase/u8-casecmp'.
84622         * lib/unicase/u8-casecmp.c: New file.
84623         * lib/unicase/u-casecmp.h: New file.
84624         * modules/unicase/u8-casecmp: New file.
84626         Tests for module 'unicase/u32-casefold'.
84627         * modules/unicase/u32-casefold-tests: New file.
84628         * tests/unicase/test-u32-casefold.c: New file.
84630         Tests for module 'unicase/u16-casefold'.
84631         * modules/unicase/u16-casefold-tests: New file.
84632         * tests/unicase/test-u16-casefold.c: New file.
84634         Tests for module 'unicase/u8-casefold'.
84635         * modules/unicase/u8-casefold-tests: New file.
84636         * tests/unicase/test-u8-casefold.c: New file.
84638         New module 'unicase/u32-casefold'.
84639         * lib/unicase/u32-casefold.c: New file.
84640         * modules/unicase/u32-casefold: New file.
84642         New module 'unicase/u16-casefold'.
84643         * lib/unicase/u16-casefold.c: New file.
84644         * modules/unicase/u16-casefold: New file.
84646         New module 'unicase/u8-casefold'.
84647         * lib/unicase/u8-casefold.c: New file.
84648         * lib/unicase/u-casefold.h: New file.
84649         * modules/unicase/u8-casefold: New file.
84651         New module 'unicase/tocasefold'.
84652         * lib/unicase/casefold.h: New file.
84653         * lib/unicase/tocasefold.c: New file.
84654         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
84655         * modules/unicase/tocasefold: New file.
84657         Tests for module 'unicase/u32-totitle'.
84658         * modules/unicase/u32-totitle-tests: New file.
84659         * tests/unicase/test-u32-totitle.c: New file.
84661         Tests for module 'unicase/u16-totitle'.
84662         * modules/unicase/u16-totitle-tests: New file.
84663         * tests/unicase/test-u16-totitle.c: New file.
84665         Tests for module 'unicase/u8-totitle'.
84666         * modules/unicase/u8-totitle-tests: New file.
84667         * tests/unicase/test-u8-totitle.c: New file.
84669         New module 'unicase/u32-totitle'.
84670         * lib/unicase/u32-totitle.c: New file.
84671         * modules/unicase/u32-totitle: New file.
84673         New module 'unicase/u16-totitle'.
84674         * lib/unicase/u16-totitle.c: New file.
84675         * modules/unicase/u16-totitle: New file.
84677         New module 'unicase/u8-totitle'.
84678         * lib/unicase/u8-totitle.c: New file.
84679         * lib/unicase/u-totitle.h: New file.
84680         * modules/unicase/u8-totitle: New file.
84682         Tests for module 'unicase/u32-tolower'.
84683         * modules/unicase/u32-tolower-tests: New file.
84684         * tests/unicase/test-u32-tolower.c: New file.
84686         Tests for module 'unicase/u16-tolower'.
84687         * modules/unicase/u16-tolower-tests: New file.
84688         * tests/unicase/test-u16-tolower.c: New file.
84690         Tests for module 'unicase/u8-tolower'.
84691         * modules/unicase/u8-tolower-tests: New file.
84692         * tests/unicase/test-u8-tolower.c: New file.
84694         New module 'unicase/u32-tolower'.
84695         * lib/unicase/u32-tolower.c: New file.
84696         * modules/unicase/u32-tolower: New file.
84698         New module 'unicase/u16-tolower'.
84699         * lib/unicase/u16-tolower.c: New file.
84700         * modules/unicase/u16-tolower: New file.
84702         New module 'unicase/u8-tolower'.
84703         * lib/unicase/u8-tolower.c: New file.
84704         * modules/unicase/u8-tolower: New file.
84706         Tests for module 'unicase/u32-toupper'.
84707         * modules/unicase/u32-toupper-tests: New file.
84708         * tests/unicase/test-u32-toupper.c: New file.
84710         Tests for module 'unicase/u16-toupper'.
84711         * modules/unicase/u16-toupper-tests: New file.
84712         * tests/unicase/test-u16-toupper.c: New file.
84714         Tests for module 'unicase/u8-toupper'.
84715         * modules/unicase/u8-toupper-tests: New file.
84716         * tests/unicase/test-u8-toupper.c: New file.
84718         New module 'unicase/u32-toupper'.
84719         * lib/unicase/u32-toupper.c: New file.
84720         * modules/unicase/u32-toupper: New file.
84722         New module 'unicase/u16-toupper'.
84723         * lib/unicase/u16-toupper.c: New file.
84724         * modules/unicase/u16-toupper: New file.
84726         New module 'unicase/u8-toupper'.
84727         * lib/unicase/u8-toupper.c: New file.
84728         * modules/unicase/u8-toupper: New file.
84730         New module 'unicase/u32-casemap'.
84731         * lib/unicase/u32-casemap.c: New file.
84732         * modules/unicase/u32-casemap: New file.
84734         New module 'unicase/u16-casemap'.
84735         * lib/unicase/u16-casemap.c: New file.
84736         * modules/unicase/u16-casemap: New file.
84738         New module 'unicase/u8-casemap'.
84739         * lib/unicase/unicasemap.h: New file.
84740         * lib/unicase/u8-casemap.c: New file.
84741         * lib/unicase/u-casemap.h: New file.
84742         * modules/unicase/u8-casemap: New file.
84744         New module 'unicase/special-casing'.
84745         * lib/unicase/special-casing.h: New file.
84746         * lib/unicase/special-casing.c: New file.
84747         * lib/unicase/special-casing-table.gperf: New file, generated by
84748         gen-uni-tables.c.
84749         * modules/unicase/special-casing: New file.
84751         Tests for module 'unicase/locale-language'.
84752         * modules/unicase/locale-language-tests: New file.
84753         * tests/unicase/test-locale-language.sh: New file.
84754         * tests/unicase/test-locale-language.c: New file.
84756         New module 'unicase/locale-language'.
84757         * lib/unicase/locale-language.c: New file.
84758         * lib/unicase/locale-languages.gperf: New file.
84759         * modules/unicase/locale-language: New file.
84761         Generate more tables for case conversion and case folding.
84762         * lib/gen-uni-tables.c (SCC_*): New enum items.
84763         (struct special_casing_rule): New type.
84764         (casing_rules, num_casing_rules, allocated_casing_rules): New
84765         variables.
84766         (add_casing_rule, fill_casing_rules): New functions.
84767         (struct casefold_rule): New type.
84768         (casefolding_rules, num_casefolding_rules,
84769         allocated_casefolding_rules): New variables.
84770         (fill_casefolding_rules): New function.
84771         (unicode_casefold): New variable.
84772         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84773         sort_casing_rules, output_casing_rules): New functions.
84774         (main): Accept to more arguments: SpecialCasing.txt and
84775         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84776         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84777         Output mapping for casefolding.
84779         * lib/unicase.h: Include stdbool.h, uninorm.h.
84780         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84781         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84782         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84783         arguments.
84784         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84785         resultp arguments.
84786         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84787         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84788         resultp arguments.
84789         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84790         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84791         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84792         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84793         declarations.
84794         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84796 2009-03-08  Bruno Haible  <bruno@clisp.org>
84798         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84799         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84800         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84801         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84803 2009-03-07  Bruno Haible  <bruno@clisp.org>
84805         Adjust u*_normcmp, u*_normcoll API.
84806         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84807         u16_normcoll, u32_normcoll): Change failure conventions.
84808         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84809         errno and return -1.
84810         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84812 2009-03-07  Bruno Haible  <bruno@clisp.org>
84814         Tests for module 'uninorm/u32-normcoll'.
84815         * modules/uninorm/u32-normcoll-tests: New file.
84816         * tests/uninorm/test-u32-normcoll.c: New file.
84818         Tests for module 'uninorm/u16-normcoll'.
84819         * modules/uninorm/u16-normcoll-tests: New file.
84820         * tests/uninorm/test-u16-normcoll.c: New file.
84822         Tests for module 'uninorm/u8-normcoll'.
84823         * modules/uninorm/u8-normcoll-tests: New file.
84824         * tests/uninorm/test-u8-normcoll.c: New file.
84826 2009-03-07  Bruno Haible  <bruno@clisp.org>
84828         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84829         tests/uninorm/test-u32-normcmp.c.
84830         * tests/uninorm/test-u32-normcmp.c: Include it.
84831         (test_nonascii): New function, extracted from main. Add some more
84832         tests.
84833         (main): Invoke test_ascii and test_nonascii.
84834         * modules/uninorm/u32-normcmp-tests (Files): Add
84835         tests/uninorm/test-u32-normcmp.h.
84836         (Depends-on): Remove uninorm/u32-normcmp.
84838         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84839         tests/uninorm/test-u16-normcmp.c.
84840         * tests/uninorm/test-u16-normcmp.c: Include it.
84841         (test_nonascii): New function, extracted from main. Add some more
84842         tests.
84843         (main): Invoke test_ascii and test_nonascii.
84844         * modules/uninorm/u16-normcmp-tests (Files): Add
84845         tests/uninorm/test-u16-normcmp.h.
84846         (Depends-on): Remove uninorm/u16-normcmp.
84848         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84849         tests/uninorm/test-u8-normcmp.c.
84850         * tests/uninorm/test-u8-normcmp.c: Include it.
84851         (test_nonascii): New function, extracted from main. Add some more
84852         tests.
84853         (main): Invoke test_ascii and test_nonascii.
84854         * modules/uninorm/u8-normcmp-tests (Files): Add
84855         tests/uninorm/test-u8-normcmp.h.
84856         (Depends-on): Remove uninorm/u8-normcmp.
84858 2009-03-07  Bruno Haible  <bruno@clisp.org>
84860         New module 'uninorm/u32-normcoll'.
84861         * lib/uninorm/u32-normcoll.c: New file.
84862         * modules/uninorm/u32-normcoll: New file.
84864         New module 'uninorm/u16-normcoll'.
84865         * lib/uninorm/u16-normcoll.c: New file.
84866         * modules/uninorm/u16-normcoll: New file.
84868         New module 'uninorm/u8-normcoll'.
84869         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84870         declarations.
84871         * lib/uninorm/u8-normcoll.c: New file.
84872         * lib/uninorm/u-normcoll.h: New file.
84873         * modules/uninorm/u8-normcoll: New file.
84875         New module 'uninorm/u32-normxfrm'.
84876         * lib/uninorm/u32-normxfrm.c: New file.
84877         * modules/uninorm/u32-normxfrm: New file.
84879         New module 'uninorm/u16-normxfrm'.
84880         * lib/uninorm/u16-normxfrm.c: New file.
84881         * modules/uninorm/u16-normxfrm: New file.
84883         New module 'uninorm/u8-normxfrm'.
84884         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84885         declarations.
84886         * lib/uninorm/u8-normxfrm.c: New file.
84887         * lib/uninorm/u-normxfrm.h: New file.
84888         * modules/uninorm/u8-normxfrm: New file.
84890 2009-03-07  Bruno Haible  <bruno@clisp.org>
84892         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84893         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84894         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84896 2009-03-07  Bruno Haible  <bruno@clisp.org>
84898         New module 'memxfrm'.
84899         * lib/memxfrm.h: New file.
84900         * lib/memxfrm.c: New file.
84901         * modules/memxfrm: New file.
84903 2009-03-07  Bruno Haible  <bruno@clisp.org>
84905         New module 'memcmp2'.
84906         * lib/memcmp2.h: New file.
84907         * lib/memcmp2.c: New file.
84908         * modules/memcmp2: New file.
84910 2009-03-07  Bruno Haible  <bruno@clisp.org>
84912         Tests for module 'uninorm/decomposing-form'.
84913         * modules/uninorm/decomposing-form-tests: New file.
84914         * tests/uninorm/test-decomposing-form.c: New file.
84916         New module 'uninorm/decomposing-form'.
84917         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84918         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84919         Add 'decomposing_variant' field.
84920         * lib/uninorm/decomposing-form.c: New file.
84921         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84922         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84923         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84924         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84925         * modules/uninorm/decomposing-form: New file.
84926         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84927         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84929 2009-03-07  Bruno Haible  <bruno@clisp.org>
84931         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84932         strings.
84934 2009-03-06  Bruno Haible  <bruno@clisp.org>
84936         Tests for module 'uninorm/u32-normcmp'.
84937         * tests/uninorm/test-u32-normcmp.c: New file.
84938         * modules/uninorm/u32-normcmp-tests: New file.
84940         Tests for module 'uninorm/u16-normcmp'.
84941         * tests/uninorm/test-u16-normcmp.c: New file.
84942         * modules/uninorm/u16-normcmp-tests: New file.
84944         Tests for module 'uninorm/u8-normcmp'.
84945         * tests/uninorm/test-u8-normcmp.c: New file.
84946         * modules/uninorm/u8-normcmp-tests: New file.
84948         New module 'uninorm/u32-normcmp'.
84949         * lib/uninorm/u32-normcmp.c: New file.
84950         * modules/uninorm/u32-normcmp: New file.
84952         New module 'uninorm/u16-normcmp'.
84953         * lib/uninorm/u16-normcmp.c: New file.
84954         * modules/uninorm/u16-normcmp: New file.
84956         New module 'uninorm/u8-normcmp'.
84957         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84958         declarations.
84959         * lib/uninorm/u8-normcmp.c: New file.
84960         * lib/uninorm/u-normcmp.h: New file.
84961         * modules/uninorm/u8-normcmp: New file.
84963 2009-03-06  Bruno Haible  <bruno@clisp.org>
84965         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84966         Reported by Eric Blake.
84968 2009-03-06  Eric Blake  <ebb9@byu.net>
84969             Bruno Haible  <bruno@clisp.org>
84971         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84972         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84973         condition.
84974         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84975         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84976         condition.
84977         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84979 2009-03-06  Eric Blake  <ebb9@byu.net>
84981         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84982         to avoid compiler warnings.
84983         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84985 2009-03-05  Bruno Haible  <bruno@clisp.org>
84987         * tests/test-ftell.c (main): Disable test beyond end of file on
84988         FreeMiNT.
84989         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84991 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84993         * lib/filevercmp.c: Move hidden files up in ordering.
84994         * tests/test-filevercmp.c: Add tests for hidden files.
84996 2009-03-04  Bruno Haible  <bruno@clisp.org>
84998         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84999         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
85000         AM_CFLAGS.
85001         Reported by Simon Josefsson.
85003 2009-03-03  Bruno Haible  <bruno@clisp.org>
85005         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
85006         Reported by Simon Josefsson.
85008         * doc/ld-version-script.texi: Update node reference.
85010 2009-03-03  Bruno Haible  <bruno@clisp.org>
85012         * modules/visibility (License): Change to 'unlimited'.
85013         Suggested by Simon Josefsson.
85015 2009-03-03  Jim Meyering  <meyering@redhat.com>
85017         unlinkdir: cannot_unlink_dir may modify process state
85018         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
85019         it's neither thread-safe nor appropriate for use in a library.
85021 2009-03-03  Eric Blake  <ebb9@byu.net>
85023         test-closein: silence test under Darwin
85024         * tests/test-closein.sh: Ignore stderr from cat, since we don't
85025         care if it dies from EPIPE or EBADF.
85027 2009-03-03  Bruno Haible  <bruno@clisp.org>
85029         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
85030         earlier.
85031         * doc/visibility.texi: Fix @node and @section.
85033 2009-03-03  Simon Josefsson  <simon@josefsson.org>
85035         * doc/gnulib.texi: Link to sections for ld version script and
85036         visibility.
85037         * doc/visibility.texi: Add @node and @section.
85038         * modules/ld-version-script: New module.
85039         * m4/ld-version-script.m4: New file.
85040         * doc/ld-version-script.texi: New file.
85042 2009-03-02  David Lutterkort  <lutter@redhat.com>
85044         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
85045         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85047 2009-03-02  Bruno Haible  <bruno@clisp.org>
85049         * doc/visibility.texi: Mention libtool's -export-symbols option.
85051 2009-03-02  Jim Meyering  <meyering@redhat.com>
85053         announce-gen: new option: --no-print-checksums
85054         * build-aux/announce-gen (usage): Describe it.
85055         (print_checksums): Print a newline here, not in the [*] footnote.
85056         (main): Honor it.
85058 2009-03-01  Bruno Haible  <bruno@clisp.org>
85060         Use socklen_t in the native Windows replacements prototypes.
85061         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
85062         instead of 'int'.
85063         * lib/getsockopt.c (rpl_getsockopt): Likewise.
85064         * lib/setsockopt.c (rpl_setsockopt): Likewise.
85065         * modules/getsockopt (Depends-on): Add socklen.
85066         * modules/setsockopt (Depends-on): Add socklen.
85068 2009-03-01  Bruno Haible  <bruno@clisp.org>
85070         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
85071         least 4.2.
85073 2009-03-01  Eric Blake  <ebb9@byu.net>
85074             Bruno Haible  <bruno@clisp.org>
85076         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
85077         error messages.
85078         * lib/wait-process.c (wait_subprocess): Omit error message about
85079         deadly signal sent to the child of termsigp != NULL.
85081 2009-03-01  Eric Blake  <ebb9@byu.net>
85083         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
85085 2009-03-01  Bruno Haible  <bruno@clisp.org>
85087         Avoid a gcc warning.
85088         * tests/test-sched.c (b): Make global.
85089         Reported by Eric Blake.
85091 2009-01-19  Martin Lambers  <marlam@marlam.de>
85093         Provide POSIX semantics for socket timeout options on W32.
85094         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
85095         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
85096         * modules/setsockopt: Depend on sys_time module for struct timeval.
85097         * modules/getsockopt: Depend on sys_time module for struct timeval.
85099 2009-03-01  Simon Josefsson  <simon@josefsson.org>
85101         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
85102         __USE_GNU, for consistency with netdb.in.h.
85103         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85105 2009-03-01  Bruno Haible  <bruno@clisp.org>
85107         More support for FreeMiNT.
85108         * lib/fseeko.c (rpl_fseeko): Complete last commit.
85109         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85111 2009-03-01  Bruno Haible  <bruno@clisp.org>
85113         More support for FreeMiNT.
85114         * lib/fpurge.c (fpurge): Correct last commit.
85115         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85117 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85119         Fix unportable awk script in vc-list-files.
85120         * build-aux/vc-list-files: In the replacement awk script, use
85121         substr with a second argument of 1, not zero.
85122         Report by Simon Josefsson.
85124 2009-02-28  Bruno Haible  <bruno@clisp.org>
85126         More support for FreeMiNT.
85127         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
85128         to FreeMiNT today.
85129         * lib/fwriting.c (fwriting): Likewise.
85130         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
85132 2009-02-28  Bruno Haible  <bruno@clisp.org>
85134         * tests/test-freadseek.c (main): Disable test beyond end of file on
85135         FreeMiNT.
85136         * tests/test-ftello.c (main): Likewise.
85137         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85139 2009-02-28  Bruno Haible  <bruno@clisp.org>
85141         Add tentative support for FreeMiNT.
85142         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
85143         * lib/fpurge.c (fpurge): Likewise.
85144         * lib/freadable.c (freadable): Likewise.
85145         * lib/freading.c (freading): Likewise.
85146         * lib/freadptr.c (freadptr): Likewise.
85147         * lib/freadseek.c (freadptrinc): Likewise.
85148         * lib/fseeko.c (rpl_fseeko): Likewise.
85149         * lib/fseterr.c (fseterr): Likewise.
85150         * lib/fwritable.c (fwritable): Likewise.
85151         * lib/fwriting.c (fwriting): Likewise.
85152         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
85153         Hourihane.
85154         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85156 2009-02-28  Bruno Haible  <bruno@clisp.org>
85158         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
85159         SIGCHLD.
85160         Reported by Jim Meyering.
85162 2009-02-28  Bruno Haible  <bruno@clisp.org>
85164         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
85165         Mention the results of these tests on various platforms.
85166         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
85167         order.
85168         * doc/posix-functions/printf.texi: Likewise.
85169         * doc/posix-functions/snprintf.texi: Likewise.
85170         * doc/posix-functions/sprintf.texi: Likewise.
85171         * doc/posix-functions/vfprintf.texi: Likewise.
85172         * doc/posix-functions/vprintf.texi: Likewise.
85173         * doc/posix-functions/vsnprintf.texi: Likewise.
85174         * doc/posix-functions/vsprintf.texi: Likewise.
85175         * doc/glibc-functions/obstack_printf.texi: Likewise.
85176         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
85178 2009-02-28  Bruno Haible  <bruno@clisp.org>
85180         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
85181         Reported by Loïc Minier <lool@dooz.org>.
85183 2009-02-27  Bruno Haible  <bruno@clisp.org>
85185         * gnulib-tool (func_import): Make the sed expression used to create the
85186         sed script for updating the .gitignore file POSIX compliant.
85187         Reported by Eric Blake.
85189 2009-02-27  Bruno Haible  <bruno@clisp.org>
85191         * gnulib-tool (sed): Don't alias as "sed --posix".
85192         Reported by Eric Blake.
85194 2009-02-27  Bruno Haible  <bruno@clisp.org>
85196         Avoid test link errors.
85197         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
85198         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
85199         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
85200         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
85201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85203 2009-02-27  Bruno Haible  <bruno@clisp.org>
85205         Avoid spurious "(cached)" in configure output.
85206         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
85207         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
85208         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
85209         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
85210         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
85211         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
85212         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
85213         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
85214         Reported by Eric Blake.
85216 2009-02-27  Eric Blake  <ebb9@byu.net>
85218         printf: fix regression in previous patch
85219         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
85221 2009-02-27  Bruno Haible  <bruno@clisp.org>
85223         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
85224         value.
85225         * lib/stdint.in.h: Likewise.
85226         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
85228 2009-02-27  Eric Blake  <ebb9@byu.net>
85230         doc: mention more functions added in cygwin 1.7.0
85231         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
85232         addition.
85233         * doc/posix-functions/open_wmemstream.texi: Likewise.
85234         * doc/posix-functions/wcsnlen.texi: Likewise.
85235         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85236         * doc/posix-functions/wcstod.texi: Likewise.
85237         * doc/posix-functions/wcstof.texi: Likewise.
85238         * doc/posix-functions/wcstoimax.texi: Likewise.
85239         * doc/posix-functions/wcstok.texi: Likewise.
85240         * doc/posix-functions/wcstoumax.texi: Likewise.
85242         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
85243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
85244         * doc/posix-functions/fprintf.texi: Update.
85245         * doc/posix-functions/printf.texi: Update.
85246         * doc/posix-functions/snprintf.texi: Update.
85247         * doc/posix-functions/sprintf.texi: Update.
85248         * doc/posix-functions/vfprintf.texi: Update.
85249         * doc/posix-functions/vprintf.texi: Update.
85250         * doc/posix-functions/vsnprintf.texi: Update.
85251         * doc/posix-functions/vsprintf.texi: Update.
85252         * doc/glibc-functions/obstack_printf.texi: Update.
85253         * doc/glibc-functions/obstack_vprintf.texi: Update.
85255 2009-02-26  Eric Blake  <ebb9@byu.net>
85257         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
85258         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
85259         compilation bug by using runtime conversion.
85260         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
85261         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
85262         * modules/ceill-tests (Files): Use nan.h.
85263         * modules/floorl-tests (Files): Likewise.
85264         * modules/frexpl-tests (Files): Likewise.
85265         * modules/isnanl-tests (Files): Likewise.
85266         * modules/ldexpl-tests (Files): Likewise.
85267         * modules/roundl-tests (Files): Likewise.
85268         * modules/truncl-tests (Files): Likewise.
85269         * tests/test-ceill.c (main): Use a working NaN.
85270         * tests/test-floorl.c (main): Likewise.
85271         * tests/test-frexpl.c (main): Likewise.
85272         * tests/test-isnan.c (test_long_double): Likewise.
85273         * tests/test-isnanl.h (main): Likewise.
85274         * tests/test-ldexpl.h (main): Likewise.
85275         * tests/test-roundl.h (main): Likewise.
85276         * tests/test-truncl.h (main): Likewise.
85277         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
85279 2009-02-26  Eric Blake  <ebb9@byu.net>
85280             Bruno Haible  <bruno@clisp.org>
85282         Work around a *printf bug with %ls on Solaris.
85283         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
85284         precision is specified, sprintf stops converting the wide string
85285         argument when the number of bytes that have been produced by this
85286         conversion equals or exceeds the precision.
85287         * doc/posix-functions/fprintf.texi: Update.
85288         * doc/posix-functions/printf.texi: Update.
85289         * doc/posix-functions/snprintf.texi: Update.
85290         * doc/posix-functions/sprintf.texi: Update.
85291         * doc/posix-functions/vfprintf.texi: Update.
85292         * doc/posix-functions/vprintf.texi: Update.
85293         * doc/posix-functions/vsnprintf.texi: Update.
85294         * doc/posix-functions/vsprintf.texi: Update.
85295         * doc/glibc-functions/obstack_printf.texi: Update.
85296         * doc/glibc-functions/obstack_vprintf.texi: Update.
85298 2009-02-26  Eric Blake  <ebb9@byu.net>
85300         stdlib: favor compiler check of random.h
85301         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
85302         to avoid an ObjC random.h installed by Swarm.
85304 2009-02-26  Bruno Haible  <bruno@clisp.org>
85306         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
85307         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
85308         Reported by Gary V. Vaughan <gary@gnu.org>.
85310 2009-02-26  Bruno Haible  <bruno@clisp.org>
85312         Fix *printf behaviour regarding the %ls directive.
85313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
85314         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
85315         NEED_PRINTF_DIRECTIVE_LS.
85316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
85317         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85318         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85319         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
85320         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
85321         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
85322         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85324         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85325         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85327         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
85328         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85330         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85331         * doc/posix-functions/fprintf.texi: Update.
85332         * doc/posix-functions/printf.texi: Update.
85333         * doc/posix-functions/snprintf.texi: Update.
85334         * doc/posix-functions/sprintf.texi: Update.
85335         * doc/posix-functions/vfprintf.texi: Update.
85336         * doc/posix-functions/vprintf.texi: Update.
85337         * doc/posix-functions/vsnprintf.texi: Update.
85338         * doc/posix-functions/vsprintf.texi: Update.
85339         * doc/glibc-functions/obstack_printf.texi: Update.
85340         * doc/glibc-functions/obstack_vprintf.texi: Update.
85341         Reported by Eric Blake.
85343 2009-02-25  Bruno Haible  <bruno@clisp.org>
85345         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
85346         with known value.
85347         Reported by Gary V. Vaughan <gary@gnu.org>.
85349 2009-02-25  Bruno Haible  <bruno@clisp.org>
85351         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
85352         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
85353         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
85354         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
85355         Reported by Gary V. Vaughan <gary@gnu.org>.
85357 2009-02-25  Bruno Haible  <bruno@clisp.org>
85359         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
85360         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
85361         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85362         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85363         Reported by Gary V. Vaughan <gary@gnu.org>.
85365 2009-02-25  Eric Blake  <ebb9@byu.net>
85367         tests: skip fseek/ftell tests if ungetc is broken
85368         * m4/ungetc.m4: New file.
85369         * modules/fseek-tests: Split test, so ungetc dependency is
85370         separate from rest of test.
85371         * modules/fseeko-tests: Likewise.
85372         * modules/ftell-tests: Likewise.
85373         * modules/ftello-tests: Likewise.
85374         * tests/test-fseek.c (main): Isolate ungetc dependency.
85375         * tests/test-fseeko.c (main): Likewise.
85376         * tests/test-ftell.c (main): Likewise.
85377         * tests/test-ftello.c (main): Likewise.
85378         * tests/test-fseek2.sh: New file.
85379         * tests/test-fseeko2.sh: Likewise.
85380         * tests/test-ftell2.sh: Likewise.
85381         * tests/test-ftello2.sh: Likewise.
85383 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85385         test-getaddrinfo: fix usage of skip return code 77
85386         * tests/test-gettaddrinfo.c: Return skip code 77 only
85387         for first occurrence of skip (4x77 is not 77)
85389 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85391         strtod: avoid C99 decl-after-statement
85392         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85394 2009-02-24  Eric Blake  <ebb9@byu.net>
85396         strtod: detect HP-UX 11.31 bug
85397         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85398         Reported by Gary V. Vaughan.
85400 2009-02-23  Bruno Haible  <bruno@clisp.org>
85402         Fix invalid read past end of memory block.
85403         * lib/vasnprintf.c (DCHAR_SET): Define.
85404         (local_wcslen): Define only when needed.
85405         (local_strnlen, local_wcsnlen): New functions.
85406         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85407         directives that involve a conversion ourselves.
85408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85409         wcsnlen, mbrtowc, wcrtomb.
85410         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85411         * tests/test-vasprintf-posix.c (test_function): Likewise.
85412         * tests/test-snprintf-posix.h (test_function): Likewise.
85413         * tests/test-sprintf-posix.h (test_function): Likewise.
85414         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85416 2009-02-22  Bruno Haible  <bruno@clisp.org>
85418         Implement new clarified decomposition of Hangul syllables.
85419         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85420         of type LTV, return only a pairwise decomposition.
85421         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85422         Likewise.
85423         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85424         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85425         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85427 2009-02-22  Bruno Haible  <bruno@clisp.org>
85429         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85430         zero-length results and shrink excess allocated memory.
85431         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85432         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85433         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85434         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85435         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85436         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85437         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85438         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85439         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85440         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85441         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85442         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85444 2009-02-21  Bruno Haible  <bruno@clisp.org>
85446         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85447         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85448         spaces after a period. Put a space between a macro name and its
85449         argument list. Trivial rewordings.
85450         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85451         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85452         (main): Return 0 explicitly.
85454 2009-02-21  Bruno Haible  <bruno@clisp.org>
85456         Tests for module 'uninorm/filter'.
85457         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85458         * modules/uninorm/filter-tests: New file.
85460         New module 'uninorm/filter'.
85461         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85462         uninorm_filter_flush, uninorm_filter_free): New declarations.
85463         * lib/uninorm/uninorm-filter.c: New file.
85464         * modules/uninorm/filter: New file.
85466 2009-02-21  Bruno Haible  <bruno@clisp.org>
85468         Tests for module 'uninorm/nfkc'.
85469         * tests/uninorm/test-nfkc.c: New file.
85470         * tests/uninorm/test-u8-nfkc.c: New file.
85471         * tests/uninorm/test-u16-nfkc.c: New file.
85472         * tests/uninorm/test-u32-nfkc.c: New file.
85473         * tests/uninorm/test-u32-nfkc-big.sh: New file.
85474         * tests/uninorm/test-u32-nfkc-big.c: New file.
85475         * modules/uninorm/nfkc-tests: New file.
85477         New module 'uninorm/nfkc'.
85478         * lib/uninorm/nfkc.c: New file.
85479         * modules/uninorm/nfkc: New file.
85481         Tests for module 'uninorm/nfkd'.
85482         * tests/uninorm/test-nfkd.c: New file.
85483         * tests/uninorm/test-u8-nfkd.c: New file.
85484         * tests/uninorm/test-u16-nfkd.c: New file.
85485         * tests/uninorm/test-u32-nfkd.c: New file.
85486         * tests/uninorm/test-u32-nfkd-big.sh: New file.
85487         * tests/uninorm/test-u32-nfkd-big.c: New file.
85488         * modules/uninorm/nfkd-tests: New file.
85490         New module 'uninorm/nfkd'.
85491         * lib/uninorm/nfkd.c: New file.
85492         * modules/uninorm/nfkd: New file.
85494         Tests for module 'uninorm/nfc'.
85495         * tests/uninorm/test-nfc.c: New file.
85496         * tests/uninorm/test-u8-nfc.c: New file.
85497         * tests/uninorm/test-u16-nfc.c: New file.
85498         * tests/uninorm/test-u32-nfc.c: New file.
85499         * tests/uninorm/test-u32-nfc-big.sh: New file.
85500         * tests/uninorm/test-u32-nfc-big.c: New file.
85501         * modules/uninorm/nfc-tests: New file.
85503         New module 'uninorm/nfc'.
85504         * lib/uninorm/nfc.c: New file.
85505         * modules/uninorm/nfc: New file.
85507         Tests for module 'uninorm/nfd'.
85508         * tests/uninorm/test-nfd.c: New file.
85509         * tests/uninorm/test-u8-nfd.c: New file.
85510         * tests/uninorm/test-u16-nfd.c: New file.
85511         * tests/uninorm/test-u32-nfd.c: New file.
85512         * tests/uninorm/test-u32-nfd-big.sh: New file.
85513         * tests/uninorm/test-u32-nfd-big.c: New file.
85514         * tests/uninorm/test-u32-normalize-big.h: New file.
85515         * tests/uninorm/test-u32-normalize-big.c: New file.
85516         * tests/uninorm/NormalizationTest.txt: New file, created from
85517         Unicode 5.1.0 NormalizationTest.txt.
85518         * modules/uninorm/nfd-tests: New file.
85520         New module 'uninorm/nfd'.
85521         * lib/uninorm/nfd.c: New file.
85522         * modules/uninorm/nfd: New file.
85524         New module 'uninorm/u32-normalize'.
85525         * lib/uninorm/u32-normalize.c: New file.
85526         * modules/uninorm/u32-normalize: New file.
85528         New module 'uninorm/u16-normalize'.
85529         * lib/uninorm/u16-normalize.c: New file.
85530         * modules/uninorm/u16-normalize: New file.
85532         New module 'uninorm/u8-normalize'.
85533         * lib/uninorm/u8-normalize.c: New file.
85534         * lib/uninorm/normalize-internal.h: New file.
85535         * lib/uninorm/u-normalize-internal.h: New file.
85536         * modules/uninorm/u8-normalize: New file.
85538         New module 'uninorm/decompose-internal'.
85539         * lib/uninorm/decompose-internal.c: New file.
85540         * modules/uninorm/decompose-internal: New file.
85542         Tests for module 'uninorm/composition'.
85543         * tests/uninorm/test-composition.c: New file.
85544         * modules/uninorm/composition-tests: New file.
85546         New module 'uninorm/composition'.
85547         * lib/uninorm/composition.c: New file.
85548         * lib/uninorm/composition-table.gperf: New file, generated by
85549         gen-uni-tables.
85550         * modules/uninorm/composition: New file.
85552         Tests for module 'uninorm/compat-decomposition'.
85553         * tests/uninorm/test-compat-decomposition.c: New file.
85554         * modules/uninorm/compat-decomposition-tests: New file.
85556         New module 'uninorm/compat-decomposition'.
85557         * lib/uninorm/decompose-internal.h: New file.
85558         * lib/uninorm/compat-decomposition.c: New file.
85559         * modules/uninorm/compat-decomposition: New file.
85561         Tests for module 'uninorm/canonical-decomposition'.
85562         * tests/uninorm/test-canonical-decomposition.c: New file.
85563         * modules/uninorm/canonical-decomposition-tests: New file.
85565         New module 'uninorm/canonical-decomposition'.
85566         * lib/uninorm/canonical-decomposition.c: New file.
85567         * modules/uninorm/canonical-decomposition: New file.
85569         Tests for module 'uninorm/decomposition'.
85570         * tests/uninorm/test-decomposition.c: New file.
85571         * modules/uninorm/decomposition-tests: New file.
85573         New module 'uninorm/decomposition'.
85574         * lib/uninorm/decomposition.c: New file.
85575         * modules/uninorm/decomposition: New file.
85577         New module 'uninorm/decomposition-table'.
85578         * lib/uninorm/decomposition-table.h: New file.
85579         * lib/uninorm/decomposition-table.c: New file.
85580         * lib/uninorm/decomposition-table1.h: New file, generated by
85581         gen-uni-tables.
85582         * lib/uninorm/decomposition-table2.h: New file, generated by
85583         gen-uni-tables.
85584         * modules/uninorm/decomposition-table: New file.
85586         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
85587         (UC_DECOMP_*): New enumeration items.
85588         (get_decomposition): New function.
85589         (struct decomp_table): New type.
85590         (output_decomposition, output_decomposition_tables): New functions.
85591         (unicode_composition_exclusions): New variable.
85592         (fill_composition_exclusions, debug_output_composition_tables): New
85593         functions.
85594         (main): Accept one more argument. Invoke fill_composition_exclusions.
85595         Output decomposition and composition tables.
85597         New module 'uninorm/base'.
85598         * lib/uninorm.h: New file.
85599         * lib/unictype.h: Update comment.
85600         * modules/uninorm/base: New file.
85602 2009-02-21  David Lutterkort  <lutter@redhat.com>
85604         Tests for module 'safe-alloc'.
85605         * tests/test-safe-alloc.c: New file.
85606         * modules/safe-alloc-tests: New file.
85608         New module 'safe-alloc'.
85609         * lib/safe-alloc.h: New file.
85610         * lib/safe-alloc.c: New file.
85611         * m4/safe-alloc.m4: New file.
85612         * modules/safe-alloc: New file.
85613         * doc/safe-alloc.texi: New file.
85614         * doc/gnulib.texi: Include it.
85615         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85616         safe-alloc.
85618 2009-02-18  Bruno Haible  <bruno@clisp.org>
85620         Fix link error on non-glibc systems.
85621         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
85622         variable.
85623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85625 2009-02-18  Jim Meyering  <meyering@redhat.com>
85627         fts: avoid used-uninitialized error due to recent change
85628         * lib/fts.c (fts_read): Guard uses of the new member,
85629         parent->fts_n_dirs_remaining, since it's not relevant for
85630         the parent of a directory specified on the command-line.
85632 2009-02-17  James Youngman  <jay@gnu.org>
85633             Bruno Haible  <bruno@clisp.org>
85635         * m4/include_next.m4: Reformulate comment.
85637 2009-02-16  Jim Meyering  <meyering@redhat.com>
85639         fts: add #if guards so that the fts_lgpl module still builds
85640         * lib/fts.c: Guard just-added hash-table-using parts with
85641         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
85642         Reported by Simon Josefsson.
85644 2009-02-15  Bruno Haible  <bruno@clisp.org>
85646         * modules/array-mergesort-tests: New file.
85647         * tests/test-array-mergesort.c: New file.
85649         New module 'array-mergesort'.
85650         * modules/array-mergesort: New file.
85651         * lib/array-mergesort.h: New file.
85653 2009-02-15  Bruno Haible  <bruno@clisp.org>
85655         Fix 2009-02-07 commit.
85656         * lib/gen-uni-tables.c (output_predicate, output_category,
85657         output_combclass, output_bidi_category, output_decimal_digit,
85658         output_digit, output_numeric, output_mirror, output_scripts,
85659         output_ident_category, output_simple_mapping): Fix format directives.
85660         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
85662 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
85664         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
85665         fixes are available from IBM.
85667 2009-02-13  Jim Meyering  <meyering@redhat.com>
85669         fts: arrange not to stat non-directories in more cases
85670         This makes GNU find (when it doesn't need to stat each file)
85671         *much* more efficient at traversing reiserfs file systems.
85672         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
85673         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
85674         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
85675         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
85676         (leaf_optimization_applies): New function.
85677         (LCO_hash, LCO_compare): New helper functions.
85678         (link_count_optimize_ok): New function.
85679         (fts_stat): Initialize new member (if dir).
85680         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85681         we've just stat'ed a directory.  Skip the stat call when possible.
85682         ---
85683         Note this AFS-related exchange:
85684         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85685         and note find's pioctl call in find/fstype.c.
85686         But that is necessary only if you want to enable the
85687         optimization for AFS, and for now, I don't.
85689         fts: move a function definition "up" (no semantic change)
85690         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85691         "up" to precede upcoming use of a related function.
85693 2009-02-11  Jim Meyering  <meyering@redhat.com>
85695         fts: correct internal computation of nlinks (optimization-related)
85696         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85697         whether the current entry is a directory, so don't test it.
85699 2009-02-10  Bruno Haible  <bruno@clisp.org>
85701         Tests for module 'uniwbrk/ulc-wordbreaks'.
85702         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85703         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85704         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85706         Tests for module 'uniwbrk/u32-wordbreaks'.
85707         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85708         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85710         Tests for module 'uniwbrk/u16-wordbreaks'.
85711         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85712         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85714         Tests for module 'uniwbrk/u8-wordbreaks'.
85715         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85716         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85718 2009-02-10  Bruno Haible  <bruno@clisp.org>
85720         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85721         property.
85722         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85723         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85724         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85726 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85728         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85729         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85731 2009-02-10  Bruno Haible  <bruno@clisp.org>
85733         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85734         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85735         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85736         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85737         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85738         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85740 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85742         * lib/sockets.h (gl_fd_to_handle): New function.
85744         * tests/test-sockets.c: Call gl_fd_to_handle.
85746 2009-02-09  Bruno Haible  <bruno@clisp.org>
85748         * doc/havelib.texi: Document the conventions on bi-arch systems.
85750 2009-02-08  Bruno Haible  <bruno@clisp.org>
85752         Document the AC_LIB_LINKFLAGS macro.
85753         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85754         * doc/gnulib.texi: Include it.
85756 2009-02-08  Bruno Haible  <bruno@clisp.org>
85758         Fix wrong order of sections, compared to TOC.
85759         * doc/gnulib.texi: Include relocatable-maint.texi after the
85760         "Regular expressions" node, not before.
85762 2009-02-08  Bruno Haible  <bruno@clisp.org>
85764         Tests for module 'unicase/totitle'.
85765         * modules/unicase/totitle-tests: New file.
85767         Tests for module 'unicase/tolower'.
85768         * modules/unicase/tolower-tests: New file.
85770         Tests for module 'unicase/toupper'.
85771         * modules/unicase/toupper-tests: New file.
85772         * tests/unicase/test-mapping-part1.h: New file.
85773         * tests/unicase/test-mapping-part2.h: New file.
85775         New module 'unicase/totitle'.
85776         * modules/unicase/totitle: New file.
85777         * lib/unicase/totitle.c: New file.
85779         New module 'unicase/tolower'.
85780         * modules/unicase/tolower: New file.
85781         * lib/unicase/tolower.c: New file.
85783         New module 'unicase/toupper'.
85784         * modules/unicase/toupper: New file.
85785         * lib/unicase/toupper.c: New file.
85786         * lib/unicase/simple-mapping.h: New file.
85788         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85789         (mapping_table): New structure.
85790         (output_simple_mapping): New function.
85791         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85792         * modules/gen-uni-tables (Description): Update.
85793         * lib/unicase/toupper.h: New file, automatically generated by
85794         gen-uni-tables.
85795         * lib/unicase/tolower.h: New file, automatically generated by
85796         gen-uni-tables.
85797         * lib/unicase/totitle.h: New file, automatically generated by
85798         gen-uni-tables.
85799         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85800         gen-uni-tables.
85801         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85802         gen-uni-tables.
85803         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85804         gen-uni-tables.
85806         New module 'unicase/base'.
85807         * modules/unicase/base: New file.
85808         * lib/unicase.h: New file.
85810 2009-02-08  Bruno Haible  <bruno@clisp.org>
85812         New module 'uniwbrk/ulc-wordbreaks'.
85813         * modules/uniwbrk/ulc-wordbreaks: New file.
85814         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85816         New module 'uniwbrk/u32-wordbreaks'.
85817         * modules/uniwbrk/u32-wordbreaks: New file.
85818         * lib/uniwbrk/u32-wordbreaks.c: New file.
85820         New module 'uniwbrk/u16-wordbreaks'.
85821         * modules/uniwbrk/u16-wordbreaks: New file.
85822         * lib/uniwbrk/u16-wordbreaks.c: New file.
85824         New module 'uniwbrk/u8-wordbreaks'.
85825         * modules/uniwbrk/u8-wordbreaks: New file.
85826         * lib/uniwbrk/u8-wordbreaks.c: New file.
85827         * lib/uniwbrk/u-wordbreaks.h: New file.
85829         New module 'uniwbrk/table'.
85830         * modules/uniwbrk/table: New file.
85831         * lib/uniwbrk/wbrktable.h: New file.
85832         * lib/uniwbrk/wbrktable.c: New file.
85834         New module 'uniwbrk/wordbreak-property'.
85835         * modules/uniwbrk/wordbreak-property: New file.
85836         * lib/uniwbrk/wordbreak-property.c: New file.
85838         * lib/gen-uni-tables.c (WBP_*): New enum items.
85839         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85840         (unicode_org_wbp): New variable.
85841         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85842         New functions.
85843         (wbp_table): New structure.
85844         (output_wbp, output_wbrk_tables): New functions.
85845         (main): Accept additional argument. Invoke fill_org_wbp,
85846         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85847         output_wbrk_tables.
85848         * modules/gen-uni-tables (Description): Update.
85849         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85850         gen-uni-tables.
85852         New module 'uniwbrk/base'.
85853         * modules/uniwbrk/base: New file.
85854         * lib/uniwbrk.h: New file.
85856 2009-02-08  Bruno Haible  <bruno@clisp.org>
85858         Update to Unicode 5.1.0.
85859         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85860         U+2185..U+2188.
85861         (is_property_default_ignorable_code_point): Don't include characters
85862         of category Cc or Cs and not-a-characters.
85863         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85864         U+0D79, U+109E, U+109F, U+A60C.
85865         * lib/unictype/bidi_of.h: Regenerated.
85866         * lib/unictype/blocks.h: Regenerated.
85867         * lib/unictype/categ_C.h: Regenerated.
85868         * lib/unictype/categ_Cf.h: Regenerated.
85869         * lib/unictype/categ_Cn.h: Regenerated.
85870         * lib/unictype/categ_L.h: Regenerated.
85871         * lib/unictype/categ_Ll.h: Regenerated.
85872         * lib/unictype/categ_Lm.h: Regenerated.
85873         * lib/unictype/categ_Lo.h: Regenerated.
85874         * lib/unictype/categ_Lu.h: Regenerated.
85875         * lib/unictype/categ_M.h: Regenerated.
85876         * lib/unictype/categ_Mc.h: Regenerated.
85877         * lib/unictype/categ_Me.h: Regenerated.
85878         * lib/unictype/categ_Mn.h: Regenerated.
85879         * lib/unictype/categ_N.h: Regenerated.
85880         * lib/unictype/categ_Nd.h: Regenerated.
85881         * lib/unictype/categ_Nl.h: Regenerated.
85882         * lib/unictype/categ_No.h: Regenerated.
85883         * lib/unictype/categ_P.h: Regenerated.
85884         * lib/unictype/categ_Pd.h: Regenerated.
85885         * lib/unictype/categ_Pe.h: Regenerated.
85886         * lib/unictype/categ_Pf.h: Regenerated.
85887         * lib/unictype/categ_Pi.h: Regenerated.
85888         * lib/unictype/categ_Po.h: Regenerated.
85889         * lib/unictype/categ_Ps.h: Regenerated.
85890         * lib/unictype/categ_S.h: Regenerated.
85891         * lib/unictype/categ_Sk.h: Regenerated.
85892         * lib/unictype/categ_Sm.h: Regenerated.
85893         * lib/unictype/categ_So.h: Regenerated.
85894         * lib/unictype/categ_of.h: Regenerated.
85895         * lib/unictype/combining.h: Regenerated.
85896         * lib/unictype/ctype_alnum.h: Regenerated.
85897         * lib/unictype/ctype_alpha.h: Regenerated.
85898         * lib/unictype/ctype_graph.h: Regenerated.
85899         * lib/unictype/ctype_lower.h: Regenerated.
85900         * lib/unictype/ctype_print.h: Regenerated.
85901         * lib/unictype/ctype_punct.h: Regenerated.
85902         * lib/unictype/ctype_upper.h: Regenerated.
85903         * lib/unictype/decdigit.h: Regenerated.
85904         * lib/unictype/digit.h: Regenerated.
85905         * lib/unictype/mirror.h: Regenerated.
85906         * lib/unictype/numeric.h: Regenerated.
85907         * lib/unictype/pr_alphabetic.h: Regenerated.
85908         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85909         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85910         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85911         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85912         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85913         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85914         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85915         * lib/unictype/pr_combining.h: Regenerated.
85916         * lib/unictype/pr_dash.h: Regenerated.
85917         * lib/unictype/pr_decimal_digit.h: Regenerated.
85918         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85919         * lib/unictype/pr_deprecated.h: Regenerated.
85920         * lib/unictype/pr_diacritic.h: Regenerated.
85921         * lib/unictype/pr_extender.h: Regenerated.
85922         * lib/unictype/pr_format_control.h: Regenerated.
85923         * lib/unictype/pr_grapheme_base.h: Regenerated.
85924         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85925         * lib/unictype/pr_grapheme_link.h: Regenerated.
85926         * lib/unictype/pr_id_continue.h: Regenerated.
85927         * lib/unictype/pr_id_start.h: Regenerated.
85928         * lib/unictype/pr_ideographic.h: Regenerated.
85929         * lib/unictype/pr_ignorable_control.h: Regenerated.
85930         * lib/unictype/pr_lowercase.h: Regenerated.
85931         * lib/unictype/pr_math.h: Regenerated.
85932         * lib/unictype/pr_numeric.h: Regenerated.
85933         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85934         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85935         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85936         * lib/unictype/pr_other_id_continue.h: Regenerated.
85937         * lib/unictype/pr_other_lowercase.h: Regenerated.
85938         * lib/unictype/pr_other_math.h: Regenerated.
85939         * lib/unictype/pr_punctuation.h: Regenerated.
85940         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85941         * lib/unictype/pr_soft_dotted.h: Regenerated.
85942         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85943         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85944         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85945         * lib/unictype/pr_uppercase.h: Regenerated.
85946         * lib/unictype/pr_xid_continue.h: Regenerated.
85947         * lib/unictype/pr_xid_start.h: Regenerated.
85948         * lib/unictype/pr_zero_width.h: Regenerated.
85949         * lib/unictype/scripts.h: Regenerated.
85950         * lib/unictype/scripts_byname.gperf: Regenerated.
85951         * lib/unictype/sy_java_ident.h: Regenerated.
85952         * lib/unilbrk/lbrkprop1.h: Regenerated.
85953         * lib/unilbrk/lbrkprop2.h: Regenerated.
85954         * tests/unictype/test-categ_C.c: Regenerated.
85955         * tests/unictype/test-categ_Cf.c: Regenerated.
85956         * tests/unictype/test-categ_Cn.c: Regenerated.
85957         * tests/unictype/test-categ_L.c: Regenerated.
85958         * tests/unictype/test-categ_Ll.c: Regenerated.
85959         * tests/unictype/test-categ_Lm.c: Regenerated.
85960         * tests/unictype/test-categ_Lo.c: Regenerated.
85961         * tests/unictype/test-categ_Lu.c: Regenerated.
85962         * tests/unictype/test-categ_M.c: Regenerated.
85963         * tests/unictype/test-categ_Mc.c: Regenerated.
85964         * tests/unictype/test-categ_Me.c: Regenerated.
85965         * tests/unictype/test-categ_Mn.c: Regenerated.
85966         * tests/unictype/test-categ_N.c: Regenerated.
85967         * tests/unictype/test-categ_Nd.c: Regenerated.
85968         * tests/unictype/test-categ_Nl.c: Regenerated.
85969         * tests/unictype/test-categ_No.c: Regenerated.
85970         * tests/unictype/test-categ_P.c: Regenerated.
85971         * tests/unictype/test-categ_Pd.c: Regenerated.
85972         * tests/unictype/test-categ_Pe.c: Regenerated.
85973         * tests/unictype/test-categ_Pf.c: Regenerated.
85974         * tests/unictype/test-categ_Pi.c: Regenerated.
85975         * tests/unictype/test-categ_Po.c: Regenerated.
85976         * tests/unictype/test-categ_Ps.c: Regenerated.
85977         * tests/unictype/test-categ_S.c: Regenerated.
85978         * tests/unictype/test-categ_Sk.c: Regenerated.
85979         * tests/unictype/test-categ_Sm.c: Regenerated.
85980         * tests/unictype/test-categ_So.c: Regenerated.
85981         * tests/unictype/test-ctype_alnum.c: Regenerated.
85982         * tests/unictype/test-ctype_alpha.c: Regenerated.
85983         * tests/unictype/test-ctype_graph.c: Regenerated.
85984         * tests/unictype/test-ctype_lower.c: Regenerated.
85985         * tests/unictype/test-ctype_print.c: Regenerated.
85986         * tests/unictype/test-ctype_punct.c: Regenerated.
85987         * tests/unictype/test-ctype_upper.c: Regenerated.
85988         * tests/unictype/test-decdigit.h: Regenerated.
85989         * tests/unictype/test-digit.h: Regenerated.
85990         * tests/unictype/test-numeric.h: Regenerated.
85991         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85992         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85993         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85994         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85995         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85996         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85997         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85998         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85999         * tests/unictype/test-pr_combining.c: Regenerated.
86000         * tests/unictype/test-pr_dash.c: Regenerated.
86001         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
86002         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
86003         * tests/unictype/test-pr_deprecated.c: Regenerated.
86004         * tests/unictype/test-pr_diacritic.c: Regenerated.
86005         * tests/unictype/test-pr_extender.c: Regenerated.
86006         * tests/unictype/test-pr_format_control.c: Regenerated.
86007         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
86008         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
86009         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
86010         * tests/unictype/test-pr_id_continue.c: Regenerated.
86011         * tests/unictype/test-pr_id_start.c: Regenerated.
86012         * tests/unictype/test-pr_ideographic.c: Regenerated.
86013         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
86014         * tests/unictype/test-pr_lowercase.c: Regenerated.
86015         * tests/unictype/test-pr_math.c: Regenerated.
86016         * tests/unictype/test-pr_numeric.c: Regenerated.
86017         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
86018         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
86019         Regenerated.
86020         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
86021         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
86022         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
86023         * tests/unictype/test-pr_other_math.c: Regenerated.
86024         * tests/unictype/test-pr_punctuation.c: Regenerated.
86025         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
86026         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
86027         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
86028         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
86029         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
86030         * tests/unictype/test-pr_uppercase.c: Regenerated.
86031         * tests/unictype/test-pr_xid_continue.c: Regenerated.
86032         * tests/unictype/test-pr_xid_start.c: Regenerated.
86033         * tests/unictype/test-pr_zero_width.c: Regenerated.
86035         Update to Unicode 5.1.0.
86036         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
86037         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
86038         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
86039         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
86040         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
86041         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
86042         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
86043         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
86044         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
86045         (nonspacing_table_ind): Update.
86046         * tests/uniwidth/test-uc_width2.sh: Update expected result.
86048         Update to Unicode 5.1.0.
86049         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
86050         code transform.
86051         * lib/uniname/uniname.c (unicode_character_name,
86052         unicode_name_character): Add the range 0x1Fxxx to the code transform.
86053         * lib/uniname/uninames.h: Regenerated.
86054         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
86056 2009-02-07  Bruno Haible  <bruno@clisp.org>
86058         Merge gen-ctype and gen-lbrk into a single program.
86059         * lib/gen-uni-tables.c: New file, incorporating
86060         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
86061         Add directory prefixes to the names of the generated files.
86062         * lib/unictype/gen-ctype.c: Remove file.
86063         * lib/unilbrk/gen-lbrk.c: Remove file.
86064         * modules/gen-uni-tables: New file.
86065         * modules/unictype/gen-ctype: Remove file.
86066         * modules/unilbrk/gen-lbrk: Remove file.
86068 2009-02-07  Bruno Haible  <bruno@clisp.org>
86070         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
86072         New module 'unistr/u32-strcoll'.
86073         * modules/unistr/u32-strcoll: New file.
86074         * lib/unistr/u32-strcoll.c: New file.
86076         New module 'unistr/u16-strcoll'.
86077         * modules/unistr/u16-strcoll: New file.
86078         * lib/unistr/u16-strcoll.c: New file.
86080         New module 'unistr/u8-strcoll'.
86081         * modules/unistr/u8-strcoll: New file.
86082         * lib/unistr/u8-strcoll.c: New file.
86083         * lib/unistr/u-strcoll.h: New file.
86085 2009-02-07  Bruno Haible  <bruno@clisp.org>
86087         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
86088         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86089         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86090         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
86091         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
86092         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
86094 2009-02-07  Bruno Haible  <bruno@clisp.org>
86096         Make 64-bit clean.
86097         * lib/unictype/gen-ctype.c (output_predicate, output_category,
86098         output_combclass, output_bidi_category, output_decimal_digit,
86099         output_digit, output_numeric, output_mirror, output_scripts,
86100         output_ident_category): Use proper width specifier in format strings.
86102 2009-02-07  Bruno Haible  <bruno@clisp.org>
86104         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
86105         failure behaviour.
86107 2009-02-07  Jim Meyering  <meyering@redhat.com>
86109         regex: avoid compilation failure with upcoming gcc-4.4
86110         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
86111         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
86112         "... error: integer overflow in preprocessor expression".
86114 2009-02-05  Ben Pfaff  <blp@gnu.org>
86116         Fix link errors on Windows when close module is used.
86117         * modules/close: Add $(LIB_CLOSE) to Link section.
86118         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
86119         $(LIB_CLOSE) on Windows.
86121 2009-02-05  Jim Meyering  <meyering@redhat.com>
86123         still avoid unused-parameter warnings, but do it cleanly
86124         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
86125         (get_fs_usage): Cast to void instead.
86126         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
86127         (dev_from_mount_options, read_file_system_list): Cast to void.
86128         Prompted by Bruno Haible.
86130 2009-02-04  Jim Meyering  <meyering@redhat.com>
86132         fsusage.c: correct copyright year
86133         * lib/fsusage.c: Reflect year in which the change is pushed into
86135         avoid misc. warnings
86136         * lib/fsusage.c (UNUSED_PARAM): Define.
86137         (get_fs_usage): Mark parameter "disk" as unused.
86138         * lib/getugroups.c (getgrent): Use "void" in prototype.
86139         * lib/mountlist.c: Mark unused parameters.
86140         (read_file_system_list): Declare a local with "const".
86141         * lib/nanosleep.c (getnow): Declare static.
86142         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
86144         dirfd: set errno upon failure
86145         * lib/dirfd.c: Include <errno.h>.
86146         Set errno to ENOTSUP when returning -1.
86147         * modules/dirfd (Depends-on): Add errno.
86148         Suggested by John Kodis <kodis@comcast.net>.
86150 2009-02-01  Bruno Haible  <bruno@clisp.org>
86152         Don't assume sizeof (long) >= sizeof (void *).
86153         * lib/memcmp.c: Include stdint.h.
86154         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
86155         srcp2 to 'const byte *'.
86156         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
86157         types to uintptr_t.
86158         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
86159         * modules/memcmp (Depends-on): Add stdint.
86160         Reported by Ozkan Sezer <sezeroz@gmail.com>.
86162 2009-01-30  Eric Blake  <ebb9@byu.net>
86164         fix more require-before-expand issues
86165         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
86166         expand, AC_PROG_AWK.
86167         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
86169 2009-01-28  Eric Blake  <ebb9@byu.net>
86171         version-etc: use consistent URL formatting
86172         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
86173         Improve formatting.  Use fputs for string without %.
86175 2009-01-28  Jim Meyering  <meyering@redhat.com>
86177         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
86178         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
86179         "underquoted definition of NAME" from autoconf-2.59.
86181 2009-01-28  Bruno Haible  <bruno@clisp.org>
86183         * doc/gnulib.texi: Add "Obsolete modules" to index.
86185 2009-01-28  Jim Meyering  <meyering@redhat.com>
86187         useless-if-before-free: recognize more variants
86188         * build-aux/useless-if-before-free: Also recognize e.g.,
86189         if (NULL != p) free (p);
86191 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86193         test-getaddrinfo: skip (don't fail) this test when there's no network
86194         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86195         on the presumption that it means you lack network access.
86197 2009-01-26  Jim Meyering  <meyering@redhat.com>
86199         fflush: avoid warnings on modern systems
86200         * lib/fflush.c (rpl_fflush): Move declarations of locals,
86201         pos and result, into scopes where they're used.
86203 2009-01-26  Eric Blake  <ebb9@byu.net>
86205         Silence warning reintroduced by recent extensions patch.
86206         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
86207         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
86208         autoconf.
86210         Backport improved autoconf semantics of AC_DEFUN_ONCE.
86211         * m4/00gnulib.m4: New file.
86212         * gnulib-tool (func_get_filelist): Always use it.
86213         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
86214         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
86216 2009-01-25  Bruno Haible  <bruno@clisp.org>
86218         Make test-quotearg work on MacOS X and AIX.
86219         * tests/test-quotearg.sh: New file.
86220         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
86221         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
86222         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
86223         include <libintl.h>.
86224         (fake_locale): Remove variable.
86225         (gettext, dgettext, dcgettext): Remove functions.
86226         (main): Instead of setting a fake locale, set a real locale. Call
86227         textdomain and bindtextdomain.
86228         * modules/quotearg-tests (Files): Add the new files.
86229         (Depends-on): Add gettext, setenv, unsetenv.
86230         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86231         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
86232         Augment TESTS_ENVIRONMENT.
86234 2009-01-25  Bruno Haible  <bruno@clisp.org>
86236         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
86237         fr_FR.ISO8859-1 locale on MacOS X.
86238         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
86239         ja_JP.eucJP locale on MacOS X.
86240         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
86241         zh_CN.GB18030 locale on MacOS X.
86243 2009-01-25  Bruno Haible  <bruno@clisp.org>
86245         Avoid link errors on MacOS X 10.3.
86246         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
86247         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
86249 2009-01-25  Bruno Haible  <bruno@clisp.org>
86251         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86252         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
86253         * modules/pipe (Files): Remove m4/posix_spawn.m4.
86254         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86255         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
86256         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86257         posix_spawnattr_init, posix_spawnattr_setsigmask,
86258         posix_spawnattr_setflags, posix_spawnattr_destroy.
86260         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86261         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
86262         * modules/execute (Files): Remove m4/posix_spawn.m4.
86263         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86264         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86265         posix_spawnattr_init, posix_spawnattr_setsigmask,
86266         posix_spawnattr_setflags, posix_spawnattr_destroy.
86268 2009-01-25  Bruno Haible  <bruno@clisp.org>
86270         * lib/glthread/threadlib.c: Include <stdlib.h>.
86272 2009-01-25  Bruno Haible  <bruno@clisp.org>
86274         * lib/glthread/threadlib.c (dummy): New declaration.
86276 2009-01-25  Bruno Haible  <bruno@clisp.org>
86278         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
86279         multibyte characters also for the GB18030 encoding. Don't crash when
86280         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
86282 2009-01-25  Bruno Haible  <bruno@clisp.org>
86284         Avoid redefining 'struct random_data' on OSF/1 5.1.
86285         * lib/stdlib.in.h: Include <random.h> if it exists.
86286         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
86287         HAVE_RANDOM_H. Include <random.h> when testing whether
86288         'struct random_data' exists.
86289         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
86291 2009-01-25  Bruno Haible  <bruno@clisp.org>
86293         Don't install charset.alias on MacOS X >= 10.3.
86294         * lib/localcharset.c (DARWIN7): New macro.
86295         (get_charset_aliases): Hardcode the result for Darwin7.
86296         * modules/localcharset (install-exec-local): Don't install
86297         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
86299 2009-01-25  Bruno Haible  <bruno@clisp.org>
86301         Don't install charset.alias on mingw and Cygwin.
86302         * modules/localcharset (install-exec-local): Don't install
86303         charset.alias on mingw and Cygwin, if the file does not yet exist.
86304         The result for these platforms is hardcoded in localcharset.c.
86306 2009-01-25  Bruno Haible  <bruno@clisp.org>
86308         Make it possible again to use AC_GNU_SOURCE together with gnulib.
86309         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
86310         before requiring AC_USE_SYSTEM_EXTENSIONS.
86312 2009-01-25  Jim Meyering  <meyering@redhat.com>
86314         c-strtod: avoid warnings
86315         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
86316         "assignment discards qualifiers from pointer target type" warnings.
86318 2009-01-24  Bruno Haible  <bruno@clisp.org>
86320         Add support for non-UTF-8 locales on MacOS X.
86321         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
86322         canonical encodings. For Darwin 7 and newer, don't map traditional
86323         encodings to UTF-8.
86324         Reported by Vincent Lefevre <vincent@vinc17.org>
86325         at <http://savannah.gnu.org/bugs/?25235>.
86327 2009-01-24  Bruno Haible  <bruno@clisp.org>
86329         * doc/gnulib.texi (Obsolete modules): New section.
86330         Reported by Mike Frysinger <vapier@gentoo.org>.
86332 2009-01-24  Bruno Haible  <bruno@clisp.org>
86334         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
86335         (%.dvi): New rule.
86337 2009-01-24  Bruno Haible  <bruno@clisp.org>
86339         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
86340         Reported by Eric Blake.
86342 2009-01-24  Bruno Haible  <bruno@clisp.org>
86344         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
86345         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
86346         Reported by Gary V. Vaughan <gary@gnu.org>.
86348 2009-01-24  Bruno Haible  <bruno@clisp.org>
86350         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
86352 2009-01-23  Bruno Haible  <bruno@clisp.org>
86354         Make c-strtod, c-strtold usable in libraries.
86355         * lib/c-strtod.c: Include string.h instead of xalloc.h.
86356         (C_STRTOD): Call strdup instead of xstrdup.
86357         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
86358         * modules/c-strtold (Depends-on): Likewise.
86359         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
86360         * NEWS: Mention the change.
86361         Reported by Michael Gold <mgold@ncf.ca>.
86363 2009-01-23  Jim Meyering  <meyering@redhat.com>
86365         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86366         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86367         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86369 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86371         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86372         GNU CoreUtils.
86373         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86374         * modules/version-etc (Description): Update.
86376 2009-01-22  Bruno Haible  <bruno@clisp.org>
86378         Cache the C locale object.
86379         * lib/c-strtod.c (c_locale_cache): New variable.
86380         (c_locale): New function.
86381         (C_STRTOD): Use it, and don't call freelocale.
86382         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86383         Suggested by Paolo Bonzini.
86385 2009-01-21  Bruno Haible  <bruno@clisp.org>
86387         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86388         conditions other than overflow.
86390 2009-01-21  Bruno Haible  <bruno@clisp.org>
86392         * lib/c-strtod.c: Include errno.h.
86393         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86394         value from STRTOD_L and STRTOD.
86396 2009-01-21  Bruno Haible  <bruno@clisp.org>
86397         and Jim Meyering  <meyering@redhat.com>
86399         nanosleep: skip configure test (fail it) for apple universal builds
86400         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86401         universal builds, assume that nanosleep does not work.
86402         * modules/nanosleep (Depends-on): Add multiarch.
86404         mktime: skip configure test (fail it) for apple universal builds
86405         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86406         universal builds, assume that mktime does not work.
86407         * modules/mktime (Depends-on): Add multiarch.
86409 2009-01-21  Eric Blake  <ebb9@byu.net>
86411         multiarch: avoid expand-before-require warning
86412         * modules/multiarch (configure.ac): Require, rather than expand,
86413         gl_MULTIARCH.
86414         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86415         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86416         enforce that all clients require it.  Partial reversion of
86417         2008-12-29 patch.
86419         error: avoid expand-before-require warning
86420         * modules/errno (configure.ac): Require, rather than expand,
86421         gl_HEADER_ERRNO_H.
86422         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86423         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86424         enforce that all clients require it.
86426         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86427         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86428         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86429         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86431 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86433         Revert:
86434         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86436         regex: do not depend on obsolete modules.
86437         * modules/regex: Remove memcmp and memmove.
86439 2009-01-20  Bruno Haible  <bruno@clisp.org>
86441         Make the 'link' module link on Windows NT 4.
86442         * lib/link.c (_WIN32_WINNT): Don't define.
86443         (CreateHardLinkFuncType): New type.
86444         (CreateHardLinkFunc, initialized): New variables.
86445         (initialize): New function.
86446         (link): Invoke CreateHardLink indirectly through the function pointer.
86448 2009-01-20  Bruno Haible  <bruno@clisp.org>
86450         Fix compilation failure on mingw.
86451         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86453 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86455         * doc/c-strtod.texi: Mention a couple of restrictions.
86457 2009-01-20  Jim Meyering  <meyering@redhat.com>
86459         gettimeofday: move more declarations out of functions
86460         * lib/gettimeofday.c: Move extern declarations of tzset and
86461         gmtime out of containing functions.  Prompted by Bruno Haible.
86463 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86465         regex: do not depend on obsolete modules.
86466         * modules/regex: Remove memcmp and memmove.
86468 2009-01-19  Bruno Haible  <bruno@clisp.org>
86470         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86471         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86472         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86473         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
86474         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
86476 2009-01-19  Bruno Haible  <bruno@clisp.org>
86478         * tests/test-link.c: Include <errno.h>.
86479         (main): Exit with code 77 when a hard link cannot be created due to
86480         the file system.
86481         * tests/test-link.sh: Skip test when a hard link cannot be created due
86482         to the file system.
86483         Suggested by Eric Blake.
86485 2009-01-19  Martin Lambers  <marlam@marlam.de>
86487         * modules/link-tests: New file.
86488         * tests/test-link.sh: New file.
86489         * tests/test-link.c: New file.
86491 2009-01-19  Eric Blake  <ebb9@byu.net>
86493         doc: mention another function added in cygwin 1.7.0
86494         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
86495         Another new function in cygwin 1.7.
86497 2009-01-19  Bruno Haible  <bruno@clisp.org>
86499         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86500         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
86501         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
86502         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86503         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
86504         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
86505         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
86506         * m4/md4.m4 (gl_MD4): Likewise.
86507         * m4/md5.m4 (gl_MD5): Likewise.
86508         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
86509         * m4/sha1.m4 (gl_SHA1): Likewise.
86510         * m4/sha256.m4 (gl_SHA256): Likewise.
86511         * m4/sha512.m4 (gl_SHA512): Likewise.
86513 2009-01-19  Bruno Haible  <bruno@clisp.org>
86515         * modules/uniname/uniname-tests (Depends-on): Add progname.
86516         * tests/uniname/test-uninames.c: Include progname.h.
86517         (main): Call set_program_name.
86519         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
86520         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
86521         (main): Call set_program_name.
86523         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
86524         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
86525         (main): Call set_program_name.
86527         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
86528         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
86529         (main): Call set_program_name.
86531         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
86532         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
86533         (main): Call set_program_name.
86535         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
86536         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
86537         (main): Call set_program_name.
86539         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
86540         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
86541         (main): Call set_program_name.
86543         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
86544         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
86545         (main): Call set_program_name.
86547         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
86548         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
86549         (main): Call set_program_name.
86551 2009-01-19  Eric Blake  <ebb9@byu.net>
86553         test-unistd: test previous patch
86554         * tests/test-unistd.c: Test *_FILENO macros.
86556         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
86557         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86558         Guarantee a definition.
86559         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
86560         * modules/unistd-safer (Depends-on): Add dependency on unistd.
86561         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
86562         * lib/dup-safer.c (STDERR_FILENO): Likewise.
86563         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86564         Likewise.
86565         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
86566         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
86567         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86568         Likewise.
86569         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
86570         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
86571         (STDERR_FILENO): Likewise.
86572         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
86573         (STDERR_FILENO): Likewise.
86574         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
86575         (STDERR_FILENO): Likewise.
86576         Reported by Elbert Pol.
86578 2009-01-19  Eric Blake  <ebb9@byu.net>
86580         doc: mention more functions added in cygwin 1.7.0
86581         * doc/posix-functions/abort.texi (abort): Update wording related
86582         to cygwin.
86583         * doc/posix-functions/daylight.texi (daylight): Likewise.
86584         * doc/posix-functions/optarg.texi (optarg): Likewise.
86585         * doc/posix-functions/optarg.texi (opterr): Likewise.
86586         * doc/posix-functions/optarg.texi (optind): Likewise.
86587         * doc/posix-functions/optarg.texi (optopt): Likewise.
86588         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
86589         worked in 1.5.x, and was withdrawn in 1.7.
86590         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
86591         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
86592         cygwin versions.
86593         * doc/posix-functions/perror.texi (perror): Likewise.
86594         * doc/posix-functions/printf.texi (printf): Likewise.
86595         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
86596         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
86597         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
86598         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
86599         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
86600         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
86601         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
86602         Likewise.
86603         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
86604         Likewise.
86605         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
86606         this function.
86607         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
86608         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86609         Likewise.
86610         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86611         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86612         * doc/posix-functions/confstr.texi (confstr): Likewise.
86613         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86614         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86615         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86616         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
86617         * doc/posix-functions/fputws.texi (fputws): Likewise.
86618         * doc/posix-functions/fwide.texi (fwide): Likewise.
86619         * doc/posix-functions/getwc.texi (getwc): Likewise.
86620         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
86621         * doc/posix-functions/putwc.texi (putwc): Likewise.
86622         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
86623         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
86624         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
86625         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
86626         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
86627         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
86628         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
86629         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
86630         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
86631         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
86632         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
86634 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86636         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
86637         * lib/ioctl.c: Include <sys/ioctl.h>.
86639 2009-01-19  Simon Josefsson  <simon@josefsson.org>
86641         * modules/getdate-tests (Depends-on): Add progname.
86642         * tests/test-getdate.c: Use progname module, to avoid link errors
86643         on non-glibc systems.
86645 2009-01-18  Simon Josefsson  <simon@josefsson.org>
86647         * modules/filenamecat-tests (Depends-on): Add progname.
86648         * modules/fstrcmp-tests (Depends-on): Likewise.
86650         * tests/test-filenamecat.c: Use progname module, to avoid link
86651         errors on non-glibc systems.
86652         * tests/test-fstrcmp.c: Likewise.
86654 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86656         gettimeofday: avoid warning: nested extern declaration of 'localtime'
86657         * lib/gettimeofday.c: Move extern declaration out of function.
86659 2009-01-18  Bruno Haible  <bruno@clisp.org>
86661         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
86662         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
86663         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
86665 2009-01-18  Bruno Haible  <bruno@clisp.org>
86667         * lib/strftime.c (MEMPCPY): Remove unused macro.
86668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
86670 2009-01-18  Martin Lambers  <marlam@marlam.de>
86672         New module 'link'.
86673         * lib/unistd.in.h (link): New declaration.
86674         * lib/link.c: New file.
86675         * m4/link.m4: New file.
86676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
86677         HAVE_LINK.
86678         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
86679         * modules/link: New file.
86680         * doc/posix-functions/link.texi: Mention the new module.
86682 2009-01-18  Bruno Haible  <bruno@clisp.org>
86684         * tests/test-avltree_list.c (main): Call set_program_name.
86685         * tests/test-avltree_oset.c (main): Likewise.
86686         * tests/test-obstack-printf.c: Include progname.h.
86687         (main): Call set_program_name.
86688         * tests/test-quotearg.c: Include progname.h.
86689         (main): Call set_program_name.
86690         * tests/test-xmemdup0.c: Include progname.h.
86691         (main): Call set_program_name.
86693 2009-01-18  Bruno Haible  <bruno@clisp.org>
86695         New module 'alphasort'.
86696         * lib/dirent.in.h (alphasort): New declaration.
86697         * lib/alphasort.c: New file, from glibc with modifications.
86698         * m4/alphasort.m4: New file.
86699         * modules/alphasort: New file.
86700         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86701         HAVE_ALPHASORT.
86702         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86703         HAVE_ALPHASORT.
86704         * doc/posix-functions/alphasort.texi: Mention the new module and the
86705         portability problems.
86707 2009-01-18  Bruno Haible  <bruno@clisp.org>
86709         New module 'scandir'.
86710         * lib/dirent.in.h (scandir): New declaration.
86711         * lib/scandir.c: New file, from glibc with modifications.
86712         * m4/scandir.m4: New file.
86713         * modules/scandir: New file.
86714         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86715         HAVE_SCANDIR.
86716         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86717         HAVE_SCANDIR.
86718         * doc/posix-functions/scandir.texi: Mention the new module and the
86719         portability problems.
86721 2009-01-17  Bruno Haible  <bruno@clisp.org>
86723         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86724         Update documentation.
86725         (func_remove_suffix): Escape all dots in the suffix. Update
86726         documentation.
86727         (func_filter_filelist): Update documentation.
86728         Reported by Ralf Wildenhues.
86730 2009-01-17  Bruno Haible  <bruno@clisp.org>
86732         * modules/dprintf-posix-tests: New file.
86733         * tests/test-dprintf-posix.sh: New file.
86734         * tests/test-dprintf-posix.c: New file.
86736         New modules 'dprintf', 'dprintf-posix'.
86737         * lib/stdio.in.h (dprintf): New declaration.
86738         * lib/dprintf.c: New file.
86739         * m4/dprintf.m4: New file.
86740         * m4/dprintf-posix.m4: New file.
86741         * modules/dprintf: New file.
86742         * modules/dprintf-posix: New file.
86743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86744         HAVE_DPRINTF, REPLACE_DPRINTF.
86745         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86746         HAVE_DPRINTF, REPLACE_DPRINTF.
86747         * doc/posix-functions/dprintf.texi: Mention the new modules.
86749 2009-01-17  Bruno Haible  <bruno@clisp.org>
86751         * modules/vdprintf-posix-tests: New file.
86752         * tests/test-vdprintf-posix.sh: New file.
86753         * tests/test-vdprintf-posix.c: New file.
86755         New modules 'vdprintf', 'vdprintf-posix'.
86756         * lib/stdio.in.h (vdprintf): New declaration.
86757         * lib/vdprintf.c: New file.
86758         * m4/vdprintf.m4: New file.
86759         * m4/vdprintf-posix.m4: New file.
86760         * modules/vdprintf: New file.
86761         * modules/vdprintf-posix: New file.
86762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86763         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86764         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86765         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86766         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86768 2009-01-17  Bruno Haible  <bruno@clisp.org>
86770         Fix replacement of fopen on mingw.
86771         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86772         mingw.
86774 2009-01-17  Bruno Haible  <bruno@clisp.org>
86776         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86777         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86779 2009-01-17  Bruno Haible  <bruno@clisp.org>
86781         Avoid test-fflush2.sh failure on mingw.
86782         * tests/test-fflush2.c: Include binary-io.h.
86783         (main): Put standard input into binary mode.
86784         * modules/fflush-tests (Depends-on): Add binary-io.
86786 2009-01-17  Bruno Haible  <bruno@clisp.org>
86788         * lib/wchar.in.h: In another particular situation, include only the
86789         system's <wchar.h> file.
86790         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86791         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86792         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86794 2009-01-17  Bruno Haible  <bruno@clisp.org>
86796         Support for stripping executables in --enable-relocatable.
86797         * build-aux/install-reloc: Expect one more argument, or an environment
86798         variable RELOC_STRIP_PROG. If set, strip the destination program and
86799         its wrapper.
86800         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86801         RELOC_STRIP_PROG.
86802         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86803         to set RELOCATABLE_STRIP.
86804         * NEWS: Mention the new Makefile requirement.
86806 2009-01-17  Bruno Haible  <bruno@clisp.org>
86808         * build-aux/install-reloc: Remove debugging information left over by
86809         C compiler on MacOS X.
86811 2009-01-17  Bruno Haible  <bruno@clisp.org>
86813         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86814         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86815         _NSGetExecutablePath.
86817 2009-01-16  Jim Meyering  <meyering@redhat.com>
86819         strerror: avoid warnings about discarding "const"
86820         * lib/strerror.c (rpl_strerror): Instead of returning a const
86821         string from each and every "case", use a variable, and add a single
86822         cast after the switch.
86824 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86826         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86828 2009-01-16  Bruno Haible  <bruno@clisp.org>
86830         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86831         array initializer syntax that also works in C++ mode.
86832         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86834 2009-01-16  Jim Meyering  <meyering@redhat.com>
86836         poll: suppress a warning
86837         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86838         to ignore "...unsigned expression < 0 is always false" warnings.
86840 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86842         poll: remove declarations of unused variables
86843         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86844         sockbuf and optlen.
86846 2009-01-15  Bruno Haible  <bruno@clisp.org>
86848         Make fflush-after-ungetc POSIX compliant on BSD systems.
86849         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86850         (clear_ungetc_buffer): Implement also for other systems.
86851         (rpl_fflush): On glibc systems, invoke
86852         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86853         clear_ungetc_buffer after fetching the stream's position, not before.
86855 2009-01-15  Bruno Haible  <bruno@clisp.org>
86857         Make fflush-after-ungetc POSIX compliant on glibc systems.
86858         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86859         after ungetc.
86860         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86861         (rpl_fflush): On glibc systems, simply call the system's fflush
86862         function after clearing the ungetc buffer.
86863         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86864         Instead, lseek only to the end of file, then use the system's fseeko
86865         for the rest. On glibc systems, reset the EOF indicator bit.
86867 2009-01-15  Jim Meyering  <meyering@redhat.com>
86869         openmp.m4: revert quote-adding change, for portability to older autoconf
86870         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86871         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86872         Simon Josefsson noticed the problem when using autoconf-2.61.
86874 2009-01-15  Bruno Haible  <bruno@clisp.org>
86876         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86877         * tests/test-fflush2.c (ASSERT): Always fail.
86878         (main): Add two tests for fflush() after ungetc(), taking into account
86879         the Austin Group's clarification.
86880         Suggested by Eric Blake.
86882 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86884         mktime.m4: remove K&R-style function prototypes
86885         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86886         for the Sun C++ compiler.
86888 2009-01-14  Bruno Haible  <bruno@clisp.org>
86890         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86891         while including <wchar.h>.
86892         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86893         the system's <wchar.h> file.
86894         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86896 2009-01-14  Bruno Haible  <bruno@clisp.org>
86898         * m4/csharp.m4: Don't mention gettext on the serial number line.
86899         * m4/csharpexec.m4: Likewise.
86900         * m4/eaccess.m4: Likewise.
86901         * m4/javaexec.m4: Likewise.
86902         * m4/sig_atomic_t.m4: Likewise.
86903         * m4/tmpdir.m4: Likewise.
86904         * m4/intldir.m4: Bump gettext version.
86905         * m4/lib-ld.m4: Likewise.
86907 2009-01-14  Bruno Haible  <bruno@clisp.org>
86909         * lib/progname.c (set_program_name): Add more comments.
86910         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86912 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86914         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86915         were sys/stat.h does not define it.
86917 2009-01-14  Jim Meyering  <meyering@redhat.com>
86919         many *.m4 files: improve m4 quoting
86920         99% of this change was performed by running the following commands:
86921         git ls-files | grep '\.m4$' | xargs perl -pi \
86922           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86923           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86924           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86925           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86926         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86927         The remainder were to add Copyright dates, increment serial numbers,
86928         undo some changes in comments, exclude m4/intl.m4, and add quotes
86929         around the "1" in ",1" where the unusual spacing prohibited the
86930         above regexps from doing the job.  For more details, see
86931         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86932         * m4/acl.m4: Modified.
86933         * m4/afs.m4: Likewise.
86934         * m4/alloca.m4: Likewise.
86935         * m4/argp.m4: Likewise.
86936         * m4/argz.m4: Likewise.
86937         * m4/atexit.m4: Likewise.
86938         * m4/bison-i18n.m4: Likewise.
86939         * m4/bison.m4: Likewise.
86940         * m4/byteswap.m4: Likewise.
86941         * m4/c-stack.m4: Likewise.
86942         * m4/c-strtod.m4: Likewise.
86943         * m4/calloc.m4: Likewise.
86944         * m4/canonicalize-lgpl.m4: Likewise.
86945         * m4/chown.m4: Likewise.
86946         * m4/clock_time.m4: Likewise.
86947         * m4/codeset.m4: Likewise.
86948         * m4/copy-file.m4: Likewise.
86949         * m4/csharp.m4: Likewise.
86950         * m4/csharpcomp.m4: Likewise.
86951         * m4/csharpexec.m4: Likewise.
86952         * m4/d-ino.m4: Likewise.
86953         * m4/d-type.m4: Likewise.
86954         * m4/dirfd.m4: Likewise.
86955         * m4/double-slash-root.m4: Likewise.
86956         * m4/eaccess.m4: Likewise.
86957         * m4/eealloc.m4: Likewise.
86958         * m4/environ.m4: Likewise.
86959         * m4/errno_h.m4: Likewise.
86960         * m4/euidaccess.m4: Likewise.
86961         * m4/execute.m4: Likewise.
86962         * m4/fatal-signal.m4: Likewise.
86963         * m4/fchdir.m4: Likewise.
86964         * m4/fcntl_h.m4: Likewise.
86965         * m4/fileblocks.m4: Likewise.
86966         * m4/filenamecat.m4: Likewise.
86967         * m4/findprog.m4: Likewise.
86968         * m4/flexmember.m4: Likewise.
86969         * m4/fnmatch.m4: Likewise.
86970         * m4/fopen.m4: Likewise.
86971         * m4/fpending.m4: Likewise.
86972         * m4/fprintf-posix.m4: Likewise.
86973         * m4/free.m4: Likewise.
86974         * m4/frexp.m4: Likewise.
86975         * m4/frexpl.m4: Likewise.
86976         * m4/fsusage.m4: Likewise.
86977         * m4/ftruncate.m4: Likewise.
86978         * m4/gc-camellia.m4: Likewise.
86979         * m4/gc-random.m4: Likewise.
86980         * m4/gc.m4: Likewise.
86981         * m4/getaddrinfo.m4: Likewise.
86982         * m4/getcwd-abort-bug.m4: Likewise.
86983         * m4/getcwd-path-max.m4: Likewise.
86984         * m4/getdate.m4: Likewise.
86985         * m4/getdomainname.m4: Likewise.
86986         * m4/getgroups.m4: Likewise.
86987         * m4/gethostname.m4: Likewise.
86988         * m4/gethrxtime.m4: Likewise.
86989         * m4/getline.m4: Likewise.
86990         * m4/getloadavg.m4: Likewise.
86991         * m4/getndelim2.m4: Likewise.
86992         * m4/getpass.m4: Likewise.
86993         * m4/gettext.m4: Likewise.
86994         * m4/gettime.m4: Likewise.
86995         * m4/gettimeofday.m4: Likewise.
86996         * m4/gnulib-common.m4: Likewise.
86997         * m4/group-member.m4: Likewise.
86998         * m4/host-os.m4: Likewise.
86999         * m4/iconv.m4: Likewise.
87000         * m4/iconv_open.m4: Likewise.
87001         * m4/inet_ntop.m4: Likewise.
87002         * m4/inet_pton.m4: Likewise.
87003         * m4/inline.m4: Likewise.
87004         * m4/intldir.m4: Likewise.
87005         * m4/intlmacosx.m4: Likewise.
87006         * m4/intmax.m4: Likewise.
87007         * m4/intmax_t.m4: Likewise.
87008         * m4/inttypes.m4: Likewise.
87009         * m4/inttypes_h.m4: Likewise.
87010         * m4/inttypes-pri.m4: Likewise.
87011         * m4/isapipe.m4: Likewise.
87012         * m4/isnand.m4: Likewise.
87013         * m4/isnanf.m4: Likewise.
87014         * m4/isnanl.m4: Likewise.
87015         * m4/javacomp.m4: Likewise.
87016         * m4/javaexec.m4: Likewise.
87017         * m4/jm-winsz1.m4: Likewise.
87018         * m4/jm-winsz2.m4: Likewise.
87019         * m4/lchown.m4: Likewise.
87020         * m4/lcmessage.m4: Likewise.
87021         * m4/ldexpl.m4: Likewise.
87022         * m4/lib-ld.m4: Likewise.
87023         * m4/lib-link.m4: Likewise.
87024         * m4/libsigsegv.m4: Likewise.
87025         * m4/link-follow.m4: Likewise.
87026         * m4/localcharset.m4: Likewise.
87027         * m4/locale-fr.m4: Likewise.
87028         * m4/locale-ja.m4: Likewise.
87029         * m4/locale-tr.m4: Likewise.
87030         * m4/locale-zh.m4: Likewise.
87031         * m4/lock.m4: Likewise.
87032         * m4/longlong.m4: Likewise.
87033         * m4/ls-mntd-fs.m4: Likewise.
87034         * m4/lstat.m4: Likewise.
87035         * m4/malloc.m4: Likewise.
87036         * m4/mathl.m4: Likewise.
87037         * m4/mbrtowc.m4: Likewise.
87038         * m4/mbstate_t.m4: Likewise.
87039         * m4/mbswidth.m4: Likewise.
87040         * m4/memchr.m4: Likewise.
87041         * m4/memcmp.m4: Likewise.
87042         * m4/memcpy.m4: Likewise.
87043         * m4/memmem.m4: Likewise.
87044         * m4/memmove.m4: Likewise.
87045         * m4/mempcpy.m4: Likewise.
87046         * m4/memrchr.m4: Likewise.
87047         * m4/memset.m4: Likewise.
87048         * m4/minmax.m4: Likewise.
87049         * m4/mkdir-slash.m4: Likewise.
87050         * m4/mkdtemp.m4: Likewise.
87051         * m4/mktime.m4: Likewise.
87052         * m4/mmap-anon.m4: Likewise.
87053         * m4/mountlist.m4: Likewise.
87054         * m4/nanosleep.m4: Likewise.
87055         * m4/nls.m4: Likewise.
87056         * m4/nocrash.m4: Likewise.
87057         * m4/open.m4: Likewise.
87058         * m4/openat.m4: Likewise.
87059         * m4/openmp.m4: Likewise.
87060         * m4/pathmax.m4: Likewise.
87061         * m4/perl.m4: Likewise.
87062         * m4/physmem.m4: Likewise.
87063         * m4/pipe.m4: Likewise.
87064         * m4/po.m4: Likewise.
87065         * m4/poll.m4: Likewise.
87066         * m4/posixtm.m4: Likewise.
87067         * m4/posixver.m4: Likewise.
87068         * m4/printf-frexp.m4: Likewise.
87069         * m4/printf-frexpl.m4: Likewise.
87070         * m4/printf-posix.m4: Likewise.
87071         * m4/printf-posix-rpl.m4: Likewise.
87072         * m4/printf.m4: Likewise.
87073         * m4/progtest.m4: Likewise.
87074         * m4/putenv.m4: Likewise.
87075         * m4/readline.m4: Likewise.
87076         * m4/readlink.m4: Likewise.
87077         * m4/readutmp.m4: Likewise.
87078         * m4/realloc.m4: Likewise.
87079         * m4/regex.m4: Likewise.
87080         * m4/relocatable.m4: Likewise.
87081         * m4/relocatable-lib.m4: Likewise.
87082         * m4/rename-dest-slash.m4: Likewise.
87083         * m4/rename.m4: Likewise.
87084         * m4/rmdir-errno.m4: Likewise.
87085         * m4/rmdir.m4: Likewise.
87086         * m4/roundf.m4: Likewise.
87087         * m4/roundl.m4: Likewise.
87088         * m4/rpmatch.m4: Likewise.
87089         * m4/save-cwd.m4: Likewise.
87090         * m4/selinux-selinux-h.m4: Likewise.
87091         * m4/setenv.m4: Likewise.
87092         * m4/settime.m4: Likewise.
87093         * m4/sig2str.m4: Likewise.
87094         * m4/sig_atomic_t.m4: Likewise.
87095         * m4/signalblocking.m4: Likewise.
87096         * m4/signbit.m4: Likewise.
87097         * m4/sigpipe.m4: Likewise.
87098         * m4/sockets.m4: Likewise.
87099         * m4/sockpfaf.m4: Likewise.
87100         * m4/st_dm_mode.m4: Likewise.
87101         * m4/stat-time.m4: Likewise.
87102         * m4/stdbool.m4: Likewise.
87103         * m4/stdint.m4: Likewise.
87104         * m4/stdint_h.m4: Likewise.
87105         * m4/stpcpy.m4: Likewise.
87106         * m4/stpncpy.m4: Likewise.
87107         * m4/strcase.m4: Likewise.
87108         * m4/strchrnul.m4: Likewise.
87109         * m4/strcspn.m4: Likewise.
87110         * m4/strdup.m4: Likewise.
87111         * m4/strftime.m4: Likewise.
87112         * m4/strndup.m4: Likewise.
87113         * m4/strnlen.m4: Likewise.
87114         * m4/strpbrk.m4: Likewise.
87115         * m4/strptime.m4: Likewise.
87116         * m4/strsep.m4: Likewise.
87117         * m4/strtod.m4: Likewise.
87118         * m4/strtoimax.m4: Likewise.
87119         * m4/strtok_r.m4: Likewise.
87120         * m4/strtol.m4: Likewise.
87121         * m4/strtoll.m4: Likewise.
87122         * m4/strtoul.m4: Likewise.
87123         * m4/strtoull.m4: Likewise.
87124         * m4/strtoumax.m4: Likewise.
87125         * m4/strverscmp.m4: Likewise.
87126         * m4/threadlib.m4: Likewise.
87127         * m4/timegm.m4: Likewise.
87128         * m4/tm_gmtoff.m4: Likewise.
87129         * m4/tmpdir.m4: Likewise.
87130         * m4/tmpfile.m4: Likewise.
87131         * m4/tzset.m4: Likewise.
87132         * m4/uintmax_t.m4: Likewise.
87133         * m4/unlinkdir.m4: Likewise.
87134         * m4/unlocked-io.m4: Likewise.
87135         * m4/uptime.m4: Likewise.
87136         * m4/userspec.m4: Likewise.
87137         * m4/utimbuf.m4: Likewise.
87138         * m4/utime.m4: Likewise.
87139         * m4/utimes-null.m4: Likewise.
87140         * m4/utimes.m4: Likewise.
87141         * m4/vararrays.m4: Likewise.
87142         * m4/vasnprintf.m4: Likewise.
87143         * m4/vfprintf-posix.m4: Likewise.
87144         * m4/vprintf-posix.m4: Likewise.
87145         * m4/wait-process.m4: Likewise.
87146         * m4/wchar_t.m4: Likewise.
87147         * m4/wint_t.m4: Likewise.
87148         * m4/write-any-file.m4: Likewise.
87149         * m4/yield.m4: Likewise.
87151 2009-01-13  Bruno Haible  <bruno@clisp.org>
87153         Avoid test-copy-file.sh failures when ACL support insufficient.
87154         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
87155         TESTS_ENVIRONMENT.
87156         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
87157         Reported by Jim Meyering.
87159 2009-01-13  Bruno Haible  <bruno@clisp.org>
87161         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
87162         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
87163         * modules/unistdio/u8-printf-parse (Files): Likewise.
87164         * modules/unistdio/u32-printf-parse (Files): Likewise.
87165         * modules/unistdio/ulc-printf-parse (Files): Likewise.
87167 2009-01-13  Simon Josefsson  <simon@josefsson.org>
87169         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
87170         and m4/inttypes_h.m4 too.
87172 2009-01-12  Eric Blake  <ebb9@byu.net>
87174         tests: IRIX 6.2 cc can't compile -0.0 into .data
87175         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
87176         rather than at compile-time.
87177         * tests/test-floorl.c (minus_zero): Likewise.
87178         * tests/test-frexpl.c (minus_zero): Likewise.
87179         * tests/test-isnan.c (minus_zerol): Likewise.
87180         * tests/test-isnanl.h (minus_zero): Likewise.
87181         * tests/test-ldexpl.c (minus_zero): Likewise.
87182         * tests/test-roundl.c (minus_zero): Likewise.
87183         * tests/test-signbit.c (minus_zerol): Likewise.
87184         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87185         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87186         * tests/test-truncl.c (minus_zero): Likewise.
87187         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87188         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87189         Reported by Tom G. Christensen and Nelson H. F. Beebe.
87191 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87193         regex: fix glibc bug 9697
87194         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87195         handling.
87197 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87199         regex: fix glibc bug 697
87200         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
87201         being NULL also if there are no backreferences.
87203 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87205         regex: merge glibc changes
87206         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
87207         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
87208         re_string_skip_chars, re_string_reconstruct): Likewise.
87209         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
87211 2009-01-07  Jim Meyering  <meyering@redhat.com>
87213         poll: filter through cppi
87214         * lib/poll.c: Indent cpp directives to reflect nesting.
87216 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
87218         poll: don't return uninitialized
87219         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
87221 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
87223         avoid compile failure on AIX 6.1
87224         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
87225         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
87227 2009-01-04  Jim Meyering  <meyering@redhat.com>
87229         remove duplicate inclusion of <stdio.h>
87230         * tests/test-fprintf-posix.c: Likewise.
87231         * tests/test-printf-posix.c: Likewise.
87232         * tests/test-snprintf-posix.c: Likewise.
87233         * tests/test-sprintf-posix.c: Likewise.
87234         * tests/test-vasprintf-posix.c: Likewise.
87235         * tests/test-vfprintf-posix.c: Likewise.
87236         * tests/test-vprintf-posix.c: Likewise.
87237         * tests/test-vsnprintf-posix.c: Likewise.
87238         * tests/test-vsprintf-posix.c: Likewise.
87240 2009-01-03  Jim Meyering  <meyering@redhat.com>
87242         gnulib-tool: fix sed-based filtering
87243         * gnulib-tool (func_filter_filelist): Remove extra backslash
87244         in sed_fff_filter definition.
87246 2009-01-02  Jim Meyering  <meyering@redhat.com>
87248         strftime: avoid compilation failure on Solaris 2.6
87249         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
87250         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
87251         Don't #define mbrlen or mbsinit, since now they're guaranteed to
87252         be available.  Reported by Tom G. Christensen.  Details in
87253         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
87255 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87256             Bruno Haible  <bruno@clisp.org>
87258         Speed up gnulib-tool by doing more string processing through shell
87259         built-ins.
87260         * gnulib-tool (fast_func_append): New variable.
87261         (func_remove_prefix, func_remove_suffix): New functions.
87262         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
87263         (func_filter_filelist): New function.
87264         (func_get_dependencies): Use func_remove_suffix instead of sed.
87265         (func_get_automake_snippet): Use func_filter_filelist instead of a
87266         subshell and sed invocation.
87268 2009-01-01  Bruno Haible  <bruno@clisp.org>
87270         Fix a security bug.
87271         * gnulib-tool (func_import, import, update): Don't allow the characters
87272         '"', '$', '`', '\' in macro arguments that become part of commands that
87273         are evaluated.
87275 2009-01-01  Bruno Haible  <bruno@clisp.org>
87277         * gnulib-tool (func_reset_sigpipe): Add more comments.
87279 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87281         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
87282         func_emit_tests_Makefile_am, func_import): Abort loops early if we
87283         already know the answer.
87285 2009-01-01  Jim Meyering  <meyering@redhat.com>
87287         * lib/version-etc.c (version_etc_va): Update copyright year.
87289 2008-12-30  Bruno Haible  <bruno@clisp.org>
87291         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
87292         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
87293         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
87295 2008-12-29  Eric Blake  <ebb9@byu.net>
87297         multiarch: avoid autoconf AC_REQUIRE bug
87298         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
87299         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
87300         2.63 and older.
87301         Reported by Bruno Haible, and analyzed in
87302         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
87304 2008-12-29  Bruno Haible  <bruno@clisp.org>
87306         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
87307         files in subdirectories correctly.
87308         Reported by Ralf Wildenhues.
87310 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87312         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
87313         rather than 'join FILE -', for Solaris join.
87315 2008-12-29  Bruno Haible  <bruno@clisp.org>
87317         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
87318         quoting.
87319         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87320         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
87321         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
87322         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
87323         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
87324         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
87325         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
87326         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
87327         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
87328         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
87329         * m4/nls.m4 (AM_NLS): Likewise.
87330         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
87331         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
87332         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87333         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
87334         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
87335         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
87336         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
87337         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
87338         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
87339         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87340         * m4/xsize.m4 (gl_XSIZE): Likewise.
87341         Suggested by Jim Meyering.
87343 2008-11-17  Bruce Korb  <bkorb@gnu.org>
87345         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
87346         * lib/parse-duration.c: use a switch instead of cascading if's.
87348 2008-12-29  Eric Blake  <ebb9@byu.net>
87350         wchar.h: supply WEOF on Irix 5.3
87351         * lib/wchar.in.h (wint_t): Also supply WEOF.
87352         * lib/wctype.in.h (wint_t): Likewise.
87353         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
87354         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
87355         Reported by Tom G. Christensen.
87357 2008-12-26  Bruno Haible  <bruno@clisp.org>
87359         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
87360         i486, i586, i686.
87362 2008-12-26  Bruno Haible  <bruno@clisp.org>
87364         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87366 2008-12-26  Bruno Haible  <bruno@clisp.org>
87368         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87369         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87370         not __STDC_CONSTANT_MACROS.
87371         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87373 2008-12-25  Bruno Haible  <bruno@clisp.org>
87375         Add support for universal builds to vasnprintf.
87376         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87377         universal builds, guess no.
87378         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87379         * modules/vasprintf-posix (Depends-on): Likewise.
87380         * modules/fprintf-posix (Depends-on): Likewise.
87381         * modules/vfprintf-posix (Depends-on): Likewise.
87382         * modules/snprintf-posix (Depends-on): Likewise.
87383         * modules/vsnprintf-posix (Depends-on): Likewise.
87384         * modules/sprintf-posix (Depends-on): Likewise.
87385         * modules/vsprintf-posix (Depends-on): Likewise.
87386         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87387         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87388         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87389         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87390         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87391         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87392         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87394         Add support for universal builds to <inttypes.h>.
87395         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87396         _SCNu64_PREFIX): In Apple
87397         universal builds, define directly, using _LP64.
87398         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87399         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87400         * modules/inttypes (Depends-on): Add multiarch.
87401         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87403         Add support for universal builds to <stdint.h>.
87404         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87405         universal builds, define directly, using _LP64.
87406         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87407         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87408         and size_t.
87409         * modules/stdint (Depends-on): Add multiarch.
87410         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87412         New module 'multiarch'.
87413         * modules/multiarch: New file.
87414         * m4/multiarch.m4: New file.
87416 2008-12-25  Bruno Haible  <bruno@clisp.org>
87418         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87420 2008-12-25  Bruno Haible  <bruno@clisp.org>
87422         * modules/btowc (License): Relicense under LGPLv2+.
87423         * modules/mbsinit (License): Likewise.
87424         * modules/mbrtowc (License): Likewise.
87425         * modules/wcrtomb (License): Likewise.
87426         * modules/streq (License): Likewise.
87427         Reported by David Lutterkort <lutter@redhat.com>.
87429 2008-12-23  Bruno Haible  <bruno@clisp.org>
87431         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87433 2008-12-23  Bruno Haible  <bruno@clisp.org>
87435         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87437         GETADDRINFO_LIB, not in LIBS.
87438         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87439         * modules/canon-host (Link): Likewise.
87440         * NEWS: Mention the change.
87441         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87442         GETADDRINFO_LIB.
87444 2008-12-22  Bruno Haible  <bruno@clisp.org>
87446         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87447         * doc/posix-functions/iswalpha_l.texi: Likewise.
87448         * doc/posix-functions/iswblank_l.texi: Likewise.
87449         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87450         * doc/posix-functions/iswctype_l.texi: Likewise.
87451         * doc/posix-functions/iswdigit_l.texi: Likewise.
87452         * doc/posix-functions/iswgraph_l.texi: Likewise.
87453         * doc/posix-functions/iswlower_l.texi: Likewise.
87454         * doc/posix-functions/iswprint_l.texi: Likewise.
87455         * doc/posix-functions/iswpunct_l.texi: Likewise.
87456         * doc/posix-functions/iswspace_l.texi: Likewise.
87457         * doc/posix-functions/iswupper_l.texi: Likewise.
87458         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87459         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87460         * doc/posix-functions/open_wmemstream.texi: Likewise.
87461         * doc/posix-functions/swscanf.texi: Likewise.
87462         * doc/posix-functions/towctrans_l.texi: Likewise.
87463         * doc/posix-functions/towlower.texi: Likewise.
87464         * doc/posix-functions/towlower_l.texi: Likewise.
87465         * doc/posix-functions/towupper.texi: Likewise.
87466         * doc/posix-functions/towupper_l.texi: Likewise.
87467         * doc/posix-functions/vfwprintf.texi: Likewise.
87468         * doc/posix-functions/vfwscanf.texi: Likewise.
87469         * doc/posix-functions/vswscanf.texi: Likewise.
87470         * doc/posix-functions/vwprintf.texi: Likewise.
87471         * doc/posix-functions/vwscanf.texi: Likewise.
87472         * doc/posix-functions/wcpcpy.texi: Likewise.
87473         * doc/posix-functions/wcpncpy.texi: Likewise.
87474         * doc/posix-functions/wcscasecmp.texi: Likewise.
87475         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
87476         * doc/posix-functions/wcscoll_l.texi: Likewise.
87477         * doc/posix-functions/wcsdup.texi: Likewise.
87478         * doc/posix-functions/wcsncasecmp.texi: Likewise.
87479         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
87480         * doc/posix-functions/wcsnlen.texi: Likewise.
87481         * doc/posix-functions/wcsnrtombs.texi: Likewise.
87482         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
87483         * doc/posix-functions/wctrans_l.texi: Likewise.
87484         * doc/posix-functions/wctype_l.texi: Likewise.
87485         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
87486         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
87487         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
87488         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
87489         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
87490         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
87491         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
87492         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
87493         * doc/glibc-functions/wcschrnul.texi: Likewise.
87494         * doc/glibc-functions/wcsftime_l.texi: Likewise.
87495         * doc/glibc-functions/wcstod_l.texi: Likewise.
87496         * doc/glibc-functions/wcstof_l.texi: Likewise.
87497         * doc/glibc-functions/wcstol_l.texi: Likewise.
87498         * doc/glibc-functions/wcstold_l.texi: Likewise.
87499         * doc/glibc-functions/wcstoll_l.texi: Likewise.
87500         * doc/glibc-functions/wcstoq.texi: Likewise.
87501         * doc/glibc-functions/wcstoul_l.texi: Likewise.
87502         * doc/glibc-functions/wcstoull_l.texi: Likewise.
87503         * doc/glibc-functions/wcstouq.texi: Likewise.
87504         * doc/glibc-functions/wmempcpy.texi: Likewise.
87506 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
87507             Eric Blake  <ebb9@byu.net>
87508             Paolo Bonzini  <bonzini@gnu.org>
87509             Bruno Haible  <bruno@clisp.org>
87511         Make c-stack work on Haiku.
87512         * lib/c-stack.c (SA_ONSTACK): Define fallback.
87513         (c_stack_action): Use SA_ONSTACK flag.
87515 2008-12-22  Bruno Haible  <bruno@clisp.org>
87517         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
87519 2008-12-22  Bruno Haible  <bruno@clisp.org>
87521         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
87522         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
87523         being overridden.
87524         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
87525         New macros.
87526         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
87527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
87528         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
87529         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
87531 2008-12-22  Bruno Haible  <bruno@clisp.org>
87533         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
87534         from test code.
87536 2008-12-22  Eric Blake  <ebb9@byu.net>
87538         Avoid gcc warnings on cygwin.
87539         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
87540         Avoid unused variable.
87541         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
87542         Likewise.
87544 2008-12-22  Bruno Haible  <bruno@clisp.org>
87546         Remove HAVE_MBRTOWC conditionals.
87547         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
87548         (mbscasecmp): Assume mbrtowc function.
87549         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
87550         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
87551         * lib/mbschr.c: Include mbuiter.h unconditionally.
87552         (mbschr): Assume mbrtowc function.
87553         * lib/mbscspn.c: Include mbuiter.h unconditionally.
87554         (mbscspn): Assume mbrtowc function.
87555         * lib/mbslen.c: Include mbuiter.h unconditionally.
87556         (mbslen): Assume mbrtowc function.
87557         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
87558         (mbsncasecmp): Assume mbrtowc function.
87559         * lib/mbsnlen.c: Include mbiter.h unconditionally.
87560         (mbsnlen): Assume mbrtowc function.
87561         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
87562         (mbspbrk): Assume mbrtowc function.
87563         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
87564         (mbspcasecmp): Assume mbrtowc function.
87565         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
87566         (mbsrchr): Assume mbrtowc function.
87567         * lib/mbssep.c: Include mbuiter.h unconditionally.
87568         (mbssep): Assume mbrtowc function.
87569         * lib/mbsspn.c: Include mbuiter.h unconditionally.
87570         (mbsspn): Assume mbrtowc function.
87571         * lib/mbsstr.c: Include mbuiter.h unconditionally.
87572         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
87573         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
87574         (mbstok_r): Assume mbrtowc function.
87575         * lib/propername.c: Include mbuiter.h unconditionally.
87576         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
87577         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
87578         (trim2): Assume mbrtowc function.
87579         * lib/mbswidth.c (mbsinit): Remove fallback definition.
87580         (mbsnwidth): Assume mbrtowc function.
87581         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
87582         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
87583         fallback definitions.
87584         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
87586 2008-12-22  Bruno Haible  <bruno@clisp.org>
87588         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
87590 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
87592         * modules/regex: Request emulations for the mb*/wc* functions we need.
87593         * m4/regex.m4: Don't look for those functions here.
87594         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
87596 2008-12-22  Bruno Haible  <bruno@clisp.org>
87598         * modules/fnmatch (Depends-on): Remove duplicated dependency.
87600 2008-12-21  Bruno Haible  <bruno@clisp.org>
87602         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
87603         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
87604         (Include): Remove conditionalization.
87605         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
87606         (Include): Remove conditionalization.
87607         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
87608         (Include): Remove conditionalization.
87609         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87610         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87611         * NEWS: Mention the change.
87612         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87613         via Sergey Poznyakoff <gray@gnu.org.ua>.
87615 2008-12-21  Bruno Haible  <bruno@clisp.org>
87617         * MODULES.html.sh (Extended multibyte and wide character utilities
87618         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
87619         wcrtomb, wcsrtombs.
87620         (Support for systems lacking POSIX:2008): Add accept, bind, close,
87621         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
87622         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
87623         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
87625 2008-12-21  Bruno Haible  <bruno@clisp.org>
87627         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
87629 2008-12-21  Bruno Haible  <bruno@clisp.org>
87631         * modules/wcsnrtombs-tests: New file.
87632         * tests/test-wcsnrtombs1.sh: New file.
87633         * tests/test-wcsnrtombs2.sh: New file.
87634         * tests/test-wcsnrtombs3.sh: New file.
87635         * tests/test-wcsnrtombs4.sh: New file.
87636         * tests/test-wcsnrtombs.c: New file.
87638         New module 'wcsnrtombs'.
87639         * lib/wchar.in.h (wcsnrtombs): New declaration.
87640         * lib/wcsnrtombs.c: New file.
87641         * lib/wcsrtombs-state.c: New file.
87642         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
87643         (internal_state): Remove variable.
87644         * m4/wcsnrtombs.m4: New file.
87645         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
87646         compilation units.
87647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
87648         HAVE_WCSNRTOMBS.
87649         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
87650         HAVE_WCSNRTOMBS.
87651         * modules/wcsnrtombs: New file.
87652         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
87653         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
87655 2008-12-21  Bruno Haible  <bruno@clisp.org>
87657         * modules/wcsrtombs-tests: New file.
87658         * tests/test-wcsrtombs1.sh: New file.
87659         * tests/test-wcsrtombs2.sh: New file.
87660         * tests/test-wcsrtombs3.sh: New file.
87661         * tests/test-wcsrtombs4.sh: New file.
87662         * tests/test-wcsrtombs.c: New file.
87664         New module 'wcsrtombs'.
87665         * lib/wchar.in.h (wcsrtombs): New declaration.
87666         * lib/wcsrtombs.c: New file.
87667         * m4/wcsrtombs.m4: New file.
87668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
87669         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
87671         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87672         * modules/wcsrtombs: New file.
87673         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
87674         bugs.
87676 2008-12-21  Bruno Haible  <bruno@clisp.org>
87678         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
87679         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
87680         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87681         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87682         if not correct.
87683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87684         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87685         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87686         m4/locale-zh.m4, m4/codeset.m4.
87687         * doc/posix-functions/wcrtomb.texi: Document the bug.
87689 2008-12-21  Bruno Haible  <bruno@clisp.org>
87691         Work around a btowc() bug on IRIX 6.5.
87692         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87693         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87694         REPLACE_WTOBC if not.
87695         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87696         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87697         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87699 2008-12-21  Bruno Haible  <bruno@clisp.org>
87701         * modules/wcrtomb-tests: New file.
87702         * tests/test-wcrtomb.sh: New file.
87703         * tests/test-wcrtomb.c: New file.
87705         New module 'wcrtomb'.
87706         * lib/wchar.in.h (wcrtomb): New declaration.
87707         * lib/wcrtomb.c: New file.
87708         * m4/wcrtomb.m4: New file.
87709         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87710         HAVE_WCRTOMB.
87711         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87712         HAVE_WCRTOMB.
87713         * modules/wcrtomb: New file.
87714         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87716 2008-12-21  Bruno Haible  <bruno@clisp.org>
87718         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87719         * modules/mbsrtowcs (Files): Likewise.
87720         * modules/wctob (Files): Likewise.
87721         * modules/c-strcase-tests (Files): Likewise.
87722         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87723         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87724         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87725         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87726         * modules/vasnprintf-posix-tests (Files): Likewise.
87728 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87730         gitlog-to-changelog: pass all command-line arguments to git-log
87731         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87732         it is sometimes convenient to filter the commits in various ways.
87733         gitlog-to-changelog only allows --since to specify a start date,
87734         but git-log itself supports many other filtering mechanisms.
87735         At the moment, I want to filter by branch name.  Rather than
87736         adding a --branch option to gitlog-to-changelog, it seems more
87737         flexible to simply pass all options directly to git-log and let
87738         git do the work.  Notice that this effectively makes --since a
87739         redundant option for gitlog-to-changelog, but removing it would
87740         require current usage to change since calls would then require
87741         an additional '--'.
87743 2008-12-21  Bruno Haible  <bruno@clisp.org>
87745         * modules/mbsnrtowcs-tests: New file.
87746         * tests/test-mbsnrtowcs1.sh: New file.
87747         * tests/test-mbsnrtowcs2.sh: New file.
87748         * tests/test-mbsnrtowcs3.sh: New file.
87749         * tests/test-mbsnrtowcs4.sh: New file.
87750         * tests/test-mbsnrtowcs.c: New file.
87752         New module 'mbsnrtowcs'.
87753         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87754         * lib/mbsnrtowcs.c: New file.
87755         * lib/mbsrtowcs-state.c: New file.
87756         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87757         (internal_state): Remove variable.
87758         * m4/mbsnrtowcs.m4: New file.
87759         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87760         compilation units.
87761         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87762         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87763         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87764         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87765         * modules/mbsnrtowcs: New file.
87766         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87767         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87768         portability problem.
87770 2008-12-21  Bruno Haible  <bruno@clisp.org>
87772         Work around mbsrtowcs bug.
87773         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87774         (gl_FUNC_MBSRTOWCS): Invoke it.
87775         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87776         m4/locale-zh.m4.
87777         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87779 2008-12-21  Bruno Haible  <bruno@clisp.org>
87781         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87783 2008-12-21  Bruno Haible  <bruno@clisp.org>
87785         Update doc for AIX.
87786         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87787         16-bit wchar_t type.
87788         * doc/posix-functions/btowc.texi: Likewise.
87789         * doc/posix-functions/fgetwc.texi: Likewise.
87790         * doc/posix-functions/fgetws.texi: Likewise.
87791         * doc/posix-functions/fputwc.texi: Likewise.
87792         * doc/posix-functions/fputws.texi: Likewise.
87793         * doc/posix-functions/fwide.texi: Likewise.
87794         * doc/posix-functions/fwprintf.texi: Likewise.
87795         * doc/posix-functions/fwscanf.texi: Likewise.
87796         * doc/posix-functions/getwchar.texi: Likewise.
87797         * doc/posix-functions/getwc.texi: Likewise.
87798         * doc/posix-functions/iswalnum.texi: Likewise.
87799         * doc/posix-functions/iswalpha.texi: Likewise.
87800         * doc/posix-functions/iswblank.texi: Likewise.
87801         * doc/posix-functions/iswcntrl.texi: Likewise.
87802         * doc/posix-functions/iswctype.texi: Likewise.
87803         * doc/posix-functions/iswdigit.texi: Likewise.
87804         * doc/posix-functions/iswgraph.texi: Likewise.
87805         * doc/posix-functions/iswlower.texi: Likewise.
87806         * doc/posix-functions/iswprint.texi: Likewise.
87807         * doc/posix-functions/iswpunct.texi: Likewise.
87808         * doc/posix-functions/iswspace.texi: Likewise.
87809         * doc/posix-functions/iswupper.texi: Likewise.
87810         * doc/posix-functions/iswxdigit.texi: Likewise.
87811         * doc/posix-functions/mbrtowc.texi: Likewise.
87812         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87813         * doc/posix-functions/mbstowcs.texi: Likewise.
87814         * doc/posix-functions/mbtowc.texi: Likewise.
87815         * doc/posix-functions/putwchar.texi: Likewise.
87816         * doc/posix-functions/putwc.texi: Likewise.
87817         * doc/posix-functions/swprintf.texi: Likewise.
87818         * doc/posix-functions/tolower.texi: Likewise.
87819         * doc/posix-functions/toupper.texi: Likewise.
87820         * doc/posix-functions/towctrans.texi: Likewise.
87821         * doc/posix-functions/ungetwc.texi: Likewise.
87822         * doc/posix-functions/vswprintf.texi: Likewise.
87823         * doc/posix-functions/wcrtomb.texi: Likewise.
87824         * doc/posix-functions/wcscat.texi: Likewise.
87825         * doc/posix-functions/wcschr.texi: Likewise.
87826         * doc/posix-functions/wcscmp.texi: Likewise.
87827         * doc/posix-functions/wcscoll.texi: Likewise.
87828         * doc/posix-functions/wcscpy.texi: Likewise.
87829         * doc/posix-functions/wcscspn.texi: Likewise.
87830         * doc/posix-functions/wcsftime.texi: Likewise.
87831         * doc/posix-functions/wcslen.texi: Likewise.
87832         * doc/posix-functions/wcsncat.texi: Likewise.
87833         * doc/posix-functions/wcsncmp.texi: Likewise.
87834         * doc/posix-functions/wcsncpy.texi: Likewise.
87835         * doc/posix-functions/wcspbrk.texi: Likewise.
87836         * doc/posix-functions/wcsrchr.texi: Likewise.
87837         * doc/posix-functions/wcsrtombs.texi: Likewise.
87838         * doc/posix-functions/wcsspn.texi: Likewise.
87839         * doc/posix-functions/wcsstr.texi: Likewise.
87840         * doc/posix-functions/wcstod.texi: Likewise.
87841         * doc/posix-functions/wcstof.texi: Likewise.
87842         * doc/posix-functions/wcstoimax.texi: Likewise.
87843         * doc/posix-functions/wcstok.texi: Likewise.
87844         * doc/posix-functions/wcstold.texi: Likewise.
87845         * doc/posix-functions/wcstoll.texi: Likewise.
87846         * doc/posix-functions/wcstol.texi: Likewise.
87847         * doc/posix-functions/wcstombs.texi: Likewise.
87848         * doc/posix-functions/wcstoull.texi: Likewise.
87849         * doc/posix-functions/wcstoul.texi: Likewise.
87850         * doc/posix-functions/wcstoumax.texi: Likewise.
87851         * doc/posix-functions/wcswidth.texi: Likewise.
87852         * doc/posix-functions/wcsxfrm.texi: Likewise.
87853         * doc/posix-functions/wctob.texi: Likewise.
87854         * doc/posix-functions/wctomb.texi: Likewise.
87855         * doc/posix-functions/wctrans.texi: Likewise.
87856         * doc/posix-functions/wctype.texi: Likewise.
87857         * doc/posix-functions/wcwidth.texi: Likewise.
87858         * doc/posix-functions/wmemchr.texi: Likewise.
87859         * doc/posix-functions/wmemcmp.texi: Likewise.
87860         * doc/posix-functions/wmemcpy.texi: Likewise.
87861         * doc/posix-functions/wmemmove.texi: Likewise.
87862         * doc/posix-functions/wmemset.texi: Likewise.
87863         * doc/posix-functions/wprintf.texi: Likewise.
87864         * doc/posix-functions/wscanf.texi: Likewise.
87866 2008-12-21  Bruno Haible  <bruno@clisp.org>
87868         Update doc for HP-UX 11.11.
87869         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87870         in HP-UX version 11.00, not in all versions of HP-UX 11.
87871         * doc/posix-functions/fwide.texi: Likewise.
87872         * doc/posix-functions/fwprintf.texi: Likewise.
87873         * doc/posix-functions/fwscanf.texi: Likewise.
87874         * doc/posix-functions/inet_ntop.texi: Likewise.
87875         * doc/posix-functions/inet_pton.texi: Likewise.
87876         * doc/posix-functions/mbrlen.texi: Likewise.
87877         * doc/posix-functions/mbrtowc.texi: Likewise.
87878         * doc/posix-functions/mbsinit.texi: Likewise.
87879         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87880         * doc/posix-functions/swprintf.texi: Likewise.
87881         * doc/posix-functions/swscanf.texi: Likewise.
87882         * doc/posix-functions/towctrans.texi: Likewise.
87883         * doc/posix-functions/vfwprintf.texi: Likewise.
87884         * doc/posix-functions/vswprintf.texi: Likewise.
87885         * doc/posix-functions/vwprintf.texi: Likewise.
87886         * doc/posix-functions/wcrtomb.texi: Likewise.
87887         * doc/posix-functions/wcsrtombs.texi: Likewise.
87888         * doc/posix-functions/wcsstr.texi: Likewise.
87889         * doc/posix-functions/wctob.texi: Likewise.
87890         * doc/posix-functions/wctrans.texi: Likewise.
87891         * doc/posix-functions/wmemchr.texi: Likewise.
87892         * doc/posix-functions/wmemcmp.texi: Likewise.
87893         * doc/posix-functions/wmemcpy.texi: Likewise.
87894         * doc/posix-functions/wmemmove.texi: Likewise.
87895         * doc/posix-functions/wmemset.texi: Likewise.
87896         * doc/posix-functions/wprintf.texi: Likewise.
87897         * doc/posix-functions/wscanf.texi: Likewise.
87899 2008-12-21  Bruno Haible  <bruno@clisp.org>
87901         Work around a portability problem.
87902         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87903         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87905 2008-12-20  Bruno Haible  <bruno@clisp.org>
87907         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87908         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87909         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87911         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87913         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87914         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87915         set.
87916         (GNULIB_defined_mbstate_t): New macro.
87917         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87918         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87919         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87920         reuses the system's mbrtowc function but works around the bugs.
87921         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87922         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87923         macros.
87924         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87925         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87926         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87927         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87928         REPLACE_MBSINIT if mbsinit needs to be overridden.
87929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87930         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87931         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87932         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87933         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87934         m4/locale-zh.m4.
87935         (Depends): Add mbsinit.
87936         * modules/mbsinit (Depends): Add mbrtowc.
87937         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87939 2008-12-20  Bruno Haible  <bruno@clisp.org>
87941         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87942         so that there are no conversion errors on AIX.
87943         * tests/test-mbsrtowcs.c (main): LIkewise.
87945 2008-12-20  Bruno Haible  <bruno@clisp.org>
87947         Work around wctob bug on Solaris <= 9.
87948         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87949         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87951         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87952         * modules/wctob (Files): Add m4/locale-fr.m4.
87953         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87955 2008-12-20  Bruno Haible  <bruno@clisp.org>
87957         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87958         /dev/null.
87959         * tests/test-select-in.sh: Likewise.
87960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87962 2008-12-20  Bruno Haible  <bruno@clisp.org>
87964         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87965         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87966         Cygwin 1.5.x.
87968 2008-12-20  Bruno Haible  <bruno@clisp.org>
87970         Ensure mbstate_t is defined on HP-UX 11.11.
87971         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87972         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87973         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87974         AC_USE_SYSTEM_EXTENSIONS.
87975         * modules/fnmatch (Depends-on): Add extensions.
87976         * modules/mbrlen (Depends-on): Likewise.
87977         * modules/mbrtowc (Depends-on): Likewise.
87978         * modules/mbsinit (Depends-on): Likewise.
87979         * modules/mbsrtowcs (Depends-on): Likewise.
87980         * modules/mbswidth (Depends-on): Likewise.
87981         * modules/quotearg (Depends-on): Likewise.
87982         * modules/strftime (Depends-on): Likewise.
87984 2008-12-20  Bruno Haible  <bruno@clisp.org>
87986         Ensure wctob is declared on IRIX 6.5.
87987         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87988         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87989         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87991         of HAVE_WCTOB.
87992         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87993         HAVE_WCTOB.
87994         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87996 2008-12-19  Bruno Haible  <bruno@clisp.org>
87998         * modules/mbsrtowcs-tests: New file.
87999         * tests/test-mbsrtowcs1.sh: New file.
88000         * tests/test-mbsrtowcs2.sh: New file.
88001         * tests/test-mbsrtowcs3.sh: New file.
88002         * tests/test-mbsrtowcs4.sh: New file.
88003         * tests/test-mbsrtowcs.c: New file.
88005         New module 'mbsrtowcs'.
88006         * lib/wchar.in.h (mbsrtowcs): New declaration.
88007         * lib/mbsrtowcs.c: New file.
88008         * m4/mbsrtowcs.m4: New file.
88009         * modules/mbsrtowcs: New file.
88010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
88011         HAVE_MBSRTOWCS.
88012         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
88013         HAVE_MBSRTOWCS.
88014         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
88016 2008-12-19  Bruno Haible  <bruno@clisp.org>
88018         New module 'mbrlen'.
88019         * lib/wchar.in.h (mbrlen): New declaration.
88020         * lib/mbrlen.c: New file.
88021         * m4/mbrlen.m4: New file.
88022         * modules/mbrlen: New file.
88023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
88024         HAVE_MBRLEN.
88025         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
88026         HAVE_MBRLEN.
88027         * doc/posix-functions/mbrlen.texi: Document the new module.
88029 2008-12-19  Bruno Haible  <bruno@clisp.org>
88031         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
88032         * modules/mbrtowc (Depends-on): Add verify.
88033         Suggested by Paul Eggert.
88035 2008-12-18  Bruno Haible  <bruno@clisp.org>
88037         * modules/mbsinit-tests: New file.
88038         * tests/test-mbsinit.sh: New file.
88039         * tests/test-mbsinit.c: New file.
88041 2008-12-18  Bruno Haible  <bruno@clisp.org>
88043         * modules/mbrtowc-tests: New file.
88044         * tests/test-mbrtowc1.sh: New file.
88045         * tests/test-mbrtowc2.sh: New file.
88046         * tests/test-mbrtowc3.sh: New file.
88047         * tests/test-mbrtowc4.sh: New file.
88048         * tests/test-mbrtowc.c: New file.
88050         New module 'mbrtowc'.
88051         * lib/wchar.in.h (mbstate_t): Override when the system does not have
88052         mbsinit and mbrtowc.
88053         (mbrtowc): New declaration.
88054         * lib/mbrtowc.c: New file.
88055         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
88056         * modules/mbrtowc: New file.
88057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
88058         HAVE_MBRTOWC.
88059         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
88060         HAVE_MBRTOWC.
88061         * doc/posix-functions/mbrtowc.texi: Document the new module.
88063 2008-12-18  Bruno Haible  <bruno@clisp.org>
88065         New module 'wctob'.
88066         * lib/wchar.in.h (wctob): New declaration.
88067         * lib/wctob.c: New file.
88068         * m4/wctob.m4: New file.
88069         * modules/wctob: New file.
88070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
88071         HAVE_WCTOB.
88072         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
88073         * doc/posix-functions/wctob.texi: Document the new module.
88075 2008-12-18  Bruno Haible  <bruno@clisp.org>
88077         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
88078         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
88080 2008-12-18  Simon Josefsson  <simon@josefsson.org>
88082         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
88083         G. Christensen" <tgc@jupiterrise.com>.
88085         * lib/flock.c: Need to include errno.h.  Reported by "Tom
88086         G. Christensen" <tgc@jupiterrise.com>.
88088         * lib/flock.c: Need to include string.h.  Reported by "Tom
88089         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
88090         <ebb9@byu.net>.
88092 2008-12-18  Bruno Haible  <bruno@clisp.org>
88094         * m4/locale-ja.m4: New file, from GNU gettext.
88096 2008-12-17  Bruno Haible  <bruno@clisp.org>
88098         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
88099         Suggested by Eric Blake.
88101 2008-12-17  Bruno Haible  <bruno@clisp.org>
88103         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
88105 2008-12-17  Bruno Haible  <bruno@clisp.org>
88107         * lib/mbsinit.c: Include verify.h. Verify an assumption.
88108         * modules/mbsinit (Depends-on): Add verify.
88109         Suggested by Paul Eggert.
88111 2008-12-17  Bruno Haible  <bruno@clisp.org>
88113         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
88114         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
88115         gl_FUNC_MBRTOWC.
88116         * m4/mbiter.m4 (gl_MBITER): LIkewise.
88117         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
88118         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
88119         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
88120         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
88121         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
88122         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
88123         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
88124         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
88125         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
88126         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
88127         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
88128         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
88129         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
88130         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
88131         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88132         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
88133         * modules/trim (configure.ac): Likewise.
88135 2008-12-17  Bruno Haible  <bruno@clisp.org>
88137         * modules/btowc-tests: New file.
88138         * tests/test-btowc1.sh: New file.
88139         * tests/test-btowc2.sh: New file.
88140         * tests/test-btowc.c: New file.
88142         New module 'btowc'.
88143         * lib/wchar.in.h (btowc): New declaration.
88144         * lib/btowc.c: New file.
88145         * m4/btowc.m4: New file.
88146         * modules/btowc: New file.
88147         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
88148         HAVE_BTOWC.
88149         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
88150         * doc/posix-functions/btowc.texi: Document the new module.
88152 2008-12-17  Bruno Haible  <bruno@clisp.org>
88154         New module 'mbsinit'.
88155         * lib/wchar.in.h (mbsinit): New declaration.
88156         * lib/mbsinit.c: New file.
88157         * m4/mbsinit.m4: New file.
88158         * modules/mbsinit: New file.
88159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
88160         HAVE_MBSINIT.
88161         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
88162         HAVE_MBSINIT.
88163         * doc/posix-functions/mbsinit.texi: Document the new module.
88165 2008-12-16  Bruno Haible  <bruno@clisp.org>
88167         * lib/unistd.in.h: Add comment.
88168         * tests/test-environ.c: Don't include <stdlib.h>.
88170 2008-12-16  Bruno Haible  <bruno@clisp.org>
88172         * lib/parse-duration.h (parse_duration): Document return value
88173         convention.
88174         * lib/parse-duration.c: Include specification header first. Add
88175         comments.
88176         (_): Remove macro.
88177         (parse_year_month_day, parse_hour_minute_second): Move side effects
88178         outside of strchr call.
88179         (parse_non_iso8601): Move side effects outside of isspace call.
88180         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
88181         call.
88183 2008-12-16  Bruno Haible  <bruno@clisp.org>
88185         * tests/test-parse-duration.sh: Produce no output when the test
88186         succeeds.
88188 2008-12-16  Bruno Haible  <bruno@clisp.org>
88190         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
88191         expressions.
88193 2008-12-15  Bruno Haible  <bruno@clisp.org>
88195         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88196         * doc/glibc-functions/flistxattr.texi: Likewise.
88197         * doc/glibc-functions/fopencookie.texi: Likewise.
88198         * doc/glibc-functions/fremovexattr.texi: Likewise.
88199         * doc/glibc-functions/fsetxattr.texi: Likewise.
88200         * doc/glibc-functions/getxattr.texi: Likewise.
88201         * doc/glibc-functions/lgetxattr.texi: Likewise.
88202         * doc/glibc-functions/listxattr.texi: Likewise.
88203         * doc/glibc-functions/llistxattr.texi: Likewise.
88204         * doc/glibc-functions/lremovexattr.texi: Likewise.
88205         * doc/glibc-functions/lsetxattr.texi: Likewise.
88206         * doc/glibc-functions/removexattr.texi: Likewise.
88207         * doc/glibc-functions/setxattr.texi: Likewise.
88208         * doc/posix-functions/open_memstream.texi: Likewise.
88210 2008-12-15  Eric Blake  <ebb9@byu.net>
88212         Update doc for cygwin 1.7.
88213         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
88214         functions.
88215         * doc/posix-functions/fchmodat.texi: Likewise.
88216         * doc/posix-functions/fchownat.texi: Likewise.
88217         * doc/posix-functions/fdopendir.texi: Likewise.
88218         * doc/posix-functions/fmemopen.texi: Likewise.
88219         * doc/posix-functions/freeaddrinfo.texi: Likewise.
88220         * doc/posix-functions/fstatat.texi: Likewise.
88221         * doc/posix-functions/futimens.texi: Likewise.
88222         * doc/posix-functions/gai_strerror.texi: Likewise.
88223         * doc/posix-functions/getaddrinfo.texi: Likewise.
88224         * doc/posix-functions/getnameinfo.texi: Likewise.
88225         * doc/posix-functions/if_freenameindex.texi: Likewise.
88226         * doc/posix-functions/if_indextoname.texi: Likewise.
88227         * doc/posix-functions/if_nameindex.texi: Likewise.
88228         * doc/posix-functions/if_nametoindex.texi: Likewise.
88229         * doc/posix-functions/insque.texi: Likewise.
88230         * doc/posix-functions/linkat.texi: Likewise.
88231         * doc/posix-functions/llrint.texi: Likewise.
88232         * doc/posix-functions/llrintf.texi: Likewise.
88233         * doc/posix-functions/llrintl.texi: Likewise.
88234         * doc/posix-functions/lockf.texi: Likewise.
88235         * doc/posix-functions/lrintl.texi: Likewise.
88236         * doc/posix-functions/mkdirat.texi: Likewise.
88237         * doc/posix-functions/mkfifoat.texi: Likewise.
88238         * doc/posix-functions/mknodat.texi: Likewise.
88239         * doc/posix-functions/mq_close.texi: Likewise.
88240         * doc/posix-functions/mq_getattr.texi: Likewise.
88241         * doc/posix-functions/mq_notify.texi: Likewise.
88242         * doc/posix-functions/mq_open.texi: Likewise.
88243         * doc/posix-functions/mq_receive.texi: Likewise.
88244         * doc/posix-functions/mq_send.texi: Likewise.
88245         * doc/posix-functions/mq_setattr.texi: Likewise.
88246         * doc/posix-functions/mq_timedreceive.texi: Likewise.
88247         * doc/posix-functions/mq_timedsend.texi: Likewise.
88248         * doc/posix-functions/mq_unlink.texi: Likewise.
88249         * doc/posix-functions/open_memstream.texi: Likewise.
88250         * doc/posix-functions/openat.texi: Likewise.
88251         * doc/posix-functions/posix_fadvise.texi: Likewise.
88252         * doc/posix-functions/posix_fallocate.texi: Likewise.
88253         * doc/posix-functions/posix_madvise.texi: Likewise.
88254         * doc/posix-functions/posix_memalign.texi: Likewise.
88255         * doc/posix-functions/posix_openpt.texi: Likewise.
88256         * doc/posix-functions/readlinkat.texi: Likewise.
88257         * doc/posix-functions/remque.texi: Likewise.
88258         * doc/posix-functions/renameat.texi: Likewise.
88259         * doc/posix-functions/rintl.texi: Likewise.
88260         * doc/posix-functions/sem_unlink.texi: Likewise.
88261         * doc/posix-functions/shm_open.texi: Likewise.
88262         * doc/posix-functions/shm_unlink.texi: Likewise.
88263         * doc/posix-functions/signgam.texi: Likewise.
88264         * doc/posix-functions/sigset.texi: Likewise.
88265         * doc/posix-functions/stpcpy.texi: Likewise.
88266         * doc/posix-functions/stpncpy.texi: Likewise.
88267         * doc/posix-functions/strerror.texi: Likewise.
88268         * doc/posix-functions/strtod.texi: Likewise.
88269         * doc/posix-functions/symlinkat.texi: Likewise.
88270         * doc/posix-functions/unlinkat.texi: Likewise.
88271         * doc/posix-functions/utimensat.texi: Likewise.
88272         * doc/glibc-functions/bindresvport.texi: Likewise.
88273         * doc/glibc-functions/dn_expand.texi: Likewise.
88274         * doc/glibc-functions/exp10.texi: Likewise.
88275         * doc/glibc-functions/exp10f.texi: Likewise.
88276         * doc/glibc-functions/fgetxattr.texi: Likewise.
88277         * doc/glibc-functions/flistxattr.texi: Likewise.
88278         * doc/glibc-functions/fopencookie.texi: Likewise.
88279         * doc/glibc-functions/freeifaddrs.texi: Likewise.
88280         * doc/glibc-functions/fremovexattr.texi: Likewise.
88281         * doc/glibc-functions/fsetxattr.texi: Likewise.
88282         * doc/glibc-functions/getifaddrs.texi: Likewise.
88283         * doc/glibc-functions/getxattr.texi: Likewise.
88284         * doc/glibc-functions/lgetxattr.texi: Likewise.
88285         * doc/glibc-functions/listxattr.texi: Likewise.
88286         * doc/glibc-functions/llistxattr.texi: Likewise.
88287         * doc/glibc-functions/lremovexattr.texi: Likewise.
88288         * doc/glibc-functions/lsetxattr.texi: Likewise.
88289         * doc/glibc-functions/pow10.texi: Likewise.
88290         * doc/glibc-functions/pow10f.texi: Likewise.
88291         * doc/glibc-functions/rcmd_af.texi: Likewise.
88292         * doc/glibc-functions/removexattr.texi: Likewise.
88293         * doc/glibc-functions/res_init.texi: Likewise.
88294         * doc/glibc-functions/res_mkquery.texi: Likewise.
88295         * doc/glibc-functions/res_query.texi: Likewise.
88296         * doc/glibc-functions/res_querydomain.texi: Likewise.
88297         * doc/glibc-functions/res_send.texi: Likewise.
88298         * doc/glibc-functions/rresvport_af.texi: Likewise.
88299         * doc/glibc-functions/setxattr.texi: Likewise.
88300         * doc/glibc-functions/strcasestr.texi: Likewise.
88302 2008-12-15  Bruno Haible  <bruno@clisp.org>
88304         Fix compilation error on OSF/1 4.0.
88305         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
88306         <sys/time.h>, simply delegate to the system header.
88307         Reported by Daniel Richard G. <oss@teragram.com>.
88309 2008-12-15  Bruno Haible  <bruno@clisp.org>
88311         * doc/posix-functions/openat.texi: Mention the 'openat' module.
88312         * doc/posix-functions/fchmodat.texi: Likewise.
88313         * doc/posix-functions/fchownat.texi: Likewise.
88314         * doc/posix-functions/fdopendir.texi: Likewise.
88315         * doc/posix-functions/fstatat.texi: Likewise.
88316         * doc/posix-functions/mkdirat.texi: Likewise.
88317         * doc/posix-functions/unlinkat.texi: Likewise.
88319 2008-12-14  Bruno Haible  <bruno@clisp.org>
88321         Update doc for POSIX:2008.
88322         * doc/posix-functions/faccessat.texi: New file.
88323         * doc/posix-functions/fchmodat.texi: New file.
88324         * doc/posix-functions/fchownat.texi: New file.
88325         * doc/posix-functions/fdopendir.texi: New file.
88326         * doc/posix-functions/fstatat.texi: New file.
88327         * doc/posix-functions/futimens.texi: New file.
88328         * doc/posix-functions/linkat.texi: New file.
88329         * doc/posix-functions/mkdirat.texi: New file.
88330         * doc/posix-functions/mkfifoat.texi: New file.
88331         * doc/posix-functions/mknodat.texi: New file.
88332         * doc/posix-functions/open_wmemstream.texi: New file.
88333         * doc/posix-functions/openat.texi: New file.
88334         * doc/posix-functions/psiginfo.texi: New file.
88335         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
88336         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
88337         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
88338         * doc/posix-functions/readlinkat.texi: New file.
88339         * doc/posix-functions/renameat.texi: New file.
88340         * doc/posix-functions/strerror_l.texi: New file.
88341         * doc/posix-functions/symlinkat.texi: New file.
88342         * doc/posix-functions/unlinkat.texi: New file.
88343         * doc/posix-functions/utimensat.texi: New file.
88344         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88346 2008-12-14  Bruno Haible  <bruno@clisp.org>
88348         Update doc for POSIX:2008.
88349         * doc/posix-functions/alphasort.texi: Renamed from
88350         doc/glibc-functions/alphasort.texi.
88351         * doc/posix-functions/dirfd.texi: Renamed from
88352         doc/glibc-functions/dirfd.texi.
88353         * doc/posix-functions/dprintf.texi: Renamed from
88354         doc/glibc-functions/dprintf.texi.
88355         * doc/posix-functions/duplocale.texi: Renamed from
88356         doc/glibc-functions/duplocale.texi.
88357         * doc/posix-functions/fexecve.texi: Renamed from
88358         doc/glibc-functions/fexecve.texi.
88359         * doc/posix-functions/fmemopen.texi: Renamed from
88360         doc/glibc-functions/fmemopen.texi.
88361         * doc/posix-functions/freelocale.texi: Renamed from
88362         doc/glibc-functions/freelocale.texi.
88363         * doc/posix-functions/getdate_err.texi: Renamed from
88364         doc/glibc-functions/getdate_err.texi.
88365         * doc/posix-functions/isalnum_l.texi: Renamed from
88366         doc/glibc-functions/isalnum_l.texi.
88367         * doc/posix-functions/isalpha_l.texi: Renamed from
88368         doc/glibc-functions/isalpha_l.texi.
88369         * doc/posix-functions/isblank_l.texi: Renamed from
88370         doc/glibc-functions/isblank_l.texi.
88371         * doc/posix-functions/iscntrl_l.texi: Renamed from
88372         doc/glibc-functions/iscntrl_l.texi.
88373         * doc/posix-functions/isdigit_l.texi: Renamed from
88374         doc/glibc-functions/isdigit_l.texi.
88375         * doc/posix-functions/isgraph_l.texi: Renamed from
88376         doc/glibc-functions/isgraph_l.texi.
88377         * doc/posix-functions/islower_l.texi: Renamed from
88378         doc/glibc-functions/islower_l.texi.
88379         * doc/posix-functions/isprint_l.texi: Renamed from
88380         doc/glibc-functions/isprint_l.texi.
88381         * doc/posix-functions/ispunct_l.texi: Renamed from
88382         doc/glibc-functions/ispunct_l.texi.
88383         * doc/posix-functions/isspace_l.texi: Renamed from
88384         doc/glibc-functions/isspace_l.texi.
88385         * doc/posix-functions/isupper_l.texi: Renamed from
88386         doc/glibc-functions/isupper_l.texi.
88387         * doc/posix-functions/iswalnum_l.texi: Renamed from
88388         doc/glibc-functions/iswalnum_l.texi.
88389         * doc/posix-functions/iswalpha_l.texi: Renamed from
88390         doc/glibc-functions/iswalpha_l.texi.
88391         * doc/posix-functions/iswblank_l.texi: Renamed from
88392         doc/glibc-functions/iswblank_l.texi.
88393         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88394         doc/glibc-functions/iswcntrl_l.texi.
88395         * doc/posix-functions/iswctype_l.texi: Renamed from
88396         doc/glibc-functions/iswctype_l.texi.
88397         * doc/posix-functions/iswdigit_l.texi: Renamed from
88398         doc/glibc-functions/iswdigit_l.texi.
88399         * doc/posix-functions/iswgraph_l.texi: Renamed from
88400         doc/glibc-functions/iswgraph_l.texi.
88401         * doc/posix-functions/iswlower_l.texi: Renamed from
88402         doc/glibc-functions/iswlower_l.texi.
88403         * doc/posix-functions/iswprint_l.texi: Renamed from
88404         doc/glibc-functions/iswprint_l.texi.
88405         * doc/posix-functions/iswpunct_l.texi: Renamed from
88406         doc/glibc-functions/iswpunct_l.texi.
88407         * doc/posix-functions/iswspace_l.texi: Renamed from
88408         doc/glibc-functions/iswspace_l.texi.
88409         * doc/posix-functions/iswupper_l.texi: Renamed from
88410         doc/glibc-functions/iswupper_l.texi.
88411         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88412         doc/glibc-functions/iswxdigit_l.texi.
88413         * doc/posix-functions/isxdigit_l.texi: Renamed from
88414         doc/glibc-functions/isxdigit_l.texi.
88415         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88416         doc/glibc-functions/mbsnrtowcs.texi.
88417         * doc/posix-functions/mkdtemp.texi: Renamed from
88418         doc/glibc-functions/mkdtemp.texi.
88419         * doc/posix-functions/newlocale.texi: Renamed from
88420         doc/glibc-functions/newlocale.texi.
88421         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88422         doc/glibc-functions/nl_langinfo_l.texi.
88423         * doc/posix-functions/open_memstream.texi: Renamed from
88424         doc/glibc-functions/open_memstream.texi.
88425         * doc/posix-functions/opterr.texi: Renamed from
88426         doc/glibc-functions/opterr.texi.
88427         * doc/posix-functions/optind.texi: Renamed from
88428         doc/glibc-functions/optind.texi.
88429         * doc/posix-functions/optopt.texi: Renamed from
88430         doc/glibc-functions/optopt.texi.
88431         * doc/posix-functions/psignal.texi: Renamed from
88432         doc/glibc-functions/psignal.texi.
88433         * doc/posix-functions/scandir.texi: Renamed from
88434         doc/glibc-functions/scandir.texi.
88435         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88436         doc/glibc-functions/sched_get_priority_min.texi.
88437         * doc/posix-functions/signgam.texi: Renamed from
88438         doc/glibc-functions/signgam.texi.
88439         * doc/posix-functions/stpcpy.texi: Renamed from
88440         doc/glibc-functions/stpcpy.texi.
88441         * doc/posix-functions/stpncpy.texi: Renamed from
88442         doc/glibc-functions/stpncpy.texi.
88443         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88444         doc/glibc-functions/strcasecmp_l.texi.
88445         * doc/posix-functions/strcoll_l.texi: Renamed from
88446         doc/glibc-functions/strcoll_l.texi.
88447         * doc/posix-functions/strfmon_l.texi: Renamed from
88448         doc/glibc-functions/strfmon_l.texi.
88449         * doc/posix-functions/strftime_l.texi: Renamed from
88450         doc/glibc-functions/strftime_l.texi.
88451         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88452         doc/glibc-functions/strncasecmp_l.texi.
88453         * doc/posix-functions/strndup.texi: Renamed from
88454         doc/glibc-functions/strndup.texi.
88455         * doc/posix-functions/strnlen.texi: Renamed from
88456         doc/glibc-functions/strnlen.texi.
88457         * doc/posix-functions/strsignal.texi: Renamed from
88458         doc/glibc-functions/strsignal.texi.
88459         * doc/posix-functions/strxfrm_l.texi: Renamed from
88460         doc/glibc-functions/strxfrm_l.texi.
88461         * doc/posix-functions/timer_gettime.texi: Renamed from
88462         doc/glibc-functions/timer_gettime.texi.
88463         * doc/posix-functions/tolower_l.texi: Renamed from
88464         doc/glibc-functions/tolower_l.texi.
88465         * doc/posix-functions/toupper_l.texi: Renamed from
88466         doc/glibc-functions/toupper_l.texi.
88467         * doc/posix-functions/towctrans_l.texi: Renamed from
88468         doc/glibc-functions/towctrans_l.texi.
88469         * doc/posix-functions/towlower_l.texi: Renamed from
88470         doc/glibc-functions/towlower_l.texi.
88471         * doc/posix-functions/towupper_l.texi: Renamed from
88472         doc/glibc-functions/towupper_l.texi.
88473         * doc/posix-functions/uselocale.texi: Renamed from
88474         doc/glibc-functions/uselocale.texi.
88475         * doc/posix-functions/vdprintf.texi: Renamed from
88476         doc/glibc-functions/vdprintf.texi.
88477         * doc/posix-functions/wcpcpy.texi:
88478         Renamed from doc/glibc-functions/wcpcpy.texi.
88479         * doc/posix-functions/wcpncpy.texi: Renamed from
88480         doc/glibc-functions/wcpncpy.texi.
88481         * doc/posix-functions/wcscasecmp.texi: Renamed from
88482         doc/glibc-functions/wcscasecmp.texi.
88483         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
88484         doc/glibc-functions/wcscasecmp_l.texi.
88485         * doc/posix-functions/wcscoll_l.texi: Renamed from
88486         doc/glibc-functions/wcscoll_l.texi.
88487         * doc/posix-functions/wcsdup.texi: Renamed from
88488         doc/glibc-functions/wcsdup.texi.
88489         * doc/posix-functions/wcsncasecmp.texi: Renamed from
88490         doc/glibc-functions/wcsncasecmp.texi.
88491         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
88492         doc/glibc-functions/wcsncasecmp_l.texi.
88493         * doc/posix-functions/wcsnlen.texi: Renamed from
88494         doc/glibc-functions/wcsnlen.texi.
88495         * doc/posix-functions/wcsnrtombs.texi: Renamed from
88496         doc/glibc-functions/wcsnrtombs.texi.
88497         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
88498         doc/glibc-functions/wcsxfrm_l.texi.
88499         * doc/posix-functions/wctrans_l.texi: Renamed from
88500         doc/glibc-functions/wctrans_l.texi.
88501         * doc/posix-functions/wctype_l.texi: Renamed from
88502         doc/glibc-functions/wctype_l.texi.
88503         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88504         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
88505         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
88506         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
88507         these subsections.
88508         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
88509         Remove sections.
88511 2008-12-14  Bruno Haible  <bruno@clisp.org>
88513         Update doc for POSIX:2008.
88514         * doc/posix-functions/*.texi: Update URL of POSIX specification.
88516 2008-12-14  Bruno Haible  <bruno@clisp.org>
88518         Update doc for POSIX:2008.
88519         * doc/pastposix-functions/bcmp.texi: Renamed from
88520         doc/posix-functions/bcmp.texi.
88521         * doc/pastposix-functions/bcopy.texi: Renamed from
88522         doc/posix-functions/bcopy.texi.
88523         * doc/pastposix-functions/bsd_signal.texi: Renamed from
88524         doc/posix-functions/bsd_signal.texi.
88525         * doc/pastposix-functions/bzero.texi: Renamed from
88526         doc/posix-functions/bzero.texi.
88527         * doc/pastposix-functions/ecvt.texi: Renamed from
88528         doc/posix-functions/ecvt.texi.
88529         * doc/pastposix-functions/fcvt.texi: Renamed from
88530         doc/posix-functions/fcvt.texi.
88531         * doc/pastposix-functions/ftime.texi: Renamed from
88532         doc/posix-functions/ftime.texi.
88533         * doc/pastposix-functions/gcvt.texi: Renamed from
88534         doc/posix-functions/gcvt.texi.
88535         * doc/pastposix-functions/getcontext.texi: Renamed from
88536         doc/posix-functions/getcontext.texi.
88537         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
88538         doc/posix-functions/gethostbyaddr.texi.
88539         * doc/pastposix-functions/gethostbyname.texi: Renamed from
88540         doc/posix-functions/gethostbyname.texi.
88541         * doc/pastposix-functions/getwd.texi: Renamed from
88542         doc/posix-functions/getwd.texi.
88543         * doc/pastposix-functions/h_errno.texi: Renamed from
88544         doc/posix-functions/h_errno.texi.
88545         * doc/pastposix-functions/index.texi: Renamed from
88546         doc/posix-functions/index.texi.
88547         * doc/pastposix-functions/makecontext.texi: Renamed from
88548         doc/posix-functions/makecontext.texi.
88549         * doc/pastposix-functions/mktemp.texi: Renamed from
88550         doc/posix-functions/mktemp.texi.
88551         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
88552         doc/posix-functions/pthread_attr_getstackaddr.texi.
88553         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
88554         doc/posix-functions/pthread_attr_setstackaddr.texi.
88555         * doc/pastposix-functions/rindex.texi: Renamed from
88556         doc/posix-functions/rindex.texi.
88557         * doc/pastposix-functions/scalb.texi: Renamed from
88558         doc/posix-functions/scalb.texi.
88559         * doc/pastposix-functions/setcontext.texi: Renamed from
88560         doc/posix-functions/setcontext.texi.
88561         * doc/pastposix-functions/swapcontext.texi: Renamed from
88562         doc/posix-functions/swapcontext.texi.
88563         * doc/pastposix-functions/ualarm.texi: Renamed from
88564         doc/posix-functions/ualarm.texi.
88565         * doc/pastposix-functions/usleep.texi: Renamed from
88566         doc/posix-functions/usleep.texi.
88567         * doc/pastposix-functions/vfork.texi: Renamed from
88568         doc/posix-functions/vfork.texi.
88569         * doc/pastposix-functions/wcswcs.texi: Renamed from
88570         doc/posix-functions/wcswcs.texi.
88571         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
88572         (Function Substitutes): Update.
88574 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88576         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
88577         m4/strerror.m4.
88579 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88580             Bruno Haible  <bruno@clisp.org>
88582         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
88584 2008-12-13  Bruno Haible  <bruno@clisp.org>
88586         * modules/strtoull (Depends-on): Remove unistd.
88588 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88590         * modules/strtoull (Depends-on): Add stdlib.
88592 2008-12-11  Simon Josefsson  <simon@josefsson.org>
88594         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
88596 2008-12-10  Jim Meyering  <meyering@redhat.com>
88598         gl_ASSERT: don't say assertions are disabled when they're not
88599         * m4/assert.m4 (gl_ASSERT): Do not make configure report
88600         "checking whether to enable assertions... no", when they are in
88601         fact enabled.  This is solely a bug in the output of configure.
88602         In spite of saying "no", NDEBUG was not defined in that case.
88603         Also, as noted by Eric Blake, leave assertions enabled upon
88604         --enable-assert=INVALID.
88606 2008-12-10  Bruno Haible  <bruno@clisp.org>
88608         Change MODULES.html to refer to POSIX:2008 where possible.
88609         * MODULES.html.sh (POSIX2008_URL): New variable.
88610         (posix_headers): Remove sys/timeb, ucontext.
88611         (posix2001_headers): New variable.
88612         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88613         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88614         index, makecontext, mktemp, pthread_attr_getstackaddr,
88615         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88616         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
88617         (posix2001_functions): New variable.
88618         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
88619         otherwise.
88621 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88623         add missing include to parse-duration.c
88624         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
88625         * modules/parse-duration (Depends-on): Add xalloc.
88627         fix sed script reading maint.mk
88628         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
88629         (syntax-check-rules): Use it.
88631 2008-12-09  Bruno Haible  <bruno@clisp.org>
88633         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
88634         MacOS X 10.4/PowerPC.
88635         Reported by Simon Josefsson.
88637 2008-12-08  Jim Meyering  <meyering@redhat.com>
88639         work around mingw's lack of some S_IF definitions
88640         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
88641         Reported by Simon Josefsson.
88643 2008-12-08  Bruno Haible  <bruno@clisp.org>
88645         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
88646         applied to variables. Needed on MacOS X 10.4/PowerPC.
88647         Reported by Simon Josefsson.
88649 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
88650         and Eric Blake  <ebb9@byu.net>
88652         assert: honor --enable-assert
88653         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
88654         order to honor --enable-assert, rather than treating it as a
88655         synonym for --disable-assert.
88657 2008-12-08  Jim Meyering  <meyering@redhat.com>
88659         * lib/posixtm.c: Remove now-useless declaration of mktime.
88661         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
88663 2008-12-07  Bruno Haible  <bruno@clisp.org>
88665         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
88666         test_once): Mark functions as static.
88667         * tests/test-tls.c (test_tls): Likewise.
88669 2008-12-07  Bruno Haible  <bruno@clisp.org>
88671         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
88672         iconv_register_autodetect.
88674 2008-12-07  Jim Meyering  <meyering@redhat.com>
88676         posixtm.c: avoid a warning
88677         * lib/posixtm.c (posixtime): Don't initialize tm0.
88678         It's no longer needed to placate gcc4's -Wuninitialized,
88679         and the attempt to placate would elicit a new warning.
88681         unicodeio.c: mark unused parameters
88682         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88683         (fallback_failure_callback): Likewise.
88685 2008-12-07  Bruno Haible  <bruno@clisp.org>
88687         * gnulib-tool (func_create_testdir): When building the tests
88688         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88689         Reported by Simon Josefsson.
88691 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88693         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88695 2008-12-06  Bruno Haible  <bruno@clisp.org>
88697         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88698         Suggested by Eric Blake.
88700 2008-12-06  Bruno Haible  <bruno@clisp.org>
88702         Fix a c-stack test failure on MacOS X.
88703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88704         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88705         handler for SIGBUS as well.
88706         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88707         install a signal handler for SIGBUS as well.
88708         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88710 2008-12-06  Bruno Haible  <bruno@clisp.org>
88712         Advocacy documentation.
88713         * doc/gnulib-intro.texi (Benefits): New section.
88714         * doc/gnulib.texi: Update.
88716 2008-12-06  Bruno Haible  <bruno@clisp.org>
88718         Document the 'manywarnings' module.
88719         * doc/manywarnings.texi: New file.
88720         * doc/gnulib.texi: Include it.
88722 2008-12-05  Eric Blake  <ebb9@byu.net>
88724         tests: silence some gcc warnings
88725         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88726         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88727         type mismatches.
88729 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88730             Bruno Haible  <bruno@clisp.org>
88732         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88734 2008-11-29  Jim Meyering  <meyering@redhat.com>
88736         unicodeio.c: mark unused parameters
88737         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88738         (fallback_failure_callback): Likewise.
88740         fts: fix a thinko
88741         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88742         (set_stat_type): Return S_IF*-valued "type" directly.
88743         Prompted by James Youngman's spotting a related bug.
88744         Confirmed by further testing through find.
88746         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88747         * lib/fts.c (D_TYPE): Define.
88748         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88749         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88750         (s_ifmt_shift_bits): New function.
88751         (set_stat_type): New function.
88752         (fts_build): When not calling fts_stat, call set_stat_type
88753         to propagate dirent.d_type info to fts_read caller.
88754         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88755         fts_statp->st_mode type information may be valid.
88757 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88759         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88760         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88761         <sds@gnu.org>.
88763 2008-11-20  Bruno Haible  <bruno@clisp.org>
88765         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88766         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88767         INCLUDE_NEXT.
88768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88769         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88770         * modules/math (Makefile.am): Substitute
88771         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88772         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88774 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88775             Bruno Haible  <bruno@clisp.org>
88777         * lib/stdint.in.h: Define all type macros so that their expansion is
88778         a single typedef'ed token. Fixes a compilation failure in Boost which
88779         does "using ::int8_t;".
88781 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88783         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88784         gl_MANYWARN_ALL_GCC.
88785         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88786         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88787         * modules/manywarnings: New file.
88788         * MODULES.html.sh: Mention manywarnings module.
88790 2008-11-18  Bruno Haible  <bruno@clisp.org>
88792         * doc/gnulib-tool.texi (Unit tests): New section.
88794 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88796         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88797         paths like 'lib/po/foo.po'.
88799 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88801         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88802         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88804 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88806         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88807         parameter works.
88809 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88811         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88813 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88815         * modules/parse-duration-tests: New file.
88816         * tests/test-parse-duration.sh: New file.
88817         * tests/test-parse-duration.c: New file.
88819         New module 'parse-duration'.
88820         * lib/parse-duration.h: New file.
88821         * lib/parse-duration.c: New file.
88822         * modules/parse-duration: New file.
88824 2008-11-17  Bruno Haible  <bruno@clisp.org>
88826         * tests/test-select-out.sh: Comment out the first pipe test.
88827         Reported by Simon Josefsson.
88829 2008-11-17  Bruno Haible  <bruno@clisp.org>
88831         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88832         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88833         gl_HOSTENT.
88835 2008-11-17  Bruno Haible  <bruno@clisp.org>
88837         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88838         -lnetwork and -lnet. Needed for Haiku and BeOS.
88840 2008-11-16  Bruno Haible  <bruno@clisp.org>
88842         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88844 2008-11-16  Bruno Haible  <bruno@clisp.org>
88846         Avoid test failure on Haiku.
88847         * tests/test-fsync.c: Include <errno.h>.
88848         (main): Don't require that fsync (0) fails.
88850 2008-11-15  Bruno Haible  <bruno@clisp.org>
88852         New module 'hostent'.
88853         * modules/hostent: New file.
88854         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88856 2008-11-15  Bruno Haible  <bruno@clisp.org>
88858         New module 'servent'.
88859         * modules/servent: New file.
88860         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88862 2008-11-15  Bruno Haible  <bruno@clisp.org>
88864         Avoid generating same test program with two different rules.
88865         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88866         test-frexp to test-frexp-nolibm.
88867         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88868         test-frexpl to test-frexpl-nolibm.
88870 2008-11-15  Bruno Haible  <bruno@clisp.org>
88872         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88873         $(FREXPL_LIBM).
88875 2008-11-15  Bruno Haible  <bruno@clisp.org>
88877         * lib/netdb.in.h: Activate the definitions also when the system's
88878         <netdb.h> has 'struct addrinfo'.
88879         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88880         EAI_OVERFLOW or AI_NUMERICSERV.
88881         * doc/posix-headers/netdb.texi: Document the problem.
88883 2008-11-15  Bruno Haible  <bruno@clisp.org>
88885         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88887         Make the 'sched' module work on platforms where <sched.h> exists but
88888         is incomplete (such as Haiku).
88889         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88890         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88891         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88892         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88893         HAVE_STRUCT_SCHED_PARAM.
88894         * modules/sched (Depends-on): Add include_next.
88895         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88896         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88897         * doc/posix-headers/sched.texi: Document the issue.
88899 2008-11-13  Jim Meyering  <meyering@redhat.com>
88901         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88902         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88903         test would fail due to the difference in the Report bugs to ...
88904         line.  The expected address is empty, "<>", while the actual
88905         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88907 2008-11-12  Bruno Haible  <bruno@clisp.org>
88909         lstat: don't compile lstat.c on systems lacking lstat
88910         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88911         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88912         Reported by Daniel P. Berrange via Jim Meyering.
88914 2008-11-12  Jim Meyering  <meyering@redhat.com>
88916         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88918 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88920         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88921         instead.
88923 2008-11-12  Bruno Haible  <bruno@clisp.org>
88925         * lib/unicodeio.c: Include unistr.h.
88926         (utf8_wctomb): Remove function.
88927         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88929 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88931         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88932         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88933         <bruno@clisp.org>.
88934         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88936 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88938         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88939         * doc/gnulib.texi: Add section for warnings.
88941 2008-11-11  Bruno Haible  <bruno@clisp.org>
88943         * lib/sockets.h: Add a comment.
88945 2008-11-11  Karl Berry  <karl@gnu.org>
88947         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88949 2008-11-11  Eric Blake  <ebb9@byu.net>
88951         fdl.texi: avoid git symlinks
88952         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88954 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88956         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88958 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88960         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88961         (gl_WARN_ADD): Substitute $2 if literal.
88963 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88965         * m4/warning.m4: Remove.
88967 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88969         * m4/warnings.m4: Almost complete rewrite. :-)
88971 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88973         * modules/warnings: New module.
88974         * m4/warnings.m4: New file.
88975         * MODULES.html.sh: Mention warnings module.
88976         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88977         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88979 2008-11-10  Eric Blake  <ebb9@byu.net>
88981         fdl.texi: make a symlink to the latest version
88982         * doc/standards.texi: Revert today's earlier change.
88983         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88984         * doc/fdl.texi: ...and replace this with a symlink to the newer
88985         fdl-1.3.texi.
88987 2008-11-10  Bruno Haible  <bruno@clisp.org>
88989         * tests/test-select-fd.c (main): Accept the result file name as fourth
88990         argument.
88991         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88992         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88994 2008-11-10  Bruno Haible  <bruno@clisp.org>
88996         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88997         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88998         as autoconf-substituted macros.
88999         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
89000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
89001         gl_NETDB_H_DEFAULTS. Set these variables.
89002         * modules/netdb (Makefile.am): Substitute these variables.
89004 2008-11-10  Eric Blake  <ebb9@byu.net>
89006         standards.texi: include correct file for FDL 1.3
89007         * doc/standards.texi (GNU Free Documentation License): Change
89008         include file to pull in FDL 1.3, not 1.2.
89010         fdl.texi: revert accidental change to license
89011         * doc/fdl.texi: This is FDL 1.2, not 1.3.
89013 2008-11-10  Bruno Haible  <bruno@clisp.org>
89015         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
89016         cross-compiling guesses also when the native compile gives no result.
89018 2008-11-10  Bruno Haible  <bruno@clisp.org>
89020         * lib/spawni.c (__spawni): Force variable into the stack.
89022 2008-11-10  Bruno Haible  <bruno@clisp.org>
89024         Add support for Haiku.
89025         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
89026         glibc and BeOS, but also on Haiku.
89027         * lib/fpurge.c (fpurge): Likewise.
89028         * lib/freadable.c (freadable): Likewise.
89029         * lib/freadahead.c (freadahead): Likewise.
89030         * lib/freading.c (freading): Likewise.
89031         * lib/freadptr.c (freadptr): Likewise.
89032         * lib/freadseek.c (freadptrinc): Likewise.
89033         * lib/fseeko.c (rpl_fseeko): Likewise.
89034         * lib/fseterr.c (fseterr): Likewise.
89035         * lib/fwritable.c (fwritable): Likewise.
89036         * lib/fwriting.c (fwriting): Likewise.
89037         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
89039 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89041         * lib/config.charset: Treat Haiku like BeOS.
89043 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89045         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
89046         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
89048 2008-11-08  Bruno Haible  <bruno@clisp.org>
89050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
89051         AC_CACHE_CHECK.
89053 2008-11-08  Bruno Haible  <bruno@clisp.org>
89055         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
89057 2008-11-08  Bruno Haible  <bruno@clisp.org>
89059         * tests/test-select-fd.c: New file.
89060         * tests/test-select-in.sh: New file.
89061         * tests/test-select-out.sh: New file.
89062         * tests/test-select-stdin.c: New file.
89063         * modules/select-tests (Files): Add the new files.
89064         (Depends-on): Add gettimeofday.
89065         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
89066         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
89067         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
89069 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
89070             Bruno Haible  <bruno@clisp.org>
89072         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
89074 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
89076         * build-aux/pmccabe2html: Added support for C++ source files.
89078 2008-11-05  Ben Pfaff  <blp@gnu.org>
89080         Fix lib/close.c build on Windows.
89081         * modules/close (Files): Add lib/w32sock.h.
89083 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
89085         Accept Bison's NEWS format.
89086         * build-aux/announce-gen (print_news_deltas): Tweak
89087         $re_prefix.
89089 2008-11-04  Bruno Haible  <bruno@clisp.org>
89091         * modules/random_r (Maintainer): Add glibc.
89093 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89095         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
89096         by karl@freefriends.org (Karl Berry).
89097         * doc/alloca.texi: Likewise.
89098         * doc/c-ctype.texi: Likewise.
89099         * doc/c-strcase.texi: Likewise.
89100         * doc/c-strcaseeq.texi: Likewise.
89101         * doc/c-strcasestr.texi: Likewise.
89102         * doc/c-strstr.texi: Likewise.
89103         * doc/c-strtod.texi: Likewise.
89104         * doc/c-strtold.texi: Likewise.
89105         * doc/ctime.texi: Likewise.
89106         * doc/error.texi: Likewise.
89107         * doc/fdl.texi: Likewise.
89108         * doc/gcd.texi: Likewise.
89109         * doc/getdate.texi: Likewise.
89110         * doc/gnulib-intro.texi: Likewise.
89111         * doc/gnulib-tool.texi: Likewise.
89112         * doc/gnulib.texi: Likewise.
89113         * doc/inet_ntoa.texi: Likewise.
89114         * doc/maintain.texi: Likewise.
89115         * doc/make-stds.texi: Likewise.
89116         * doc/quote.texi: Likewise.
89117         * doc/regexprops-generic.texi: Likewise.
89118         * doc/standards.texi: Likewise.
89119         * doc/verify.texi: Likewise.
89120         * doc/visibility.texi: Likewise.
89121         * doc/gnulib.texi (GNU Free Documentation License): Include
89122         fdl-1.3.texi instead of fdl.texi.
89124 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89126         * doc/fdl-1.3.texi: New file, from
89127         <http://www.gnu.org/licenses/fdl-1.3.texi>.
89128         * modules/fdl-1.3: Add.
89129         * MODULES.html.sh: Add fdl-1.3.
89131 2008-11-03  Bruno Haible  <bruno@clisp.org>
89133         Make determination of absolute name of header file work with AIX xlc.
89134         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
89135         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
89136         preprocessing.
89137         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89138         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
89140 2008-11-03  Simon Josefsson  <simon@josefsson.org>
89142         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
89143         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
89144         <ludo@gnu.org>.
89146 2008-11-02  Bruno Haible  <bruno@clisp.org>
89148         Mark 'strpbrk' obsolete.
89149         * modules/strpbrk (Status, Notice): New sections.
89150         * modules/strtok_r (Depends-on): Add strpbrk.
89152 2008-11-02  Bruno Haible  <bruno@clisp.org>
89154         Mark 'strdup' obsolete.
89155         * modules/strdup (Status, Notice): New sections.
89156         * modules/findprog (Depends-on): Add strdup.
89157         * modules/getaddrinfo (Depends-on): Likewise.
89158         * modules/localename (Depends-on): Likewise.
89159         * modules/relocatable-lib (Depends-on): Likewise.
89160         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
89161         * modules/relocatable-prog (Depends-on): Likewise.
89162         * modules/trim (Depends-on): Likewise.
89163         * modules/unictype/gen-ctype (Depends-on): Likewise.
89164         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89166 2008-11-02  Bruno Haible  <bruno@clisp.org>
89168         Mark 'strcspn' obsolete.
89169         * modules/strcspn (Status, Notice): New sections.
89171 2008-11-02  Bruno Haible  <bruno@clisp.org>
89173         Mark 'rmdir' obsolete.
89174         * modules/rmdir (Status, Notice): New sections.
89175         * modules/clean-temp (Depends-on): Add rmdir.
89176         * modules/openat (Depends-on): Likewise.
89178 2008-11-02  Bruno Haible  <bruno@clisp.org>
89180         Mark 'raise' obsolete.
89181         * modules/raise (Status, Notice): New sections.
89182         (Include): Specify <signal.h>.
89183         * modules/stdio (Depends-on): Add raise.
89184         * modules/write (Depends-on): Likewise.
89186 2008-11-02  Bruno Haible  <bruno@clisp.org>
89188         Mark 'memset' obsolete.
89189         * modules/memset (Status, Notice): New sections.
89191 2008-11-02  Bruno Haible  <bruno@clisp.org>
89193         Mark 'memmove' obsolete.
89194         * modules/memmove (Status, Notice): New sections.
89195         * modules/argp (Depends-on): Add memmove.
89196         * modules/argz (Depends-on): Likewise.
89197         * modules/canonicalize (Depends-on): Likewise.
89198         * modules/canonicalize-lgpl (Depends-on): Likewise.
89199         * modules/fts (Depends-on): Likewise.
89200         * modules/getcwd (Depends-on): Likewise.
89201         * modules/human (Depends-on): Likewise.
89202         * modules/regex (Depends-on): Likewise.
89203         * modules/striconveh (Depends-on): Likewise.
89204         * modules/trim (Depends-on): Likewise.
89205         * modules/unistr/u8-move (Depends-on): Likewise.
89206         * modules/unistr/u16-move (Depends-on): Likewise.
89207         * modules/unistr/u32-move (Depends-on): Likewise.
89209 2008-11-02  Bruno Haible  <bruno@clisp.org>
89211         Mark 'memcpy' obsolete.
89212         * modules/memcpy (Status, Notice): New sections.
89214 2008-11-02  Bruno Haible  <bruno@clisp.org>
89216         Mark 'memcmp' obsolete.
89217         * modules/memcmp (Status, Notice): New sections.
89218         * modules/argmatch (Depends-on): Add memchr.
89219         * modules/backupfile (Depends-on): Likewise.
89220         * modules/c-strcasestr (Depends-on): Likewise.
89221         * modules/crypto/des (Depends-on): Likewise.
89222         * modules/csharpcomp (Depends-on): Likewise.
89223         * modules/fnmatch (Depends-on): Likewise.
89224         * modules/git-merge-changelog (Depends-on): Likewise.
89225         * modules/isnand (Depends-on): Likewise.
89226         * modules/isnand-nolibm (Depends-on): Likewise.
89227         * modules/isnanf (Depends-on): Likewise.
89228         * modules/isnanf-nolibm (Depends-on): Likewise.
89229         * modules/isnanl (Depends-on): Likewise.
89230         * modules/isnanl-nolibm (Depends-on): Likewise.
89231         * modules/mbchar (Depends-on): Likewise.
89232         * modules/memcoll (Depends-on): Likewise.
89233         * modules/quotearg (Depends-on): Likewise.
89234         * modules/regex (Depends-on): Likewise.
89235         * modules/relocatable-prog (Depends-on): Likewise.
89236         * modules/same (Depends-on): Likewise.
89237         * modules/signbit (Depends-on): Likewise.
89238         * modules/strcasestr-simple (Depends-on): Likewise.
89239         * modules/unictype/gen-ctype (Depends-on): Likewise.
89240         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89241         * modules/uniname/uniname (Depends-on): Likewise.
89242         * modules/unistr/u8-cmp (Depends-on): Likewise.
89244 2008-11-02  Bruno Haible  <bruno@clisp.org>
89246         Mark 'memchr' obsolete.
89247         * modules/memchr (Status, Notice): New sections.
89248         * modules/argp (Depends-on): Add memchr.
89249         * modules/base64 (Depends-on): Likewise.
89250         * modules/c-strcasestr (Depends-on): Likewise.
89251         * modules/chdir-long (Depends-on): Likewise.
89252         * modules/fnmatch (Depends-on): Likewise.
89253         * modules/getsubopt (Depends-on): Likewise.
89254         * modules/git-merge-changelog (Depends-on): Likewise.
89255         * modules/glob (Depends-on): Likewise.
89256         * modules/strcasestr-simple (Depends-on): Likewise.
89257         * modules/strnlen (Depends-on): Likewise.
89259 2008-11-02  Bruno Haible  <bruno@clisp.org>
89261         Mark 'atexit' obsolete.
89262         * modules/atexit (Status, Notice): New sections.
89263         * modules/chdir-long (Depends-on): Add atexit.
89264         * modules/wait-process (Depends-on): Likewise.
89266 2008-11-02  Bruno Haible  <bruno@clisp.org>
89268         * gnulib-tool: New option --with-obsolete.
89269         (func_usage): Document it.
89270         (func_modules_transitive_closure): Drop obsolete dependencies if
89271         incobsolete is not true.
89272         (func_import): Read and save the incobsolete variable to the cache.
89274 2008-11-02  Bruno Haible  <bruno@clisp.org>
89276         * modules/TEMPLATE-EXTENDED: New field 'Status'.
89277         * gnulib-tool: New option --extract-status.
89278         (func_usage): Document it.
89279         (sed_extract_prog): Recognize it.
89280         (func_get_status): New function.
89282 2008-10-30  Simon Josefsson  <simon@josefsson.org>
89284         * modules/sockets (License): Change from LGPL to LGPLv2+.
89286 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89288         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
89290 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89292         * MODULES.html.sh (Support for systems lacking POSIX:2001):
89293         Mention times and sys_times.
89294         * modules/sys_times, modules/sys_times-tests: New modules.
89295         * modules/times, modules/times-tests: Likewise
89296         * m4/sys_times_h.m4: New file.
89297         * lib/sys_times.in.h: Likewise
89298         * lib/times.c: Likewise.
89299         * tests/test-sys_times.c: Likewise.
89300         * tests/test-times.c: Likewise.
89301         * doc/posix-headers/sys_times.texi: Update.
89302         * doc/posix-functions/times.texi: Update.
89304 2008-10-28  Jim Meyering  <meyering@redhat.com>
89306         * modules/tempname (Depends-on): Add lstat.
89308         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
89310 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89312         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
89313         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
89314         using idiom used elsewhere in gnulib.
89316 2008-10-27  Jim Meyering  <meyering@redhat.com>
89318         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
89320 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89322         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
89323         TESTS_ENVIRONMENT, for shell scripts that needs to call built
89324         programs.
89325         * tests/test-argp-2.sh: Use $EXEEXT when needed.
89327 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89329         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
89331 2008-10-27  Bruno Haible  <bruno@clisp.org>
89333         * tests/test-lstat.c: Include <stdio.h>.
89335 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89337         * modules/lstat-tests: New module.
89338         * tests/test-lstat.c: New file.
89340 2008-10-26  Jim Meyering  <meyering@redhat.com>
89342         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
89344 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89345             Bruno Haible  <bruno@clisp.org>
89347         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
89348         * modules/configmake (Include): Add a note that the include must come
89349         after all system headers.
89350         * lib/javaversion.c: Include configmake.h after all other includes.
89352 2008-10-26  Bruno Haible  <bruno@clisp.org>
89354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
89355         HAVE_STRUCT_RANDOM_DATA to 1.
89356         (gl_STDLIB_H): Simplify.
89358 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89360         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
89361         substitute HAVE_STRUCT_RANDOM_DATA.
89362         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89363         random_data.
89364         * modules/stdlib (Makefile.am): Substitute
89365         HAVE_STRUCT_RANDOM_DATA.
89367 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89369         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89370         * doc/gnulib-intro.texi (Copyright): Likewise.
89372 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89374         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89375         findings.
89377 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89378             Bruno Haible  <bruno@clisp.org>
89380         * lib/unistd.in.h: Include <winsock2.h>.
89381         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89382         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89383         Provide dummy declarations.
89384         (gethostname): Override.
89385         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89386         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89387         gl_PREREQ_SYS_H_WINSOCK2.
89388         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89389         * doc/posix-functions/gethostname.texi: More details.
89391 2008-10-25  Bruno Haible  <bruno@clisp.org>
89393         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89394         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89395         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89397         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89398         here ...
89399         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89400         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89401         gl_UNISTD_H_DEFAULTS.
89403 2008-10-25  Eric Blake  <ebb9@byu.net>
89405         signbit: avoid spurious compiler failure
89406         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89407         declarations inside function.
89409 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89410             Bruno Haible  <bruno@clisp.org>
89412         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89413         * modules/random_r (Depends-on): Add stdint.
89415 2008-10-24  Bruno Haible  <bruno@clisp.org>
89417         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89418         Eggert.
89419         * modules/strerror (License): Likewise.
89421 2008-10-24  Jim Meyering  <meyering@redhat.com>
89423         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89424         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89426 2008-10-24  Eric Blake  <ebb9@byu.net>
89428         getgroups: fix compilation when getgroups is available
89429         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89430         but with <config.h> override of getgroups disabled.
89432 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89434         * doc/gnulib.texi (Header files): Add note about C++ problems.
89435         Explained by Bruno Haible <bruno@clisp.org>.
89437 2008-10-23  Bruno Haible  <bruno@clisp.org>
89439         Define a dummy SA_NODEFER macro on Interix.
89440         * lib/signal.in.h (SA_NODEFER): Define fallback.
89441         Reported by Aleksey Cheusov <cheusov@tut.by> via
89442         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89444 2008-10-23  Bruno Haible  <bruno@clisp.org>
89446         * modules/freadahead (License): Change to LGPLv2+.
89447         Suggested by Simon Josefsson.
89449 2008-10-23  Jim Meyering  <meyering@redhat.com>
89451         random_r: new module
89452         * modules/random_r: New file.
89453         * m4/random_r.m4: New file.
89454         * lib/random_r.c: New file, from glibc.
89455         * modules/random_r-tests: New file.
89456         * tests/test-random_r.c: New file.
89457         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89458          Declare.
89459         (RAND_MAX): Define.
89460         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89461         * modules/stdlib: Substitute them, too.
89462         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89463         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89464         * doc/glibc-functions/random_r.texi: Likewise.
89465         * doc/glibc-functions/setstate_r.texi: Likewise.
89466         * doc/glibc-functions/srandom_r.texi: Likewise.
89467         * config/srclist.txt: Mention it.
89469 2008-10-23  David Lutterkort  <lutter@redhat.com>
89471         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89472         link requirement
89474 2008-10-23  Jim Meyering  <meyering@redhat.com>
89476         selinux-h: mark parameters of stub functions as intentionally unused
89477         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
89478         * lib/se-context.in.h: Likewise.
89480 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89482         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
89484 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89486         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
89488 2008-10-22  Eric Blake  <ebb9@byu.net>
89490         glthread/thread: avoid compiler warning
89491         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
89492         Add unreachable abort to silence compiler.
89494 2008-10-22  Eric Blake  <ebb9@byu.net>
89496         netdb: also supply struct addrinfo for cygwin 1.5.x
89497         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
89498         older cygwin.
89499         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
89500         cygwin.
89501         * doc/posix-headers/netdb.texi (netdb.h): Document this.
89503 2008-10-22  Bruno Haible  <bruno@clisp.org>
89505         * users.txt: Update entry about pspp.
89507 2008-10-21  Bruno Haible  <bruno@clisp.org>
89509         Simplification.
89510         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
89511         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
89513         Simplification.
89514         * lib/ioctl.c (ioctl): Don't undefine.
89515         * lib/socket.c (socket): Don't undefine.
89517         Remove unused module indicator macros.
89518         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
89519         GNULIB_$1 as a C macro.
89521         * doc/posix-functions/close.texi: Undo last change.
89522         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
89523         Windows platforms.
89525 2008-10-21  Bruno Haible  <bruno@clisp.org>
89527         Add gethostname() declaration to <unistd.h>.
89528         * lib/unistd.in.h (gethostname): New declaration.
89529         * lib/gethostname.c: Include <unistd.h>.
89530         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
89531         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
89532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
89533         and HAVE_GETHOSTNAME.
89534         * modules/gethostname (Depends-on): Add unistd.
89535         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89536         (Include): Specify <unistd.h>.
89537         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
89538         HAVE_GETHOSTNAME.
89539         * tests/test-gethostname.c: Include <unistd.h> first.
89541 2008-10-21  Bruno Haible  <bruno@clisp.org>
89543         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
89544         * modules/select-tests (Depends-on): Likewise.
89545         Reported by Simon Josefsson.
89547 2008-10-21  Simon Josefsson  <simon@josefsson.org>
89549         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
89550         * lib/accept.c: New file, based on winsock.c.
89551         * lib/bind.c: New file, based on winsock.c.
89552         * lib/connect.c: New file, based on winsock.c.
89553         * lib/getpeername.c: New file, based on winsock.c.
89554         * lib/getsockname.c: New file, based on winsock.c.
89555         * lib/getsockopt.c: New file, based on winsock.c.
89556         * lib/ioctl.c: New file, based on winsock.c.
89557         * lib/listen.c: New file, based on winsock.c.
89558         * lib/recv.c: New file, based on winsock.c.
89559         * lib/recvfrom.c: New file, based on winsock.c.
89560         * lib/send.c: New file, based on winsock.c.
89561         * lib/sendto.c: New file, based on winsock.c.
89562         * lib/setsockopt.c: New file, based on winsock.c.
89563         * lib/shutdown.c: New file, based on winsock.c.
89564         * lib/socket.c: New file, based on winsock.c.
89565         * lib/w32sock.h: New file, based on winsock.c.
89566         * lib/winsock.c: Remove file.
89567         * modules/accept: Likewise.
89568         * modules/bind: Likewise.
89569         * modules/connect: Likewise.
89570         * modules/getpeername: Likewise.
89571         * modules/getsockname: Likewise.
89572         * modules/getsockopt: Likewise.
89573         * modules/ioctl: Likewise.
89574         * modules/listen: Likewise.
89575         * modules/recv: Likewise.
89576         * modules/recvfrom: Likewise.
89577         * modules/send: Likewise.
89578         * modules/sendto: Likewise.
89579         * modules/setsockopt: Likewise.
89580         * modules/shutdown: Likewise.
89581         * modules/socket: Use socket.c instead of winsock.c.
89582         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
89583         * doc/posix-functions/accept.texi: Doc fix.
89584         * doc/posix-functions/bind.texi: Doc fix.
89585         * doc/posix-functions/close.texi: Doc fix.
89586         * doc/posix-functions/connect.texi: Doc fix.
89587         * doc/posix-functions/getpeername.texi: Doc fix.
89588         * doc/posix-functions/getsockname.texi: Doc fix.
89589         * doc/posix-functions/getsockopt.texi: Doc fix.
89590         * doc/posix-functions/ioctl.texi: Doc fix.
89591         * doc/posix-functions/listen.texi: Doc fix.
89592         * doc/posix-functions/recv.texi: Doc fix.
89593         * doc/posix-functions/recvfrom.texi: Doc fix.
89594         * doc/posix-functions/send.texi: Doc fix.
89595         * doc/posix-functions/sendto.texi: Doc fix.
89596         * doc/posix-functions/setsockopt.texi: Doc fix.
89597         * doc/posix-functions/shutdown.texi: Doc fix.
89598         * doc/posix-functions/socket.texi: Doc fix.
89600 2008-10-20  Bruno Haible  <bruno@clisp.org>
89602         Take into account the role of SIGABRT_COMPAT on Windows 2008.
89603         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
89604         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
89605         as an alias for SIGABRT.
89606         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
89607         (sigaction): Map it to SIGABRT.
89608         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89610 2008-10-20  Bruno Haible  <bruno@clisp.org>
89612         * lib/fts.c: Don't include lstat.h.
89613         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89615         Move the lstat() declaration to <sys/stat.h>.
89616         * lib/lstat.h: Remove file.
89617         * lib/sys_stat.in.h: Add special invocation convention.
89618         (lstat): New declaration.
89619         * lib/lstat.c (orig_lstat): New function.
89620         (rpl_lstat): Use orig_lstat instead of lstat.
89621         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
89622         AC_C_INLINE. Set REPLACE_LSTAT.
89623         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
89624         and REPLACE_LSTAT.
89625         * modules/lstat (Files): Remove lib/lstat.h.
89626         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89627         (Include): Specify <sys/stat.h> instead of lstat.h.
89628         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
89629         REPLACE_LSTAT.
89630         * NEWS: Mention the change.
89632 2008-10-20  Bruno Haible  <bruno@clisp.org>
89634         * modules/posix_spawn-tests: New file.
89635         * tests/test-posix_spawn3.c: New file.
89637 2008-10-20  Bruno Haible  <bruno@clisp.org>
89639         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
89640         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89641         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
89642         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89643         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
89645 2008-10-20  Bruno Haible  <bruno@clisp.org>
89647         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
89648         of posix_spawn on AIX 5.3.
89650 2008-10-20  Bruno Haible  <bruno@clisp.org>
89652         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
89654 2008-10-20  Bruno Haible  <bruno@clisp.org>
89656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
89657         of AC_LANG_PROGRAM.
89659 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89661         * lib/netdb.in.h: Don't define GNU specific constants until they
89662         are supported or needed.  Reported by Bruno Haible
89663         <bruno@clisp.org>.
89665 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89667         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
89669 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89671         * lib/getaddrinfo.h: Remove file.
89672         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
89673         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
89674         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
89675         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
89676         * modules/netdb: Substitute GNULIB_GETADDRINFO.
89677         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
89678         * tests/test-getaddrinfo.c: Likewise.
89679         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
89680         * NEWS: Mention change.
89682 2008-10-19  Bruno Haible  <bruno@clisp.org>
89684         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89686 2008-10-19  Bruno Haible  <bruno@clisp.org>
89688         * lib/wait-process.c: Include simply <sys/wait.h>.
89689         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89690         WIFSTOPPED): Remove fallback definitions.
89691         * modules/wait-process (Depends-on): Add sys_wait.
89693         New module 'sys_wait'.
89694         * modules/sys_wait: New file.
89695         * lib/sys_wait.in.h: New file, partially copied from
89696         lib/wait-process.c.
89697         * m4/sys_wait_h.m4: New file.
89698         * doc/posix-headers/sys_wait.texi: Mention the new module.
89700 2008-10-19  Bruno Haible  <bruno@clisp.org>
89702         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89704 2008-10-19  Bruno Haible  <bruno@clisp.org>
89706         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89707         * lib/wait-process.c (WAIT_T): Remove type.
89708         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89709         (wait_subprocess): Update.
89711 2008-10-19  Bruno Haible  <bruno@clisp.org>
89713         New module 'atoll'.
89714         * modules/atoll: New file.
89715         * lib/stdlib.in.h (atoll): New declaration.
89716         * lib/atoll.c: New file, from glibc with modifications.
89717         * m4/atoll.m4: New file.
89718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89719         HAVE_ATOLL.
89720         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89721         * doc/posix-functions/atoll.texi: Mention the new module.
89723 2008-10-19  Bruno Haible  <bruno@clisp.org>
89725         Add strtoull() declaration to <stdlib.h>.
89726         * lib/stdlib.in.h (strtoull): New declaration.
89727         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89728         Set HAVE_STRTOULL.
89729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89730         HAVE_STRTOULL.
89731         * modules/strtoull (Depends-on): Add stdlib.
89732         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89733         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89734         HAVE_STRTOULL.
89736 2008-10-19  Bruno Haible  <bruno@clisp.org>
89738         Add strtoll() declaration to <stdlib.h>.
89739         * lib/stdlib.in.h (strtoll): New declaration.
89740         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89741         Set HAVE_STRTOLL.
89742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89743         HAVE_STRTOLL.
89744         * modules/strtoll (Depends-on): Add stdlib.
89745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89746         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89748 2008-10-19  Bruno Haible  <bruno@clisp.org>
89750         * modules/bcopy (Depends-on): Add strings.
89751         (Include): Specify <strings.h>.
89753 2008-10-19  Bruno Haible  <bruno@clisp.org>
89755         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89757 2008-10-19  Bruno Haible  <bruno@clisp.org>
89759         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89760         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89761         mingw.
89763 2008-10-19  Bruno Haible  <bruno@clisp.org>
89765         * lib/atanl.c: Don't include isnanl.h.
89766         * lib/cosl.c: Likewise.
89767         * lib/ldexpl.c: Likewise.
89768         * lib/logl.c: Likewise.
89769         * lib/sinl.c: Likewise.
89770         * lib/sqrtl.c: Likewise.
89771         * lib/tanl.c: Likewise.
89773         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89774         * lib/isnanf.h: Remove file.
89775         * lib/isnand.h: Remove file.
89776         * lib/isnanl.h: Remove file.
89777         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89778         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89779         macros.
89780         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89781         HAVE_ISNANF, don't define it as a C macro.
89782         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89783         HAVE_ISNAND, don't define it as a C macro.
89784         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89785         HAVE_ISNANL, don't define it as a C macro.
89786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89787         HAVE_ISNAN[FDL].
89788         * modules/isnanf (Files): Remove lib/isnanf.h.
89789         (Depends-on): Add math.
89790         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89791         (Include): Specify <math.h> instead of isnanf.h.
89792         * modules/isnand (Files): Remove lib/isnand.h.
89793         (Depends-on): Add math.
89794         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89795         (Include): Specify <math.h> instead of isnand.h.
89796         * modules/isnanl (Files): Remove lib/isnanl.h.
89797         (Depends-on): Add math.
89798         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89799         (Include): Specify <math.h> instead of isnanl.h.
89800         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89801         HAVE_ISNAN[FDL].
89802         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89803         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89804         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89805         * NEWS: Mention the change.
89807 2008-10-18  Bruno Haible  <bruno@clisp.org>
89809         Add getusershell(), setusershell(), endusershell() declarations to
89810         <unistd.h>.
89811         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89812         declarations.
89813         * lib/getusershell.c: Include unistd.h.
89814         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89815         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89816         HAVE_GETUSERSHELL.
89817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89818         and HAVE_GETUSERSHELL.
89819         * modules/getusershell (Depends-on): Add unistd, extensions.
89820         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89821         (Include): Specify <unistd.h>.
89822         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89823         HAVE_GETUSERSHELL.
89825 2008-10-18  Bruno Haible  <bruno@clisp.org>
89827         Add a getloadavg() declaration to <stdlib.h>.
89828         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89829         getloadavg declaration.
89830         (getloadavg): New declaration.
89831         * lib/getloadavg.c: Include <stdlib.h> first.
89832         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89833         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89834         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89836         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89837         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89838         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89839         (Include): Specify <stdlib.h>.
89840         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89841         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89843 2008-10-18  Bruno Haible  <bruno@clisp.org>
89845         * lib/dirchownmod.c: Don't include lchmod.h.
89847         Move the lchmod() declaration to <sys/stat.h>.
89848         * lib/lchmod.h: Remove file.
89849         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89850         (lchmod): New declaration, moved here from lib/lchown.h.
89851         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89852         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89854         and HAVE_LCHMOD.
89855         * modules/lchmod (Files): Remove lib/lchmod.h.
89856         (Depends-on): Add sys_stat, extensions.
89857         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89858         (Include): Specify <sys/stat.h> instead of lchmod.h.
89859         * modules/sys_stat (Depends-on): Add link-warning.
89860         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89861         definition of GL_LINK_WARNING.
89862         * NEWS: Mention the change.
89864 2008-10-18  Bruno Haible  <bruno@clisp.org>
89866         * lib/fchdir.c: Don't include dirfd.h.
89867         * lib/fts.c: Likewise.
89868         * lib/getcwd.c: Likewise.
89869         * lib/glob.c: Likewise.
89871         Move the dirfd() declaration to <dirent.h>.
89872         * lib/dirfd.h: Remove file.
89873         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89874         (dirfd): New declaration.
89875         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89876         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89877         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89878         HAVE_DECL_DIRFD.
89879         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89880         HAVE_DECL_DIRFD.
89881         * modules/dirfd (Files): Remove lib/dirfd.h.
89882         (Depends-on): Add dirent, extensions.
89883         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89884         (Include): Specify <dirent.h> instead of dirfd.h.
89885         * modules/dirent (Depends-on): Add link-warning.
89886         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89887         definition of GL_LINK_WARNING.
89888         * NEWS: Mention the change.
89890 2008-10-18  Bruno Haible  <bruno@clisp.org>
89892         Move the euidaccess() declaration to <unistd.h>.
89893         * lib/euidaccess.h: Remove file.
89894         * lib/unistd.in.h (euidaccess): New declaration.
89895         * lib/euidaccess.c: Don't include euidaccess.h.
89896         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89897         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89899         and HAVE_EUIDACCESS.
89900         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89901         (Depends-on): Add unistd.
89902         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89903         (Include): Specify <unistd.h> instead of euidaccess.h.
89904         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89905         HAVE_EUIDACCESS.
89906         * NEWS: Mention the change.
89908 2008-10-18  Bruno Haible  <bruno@clisp.org>
89910         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89912         Move the getdomainname() declaration to <unistd.h>.
89913         * lib/getdomainname.h: Remove file.
89914         * lib/unistd.in.h (getdomainname): New declaration.
89915         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89916         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89917         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89918         HAVE_GETDOMAINNAME.
89919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89920         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89921         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89922         (Depends-on): Add unistd, extensions.
89923         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89924         (Includes): Specify <unistd.h> instead of getdomainname.h.
89925         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89926         HAVE_GETDOMAINNAME.
89927         * NEWS: Mention the change.
89929 2008-10-18  Bruno Haible  <bruno@clisp.org>
89931         * modules/dirent: New file.
89932         * m4/dirent_h.m4: New file.
89933         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89934         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89935         * modules/fchdir (Files): Remove lib/dirent.in.h.
89936         (Depends-on): Add dirent.
89937         (Makefile.am): Move rules to modules/dirent.
89938         * doc/posix-headers/dirent.texi: Mention the new module.
89940 2008-10-18  Bruno Haible  <bruno@clisp.org>
89942         Avoid -Wunused-parameter warnings in public gnulib header files.
89943         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89944         macro.
89945         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89947 2008-10-18  Bruno Haible  <bruno@clisp.org>
89949         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89950         * doc/glibc-functions/error.texi: Mention the module 'error'.
89951         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89952         * doc/glibc-functions/getdomainname.texi: Mention the module
89953         'getdomainname'.
89954         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89955         * doc/glibc-functions/getpagesize.texi: Mention the module
89956         'getpagesize'.
89957         * doc/glibc-functions/getusershell.texi: Mention the module
89958         'getusershell'.
89959         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89960         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89961         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89962         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89963         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89964         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89965         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89966         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89967         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89968         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89969         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89970         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89971         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89972         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89974 2008-10-17  Bruno Haible  <bruno@clisp.org>
89976         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89977         HP-UX and IRIX, use -0.0L.
89978         * tests/test-ceill.c (minus_zero): Likewise.
89979         * tests/test-floorl.c (minus_zero): Likewise.
89980         * tests/test-frexpl.c (minus_zero): Likewise.
89981         * tests/test-isnan.c (minus_zerol): Likewise.
89982         * tests/test-isnanl.h (minus_zero): Likewise.
89983         * tests/test-ldexpl.c (minus_zero): Likewise.
89984         * tests/test-roundl.c (minus_zero): Likewise.
89985         * tests/test-signbit.c (minus_zerol): Likewise.
89986         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89987         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89988         * tests/test-truncl.c (minus_zero): Likewise.
89989         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89990         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89991         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89992         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89994 2008-10-17  Bruno Haible  <bruno@clisp.org>
89996         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89997         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89998         that it gets activated only for gcc >= 3.0.
89999         * lib/dirent.in.h: Likewise.
90000         * lib/errno.in.h: Likewise.
90001         * lib/fcntl.in.h: Likewise.
90002         * lib/float.in.h: Likewise.
90003         * lib/iconv.in.h: Likewise.
90004         * lib/inttypes.in.h: Likewise.
90005         * lib/locale.in.h: Likewise.
90006         * lib/math.in.h: Likewise.
90007         * lib/netdb.in.h: Likewise.
90008         * lib/netinet_in.in.h: Likewise.
90009         * lib/search.in.h: Likewise.
90010         * lib/signal.in.h: Likewise.
90011         * lib/spawn.in.h: Likewise.
90012         * lib/stdarg.in.h: Likewise.
90013         * lib/stdint.in.h: Likewise.
90014         * lib/stdio.in.h: Likewise.
90015         * lib/stdlib.in.h: Likewise.
90016         * lib/string.in.h: Likewise.
90017         * lib/strings.in.h: Likewise.
90018         * lib/sys_file.in.h: Likewise.
90019         * lib/sys_ioctl.in.h: Likewise.
90020         * lib/sys_select.in.h: Likewise.
90021         * lib/sys_socket.in.h: Likewise.
90022         * lib/sys_stat.in.h: Likewise.
90023         * lib/sys_time.in.h: Likewise.
90024         * lib/sysexits.in.h: Likewise.
90025         * lib/time.in.h: Likewise.
90026         * lib/unistd.in.h: Likewise.
90027         * lib/wchar.in.h: Likewise.
90028         * lib/wctype.in.h: Likewise.
90029         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90031 2008-10-17  Jim Meyering  <meyering@redhat.com>
90033         ignore-value: don't depend on inline module
90034         * modules/ignore-value (Depends-on): Remove 'inline'.
90035         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
90036         Suggestion from Bruno Haible.
90038 2008-10-17  Bruno Haible  <bruno@clisp.org>
90040         New implementation of condition variables for Win32.
90041         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
90042         (gl_linked_waitqueue_t): New type.
90043         (gl_cond_t): Use it.
90044         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
90045         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
90046         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
90047         (glthread_cond_init_func, glthread_cond_wait_func,
90048         glthread_cond_timedwait_func, glthread_cond_signal_func,
90049         glthread_cond_broadcast_func, glthread_cond_destroy_func):
90050         Reimplemented on the basis of gl_linked_waitqueue_t.
90051         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
90052         gl_waitqueue_t.
90053         (gl_rwlock_t): Update.
90054         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
90056 2008-10-17  Simon Josefsson  <simon@josefsson.org>
90058         * modules/recvfrom (Depends-on): Add dependency on getpeername.
90059         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90061 2008-10-17  Jim Meyering  <meyering@redhat.com>
90063         ignore-value: new module
90064         * modules/ignore-value: New file.
90065         * lib/ignore-value.h: New file.
90066         * MODULES.html.sh (Compiler warning management): New section,
90067         just for this module.  More to come.
90069 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90071         open-safer.c: avoid 'signed and unsigned in conditional...' warning
90072         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
90073         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
90075 2008-10-16  Jim Meyering  <meyering@redhat.com>
90077         openat-die.c: avoid 'no previous prototype' warning
90078         * lib/openat-die.c: Include "openat.h".
90079         Reported by Reuben Thomas <rrt@sc3d.org>.
90081 2008-10-16  Simon Josefsson  <simon@josefsson.org>
90083         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
90084         * lib/netdb.in.h: Fix typo.
90085         Reported by Bruno Haible  <bruno@clisp.org>
90087         * lib/netdb.in.h: Include sys/socket.h for platforms without
90088         netdb.h, to get structures like hostent on MinGW.
90089         * modules/netdb (Depends-on): Add sys_socket.
90091 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90093         * modules/netdb, modules/netdb-tests: New file.
90094         * m4/netdb_h.m4: New file.
90095         * lib/netdb.in.h: Add, currently just an empty file pending
90096         definitions.
90097         * tests/test-netdb.c: New file.
90098         * doc/posix-headers/netdb.texi: Mention that we replace it if
90099         needed.
90100         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90101         netdb.
90103 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90105         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
90106         with code.
90108 2008-10-13  Bruno Haible  <bruno@clisp.org>
90110         * lib/glthread/cond.c (glthread_cond_wait_func,
90111         glthread_cond_timedwait_func): Add a comment.
90113 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90115         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
90116         * tests/test-select.c: Likewise,
90118 2008-10-13  Bruno Haible  <bruno@clisp.org>
90120         * lib/glthread/cond.c (glthread_cond_wait_func,
90121         glthread_cond_timedwait_func): Fix variable name.
90122         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90124 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
90126         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
90127         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
90128         struct sockaddr.sa_len.
90129         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
90131 2008-10-13  Simon Josefsson  <simon@josefsson.org>
90133         * build-aux/pmccabe2html: Add css and css_url parameters.
90135 2008-10-12  Bruno Haible  <bruno@clisp.org>
90137         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
90138         calling aclx_get.
90139         Reported by Rainer Tammer <tammer@tammer.net>.
90141 2008-10-12  Bruno Haible  <bruno@clisp.org>
90143         Use msvcrt aware primitives for creation/termination of Win32 threads.
90144         * lib/glthread/thread.c: Include <process.h>.
90145         (glthread_create_func): Use _beginthreadex instead of CreateThread.
90146         (wrapper_func): Update signature.
90147         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
90149 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90150             Bruno Haible  <bruno@clisp.org>
90152         Provide a Win32 implementation of the 'cond' module.
90153         * lib/glthread/cond.h [USE_WIN32]: New implementation.
90154         * lib/glthread/cond.c (glthread_cond_init_func,
90155         glthread_cond_wait_func, glthread_cond_timedwait_func,
90156         glthread_cond_signal_func, glthread_cond_broadcast_func,
90157         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90158         * modules/cond (Dependencies): Add gettimeofday.
90160 2008-10-11  Bruno Haible  <bruno@clisp.org>
90162         Make sleep work on older versions of mingw.
90163         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
90164         only whether it exists.
90165         * doc/posix-functions/sleep.texi: Mention the problem with older
90166         versions of mingw.
90168 2008-10-11  Bruno Haible  <bruno@clisp.org>
90170         New module 'shutdown'.
90171         * modules/shutdown: New file.
90172         * lib/sys_socket.in.h (shutdown): New declaration.
90173         * lib/winsock.c (shutdown): New function.
90174         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
90175         GNULIB_SHUTDOWN.
90176         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
90177         * doc/posix-functions/shutdown.texi: Document the new module.
90179 2008-10-11  Jim Meyering  <meyering@redhat.com>
90181         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
90183 2008-10-11  Bruno Haible  <bruno@clisp.org>
90185         New module 'fclose'.
90186         * modules/fclose: New file.
90187         * lib/stdio.in.h (fclose): New declaration.
90188         * lib/fclose.c: New file.
90189         * m4/fclose.m4: New file.
90190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
90191         REPLACE_FCLOSE.
90192         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90193         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90194         REPLACE_FCLOSE.
90195         * modules/close (Depends-on): fclose.
90196         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
90198 2008-10-11  Bruno Haible  <bruno@clisp.org>
90200         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
90201         set errno and don't call _close.
90203 2008-10-10  Bruno Haible  <bruno@clisp.org>
90205         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
90206         ACL, not afterwards. Fixes test failure on Cygwin.
90208 2008-10-09  Ben Pfaff  <blp@gnu.org>
90210         * build-aux/announce-gen: Fix gnulib version related part of usage
90211         message.  Die with a useful error message if no tarballs are
90212         found.
90214 2008-10-10  Jim Meyering  <meyering@redhat.com>
90216         bootstrap: use git's --depth=N option only if it's supported
90217         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
90218         recognize the --depth option.  Reported by Pádraig Brady.
90220 2008-10-09  Bruno Haible  <bruno@clisp.org>
90222         New module 'ioctl'.
90223         * modules/ioctl: New file.
90224         * lib/sys_socket.in.h (ioctl): Remove declaration.
90225         * lib/winsock.c: Include <sys/ioctl.h>.
90226         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
90227         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90228         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
90229         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
90230         * doc/posix-functions/ioctl.texi: Mention the new module.
90232 2008-10-09  Bruno Haible  <bruno@clisp.org>
90234         New module 'sys_ioctl'.
90235         * lib/sys_ioctl.in.h: New file.
90236         * m4/sys_ioctl_h.m4: New file.
90237         * modules/sys_ioctl: New file.
90238         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
90240 2008-10-09  Bruno Haible  <bruno@clisp.org>
90242         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
90243         * lib/winsock.c: Include <stdarg.h>.
90244         (rpl_ioctl): Change to second argument 'int' and then varargs.
90246 2008-10-09  Bruno Haible  <bruno@clisp.org>
90248         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
90249         when the sys_socket module is present and the system has <winsock2.h>.
90251 2008-10-09  Bruno Haible  <bruno@clisp.org>
90253         * doc/posix-functions/close.texi: Mention module 'close' instead of
90254         module 'sys_socket'.
90256 2008-10-09  Bruno Haible  <bruno@clisp.org>
90258         * doc/glibc-headers/sys_ioctl.texi: New file.
90259         * doc/gnulib.texi: Include it.
90261 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90262             Bruno Haible  <bruno@clisp.org>
90264         Combine the two replacements of 'close'.
90265         * lib/sys_socket.in.h (close): Define to a reminder to include
90266         <unistd.h>.
90267         (_gl_close_fd_maybe_socket): New declaration.
90268         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
90269         * lib/winsock.c (close): Remove undefinition.
90270         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
90271         needed for the gnulib module 'close'.
90272         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
90273         define to an error symbol or to a warning, if suitable.
90274         * lib/close.c: Include <sys/socket.h>.
90275         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
90276         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
90277         UNISTD_H_HAVE_WINSOCK2_H.
90278         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
90279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90280         UNISTD_H_HAVE_WINSOCK2_H.
90281         * modules/sys_socket (Files): Add m4/unistd_h.m4.
90282         (configure.ac): Set a module indicator.
90283         (Makefile.am): Substitute GNULIB_CLOSE.
90284         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
90285         * modules/poll-tests (Depends-on): Add close.
90286         * modules/select-tests (Depends-on): Likewise.
90288 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90289             Bruno Haible  <bruno@clisp.org>
90291         New module 'close'.
90292         * modules/close: New file.
90293         * lib/unistd.in.h (close): Move declaration out of the
90294         FCHDIR_REPLACEMENT scope.
90295         (_gl_unregister_fd): New declaration.
90296         * lib/close.c: New file.
90297         * lib/fchdir.c (rpl_close): Remove function.
90298         * m4/close.m4: New file.
90299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90300         close.
90301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
90302         REPLACE_CLOSE.
90303         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
90304         REPLACE_CLOSE.
90305         * modules/fchdir (Depends-on): Add close.
90307 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90308             Bruno Haible  <bruno@clisp.org>
90310         * lib/fcntl.in.h (open): Simplify conditionals.
90311         (_gl_register_fd): New declaration.
90312         * lib/fchdir.c (rpl_open): Remove function.
90313         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
90314         also.
90315         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
90316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90317         open.
90319 2008-10-09  Jim Meyering  <meyering@redhat.com>
90321         GNUmakefile: use the more name-space-friendly "_version"
90322         * top/GNUmakefile (_dummy): Update.
90323         (_version): Rename from "version".
90325 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90326             Bruno Haible  <bruno@clisp.org>
90328         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
90329         rpl_close.
90330         (_gl_register_fd): New function, extracted from rpl_open.
90331         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
90332         (rpl_open, rpl_opendir): Use _gl_register_fd.
90334 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90336         Fix organization of 'open' replacement.
90337         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
90338         (gl_FUNC_OPEN): Use it.
90339         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
90341 2008-10-08  Bruno Haible  <bruno@clisp.org>
90343         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
90345 2008-10-08  Simon Josefsson  <simon@josefsson.org>
90347         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
90348         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
90349         listen).
90351 2008-10-08  Eric Blake  <ebb9@byu.net>
90353         GNUmakefile: add 'make version' target
90354         * top/GNUmakefile (_curr-ver): Split version update rules...
90355         (version): ...into a target.
90357 2008-10-07  Bruno Haible  <bruno@clisp.org>
90359         Use a more portable replacement expression for -0.0L.
90360         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
90361         instead of -0.0L. Fix m4 quotation.
90363         * tests/test-signbit.c: Include <float.h>.
90364         (minus_zero): New variable.
90365         (test_signbitl): Use minus_zero instead of -zero.
90366         * modules/signbit-tests (Depends-on): Add float.
90368         * tests/test-ceill.c: Include <float.h>.
90369         (zero): Remove variable.
90370         (minus_zero): New variable.
90371         (main): Use minus_zero instead of -zero.
90372         * modules/ceill-tests (Depends-on): Add float.
90374         * tests/test-floorl.c: Include <float.h>.
90375         (zero): Remove variable.
90376         (minus_zero): New variable.
90377         (main): Use minus_zero instead of -zero.
90378         * modules/floorl-tests (Depends-on): Add float.
90380         * tests/test-roundl.c: Include <float.h>.
90381         (zero): Remove variable.
90382         (minus_zero): New variable.
90383         (main): Use minus_zero instead of -zero.
90384         * modules/roundl-tests (Depends-on): Add float.
90386         * tests/test-truncl.c: Include <float.h>.
90387         (zero): Remove variable.
90388         (minus_zero): New variable.
90389         (main): Use minus_zero instead of -zero.
90390         * modules/truncl-tests (Depends-on): Add float.
90392         * tests/test-frexpl.c (zero): Remove variable.
90393         (minus_zero): New variable.
90394         (main): Use minus_zero instead of -zero.
90395         * modules/frexpl-tests (Depends-on): Add float.
90397         * tests/test-isnan.c (zerol): Remove variable.
90398         (minus_zerol): New variable.
90399         (test_long_double): Use minus_zerol instead of -zerol.
90400         * modules/isnan-tests (Depends-on): Add float.
90402         * tests/test-isnanl.h (zero): Remove variable.
90403         (minus_zero): New variable.
90404         (main): Use minus_zero instead of -zero.
90405         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90406         * modules/isnanl-tests (Depends-on): Add float.
90408         * tests/test-ldexpl.c (zero): Remove variable.
90409         (minus_zero): New variable.
90410         (main): Use minus_zero instead of -zero.
90411         * modules/ldexpl-tests (Depends-on): Add float.
90413         * tests/test-snprintf-posix.h (zerol): Remove variable.
90414         (minus_zerol): New variable.
90415         (test_function): Use minus_zerol instead of -zerol.
90416         * modules/snprintf-posix-tests (Depends-on): Add float.
90417         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90419         * tests/test-sprintf-posix.h (zerol): Remove variable.
90420         (minus_zerol): New variable.
90421         (test_function): Use minus_zerol instead of -zerol.
90422         * modules/sprintf-posix-tests (Depends-on): Add float.
90423         * modules/vsprintf-posix-tests (Depends-on): Add float.
90425         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90426         (minus_zerol): New variable.
90427         (test_function): Use minus_zerol instead of -zerol.
90428         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90430         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90431         (minus_zerol): New variable.
90432         (test_function): Use minus_zerol instead of -zerol.
90433         * modules/vasprintf-posix-tests (Depends-on): Add float.
90435 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90437         * MODULES.html.sh (Support for building documentation): Mention
90438         pmccabe2html.  Sort entries.
90440         Add pmccabe2html module, from gnupdf.
90441         * build-aux/pmccabe.css: New file.
90442         * build-aux/pmccabe2html: New file.
90443         * m4/pmccabe2html.m4: New file.
90444         * modules/pmccabe2html: New file.
90446 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90448         flock: new module
90449         * MODULES.html.sh: Add to list of modules.
90450         * lib/flock.c: flock implementation for Windows and Unix systems
90451         which have fcntl.
90452         * doc/glibc-functions/flock.texi: Update documentation.
90453         * lib/sys_file.in.h: <sys/file.h> header file.
90454         * m4/flock.m4: M4 macros.
90455         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90456         * modules/flock: flock module.
90457         * modules/flock-tests: flock tests module.
90458         * modules/sys_file: sys/file.h module.
90459         * tests/test-flock.c: test suite for flock.
90461 2008-10-06  Jim Meyering  <meyering@redhat.com>
90463         bootstrap: check for LT_INIT more portably still ;-)
90464         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90465         Spotted by Bruno Haible.
90467 2008-10-06  Eric Blake  <ebb9@byu.net>
90469         test-signbit: avoid tripping Irix cc bug on -0.0L
90470         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90471         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90472         entire testsuite consistent and avoids an Irix 6.2 bug.
90474 2008-10-05  Bruno Haible  <bruno@clisp.org>
90475             Jim Meyering  <jim@meyering.net>
90477         Add an option for ignoring EPIPE during close_stdout.
90478         * lib/closeout.h: Include <stdbool.h>.
90479         (close_stdout_set_ignore_EPIPE): New declaration.
90480         * lib/closeout.c: Include <stdbool.h>.
90481         (ignore_EPIPE): New variable.
90482         (close_stdout_set_ignore_EPIPE): New function.
90483         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
90484         * lib/close-stream.c (close_stream): Mention the possible EPIPE
90485         failure.
90486         * modules/closeout (Depends-on): Add stdbool.
90488 2008-10-05  Bruno Haible  <bruno@clisp.org>
90490         * modules/accept: New file.
90491         * modules/bind: New file.
90492         * modules/connect: New file.
90493         * modules/getpeername: New file.
90494         * modules/getsockname: New file.
90495         * modules/getsockopt: New file.
90496         * modules/listen: New file.
90497         * modules/recv: New file.
90498         * modules/recvfrom: New file.
90499         * modules/send: New file.
90500         * modules/sendto: New file.
90501         * modules/setsockopt: New file.
90502         * modules/socket: New file.
90503         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
90504         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
90505         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
90506         the particular module is requested. Add a link warning when the
90507         particular module is not requested.
90508         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
90509         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
90510         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
90511         the particular module is requested.
90512         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
90513         gl_SYS_SOCKET_H_DEFAULTS): New macros.
90514         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
90515         * modules/sys_socket (Depends-on): Add link-warning.
90516         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
90517         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
90518         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
90519         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
90520         GL_LINK_WARNING.
90521         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
90522         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
90523         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
90524         * doc/posix-functions/getpeername.texi: Mention the new module
90525         'getpeername'.
90526         * doc/posix-functions/getsockname.texi: Mention the new module
90527         'getsockname'.
90528         * doc/posix-functions/getsockopt.texi: Mention the new module
90529         'getsockopt'.
90530         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
90531         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
90532         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
90533         * doc/posix-functions/send.texi: Mention the new module 'send'.
90534         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
90535         * doc/posix-functions/setsockopt.texi: Mention the new module
90536         'setsockopt'.
90537         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
90538         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
90539         listen, connect, accept.
90540         * modules/select-tests (Depends-on): Likewise.
90542 2008-10-05  Bruno Haible  <bruno@clisp.org>
90544         * lib/winsock.c (strerror): Remove unused #undef.
90545         (rpl_close): Remove unused local variable.
90547         * modules/sys_socket (Depends-on); Add errno.
90549 2008-10-05  Bruno Haible  <bruno@clisp.org>
90551         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
90552         (select): Add a link warning when the 'select' module is not used.
90553         * modules/sys_select (Depends-on): Add link-warning.
90554         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
90555         Suggested by Paolo Bonzini.
90557 2008-10-05  Jim Meyering  <meyering@redhat.com>
90559         bootstrap: check for LT_INIT more portably
90560         * build-aux/bootstrap: Avoid using grep -E, since it's not
90561         portable enough.  Suggestion from Bruno Haible.
90563 2008-10-05  Bruno Haible  <bruno@clisp.org>
90565         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
90566         as being fixed by gnulib.
90568 2008-10-05  Bruno Haible  <bruno@clisp.org>
90570         * modules/select-tests: New file, mostly copied from
90571         modules/sys_select-tests.
90572         * tests/test-select.c: New file, mostly copied from
90573         tests/test-sys_select.c.
90574         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
90575         * modules/sys_select-tests (Depends-on): Remove all dependencies.
90576         (Makefile.am): Remove test_sys_select_LDADD.
90578         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
90579         to an undefined symbol, for an error message.
90580         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
90581         (gl_SYS_SELECT_H_DEFAULTS): New macro.
90582         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
90583         winsock-select.c here.
90584         * modules/sys_select (Files): Remove lib/winsock-select.c.
90585         (Depends-on): Remove alloca.
90586         (Makefile.am): Substitute GNULIB_SELECT.
90587         * modules/select: New file.
90588         * doc/posix-functions/select.texi: Update.
90590 2008-10-05  Bruno Haible  <bruno@clisp.org>
90592         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
90593         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
90594         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
90595         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
90596         getdtablesize.
90597         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
90598         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
90600 2008-10-05  Bruno Haible  <bruno@clisp.org>
90602         * modules/getdtablesize-tests: New file.
90603         * tests/test-getdtablesize.c: New file.
90605         New module 'getdtablesize'.
90606         * lib/unistd.in.h (getdtablesize): New declaration.
90607         * lib/getdtablesize.c: New file.
90608         * m4/getdtablesize.m4: New file.
90609         * modules/getdtablesize: New file.
90610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90611         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90612         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90613         HAVE_GETDTABLESIZE.
90614         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90616 2008-10-05  Bruno Haible  <bruno@clisp.org>
90618         * modules/sched (Makefile.am): Fix typo.
90619         Reported by Simon Josefsson.
90621 2008-10-05  Jim Meyering  <meyering@redhat.com>
90623         bootstrap: check for LT_INIT, too
90624         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
90625         are deprecated.  Suggestion from Ralf Wildenhues.
90627 2008-10-05  Bruno Haible  <bruno@clisp.org>
90629         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
90630         overriding them by ours.
90631         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
90633 2008-10-05  Jim Meyering  <meyering@redhat.com>
90635         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
90636         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
90637         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
90639 2008-10-04  Bruno Haible  <bruno@clisp.org>
90641         * modules/dup2 (License): Change to LGPLv2+.
90642         * modules/sleep (License): Likewise.
90643         * modules/perror (License): Likewise.
90644         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
90645         Blake.
90646         * modules/signal (License): Likewise.
90647         * modules/sigprocmask (License): Likewise.
90648         * modules/raise (License): Change to LGPLv2+, with approval by Jim
90649         Meyering.
90651 2008-10-04  Bruno Haible  <bruno@clisp.org>
90653         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
90654         Reported by Rainer Tammer <tammer@tammer.net>.
90656 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
90657             Bruno Haible  <bruno@clisp.org>
90659         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
90660         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
90661         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
90663 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
90665         filevercmp: new module
90666         * lib/filevercmp.h: New function filevercmp comparing version strings.
90667         * lib/filevercmp.c: Implementation of filevercmp function.
90668         * modules/filevercmp: Module metadata.
90669         * tests/test-filevercmp.c: Unit test for new module.
90670         * modules/filevercmp-tests: Unit test metadata.
90671         * MODULES.html.sh: Add filevercmp module.
90673 2008-10-03  Bruno Haible  <bruno@clisp.org>
90675         * lib/c-ctype.h: Add comment.
90676         Reported by Jim Meyering.
90678 2008-10-02  Bruno Haible  <bruno@clisp.org>
90680         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90682 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90684         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90685         name of bootstrap.conf accordingly.
90687 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90689         * build-aux/bootstrap: Install git-merge-changelog configuration
90690         items into .gitconfig if needed.
90692 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90694         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90695         git repository, and initialize/update it accordingly.
90697 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90699         * modules/fsync-tests: New file.
90700         * tests/test-fsync.c: New file.
90702         New module 'fsync'.
90703         * lib/fsync.c: New file.
90704         * m4/fsync.m4: New file.
90705         * modules/fsync: New file.
90706         * lib/unistd.in.h (fsync): New declaration.
90707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90708         GNULIB_FSYNC and HAVE_FSYNC.
90709         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90710         * MODULES.html.sh (posix_functions): Add fsync.
90711         * doc/posix-functions/fsync.texi: Mention the new module.
90713 2008-10-02  Jim Meyering  <meyering@redhat.com>
90715         fts.c: sync with similar code from coreutils' remove.c
90716         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90717         Guard also with "#if defined __linux__", since for now at least,
90718         this code is Linux-kernel-specific.
90720 2008-10-02  Jim Meyering  <meyering@redhat.com>
90722         fts: bug fixes
90723         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90724         Include <sys/vfs.h>, not <sys/statfs.h>.
90726         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90727         Include <sys/vfs.h>, not <sys/statfs.h>.
90729 2008-10-01  Bruno Haible  <bruno@clisp.org>
90731         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90732         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90733         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90734         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90735         * doc/posix-functions/posix_spawnp.texi: Likewise.
90736         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90737         whether posix_spawn actually works.
90738         * m4/pipe.m4 (gl_PIPE): Likewise.
90739         * modules/execute (Files): Add m4/posix_spawn.m4.
90740         * modules/pipe (Files): Add m4/posix_spawn.m4.
90741         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90743 2008-10-01  Jim Meyering  <meyering@redhat.com>
90745         remove trailing spaces
90746         * NEWS: Likewise.
90747         * lib/poll.c (poll): Likewise.
90748         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90749         * lib/winsock.c (rpl_close): Likewise.
90750         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90751         * modules/yield: Likewise.
90752         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90753         * tests/test-sys_select.c (connect_to_socket): Likewise.
90755         fts.c: adjust a new interface to be more generally useful
90756         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90757         (fts_build): Adjust caller.
90759 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90761         * modules/cond-tests: New file.
90762         * tests/test-cond.c: New file.
90764 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90765             Bruno Haible  <bruno@clisp.org>
90767         * modules/cond (Dependencies): Add errno, time.
90768         * lib/glthread/cond.h: Include <time.h>.
90769         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90770         across platforms.
90772 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90773             Bruno Haible  <bruno@clisp.org>
90775         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90777 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90778             Bruno Haible  <bruno@clisp.org>
90780         * modules/tls-tests (Depends-on): Add thread, yield.
90781         (configure.ac): Remove all checks.
90782         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90783         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90784         gl_thread_self): Remove definitions. Include glthread/thread.h and
90785         glthread/yield.h instead.
90786         (test_tls): Pass an additional NULL argument to gl_thread_join.
90788 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90789             Bruno Haible  <bruno@clisp.org>
90791         * modules/lock-tests (Depends-on): Add thread, yield.
90792         (configure.ac): Remove all checks.
90793         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90794         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90795         gl_thread_self): Remove definitions. Include glthread/thread.h and
90796         glthread/yield.h instead.
90797         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90798         additional NULL argument to gl_thread_join.
90800 2008-09-30  Bruno Haible  <bruno@clisp.org>
90802         Fix the Win32 implementation of the 'thread' module.
90803         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90804         pointer type.
90805         (gl_thread_self): Invoke gl_thread_self_func.
90806         (gl_thread_self_func): New declaration.
90807         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90808         (do_init_self_key, init_self_key): New functions.
90809         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90810         Remove some fields.
90811         (running_threads, running_lock): Remove variables.
90812         (get_current_thread_handle): New function.
90813         (gl_thread_self_func, wrapper_func, glthread_create_func,
90814         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90815         simplified.
90817 2008-09-30  Bruno Haible  <bruno@clisp.org>
90819         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90820         files.
90822 2008-09-30  Jim Meyering  <meyering@redhat.com>
90824         fts.m4: correct the test for statfs.f_type
90825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90826         when checking for statfs.f_type.
90828 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90830         tests: avoid some compiler warnings
90831         * tests/test-memchr.c (main): Pass NULL indirectly.
90832         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90834 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90836         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90837         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90838         exactly specified dayshifts.
90839         (dayshift): New rule.
90840         (rel): Add dayshift.
90841         (relative_time_table) [tomorrow, yesterday, today, now]:
90842         Use tDAY_SHIFT in place of tDAY_UNIT.
90843         * tests/test-getdate.c: Add tests for now-disallowed countable
90844         dayshifts, e.g., "4 yesterday ago".
90846 2008-09-29  Bruno Haible  <bruno@clisp.org>
90848         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90849         * tests/test-posix_spawn1.in.sh: Renamed from
90850         tests/test-posix_spawn.in.sh.
90851         * tests/test-posix_spawn2.c: New file.
90852         * tests/test-posix_spawn2.in.sh: New file.
90853         * modules/posix_spawnp-tests (Files): Update.
90854         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90856 2008-09-29  Bruno Haible  <bruno@clisp.org>
90858         Propagate effects of putenv/setenv/unsetenv to child processes.
90859         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90860         * lib/pipe.c (create_pipe): Likewise.
90862 2008-09-29  Bruno Haible  <bruno@clisp.org>
90864         Enable use of shell scripts as executables in mingw.
90865         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90866         run the program as a shell script.
90867         * lib/pipe.c (create_pipe): Likewise.
90868         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90869         resulting array.
90871 2008-09-29  Eric Blake  <ebb9@byu.net>
90873         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90875 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90877         * doc/posix-functions/accept.texi: Update mingw problems.
90878         * doc/posix-functions/bind.texi: Update mingw problems.
90879         * doc/posix-functions/close.texi: Update mingw problems.
90880         * doc/posix-functions/connect.texi: Update mingw problems.
90881         * doc/posix-functions/getpeername.texi: Update mingw problems.
90882         * doc/posix-functions/getsockname.texi: Update mingw problems.
90883         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90884         * doc/posix-functions/ioctl.texi: Update mingw problems.
90885         * doc/posix-functions/listen.texi: Update mingw problems.
90886         * doc/posix-functions/recv.texi: Update mingw problems.
90887         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90888         * doc/posix-functions/select.texi: Update mingw problems.
90889         * doc/posix-functions/send.texi: Update mingw problems.
90890         * doc/posix-functions/sendto.texi: Update mingw problems.
90891         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90892         * doc/posix-functions/socket.texi: Update mingw problems.
90894 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90895             Bruno Haible  <bruno@clisp.org>
90897         * lib/sys_select.in.h: Include sys/time.h.
90898         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90899         * modules/sys_select: Depend on sys_time.
90900         * tests/test-sys_select.c: Test that sys/select.h defines struct
90901         timeval fully.
90903 2008-09-29  Bruno Haible  <bruno@clisp.org>
90905         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90906         * lib/sys_select.in.h: Likewise.
90908 2008-09-29  Bruno Haible  <bruno@clisp.org>
90910         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90912 2008-09-29  Bruno Haible  <bruno@clisp.org>
90914         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90915         Set LIBSOCKET instead of augmenting LIBS.
90916         * modules/sockets (Link): New section.
90917         * modules/sockets-tests (test_sockets_LDADD): New variable.
90918         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90919         * modules/poll-tests (test_poll_LDADD): New variable.
90920         * NEWS: Document the change.
90922 2008-09-29  Bruno Haible  <bruno@clisp.org>
90924         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90925         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90926         ARPA_INET_H directly.
90927         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90929 2008-09-28  Bruno Haible  <bruno@clisp.org>
90931         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90932         from gl_HEADER_SYS_SOCKET.
90933         (gl_HEADER_SYS_SOCKET): Invoke it.
90934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90936 2008-09-28  Bruno Haible  <bruno@clisp.org>
90938         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90939         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90940         Needed on OSF/1 4.0.
90942 2008-09-28  Bruno Haible  <bruno@clisp.org>
90944         Override open more carefully.
90945         * lib/open.c (orig_open): New function.
90946         (rpl_open): Use orig_open instead of open.
90947         * lib/fcntl.in.h: Add special invocation convention.
90948         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90949         (gl_FUNC_OPEN): Invoke it.
90951         Override freopen more carefully.
90952         * lib/freopen.c (orig_freopen): New function.
90953         (rpl_freopen): Use orig_freopen instead of freopen.
90954         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90955         (gl_FUNC_FREOPEN): Invoke it.
90957         Override fopen more carefully.
90958         * lib/fopen.c (orig_fopen): New function.
90959         (rpl_fopen): Use orig_fopen instead of fopen.
90960         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90961         (gl_FUNC_FOPEN): Invoke it.
90962         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90964 2008-09-28  Bruno Haible  <bruno@clisp.org>
90966         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90967         SIGPIPE.
90969 2008-09-28  Bruno Haible  <bruno@clisp.org>
90971         * tests/test-sigaction.c (handler, main): Disable the check whether
90972         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90973         glibc systems with LinuxThreads.
90975 2008-09-28  Bruno Haible  <bruno@clisp.org>
90977         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90979         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90980         with AIX xlc.
90981         * lib/fcntl.in.h (open): Likewise.
90982         Reported by Rainer Tammer <tammer@tammer.net>.
90984 2008-09-28  Bruno Haible  <bruno@clisp.org>
90986         * modules/posix_spawnp-tests: New file.
90987         * tests/test-posix_spawn.c: New file.
90988         * tests/test-posix_spawn.in.sh: New file.
90990         New module 'posix_spawnp'.
90991         * modules/posix_spawnp: New file.
90992         * lib/spawnp.c: New file, from GNU libc with modifications.
90993         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90995         New module 'posix_spawn'.
90996         * modules/posix_spawn: New file.
90997         * lib/spawn.c: New file, from GNU libc with modifications.
90998         * doc/posix-functions/posix_spawn.texi: Mention the new module.
91000         New module 'posix_spawnattr_destroy'.
91001         * modules/posix_spawnattr_destroy: New file.
91002         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
91003         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
91004         module.
91006         New module 'posix_spawnattr_setsigmask'.
91007         * modules/posix_spawnattr_setsigmask: New file.
91008         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
91009         modifications.
91010         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
91011         new module.
91013         New module 'posix_spawnattr_getsigmask'.
91014         * modules/posix_spawnattr_getsigmask: New file.
91015         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
91016         modifications.
91017         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
91018         new module.
91020         New module 'posix_spawnattr_setsigdefault'.
91021         * modules/posix_spawnattr_setsigdefault: New file.
91022         * lib/spawnattr_setdefault.c: New file, from GNU libc with
91023         modifications.
91024         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
91025         new module.
91027         New module 'posix_spawnattr_getsigdefault'.
91028         * modules/posix_spawnattr_getsigdefault: New file.
91029         * lib/spawnattr_getdefault.c: New file, from GNU libc with
91030         modifications.
91031         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
91032         new module.
91034         New module 'posix_spawnattr_setschedpolicy'.
91035         * modules/posix_spawnattr_setschedpolicy: New file.
91036         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
91037         modifications.
91038         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
91039         new module.
91041         New module 'posix_spawnattr_getschedpolicy'.
91042         * modules/posix_spawnattr_getschedpolicy: New file.
91043         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
91044         modifications.
91045         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
91046         new module.
91048         New module 'posix_spawnattr_setschedparam'.
91049         * modules/posix_spawnattr_setschedparam: New file.
91050         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
91051         modifications.
91052         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
91053         new module.
91055         New module 'posix_spawnattr_getschedparam'.
91056         * modules/posix_spawnattr_getschedparam: New file.
91057         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
91058         modifications.
91059         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
91060         new module.
91062         New module 'posix_spawnattr_setpgroup'.
91063         * modules/posix_spawnattr_setpgroup: New file.
91064         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
91065         modifications.
91066         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
91067         module.
91069         New module 'posix_spawnattr_getpgroup'.
91070         * modules/posix_spawnattr_getpgroup: New file.
91071         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
91072         modifications.
91073         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
91074         module.
91076         New module 'posix_spawnattr_setflags'.
91077         * modules/posix_spawnattr_setflags: New file.
91078         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
91079         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
91080         module.
91082         New module 'posix_spawnattr_getflags'.
91083         * modules/posix_spawnattr_getflags: New file.
91084         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
91085         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
91086         module.
91088         New module 'posix_spawnattr_init'.
91089         * modules/posix_spawnattr_init: New file.
91090         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
91091         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
91092         module.
91094         New module 'posix_spawn_file_actions_destroy'.
91095         * modules/posix_spawn_file_actions_destroy: New file.
91096         * lib/spawn_faction_destroy.c: New file, from GNU libc with
91097         modifications.
91098         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
91099         the new module.
91101         New module 'posix_spawn_file_actions_addopen'.
91102         * modules/posix_spawn_file_actions_addopen: New file.
91103         * lib/spawn_faction_addopen.c: New file, from GNU libc with
91104         modifications.
91105         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
91106         the new module.
91108         New module 'posix_spawn_file_actions_adddup2'.
91109         * modules/posix_spawn_file_actions_adddup2: New file.
91110         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
91111         modifications.
91112         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
91113         the new module.
91115         New module 'posix_spawn_file_actions_addclose'.
91116         * modules/posix_spawn_file_actions_addclose: New file.
91117         * lib/spawn_faction_addclose.c: New file, from GNU libc with
91118         modifications.
91119         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
91120         the new module.
91122         New module 'posix_spawn_file_actions_init'.
91123         * modules/posix_spawn_file_actions_init: New file.
91124         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
91125         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
91126         new module.
91128         New module 'posix_spawn-internal'.
91129         * modules/posix_spawn-internal: New file.
91130         * lib/spawn_int.h: New file, from GNU libc with modifications.
91131         * lib/spawni.c: New file, from GNU libc with modifications.
91132         * m4/posix_spawn.m4: New file.
91134         New module 'spawn'.
91135         * modules/spawn: New file.
91136         * lib/spawn.in.h: New file, from GNU libc with modifications.
91137         * m4/spawn_h.m4: New file.
91138         * doc/posix-headers/spawn.texi: Mention the new module.
91140 2008-09-28  Bruno Haible  <bruno@clisp.org>
91142         * modules/sched-tests: New file.
91143         * tests/test-sched.c: New file.
91145         New module 'sched'.
91146         * modules/sched: New file.
91147         * lib/sched.in.h: New file.
91148         * m4/sched_h.m4: New file.
91149         * doc/posix-headers/sched.texi: Mention the new module.
91151 2008-09-27  Eric Blake  <ebb9@byu.net>
91153         Fix previous patch, and tweak references to $0.
91154         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
91155         (func_version, func_gnulib_dir): Don't call this program
91156         gnulib-tool.
91157         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
91158         with using $0 in function.
91159         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
91160         (func_fatal_error): Reuse the name the user invoked us with.
91162 2008-09-27  Bruno Haible  <bruno@clisp.org>
91164         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
91165         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
91166         (gl_ICONV_H): Not here.
91167         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
91168         instead of assigning ICONV_H directly.
91170         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
91171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
91172         WCHAR_H directly.
91174 2008-09-27  Bruno Haible  <bruno@clisp.org>
91176         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
91177         * modules/arpa_inet (Depends-on): Add link-warning.
91178         (Makefile.am): Insert the definition of GL_LINK-WARNING.
91179         * modules/unistd (Makefile.am): Likewise.
91181 2008-09-26  Bruno Haible  <bruno@clisp.org>
91183         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
91184         variables.
91185         (func_version): Essentially copied from gnulib-tool.
91186         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
91187         func_readlink): Copied from gnulib-tool.
91189 2008-09-26  Bruno Haible  <bruno@clisp.org>
91191         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91192         invoking git-version-gen.
91194 2008-09-26  Bruno Haible  <bruno@clisp.org>
91196         * posix-modules: Update to directory names changed on 2008-01-19.
91197         Remove commas in output before splitting into words. No more need to
91198         avoid 'ftruncate' since 2007-02-19.
91200 2008-09-26  Bruno Haible  <bruno@clisp.org>
91202         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
91204 2008-09-26  Bruno Haible  <bruno@clisp.org>
91206         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
91207         * modules/fwriteerror (Depends-on): Add errno.
91209 2008-09-26  Bruno Haible  <bruno@clisp.org>
91211         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
91212         * tests/test-vc-list-files-cvs.sh: Likewise.
91214 2008-09-26  Bruno Haible  <bruno@clisp.org>
91216         * doc/posix-headers/sys_resource.texi: Reorder items.
91218 2008-09-26  Jim Meyering  <meyering@redhat.com>
91220         fts: tweak inode comparison function
91221         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
91222         inode numbers, as documented.
91224         fts: sort dirent entries on inode number before traversing
91225         This avoids a quadratic, seek-related performance penalty when
91226         operating on a directory containing many entries (measurable at 10k;
91227         3.5 hours at 2 million entries with a cold cache) on certain types
91228         of file systems, including ext3 and ext4, but not tmpfs.
91229         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
91230         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
91231         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
91232         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91233         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
91234         (fts_build): Set the stat.st_ino member from D_INO.
91235         If it is likely to be useful, sort dirent entries on inode number.
91237         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
91238         and the struct statfs.f_type member.
91239         * modules/fts (Depends-on): Add d-ino.
91241 2008-09-26  Bruno Haible  <bruno@clisp.org>
91243         * modules/sigpipe-die (Depends-on): Add sigpipe.
91245         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
91246         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
91247         and GNULIB_STDIO_H_SIGPIPE are set.
91248         * lib/stdio-write.c: New file.
91249         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
91250         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91251         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91252         REPLACE_STDIO_WRITE_FUNCS.
91253         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
91254         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91255         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91256         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91257         * modules/stdio (Files): Add lib/stdio-write.c.
91258         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
91259         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91260         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91261         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91262         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
91263         REPLACE_FPRINTF_POSIX.
91264         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
91265         REPLACE_PRINTF_POSIX.
91266         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
91267         REPLACE_VFPRINTF_POSIX.
91268         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
91269         REPLACE_VPRINTF_POSIX.
91270         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
91271         SIGPIPE issue.
91272         * doc/posix-functions/fputc.texi: Likewise.
91273         * doc/posix-functions/fputs.texi: Likewise.
91274         * doc/posix-functions/fwrite.texi: Likewise.
91275         * doc/posix-functions/printf.texi: Likewise.
91276         * doc/posix-functions/putc.texi: Likewise.
91277         * doc/posix-functions/putchar.texi: Likewise.
91278         * doc/posix-functions/puts.texi: Likewise.
91279         * doc/posix-functions/vfprintf.texi: Likewise.
91280         * doc/posix-functions/vprintf.texi: Likewise.
91282         * modules/safe-write (Depends-on): Add write.
91284         * modules/sigpipe-tests: New file.
91285         * tests/test-sigpipe.c: New file.
91286         * tests/test-sigpipe.sh: New file.
91288         * modules/write: New file.
91289         * lib/unistd.in.h: Include <sys/types.h>.
91290         (write): New declaration.
91291         * lib/write.c: New file.
91292         * m4/write.m4: New file.
91293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91294         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
91295         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
91296         GNULIB_WRITE, REPLACE_WRITE.
91297         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
91298         and the SIGPIPE issue.
91300         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
91301         (raise): New declaration.
91302         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
91303         (ext_signal): New function.
91304         (rpl_raise): New function.
91305         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
91306         GNULIB_SIGNAL_H_SIGPIPE.
91307         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
91308         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
91310         * modules/sigpipe: New file.
91311         * m4/sigpipe.m4: New file.
91313 2008-09-25  Derek Price  <derek@ximbiot.com>
91314             Bruno Haible  <bruno@clisp.org>
91316         * gnulib-tool (func_import): Report all license incompatibilities, not
91317         just the first one.
91319 2008-09-25  Bruno Haible  <bruno@clisp.org>
91321         * gnulib-tool (func_import): When computing the edits, consider not
91322         only the Makefile.ams that exist but also those that will be generated.
91324 2008-09-25  Simon Josefsson  <simon@josefsson.org>
91326         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
91327         fixes gnulib-tool --test warning about duplicate dependency.
91329 2008-09-25  Bruno Haible  <bruno@clisp.org>
91331         * gnulib-tool: Don't ask the user to perform edits in the generated
91332         Makefile.ams.
91333         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
91334         apply to the Makefile.am being generated.
91335         (func_emit_tests_Makefile_am): Execute edits that apply to the
91336         Makefile.am being generated.
91337         (func_import): Setup list of Makefile.am edits before emitting the
91338         Makefile.ams, not at the end.
91339         (func_create_testdir): Update.
91340         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91342 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91344         * gnulib-tool (func_import): Store the --tests-base option in the
91345         comment in gnulib-cache.m4.
91347 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
91349         * NEWS: Document increased portability that sys_select now provides.
91351         * lib/sys_select.in.h: Install select wrapper.
91352         * lib/sys_socket.in.h: Use more descriptive name when there is no
91353         select wrapper.
91354         * lib/winsock-select.c: New.
91355         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
91356         Require gl_HEADER_SYS_SOCKET.
91357         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
91358         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
91359         * tests/test-sys_select.c: Add functional tests.
91361 2008-09-24  Eric Blake  <ebb9@byu.net>
91363         open, fopen: close fd leak in last patch
91364         * lib/open.c (rpl_open): Close fd before returning error.
91365         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91366         * doc/posix-functions/open.texi (open): Document that Irix also
91367         has the bug.
91368         * doc/posix-functions/fopen.texi (fopen): Likewise.
91369         Reported by Paolo Bonzini.
91371 2008-09-24  Bruno Haible  <bruno@clisp.org>
91373         Ensure that a filename ending in a slash cannot be used to access a
91374         non-directory.
91375         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91376         to check whether it's really a directory.
91377         * lib/fopen.c: Include fcntl.h, unistd.h.
91378         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91379         and fdopen().
91380         * modules/fopen (Depends-on): Add unistd.
91381         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91382         * tests/test-fopen.c (main): Likewise.
91383         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91384         * doc/posix-functions/fopen.texi: Likewise.
91385         Reported by Eric Blake.
91387 2008-09-23  Eric Blake  <ebb9@byu.net>
91389         c-stack: avoid compiler optimizations when provoking overflow
91390         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91391         recursion harder to optimize, to ensure a stack overflow occurs.
91392         * tests/test-c-stack.c (recurse): Likewise.
91393         Borrowed from libsigsegv.
91395         c-stack: work around Irix sigaltstack bug
91396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91397         whether sigaltstack uses wrong end of stack_t (copied in part from
91398         libsigsegv).
91399         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91400         Irix bug, without requiring an over-allocation.
91401         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91402         bug.
91404         fopen: document mingw bug on directories
91405         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91406         not allowing a stream visiting a directory, even though reading
91407         from such a stream is not portable.
91409 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91411         * lib/poll.c: Rewrite.
91412         * modules/poll: Depend on alloca.
91414 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91416         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91417         instead define prototypes for a full set of wrappers.  Ensure
91418         that Cygwin does not use the compatibility code, which is only
91419         for MinGW.
91420         * lib/winsock.c: New.
91421         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91422         * modules/sys_socket: Add lib/winsock.c.
91424         * modules/poll-tests: Add errno and perror.
91425         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91427 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91429         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91431 2008-09-23  Bruno Haible  <bruno@clisp.org>
91433         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91434         * doc/glibc-functions/*: Likewise.
91436 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91438         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91439         success.
91441 2008-09-22  Eric Blake  <ebb9@byu.net>
91442             Bruno Haible  <bruno@clisp.org>
91444         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91445         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91446         supply %A but mishandle pseudo-NaN.
91447         Reported by Simon Josefsson.
91449 2008-09-21  Bruno Haible  <bruno@clisp.org>
91451         * tests/test-lock.c (main): Tweak skip message.
91452         * tests/test-tls.c (main): Likewise.
91454 2008-09-21  Bruno Haible  <bruno@clisp.org>
91456         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91457         whether 'struct sigaction' has sa_sigaction here...
91458         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91459         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91461 2008-09-21  Bruno Haible  <bruno@clisp.org>
91463         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91464         section.
91465         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91466         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91467         the new section.
91468         (Support for obsolete systems lacking POSIX:2001): New section.
91469         (String handling <string.h>): Move strdup to the new section.
91470         Suggested by Simon Josefsson and Paolo Bonzini.
91472 2008-09-21  Bruno Haible  <bruno@clisp.org>
91474         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
91475         exponents in %e and %g results on 'long double'. Needed for mingw's
91476         improved *printf functions.
91477         * tests/test-vasprintf-posix.c (test_function): Likewise.
91478         * tests/test-snprintf-posix.h (test_function): Likewise.
91479         * tests/test-sprintf-posix.h (test_function): Likewise.
91480         Reported by Eric Blake.
91482 2008-09-21  Bruno Haible  <bruno@clisp.org>
91484         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
91485         * tests/test-sprintf-posix.h (test_function): Likewise.
91487 2008-09-21  Bruno Haible  <bruno@clisp.org>
91489         * modules/getpass (Depends-on): Add strdup-posix.
91491         New module 'strdup-posix'.
91492         * modules/strdup-posix: New file.
91493         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
91494         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
91495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91496         REPLACE_STRDUP.
91497         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
91498         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
91499         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91500         strdup-posix.
91502         * modules/strdup (Depends-on): Remove malloc-posix.
91504 2008-09-20  Bruno Haible  <bruno@clisp.org>
91506         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
91507         Wildenhues.
91509 2008-09-20  Bruno Haible  <bruno@clisp.org>
91511         Ensure that wint_t gets defined on IRIX 5.3.
91512         * lib/wchar.in.h (wint_t): Define if not defined by the system.
91513         * lib/wctype.in.h (wint_t): Likewise.
91514         (__wctype_wint_t): Remove type.
91515         (isw*): Use wint_t instead of __wctype_wint_t.
91516         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
91517         * modules/wchar (Files): Add m4/wint_t.m4.
91518         (Makefile.am): Substitute HAVE_WINT_T.
91519         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
91520         * tests/test-wctype.c: Check that wint_t is defined.
91521         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
91522         * doc/posix-headers/wctype.texi: Likewise.
91523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
91525 2008-09-18  Bruno Haible  <bruno@clisp.org>
91527         * gnulib-tool (func_exit): Update comment.
91529 2008-09-18  Simon Josefsson  <simon@josefsson.org>
91531         * modules/getaddrinfo (Depends-on): Remove strdup, this module
91532         assumes strdup exists and does not depend on strdup to return
91533         ENOMEM on out of memory conditions.
91535 2008-09-18  Bruno Haible  <bruno@clisp.org>
91537         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
91538         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
91539         digits for the exponent.
91541 2008-09-18  Jim Meyering  <meyering@redhat.com>
91542             Bruno Haible  <bruno@clisp.org>
91544         * lib/vasnprintf.c (decimal_point_char): Define also if
91545         NEED_PRINTF_INFINITE_LONG_DOUBLE.
91547 2008-09-16  Bruno Haible  <bruno@clisp.org>
91548         and Eric Blake  <ebb9@byu.net>
91550         vasnprintf: support Irix 5.3
91551         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
91552         that mishandle long double infinity.
91553         Reported by Tom G. Christensen.
91555 2008-09-16  Bruno Haible  <bruno@clisp.org>
91557         * doc/glibc-functions/scandir.texi: Mention the function is missing on
91558         Solaris 9.
91559         * doc/glibc-functions/alphasort.texi: Likewise.
91560         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
91562 2008-09-16  Jim Meyering  <meyering@redhat.com>
91564         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
91565         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
91566         a umask modification leak out of a subshell.  Otherwise, the
91567         opensolaris /bin/sh would be accepted and thus cause unwarranted
91568         failures in the coreutils test suite.
91570 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
91572         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
91573         to succeed.
91575 2008-09-16  Jim Meyering  <meyering@redhat.com>
91577         avoid spurious test failure when library is built without ACL support
91578         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
91579         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
91580         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
91581         * tests/test-copy-acl.sh: Likewise.
91583 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91585         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
91586         based on character occurrence counts.
91588 2008-09-15  Eric Blake  <ebb9@byu.net>
91590         tests: avoid some compiler warnings
91591         * tests/test-memchr.c (main): Pass NULL indirectly.
91592         * tests/test-closein.c (main): Avoid unused variable.
91594 2008-09-15  Bruno Haible  <bruno@clisp.org>
91596         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
91597         are missing on OpenBSD 4.0 individually.
91598         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91600 2008-09-15  Bruno Haible  <bruno@clisp.org>
91602         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
91603         * doc/posix-functions/strerror.texi: Mention also Cygwin.
91604         * doc/posix-functions/perror.texi: Likewise.
91605         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
91606         is missing.
91607         Reported by Eric Blake.
91609         * lib/errno.in.h: Use replacement values >= 2000.
91610         Reported by Eric Blake.
91612 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91614         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91615         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91616         limit.
91617         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
91618         compareseq was aborted.
91620 2008-09-14  Bruno Haible  <bruno@clisp.org>
91622         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
91623         yvec_edit_count.
91624         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
91625         (fstrcmp_bounded): Simplify result computation accordingly.
91627 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91629         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
91630         (fstrcmp): Define in terms of fstrcmp_bounded.
91631         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
91632         lower_bound argument.
91633         Return quickly if the result is certainly < lower_bound.
91634         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
91636 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91638         * lib/diffseq.h (EARLY_ABORT): New macro.
91639         (compareseq): Change return type to bool. Return true when EARLY_ABORT
91640         evaluates to true.
91642 2008-09-14  Bruno Haible  <bruno@clisp.org>
91644         * modules/perror-tests: New file.
91645         * tests/test-perror.sh: New file.
91646         * tests/test-perror.c: New file.
91648         New module 'perror'.
91649         * lib/stdio.in.h (perror): New declaration.
91650         * lib/perror.c: New file.
91651         * m4/perror.m4: New file.
91652         * modules/perror: New file.
91653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
91654         * doc/posix-functions/perror.texi: Mention the perror module.
91655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
91656         REPLACE_PERROR.
91657         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
91658         REPLACE_PERROR.
91660 2008-09-14  Bruno Haible  <bruno@clisp.org>
91662         * modules/stdio (Makefile.am): Reorder to match the order in
91663         lib/stdio.in.h.
91664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91666 2008-09-13  Bruno Haible  <bruno@clisp.org>
91668         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
91670 2008-09-13  Bruno Haible  <bruno@clisp.org>
91672         Extend strerror to cover the added errno values.
91673         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
91674         (rpl_strerror): Provide error messages for the added errno values and
91675         for the WSA* values.
91676         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
91677         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
91678         strerror.
91679         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
91680         * modules/strerror (Depends-on): Add errno.
91681         * doc/posix-functions/strerror.texi: Document the change.
91682         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91683         and EOVERFLOW.
91685 2008-09-13  Bruno Haible  <bruno@clisp.org>
91687         * modules/EOVERFLOW: Remove file.
91688         * m4/eoverflow.m4: Remove file.
91689         * modules/EOVERFLOW-tests: Remove file.
91690         * tests/test-EOVERFLOW.c: Remove file.
91691         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91692         * modules/ftell (Depends-on): Likewise.
91693         * modules/getdelim (Depends-on): Likewise.
91694         * modules/getugroups (Depends-on): Likewise.
91695         * modules/poll (Depends-on): Likewise.
91696         * modules/snprintf (Depends-on): Likewise.
91697         * modules/sprintf-posix (Depends-on): Likewise.
91698         * modules/vasnprintf (Depends-on): Likewise.
91699         * modules/vasprintf (Depends-on): Likewise.
91700         * modules/vfprintf-posix (Depends-on): Likewise.
91701         * modules/vsnprintf (Depends-on): Likewise.
91702         * modules/vsprintf-posix (Depends-on): Likewise.
91703         * modules/xvasprintf (Depends-on): Likewise.
91704         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91705         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91706         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91707         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91708         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91709         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91710         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91711         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91712         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91713         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91714         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91715         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91716         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91717         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91718         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91719         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91721         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91722         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91723         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91724         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91725         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91726         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91727         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91728         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91729         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91730         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91731         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91732         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91733         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91734         * MODULES.html.sh: Remove EOVERFLOW.
91735         * NEWS: Mention the change.
91737 2008-09-13  Bruno Haible  <bruno@clisp.org>
91739         * modules/errno-tests: New file.
91740         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91742         * lib/errno.in.h: New file.
91743         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91744         * modules/errno: New file.
91745         * doc/posix-headers/errno.texi: Update documentation.
91746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91748 2008-09-13  Bruno Haible  <bruno@clisp.org>
91750         * tests/test-poll.c: Use #if for native Windows, rather than testing
91751         __MSVCRT__.
91753 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91754             Bruno Haible  <bruno@clisp.org>
91756         * lib/glob.c: Don't include <pwd.h> on native Windows.
91757         (WINDOWS32): New macro.
91758         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91760 2008-09-13  Bruno Haible  <bruno@clisp.org>
91762         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91763         (ETIMEDOUT): Remove macro.
91764         (glthread_cond_timedwait_multithreaded): New declaration.
91765         (glthread_cond_timedwait): Use it.
91766         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91767         (glthread_cond_timedwait_multithreaded): New function.
91769 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91771         * modules/poll-tests: Do not check for io.h.
91772         * tests/test-poll.c: Check for __MSVCRT__ instead.
91774 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91776         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91777         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91778         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91780 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91782         * modules/poll-tests: New.
91783         * tests/test-poll.c: New.
91785 2008-09-12  Eric Blake  <ebb9@byu.net>
91787         frexp: test for NetBSD failure on -0.0
91788         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91789         not all, bugs from NetBSD 3.0 have been fixed.
91790         * doc/posix-functions/frexp.texi (frexp): Document bug.
91791         Reported by Thomas Klausner.
91793         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91794         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91795         literal -0.0.
91796         Reported by Jonathan C. Patschke <jp@centtech.com>.
91798 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91800         * lib/glthread/cond.h: Use dummy implementation also if
91801         USE_WIN32_THREADS.
91803 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91805         * modules/fnmatch-posix (License): Change to LGPLv2+.
91806         * modules/fnmatch-gnu (License): Likewise.
91808 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91810         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91812 2008-09-11  Jim Meyering  <meyering@redhat.com>
91814         * users.txt: Add gtk-vnc.
91816 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91818         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91819         rotate amounts.
91821         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91822         required for 16-bit and 8-bit rotates.
91823         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91824         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91825         UINT8_MAX instead of hard-coded constants.
91826         Suggested by Paul Eggert.
91828 2008-09-07  Bruno Haible  <bruno@clisp.org>
91830         * tests/test-striconveh.c (main): Check behaviour when converting from
91831         UTF-7.
91833         Make striconveh work better with stateful encodings.
91834         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91835         that iconv does not increment the inptr when returning -1/EINVAL.
91837 2008-09-07  Bruno Haible  <bruno@clisp.org>
91839         * build-aux/config.rpath: Update according to libtool-2.2.6.
91840         * build-aux/config.libpath: Likewise.
91842 2008-09-06  Bruno Haible  <bruno@clisp.org>
91844         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91845         * lib/freadptr.c (freadptr): Likewise.
91846         * lib/freadseek.c (freadptrinc): Likewise.
91847         Reported by Simon Josefsson.
91849 2008-09-06  Bruno Haible  <bruno@clisp.org>
91851         * modules/freadptr (License): Change to LGPLv2+.
91852         * modules/freadseek (License): Likewise.
91853         Suggested by Eric Blake.
91855         * modules/memchr2 (License): Change to LGPLv2+.
91856         Approved by Eric Blake.
91858 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91859             Bruno Haible  <bruno@clisp.org>
91861         Make gnulib-tool work with native 'sed' on AIX.
91862         * gnulib-tool (sed_noop): New variable.
91863         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91864         func_add_or_update, func_create_testdir): Use it to initialize sed
91865         script variables.
91866         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91868 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91869             Bruno Haible  <bruno@clisp.org>
91871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91872         also works after #include directives.
91874 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91876         getdate.y: reject an out-of-range timezone value
91877         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91878         the range [-24...+24].  When specified with only one or two digits,
91879         * tests/test-getdate.c: Tests for the fix.
91880         * doc/getdate.texi: Document this change.
91882 2008-09-03  Bruno Haible  <bruno@clisp.org>
91884         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91886 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91888         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91889         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91890         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91891         Blake <ebb9@byu.net>.
91893         * tests/test-bitrotate.c: Add more test vectors.
91895 2008-09-02  Eric Blake  <ebb9@byu.net>
91897         vasnprintf-posix: handle large precision via %.*d
91898         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91899         when handling it ourselves.
91900         * tests/test-vasnprintf-posix.c (test_function): Add test.
91901         * tests/test-snprintf-posix.h (test_function): Likewise.
91902         * tests/test-sprintf-posix.h (test_function): Likewise.
91903         * tests/test-vasprintf-posix.c (test_function): Likewise.
91904         Reported by Alain Guibert.
91906 2008-09-01  Eric Blake  <ebb9@byu.net>
91908         c-stack: make configure-time check more robust
91909         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91910         successful sigaction call.
91911         Reported by Tom G. Christensen.
91913 2008-09-01  Bruno Haible  <bruno@clisp.org>
91915         New module 'findprog-lgpl'.
91916         * modules/findprog-lgpl: New file.
91917         * lib/findprog-lgpl.c: New file.
91918         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91919         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91920         to decide whether to use strdup or xstrdup, concatenated_filename or
91921         xconcatenated_filename.
91923 2008-09-01  Bruno Haible  <bruno@clisp.org>
91925         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91926         'xconcat-filename' (GPL).
91927         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91928         (License): Change to LGPLv2+.
91929         * modules/xconcat-filename: New file.
91930         * lib/concat-filename.h (concatenated_filename): Change specification.
91931         (xconcatenated_filename): New declaration.
91932         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91933         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91934         memory situations.
91935         * lib/xconcat-filename.c: New file.
91936         * NEWS: Mention the change.
91937         * lib/findprog.c: Include concat-filename.h, not filename.h.
91938         (find_in_path): Use xconcatenated_filename instead of
91939         concatenated_filename.
91940         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91941         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91942         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91943         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91944         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91945         instead of concatenated_filename.
91946         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91947         (execute_java_class): Use xconcatenated_filename instead of
91948         concatenated_filename.
91949         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91950         * modules/javacomp (Depends-on): Likewise.
91951         * modules/javaexec (Depends-on): Likewise.
91953 2008-09-01  Bruno Haible  <bruno@clisp.org>
91955         Split module 'filename' into 'filename' and 'concat-filename'.
91956         * modules/filename: Keep only lib/filename.h.
91957         (License): Change to LGPLv2+.
91958         * modules/concat-filename: New file, extracted from modules/filename.
91959         * lib/filename.h (concatenated_filename): Remove declaration.
91960         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91961         * lib/concat-filename.c: Include concat-filename.h.
91962         * NEWS: Mention the change.
91964 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91966         * lib/bitrotate.h (rotl8, rotr8): Add.
91968         * modules/bitrotate (configure.ac): Need
91969         AC_REQUIRE([AC_C_INLINE]).
91970         (Description): Mention stdint.h.  Reported by Bruno Haible
91971         <bruno@clisp.org>.
91973         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91974         Paolo Bonzini <bonzini@gnu.org>.
91976 2008-08-31  Bruno Haible  <bruno@clisp.org>
91978         Assume Solaris specific bi-arch conventions on Solaris systems.
91979         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91980         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91981         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91982         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91983         like acl_libdirstem.
91984         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91985         acl_libdirstem.
91986         * NEWS: Mention the change.
91987         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91989 2008-08-31  Jim Meyering  <meyering@redhat.com>
91991         * lib/strftime.h: Add comments describing the two added arguments.
91993         remove duplicate #include directives
91994         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91995         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91997 2008-08-31  Bruno Haible  <bruno@clisp.org>
91999         New module 'sigpipe-die'.
92000         * modules/sigpipe-die: New file.
92001         * lib/sigpipe-die.h: New file.
92002         * lib/sigpipe-die.c: New file.
92003         * MODULES.html.sh (Signal handling): Add sigpipe-die.
92005 2008-08-31  Bruno Haible  <bruno@clisp.org>
92007         Don't override previously installed signal handlers.
92008         * lib/fatal-signal.c (saved_sigactions): New variable.
92009         (uninstall_handlers): Reset the signal to the saved handler, not
92010         to SIG_DFL (except when ignored).
92011         (install_handlers): Save the previous handlers.
92013 2008-08-30  Bruno Haible  <bruno@clisp.org>
92015         * gnulib-tool (func_reset_sigpipe): New function.
92016         (func_get_automake_snippet, func_modules_transitive_closure,
92017         func_import): Invoke it before a join command that reads from stdin,
92018         to avoid "echo: write error: Broken pipe" error messages on stderr.
92019         Reported by Sam Steingold <sds@gnu.org>.
92021 2008-08-30  Bruno Haible  <bruno@clisp.org>
92023         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
92024         Code copied from m4/open.m4.
92025         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
92026         access and the filename ends in a slash. Code copied from lib/open.c.
92027         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
92028         * tests/test-fopen.c (main): Check against bug with trailing slash.
92030 2008-08-29  Bruno Haible  <bruno@clisp.org>
92032         Avoid some "gcc -pedantic" warnings.
92033         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
92034         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
92035         * lib/dirent.in.h: Likewise.
92036         * lib/fcntl.in.h: Likewise.
92037         * lib/float.in.h: Likewise.
92038         * lib/iconv.in.h: Likewise.
92039         * lib/inttypes.in.h: Likewise.
92040         * lib/locale.in.h: Likewise.
92041         * lib/math.in.h: Likewise.
92042         * lib/netinet_in.in.h: Likewise.
92043         * lib/search.in.h: Likewise.
92044         * lib/signal.in.h: Likewise.
92045         * lib/stdarg.in.h: Likewise.
92046         * lib/stdint.in.h: Likewise.
92047         * lib/stdio.in.h: Likewise.
92048         * lib/stdlib.in.h: Likewise.
92049         * lib/string.in.h: Likewise.
92050         * lib/strings.in.h: Likewise.
92051         * lib/sys_select.in.h: Likewise.
92052         * lib/sys_socket.in.h: Likewise.
92053         * lib/sys_stat.in.h: Likewise.
92054         * lib/sys_time.in.h: Likewise.
92055         * lib/sysexits.in.h: Likewise.
92056         * lib/time.in.h: Likewise.
92057         * lib/unistd.in.h: Likewise.
92058         * lib/wchar.in.h: Likewise.
92059         * lib/wctype.in.h: Likewise.
92060         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
92061         * modules/fchdir (Makefile.am): Likewise.
92062         * modules/fcntl (Makefile.am): Likewise.
92063         * modules/float (Makefile.am): Likewise.
92064         * modules/iconv_open (Makefile.am): Likewise.
92065         * modules/inttypes (Makefile.am): Likewise.
92066         * modules/locale (Makefile.am): Likewise.
92067         * modules/math (Makefile.am): Likewise.
92068         * modules/netinet_in (Makefile.am): Likewise.
92069         * modules/search (Makefile.am): Likewise.
92070         * modules/signal (Makefile.am): Likewise.
92071         * modules/stdarg (Makefile.am): Likewise.
92072         * modules/stdint (Makefile.am): Likewise.
92073         * modules/stdio (Makefile.am): Likewise.
92074         * modules/stdlib (Makefile.am): Likewise.
92075         * modules/string (Makefile.am): Likewise.
92076         * modules/strings (Makefile.am): Likewise.
92077         * modules/sys_select (Makefile.am): Likewise.
92078         * modules/sys_socket (Makefile.am): Likewise.
92079         * modules/sys_stat (Makefile.am): Likewise.
92080         * modules/sys_time (Makefile.am): Likewise.
92081         * modules/sysexits (Makefile.am): Likewise.
92082         * modules/time (Makefile.am): Likewise.
92083         * modules/unistd (Makefile.am): Likewise.
92084         * modules/wchar (Makefile.am): Likewise.
92085         * modules/wctype (Makefile.am): Likewise.
92086         Reported by Reuben Thomas <rrt@sc3d.org>.
92088 2008-08-29  Bruno Haible  <bruno@clisp.org>
92090         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
92091         any more.
92093 2008-08-29  Simon Josefsson  <simon@josefsson.org>
92095         * MODULES.html.sh (Misc): Add bitrotate.
92097         * modules/bitrotate: New file.
92099         * lib/bitrotate.h: New file.
92101         * modules/bitrotate-tests: New file.
92103         * tests/test-bitrotate.c: New file.
92105         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
92106         on the bitrotate module.
92108         * lib/arctwo.c: Use new bitrotate module.
92110 2008-08-29  Jim Meyering  <meyering@redhat.com>
92112         bootstrap: merge changes from coreutils
92113         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
92114         of copied files.  Remove a kludge, now that this is fixed.
92115         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
92116         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
92117         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
92119 2008-08-29  Bruno Haible  <bruno@clisp.org>
92121         * MODULES.html.sh: Remove --cvs-urls option.
92123 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
92125         maint.mk: adjust to file name change
92126         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
92128 2008-08-28  Jim Meyering  <meyering@redhat.com>
92130         * modules/getndelim2 (License): Relicense to LGPLv2+.
92131         Approved by Richard Stallman for the version of 1995, and by
92132         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
92134 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
92136         * lib/getdelim.c (flockfile, funlockfile): Make all of them
92137         dummy if one is not available.  Do not touch them if
92138         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
92139         (getc_maybe_unlocked): New.
92140         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
92142 2008-08-26  Eric Blake  <ebb9@byu.net>
92144         doc/INSTALL: resync from autoconf
92145         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
92146         (INSTALL_PRELUDE): Delete; this is done more efficiently by
92147         moving...
92148         * install.texi [!autoconf]: ...here.  Resync from autoconf.
92149         * INSTALL: Regenerate.
92150         * INSTALL.ISO: New file.
92151         * INSTALL.UTF-8: Likewise.
92153 2008-08-26  Jim Meyering  <meyering@redhat.com>
92155         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
92156         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
92157         these definitions conditional, so that they may be overridden, too.
92159 2008-08-26  Bruno Haible  <bruno@clisp.org>
92161         Generate INSTALL file variants with prettier quotes.
92162         * doc/Makefile (INSTALL_PRELUDE): New macro.
92163         (INSTALL): Use it.
92164         (INSTALL.ISO, INSTALL.UTF-8): New rules.
92166 2008-08-26  Bruno Haible  <bruno@clisp.org>
92168         Run makeinfo in an English locale.
92169         * doc/Makefile (MAKEINFO): New variable.
92171 2008-08-26  Bruno Haible  <bruno@clisp.org>
92173         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
92174         Suggested by Eric Blake.
92176 2008-08-25  Bruno Haible  <bruno@clisp.org>
92178         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
92180 2008-08-25  Eric Blake  <ebb9@byu.net>
92182         c-stack: test that stack overflow can be caught
92183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
92184         that platform allows handling stack overflow; at least OS/2 EMX
92185         has sigaltstack, but crashes before transferring control to
92186         handler on stack overflow.
92187         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
92188         check for HAVE_STACK_OVERFLOW_HANDLING.
92189         Reported by Elbert Pol.
92191 2008-08-25  Bruno Haible  <bruno@clisp.org>
92193         * doc/posix-functions/strftime.texi: Fix description of strftime
92194         module.
92196 2008-08-24  Bruno Haible  <bruno@clisp.org>
92198         * tests/uniwidth/test-uc_width2.c: New file.
92199         * tests/uniwidth/test-uc_width2.sh: New file.
92200         * modules/uniwidth/width-tests (Files): Add the new files.
92201         (TESTS): Add uniwidth/test-uc_width2.sh.
92202         (TESTS_ENVIRONMENT): New variable.
92203         (check_PROGRAMS): Add test-uc_width2.
92204         (test_uc_width2_SOURCES): New variable.
92206         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
92207         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
92208         not 0x00AB.
92209         Reported by Alexander V. Lukyanov <lav@netis.ru>.
92211 2008-08-22  Eric Blake  <ebb9@byu.net>
92213         test-lock, test-tls: mention why a test is skipped
92214         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
92215         skipped.
92216         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
92218         count-one-bits: relax license
92219         * modules/count-one-bits (License): Relicense to LGPLv2+.
92220         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92222 2008-08-22  Andreas Schwab  <schwab@suse.de>
92224         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
92225         Remove spurious space in assignment.
92227 2008-08-21  Simon Josefsson  <simon@josefsson.org>
92229         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
92230         Paul Eggert <eggert@CS.UCLA.EDU>.
92232 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
92234         * modules/gettext: Add m4/threadlib.m4.
92236 2008-08-19  Eric Blake  <ebb9@byu.net>
92238         test-c-stack: fix compilation failure on FreeBSD 5.0
92239         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
92240         headers before <sys/resource.h>.
92241         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
92242         the bug.
92243         Reported by Nelson H. F. Beebe.
92245         strverscmp: migrate from "strverscmp.h" to <string.h>
92246         * modules/string (Makefile.am): Add new hooks.
92247         * modules/strverscmp (Files): Remove strverscmp.h.
92248         (Depends-on): Add string.
92249         (configure.ac): Add indicator.
92250         (Include): Mention new header.
92251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
92252         defaults.
92253         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
92254         results.
92255         * lib/strverscmp.h: Delete.
92256         * lib/string.in.h (strverscmp): Provide declaration, when needed.
92257         * tests/test-strverscmp.c (includes): Adjust client.
92258         * lib/check-version.c (includes): Likewise.
92259         * NEWS: Document the change.
92261         strverscmp: add unit test
92262         * modules/strverscmp-tests: New file.
92263         * tests/test-strverscmp.c: Likewise.
92265 2008-08-19  Simon Josefsson  <simon@josefsson.org>
92267         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
92268         regarding Windows crypto stuff, from Mono.
92270 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
92272         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
92273         if present, for intel RND.  Return error on failures.
92275 2008-08-18  Ben Pfaff  <blp@gnu.org>
92277         gitlog-to-changelog: give better diagnostic for failed pipe-open
92278         * build-aux/gitlog-to-changelog: Improve error message: suggest
92279         that the version of Git may be too old.
92281 2008-08-18  Simon Josefsson  <simon@josefsson.org>
92283         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
92284         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
92286 2008-08-18  Bruno Haible  <bruno@clisp.org>
92288         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
92289         pthread_in_use().
92291 2008-08-18  Bruno Haible  <bruno@clisp.org>
92293         * lib/glthread/threadlib.c: Include <pthread.h>.
92295 2008-08-18  Bruno Haible  <bruno@clisp.org>
92297         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
92298         glthread_recursive_lock_* macros.
92299         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
92300         Fix syntax error.
92302 2008-08-18  Bruno Haible  <bruno@clisp.org>
92304         * lib/glthread/thread.c: Avoid forcing a context switch right after
92305         thread creation.
92307 2008-08-17  Bruno Haible  <bruno@clisp.org>
92309         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
92310         * lib/glthread/thread.h: Provide Win32 specific implementation.
92311         * modules/thread (Files): Add lib/glthread/thread.c.
92312         (Depends-on): Add lock.
92313         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
92315 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92317         New module 'yield'.
92318         * modules/yield: New file.
92319         * lib/glthread/yield.h: New file.
92320         * m4/yield.m4: New file.
92321         * MODULES.html.sh (Multithreading): Add yield.
92323 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92325         New module 'thread'.
92326         * modules/thread: New file.
92327         * lib/glthread/thread.h: New file.
92328         * m4/thread.m4: New file.
92329         * MODULES.html.sh (Multithreading): Add thread.
92331 2008-08-17  Bruno Haible  <bruno@clisp.org>
92333         * lib/glthread/lock.h: Include <stdlib.h> always.
92334         * lib/glthread/tls.h: Likewise.
92335         * lib/glthread/cond.h: Likewise.
92337 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92339         New module 'cond'.
92340         * modules/cond: New file.
92341         * lib/glthread/cond.h: New file.
92342         * lib/glthread/cond.c: New file.
92343         * m4/cond.m4: New file.
92344         * MODULES.html.sh (Multithreading): Add cond.
92346 2008-08-16  Eric Blake  <ebb9@byu.net>
92348         c-stack: fix regression on Irix 5.3 from 2008-06-21
92349         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
92350         sa_sigaction...
92351         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
92352         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
92353         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
92354         * modules/signal (Makefile.am): Use the value.
92355         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
92356         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
92357         * doc/posix-headers/signal.texi (signal.h): Document this
92358         portability issue.
92359         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
92360         Reported by Tom G. Christensen.
92362 2008-08-17  Bruno Haible  <bruno@clisp.org>
92364         New module 'threadlib'.
92365         * modules/threadlib: New file.
92366         * lib/glthread/threadlib.c: New file, extracted from
92367         lib/glthread/lock.c.
92368         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92369         functions.
92370         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92371         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92372         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92373         macros.
92374         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92375         (gl_DISABLE_THREADS): Remove macro.
92376         * modules/lock (Files): Remove build-aux/config.rpath.
92377         (Depends-on): Remove havelib. Add threadlib.
92378         (configure.ac-early): Remove section.
92379         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92380         * modules/tls (Depends-on): Remove lock. Add threadlib.
92381         (Link): New section, copied from threadlib.
92382         * MODULES.html.sh (Multithreading): Add threadlib.
92384 2008-08-14  Bruno Haible  <bruno@clisp.org>
92386         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92387         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92388         glthread_rwlock_unlock, glthread_rwlock_destroy,
92389         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92390         glthread_recursive_lock_destroy): Define as macros always.
92391         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92392         glthread_lock_lock.
92393         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92394         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92395         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92396         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92397         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92398         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92399         (glthread_recursive_lock_lock_func): Renamed from
92400         glthread_recursive_lock_lock.
92401         (glthread_recursive_lock_unlock_func): Renamed from
92402         glthread_recursive_lock_unlock.
92403         (glthread_recursive_lock_destroy_func): Renamed from
92404         glthread_recursive_lock_destroy.
92406 2008-08-14  Bruno Haible  <bruno@clisp.org>
92408         * lib/glthread/lock.h: Renamed from lib/lock.h.
92409         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92410         * lib/glthread/tls.h: Renamed from lib/tls.h.
92411         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92412         * lib/fstrcmp.c: Update includes.
92413         * lib/strsignal.c: Update includes.
92414         * modules/lock (Files, Makefile.am): Update.
92415         (Include): Change to "glthread/lock.h".
92416         * modules/tls (Files, Makefile.am): Update.
92417         (Include): Change to "glthread/tls.h".
92418         * tests/test-lock.c: Update includes.
92419         * tests/test-tls.c: Update includes.
92420         * NEWS: Mention the renamed header files.
92422 2008-08-11  Jim Meyering  <meyering@redhat.com>
92424         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92426 2008-08-11  Eric Blake  <ebb9@byu.net>
92428         test-c-stack: avoid C99-ism
92429         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92430         before statement.
92431         Reported by Alain Guibert.
92433 2008-08-10  Jim Meyering  <meyering@redhat.com>
92435         ensure that return value of uinttostr et al are not ignored
92436         * lib/inttostr.h (__GNUC_PREREQ): Define.
92437         (__attribute_warn_unused_result__): Define.
92438         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92440 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92442         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92443         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92445 2008-08-07  Jim Meyering  <meyering@redhat.com>
92447         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92449         * modules/mkstemp (License): Relicense under LGPLv2+.
92450         * modules/tempname (License): Likewise.
92452 2008-08-06  Bruno Haible  <bruno@clisp.org>
92454         * lib/poll.c (poll): Further micro-optimization.
92456 2008-08-06  Jim Meyering  <meyering@redhat.com>
92458         inet_pton.c: use locale-independent tolower
92459         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92460         (inet_pton6): Use c_tolower rather than tolower.
92461         * modules/inet_pton (Depends-on): Add c-ctype.
92463 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92465         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92466         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92468 2008-08-06  Jim Meyering  <meyering@redhat.com>
92470         * modules/inet_pton (License): Relicense under LGPLv2+.
92472 2008-08-03  Bruno Haible  <bruno@clisp.org>
92474         Additional non-aborting API for lock and tls.
92475         * lib/lock.h: Include <errno.h>.
92476         (glthread_lock_init): New macro/function.
92477         (gl_lock_init): Define as wrapper around glthread_lock_init.
92478         (glthread_lock_lock): New macro/function.
92479         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
92480         (glthread_lock_unlock): New macro/function.
92481         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
92482         (glthread_lock_destroy): New macro/function.
92483         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
92484         (glthread_rwlock_init): New macro/function.
92485         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
92486         (glthread_rwlock_rdlock): New macro/function.
92487         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
92488         (glthread_rwlock_wrlock): New macro/function.
92489         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
92490         (glthread_rwlock_unlock): New macro/function.
92491         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
92492         (glthread_rwlock_destroy): New macro/function.
92493         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
92494         (glthread_recursive_lock_init): New macro/function.
92495         (gl_recursive_lock_init): Define as wrapper around
92496         glthread_recursive_lock_init.
92497         (glthread_recursive_lock_lock): New macro/function.
92498         (gl_recursive_lock_lock): Define as wrapper around
92499         glthread_recursive_lock_lock.
92500         (glthread_recursive_lock_unlock): New macro/function.
92501         (gl_recursive_lock_unlock): Define as wrapper around
92502         glthread_recursive_lock_unlock.
92503         (glthread_recursive_lock_destroy): New macro/function.
92504         (gl_recursive_lock_destroy): Define as wrapper around
92505         glthread_recursive_lock_destroy.
92506         (glthread_once): New macro/function.
92507         (gl_once): Define as wrapper around glthread_once.
92508         Update function declarations.
92509         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
92510         glthread_rwlock_init. Return error code.
92511         (glthread_rwlock_rdlock_multithreaded): Renamed from
92512         glthread_rwlock_rdlock. Return error code.
92513         (glthread_rwlock_wrlock_multithreaded): Renamed from
92514         glthread_rwlock_wrlock. Return error code.
92515         (glthread_rwlock_unlock_multithreaded): Renamed from
92516         glthread_rwlock_unlock. Return error code.
92517         (glthread_rwlock_destroy_multithreaded): Renamed from
92518         glthread_rwlock_destroy. Return error code.
92519         (glthread_recursive_lock_init_multithreaded): Renamed from
92520         glthread_recursive_lock_init. Return error code.
92521         (glthread_recursive_lock_lock_multithreaded): Renamed from
92522         glthread_recursive_lock_lock. Return error code.
92523         (glthread_recursive_lock_unlock_multithreaded): Renamed from
92524         glthread_recursive_lock_unlock. Return error code.
92525         (glthread_recursive_lock_destroy_multithreaded): Renamed from
92526         glthread_recursive_lock_destroy. Return error code.
92527         (glthread_once_call): Make static.
92528         (glthread_once_multithreaded): Renamed from glthread_once.
92529         * lib/tls.h: Include <errno.h>.
92530         (glthread_tls_key_init): New macro/function.
92531         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
92532         (glthread_tls_set): New macro/function.
92533         (gl_tls_set): Define as wrapper around glthread_tls_set.
92534         (glthread_tls_key_destroy): New macro/function.
92535         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
92536         Update function declarations.
92537         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
92538         glthread_tls_get.
92539         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
92541 2008-08-04  Eric Blake  <ebb9@byu.net>
92543         gnumakefile: use space, not TAB, outside of targets
92544         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
92546 2008-08-02  Jim Meyering  <meyering@redhat.com>
92548         getdate.y: avoid locale-dependent date parsing failure
92549         In Turkish locales, getdate would fail to recognize keywords
92550         containing a lowercase "i".  The solution is not to rely on
92551         locale-sensitive case-conversion.
92552         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
92553         (lookup_word): Use c_toupper in place of toupper.
92554         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
92555         Reported by Vefa Bicakci <bicave@superonline.com> in
92556         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
92557         * modules/getdate (Depends-on): Add c-ctype.
92559 2008-08-02  Bruno Haible  <bruno@clisp.org>
92561         * gnulib-tool (func_import): When updating or creating a .gitignore
92562         file, prepend each added line with a slash, and ignore leading slashes
92563         from the existing lines.
92564         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92566 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92568         Portability fix for GNU make 3.79.1.
92569         * top/GNUmakefile: Avoid 'else COND', which older GNU make
92570         versions do not understand.
92572 2008-08-01  Bruno Haible  <bruno@clisp.org>
92574         Work around bug of HP-UX 10.20 cc with -0.0 literal.
92575         * tests/test-isnanf.h (zero): New variable.
92576         (main): Avoid literal -0.0f.
92577         * tests/test-isnand.h (zero): New variable.
92578         (main): Avoid literal -0.0.
92579         * tests/test-isnanl.h (zero): New variable.
92580         (main): Avoid literal -0.0L.
92581         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
92582         (test_float, test_double, test_long_double): Avoid literals -0.0f,
92583         -0.0, -0.0L.
92584         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
92585         (test_signbitd): Avoid literal -0.0.
92586         (test_signbitl): Avoid literal -0.0L.
92587         * tests/test-ceilf1.c (zero): New variable.
92588         (main): Avoid literal -0.0f.
92589         * tests/test-ceill.c (zero): New variable.
92590         (main): Avoid literal -0.0L.
92591         * tests/test-floorf1.c (zero): New variable.
92592         (main): Avoid literal -0.0f.
92593         * tests/test-floorl.c (zero): New variable.
92594         (main): Avoid literal -0.0L.
92595         * tests/test-roundf1.c (zero): New variable.
92596         (main): Avoid literal -0.0f.
92597         * tests/test-round1.c (zero): New variable.
92598         (main): Avoid literal -0.0.
92599         * tests/test-roundl.c (zero): New variable.
92600         (main): Avoid literal -0.0L.
92601         * tests/test-truncf1.c (zero): New variable.
92602         (main): Avoid literal -0.0f.
92603         * tests/test-trunc1.c (zero): New variable.
92604         (main): Avoid literal -0.0.
92605         * tests/test-truncl.c (zero): New variable.
92606         (main): Avoid literal -0.0L.
92607         * tests/test-frexp.c (zero): New variable.
92608         (main): Avoid literal -0.0.
92609         * tests/test-frexpl.c (zero): New variable.
92610         (main): Avoid literal -0.0L.
92611         * tests/test-ldexpl.c (zero): New variable.
92612         (main): Avoid literal -0.0L.
92613         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92614         (zerod, zerol): New variables.
92615         (test_function): Avoid literals -0.0, -0.0L.
92616         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92617         (zerod, zerol): New variables.
92618         (test_function): Avoid literals -0.0, -0.0L.
92619         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92620         (zerod, zerol): New variables.
92621         (test_function): Avoid literals -0.0, -0.0L.
92622         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92623         (zerod, zerol): New variables.
92624         (test_function): Avoid literals -0.0, -0.0L.
92625         * tests/test-strtod.c (zero): New variable.
92626         (main): Avoid literal -0.0.
92627         Reported by Jonathan C. Patschke <jp@centtech.com>.
92629 2008-07-31  Jim Meyering  <meyering@redhat.com>
92631         sha256.h: correct definition of SHA224_DIGEST_SIZE
92632         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
92633         Reported by Paulie Pena IV <paulie4@gmail.com>.
92634         Define as 224 / 8, rather than as a literal.
92635         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
92636         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
92637         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
92639 2008-07-31  Bruno Haible  <bruno@clisp.org>
92641         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
92642         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
92643         Reported by Jonathan Patschke <jp@centtech.com>.
92645 2008-07-31  Bruno Haible  <bruno@clisp.org>
92647         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
92648         Reported by Paolo Bonzini <bonzini@gnu.org>.
92650 2008-07-30  Eric Blake  <ebb9@byu.net>
92652         test-strtod: allow compilation without -lm
92653         * tests/test-strtod.c (main): Avoid link dependence on fabs.
92654         Reported by Dennis Clarke <blastwave@gmail.com>.
92656 2008-07-28  Jim Meyering  <meyering@redhat.com>
92658         bootstrap: work also when there are no .po files in po/
92659         * build-aux/bootstrap (update_po_files): Complete the change
92660         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
92662 2008-07-27  Jim Meyering  <meyering@redhat.com>
92664         * users.txt: Add zile.
92666 2008-07-26  Ben Pfaff  <blp@gnu.org>
92668         Add missing dependencies on new m4/exponent[fdl].m4 files.
92669         * modules/isnanf-nolibm: Add m4/exponentf.m4.
92670         * modules/isnand-nolibm: Add m4/exponentd.m4.
92671         * modules/isnanl-nolibm: Add m4/exponentl.m4.
92672         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
92673         m4/isnan[fdl].m4, because the macros actually used moved.
92674         Reported by Jim Meyering.
92676 2008-07-14  Ben Pfaff  <blp@gnu.org>
92678         Add isinf module.
92679         * lib/isinf.c: New file.
92680         * lib/math.in.h: Define isinf macro if we have decided to replace
92681         it.
92682         * m4/isinf.m4: New file.
92683         * m4/math_h.m4: Initialize and substitute variables for isinf
92684         module.
92685         * modules/isinf: New file.
92686         * modules/isinf-tests: New file.
92687         * modules/math: Add substitutions for new module.
92688         * tests/test-isinf.c: New file.
92689         * doc/posix-functions/isinf.texi: Mention new module.
92690         * MODULES.html.sh: Mention new module.
92692 2008-07-14  Ben Pfaff  <blp@gnu.org>
92694         Factor out some macros for use by additional modules.
92695         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92696         exponentf.m4.
92697         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92698         exponentd.m4.
92699         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92700         file exponentl.m4.
92701         * m4/exponentf.m4: New file.
92702         * m4/exponentd.m4: New file.
92703         * m4/exponentl.m4: New file.
92704         * modules/isnanf: Use new file m4/exponentf.m4.
92705         * modules/isnand: Use new file m4/exponentd.m4.
92706         * modules/isnanl: Use new file m4/exponentl.m4.
92708 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92710         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92711         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92712         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92713         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92715         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92716         readlink on platforms without PATH_MAX.
92718 2008-07-21  Eric Blake  <ebb9@byu.net>
92720         Warn, not fail, on stale version.
92721         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92723         Don't allow installation with stale devel version number.
92724         * top/GNUmakefile (_is-install-target): New macro.
92725         (_curr-ver): Forbid installation with stale version number.
92727 2008-07-20  Bruno Haible  <bruno@clisp.org>
92729         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92730         TESTS_ENVIRONMENT.
92731         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92733 2008-07-20  Bruno Haible  <bruno@clisp.org>
92735         * lib/c-stack.h (c_stack_action): Add documentation.
92736         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92738 2008-07-20  Bruno Haible  <bruno@clisp.org>
92740         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92741         * modules/readlink (License): Likewise.
92743 2008-07-17  Eric Blake  <ebb9@byu.net>
92745         * modules/c-stack (Link): Fix typo.
92747         Make c-stack use libsigsegv, when available.
92748         * modules/c-stack (Depends-on): Add libsigsegv.
92749         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92750         needed.
92751         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92752         (segv_handler, overflow_handler, c_stack_action)
92753         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92754         implementation when libsigsegv is available, but only when using
92755         the library is necessary.
92756         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92757         comment, explaining why XSI check fails on Linux.
92758         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92759         * tests/test-c-stack2.sh: Tweak skip message.
92760         * NEWS: Document new link-time requirements.
92762 2008-07-16  Eric Blake  <ebb9@byu.net>
92764         c-stack: Expose false positives when not using libsigsegv.
92765         * modules/c-stack-tests (Files): Expand test.
92766         * tests/test-c-stack.c (main): Add means to conditionally trigger
92767         non-overflow SIGSEGV.
92768         * tests/test-c-stack2.sh: New file.
92770 2008-07-14  Bruno Haible  <bruno@clisp.org>
92772         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92773         Reported by Eric Blake.
92775 2008-07-14  Sam Steingold  <sds@gnu.org>
92776             Bruno Haible  <bruno@clisp.org>
92778         New module libsigsegv.
92779         * modules/libsigsegv: New file.
92780         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92781         modifications.
92782         * MODULES.html.sh (Signal handling): New section.
92784 2008-07-14  Bruno Haible  <bruno@clisp.org>
92786         * modules/unictype/ctype-* (Description): Add the word "function".
92787         Improves the resulting doc in MODULES.html.
92789 2008-07-12  Ben Pfaff  <blp@gnu.org>
92791         Add longlong module.
92792         * modules/longlong: New file.
92794 2008-07-12  Bruno Haible  <bruno@clisp.org>
92796         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92797         to empty.
92799 2008-07-10  Ben Pfaff  <blp@gnu.org>
92801         Add isnan module.
92802         * doc/posix-functions/isnan.texi: Mention new module.
92803         * lib/math.in.h: Define isnan macro if we have decided to replace
92804         it.
92805         * m4/isnan.m4: New file.
92806         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92807         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92808         also.
92809         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92810         redundancy.
92811         * m4/math_h.m4: Initialize and substitute variables for isnan
92812         module.
92813         * modules/isnan: New file.
92814         * modules/isnan-tests: New file.
92815         * modules/math: Add substitutions for new module.
92816         * tests/test-isnan.c: New file.
92817         * MODULES.html.sh: Mention new module.
92819 2008-07-10  Ben Pfaff  <blp@gnu.org>
92821         Add isnanf module.
92822         * lib/isnanf.m4: New file.
92823         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92824         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92825         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92826         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92827         * modules/isnanf: New file.
92828         * modules/isnanf-tests: New file.
92829         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92830         files.
92831         * tests/test-isnanf-nolibm.c: factored most of its contents into
92832         new file tests/test-isnanf.h.
92833         * tests/test-isnanf.h: New file.
92834         * tests/test-isnanf.c: New file.
92835         * MODULES.html.sh: Mention new module.
92836         * doc/glibc-functions/isnanf.texi: Mention new module.
92838 2008-07-10  Ben Pfaff  <blp@gnu.org>
92840         Add isnand module.
92841         * lib/isnand.h: New file.
92842         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92843         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92844         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92845         functionality also.
92846         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92847         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92848         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92849         * modules/isnand: New file.
92850         * modules/isnand-tests: New file.
92851         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92852         files.
92853         * tests/test-isnand-nolibm.c: factored most of its contents into
92854         new file tests/test-isnand.h.
92855         * tests/test-isnand.h: New file.
92856         * tests/test-isnand.c: New file.
92857         * MODULES.html.sh: Mention new module.
92859 2008-07-10  Ben Pfaff  <blp@gnu.org>
92861         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92862         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92863         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92864         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92865         * modules/isnanf-nolibm: Update references to renamed files.
92866         * modules/isnand-nolibm: Likewise.
92867         * modules/isnanf-nolibm-tests: Likewise.
92868         * modules/isnand-nolibm-tests: Likewise.
92869         * lib/frexp.c: Likewise.
92870         * lib/isfinite.c: Likewise.
92871         * lib/signbitd.c: Likewise.
92872         * lib/signbitf.c: Likewise.
92873         * lib/vasnprintf.c: Likewise.
92874         * tests/test-ceilf1.c: Likewise.
92875         * tests/test-ceilf2.c: Likewise.
92876         * tests/test-floorf1.c: Likewise.
92877         * tests/test-floorf2.c: Likewise.
92878         * tests/test-frexp.c: Likewise.
92879         * tests/test-round1.c: Likewise.
92880         * tests/test-round2.c: Likewise.
92881         * tests/test-roundf1.c: Likewise.
92882         * tests/test-strtod.c: Likewise.
92883         * tests/test-trunc1.c: Likewise.
92884         * tests/test-trunc2.c: Likewise.
92885         * tests/test-truncf1.c: Likewise.
92886         * tests/test-truncf2.c: Likewise.
92887         * NEWS: Mention the renamed header files.
92889 2008-07-11  Jim Meyering  <meyering@redhat.com>
92891         vc-list-files: make the last-resort awk code more portable
92892         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92893         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92894         does not support it.
92896 2008-07-10  Eric Blake  <ebb9@byu.net>
92898         Work with tar's bootstrap.
92899         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92900         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92901         an m4 comment.
92903 2008-07-09  Jim Meyering  <meyering@redhat.com>
92905         posix-shell.m4: fix typo that made this test malfunction
92906         * m4/posix-shell.m4: Remove capitalization in variable name.
92908 2008-07-08  Bruno Haible  <bruno@clisp.org>
92910         * m4/onceonly.m4: Update comments.
92911         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92913 2008-07-04  Jim Meyering  <meyering@redhat.com>
92915         * users.txt: Add vc-dwim.
92916         (bison, coreutils): Use the gitweb URL.
92918 2008-07-03  Jim Meyering  <meyering@redhat.com>
92920         * users.txt: Add libffcall.  From Sam Steingold.
92922 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92924         getdate.y: do not ignore TZ with relative day, month or year offset
92925         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92926         relative-date-handling, since otherwise, the latter would clobber the
92927         sole output (an updated Start value) of the tz-handling block.
92928         * tests/test-getdate.c: Tests for the fix
92930 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92932         Recognize 'foo_LIBRARIES += libgnu.a'.
92933         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92934         makefile snippet has already specified an installation location,
92935         also using '+='.
92937 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92939         getdate.y: factor out common actions
92940         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92941         Use them in place of open-coded actions.
92943 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92945         Add self-test for getdate module.
92946         * modules/getdate-tests: New file.
92947         * tests/test-getdate.c: New file.
92949 2008-06-29  Bruno Haible  <bruno@clisp.org>
92951         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92952         .gitignore.
92953         Reported by Sylvain Beucler <beuc@beuc.net>.
92955 2008-06-29  Bruno Haible  <bruno@clisp.org>
92957         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92958         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92960 2008-06-29  Bruno Haible  <bruno@clisp.org>
92962         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92963         EXTRA_DIST.
92964         Reported by Sylvain Beucler <beuc@beuc.net>.
92966 2008-06-26  Jim Meyering  <meyering@redhat.com>
92968         make several modules depend on the "open" module
92969         This provides slightly increased consistency when opening-for-write
92970         the name of a non-directory spelled with a trailing slash.
92971         * modules/chdir-safer: Likewise.
92972         * modules/chown: Likewise.
92973         * modules/clean-temp: Likewise.
92974         * modules/copy-file: Likewise.
92975         * modules/fchdir: Likewise.
92976         * modules/fcntl-safer: Likewise.
92977         * modules/pipe: Likewise.
92978         * modules/utime: Likewise.
92979         Prompted by Eric Blake and Bruno Haible.
92981 2008-06-24  Andreas Schwab  <schwab@suse.de>
92983         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92984         literals can be used as initializers for global variables.
92986 2008-06-23  Eric Blake  <ebb9@byu.net>
92988         Make gnulib-cache.m4 easier to diff.
92989         * gnulib-tool (func_import): Allow newlines when reading cached
92990         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92992 2008-06-23  Bruno Haible  <bruno@clisp.org>
92994         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92995         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92996         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92997         m4/signalblocking.m4.
92998         (gl_PREREQ_SIGACTION): Don't invoke it.
92999         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
93000         gl_PREREQ_SIG_HANDLER_H.
93001         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93002         Don't check for sigaction here.
93004 2008-06-23  Bruno Haible  <bruno@clisp.org>
93006         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
93007         (install_handlers): Don't set the SA_RESETHAND flag.
93009 2008-06-23  Bruno Haible  <bruno@clisp.org>
93011         * m4/sigaction.m4: Comment fixes.
93012         * lib/signal.in.h: Likewise.
93014 2008-06-23  Eric Blake  <ebb9@byu.net>
93016         Fix typo.
93017         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
93019         Avoid SA_ namespace.
93020         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
93021         Reported by Ralf Wildenhues.
93023         Avoid test failure due to SA_RESTORER.
93024         * tests/test-sigaction.c (SA_MASK): New macro.
93025         (main): Avoid failing due to extension flags being set.
93026         Reported by Jim Meyering.
93028         Revert use of sig-handler.h in sigprocmask.c.
93029         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
93030         it requires the existence of struct sigaction.
93031         * lib/sigprocmask.c (handler_t): Restore typedef.
93032         (rpl_signal, old_handlers): Use local type.
93034 2008-06-22  Bruno Haible  <bruno@clisp.org>
93036         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
93037         conditionally.
93038         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93040 2008-06-22  Bruno Haible  <bruno@clisp.org>
93042         * doc/posix-functions/siginterrupt.texi: Move note.
93044         * lib/signal.in.h (SA_RESTART): New macro.
93045         * lib/sigaction.c: Update comment.
93047         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
93049         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
93050         (gl_PREREQ_SIGPROCMASK): Invoke it.
93051         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
93053         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
93055         * lib/sigprocmask.c: Update a comment.
93057 2008-06-21  Eric Blake  <ebb9@byu.net>
93059         Use sigaction module rather than signal().
93060         * modules/c-stack (Depends-on): Add sigaction.
93061         * modules/fatal-signal (Depends-on): Likewise.
93062         * modules/nanosleep (Depends-on): Likewise.
93063         * modules/sigprocmask (Files): Add sig-handler.h.
93064         * modules/sigaction (Files): Likewise.
93065         * lib/sig-handler.h (get_handler): New file, suggested by Paul
93066         Eggert.
93067         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
93068         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
93069         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
93070         (init_fatal_signals): Likewise.
93071         * lib/nanosleep.c (rpl_nanosleep): Likewise.
93072         (siginterrupt): Delete fallback.
93073         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
93074         instead.
93075         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
93076         siginterrupt.
93078         New module sigaction, for mingw.
93079         * modules/sigaction: New module...
93080         * modules/sigaction-tests: ...and its test.
93081         * m4/sigaction.m4: New file.
93082         * lib/sigaction.c: Likewise.
93083         * tests/test-sigaction.c: Likewise.
93084         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
93085         * modules/signal (Makefile.am): Likewise.
93086         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
93087         needed.
93088         * doc/posix-headers/signal.texi (signal.h): Mention provided
93089         types.
93090         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
93091         that sigaction is preferable.
93092         * doc/posix-functions/sigaction.texi (sigaction): Mention new
93093         module.
93094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93095         sigaction.
93097         Improve robustness of sigprocmask by overriding signal.
93098         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
93099         is in use.
93100         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
93101         (SIGKILL, SIGSTOP): Provide fallbacks.
93102         (rpl_signal): Implement.
93103         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
93104         signal can be called inside handlers.
93106         Fix nanosleep module on mingw.
93107         * modules/nanosleep (Depends-on): Add sys_select.
93108         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
93110         Fix licensing of sigprocmask.
93111         * modules/raise (License): Relicense as LGPL.
93113 2008-06-21  Bruno Haible  <bruno@clisp.org>
93115         * lib/propername.c (proper_name_utf8): Don't use the transliterated
93116         result if it contains question marks.
93117         Reported by Michael Geng <linux@michaelgeng.de>.
93119 2008-06-19  Bruno Haible  <bruno@clisp.org>
93121         Fix CVS-ism.
93122         * doc/gnulib.texi: Include updated-stamp.texi.
93123         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
93124         (updated-stamp.texi): New rule.
93125         (gnulib.info): Depend on it.
93126         * doc/.gitignore: Add updated-stamp.texi.
93127         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
93129 2008-06-19  Bruno Haible  <bruno@clisp.org>
93131         * doc/Makefile (gnulib.info): Update and simplify dependencies.
93132         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93134 2008-06-19  Eric Blake  <ebb9@byu.net>
93136         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
93137         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
93138         Reported by Stepan Kasal.
93140 2008-06-18  Bruno Haible  <bruno@clisp.org>
93142         * lib/fatal-signal.c (init_fatal_signals): Add comment.
93143         Reported by Eric Blake.
93145 2008-06-18  Eric Blake  <ebb9@byu.net>
93147         Work around cygwin 1.5.25 strsignal bug.
93148         * tests/test-strsignal.c: Allow for const char *.
93149         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
93151 2008-06-18  Simon Josefsson  <simon@josefsson.org>
93153         * users.txt: Update URL to article and add author/date
93154         information.
93156 2008-06-17  Bruno Haible  <bruno@clisp.org>
93158         New macro gl_DISABLE_THREADS.
93159         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
93160         if the user did not pass --enable-threads or --disable-threads option.
93161         (gl_DISABLE_THREADS): New macro.
93162         Reported by Eric Blake <ebb9@byu.net>.
93164 2008-06-17  Bruno Haible  <bruno@clisp.org>
93166         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
93167         when the macro ignores it.
93168         Based on a patch by Eric Blake <ebb9@byu.net>.
93170 2008-06-17  Bruno Haible  <bruno@clisp.org>
93172         * modules/tls (License): Change to LGPLv2+.
93173         Reported by Eric Blake.
93175 2008-06-17  Eric Blake  <ebb9@byu.net>
93177         Simplify c-stack prerequisites.
93178         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
93179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
93180         no longer requires <ucontext.h> to exist.  Optimize setrlimit
93181         check.
93182         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
93183         <sys/resource.h>.
93185         Move c-stack test into testsuite.
93186         * modules/c-stack-tests: New file.
93187         * lib/c-stack.c [DEBUG]: Move test program...
93188         * tests/test-c-stack.c: ...into this new file.  Skip rather than
93189         fail test if sigaltstack is lacking.
93190         * tests/test-c-stack.sh: New driver file.
93192 2008-06-16  Eric Blake  <ebb9@byu.net>
93194         Use raise module consistently.
93195         * modules/fatal-signal (Depends-on): Add raise.
93196         * modules/sigprocmask (Depends-on): Likewise.
93197         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
93198         * lib/sigprocmask.c (sigprocmask): Likewise.
93199         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93200         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
93202         Fix compliance bug in sigpending.
93203         * lib/sigprocmask.c (sigpending): Return pending array via
93204         parameter, not return value.
93206 2008-06-14  Eric Blake  <ebb9@byu.net>
93208         Improve obstack-printf test code.
93209         * tests/test-obstack-printf.c (test_function): Fix comment, and
93210         simplify usage of obstack_* in macros.  Add a test for coverage.
93211         Reported by Bruno Haible.
93213 2008-06-14  Bruno Haible  <bruno@clisp.org>
93215         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
93216         array size as a constant, not as a const variable.
93217         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
93218         AC_USE_SYSTEM_EXTENSIONS.
93219         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
93220         Test whether the obstack_printf function actually exists.
93221         * modules/obstack-printf (Depends-on): Add extensions.
93222         (Include): Remove obstack.h.
93223         * modules/obstack-printf-posix (Depends-on): Add extensions.
93224         (Include): Remove obstack.h.
93226 2008-06-13  Eric Blake  <ebb9@byu.net>
93228         Add obstack-printf and obstack-printf-posix modules.
93229         * modules/obstack-printf: New file.
93230         * modules/obstack-printf-posix: Likewise.
93231         * MODULES.html.sh (Misc): Mention them.
93232         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
93233         Likewise.
93234         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
93235         Likewise.
93236         * modules/stdio (Makefile.am): Accomodate new modules.
93237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93238         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
93239         Declare.
93240         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
93241         functions.
93242         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
93243         (gl_REPLACE_OBSTACK_PRINTF): New macros
93244         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
93245         * tests/test-obstack-printf.c: New file.
93246         * modules/obstack-printf-tests: Likewise.
93247         * modules/obstack-printf-posix-tests: Likewise.
93249 2008-06-11  Bruno Haible  <bruno@clisp.org>
93251         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
93252         * lib/open.c: Include errno.h.
93253         (open): Fail when attempting to write to a file that has a trailing
93254         slash.
93255         * tests/test-open.c (main): Test against trailing slash bug.
93256         * doc/posix-functions/open.texi: Mention the trailing slash bug.
93258 2008-06-10  Bruno Haible  <bruno@clisp.org>
93260         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
93261         for $? to work inside the trap command, with various /bin/sh-s.
93262         * tests/test-vc-list-files-cvs.sh: Likewise.
93264 2008-06-10  Bruno Haible  <bruno@clisp.org>
93266         * lib/acl-internal.h: Don't include gettext.h here.
93267         * lib/set-mode-acl.c: Include gettext.h here.
93268         * lib/copy-acl.c: Likewise.
93270 2008-06-10  Bruno Haible  <bruno@clisp.org>
93272         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
93273         * lib/wait-process.c (wait_subprocess): Likewise.
93274         * lib/execute.h (execute): Add termsigp argument.
93275         * lib/execute.c (execute): Likewise.
93276         * lib/csharpcomp.c (compile_csharp_using_pnet,
93277         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
93278         * lib/csharpexec.c (execute_csharp_using_pnet,
93279         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
93280         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
93281         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
93282         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
93283         is_jikes_present): Update.
93284         * lib/javaexec.c (execute_java_class): Update.
93285         * lib/javaversion.c (execute_and_read_line): Update.
93286         * NEWS: Document the changes.
93287         Reported by Eric Blake.
93289 2008-06-10  Eric Blake  <ebb9@byu.net>
93291         Add missing include.
93292         * tests/test-strstr.c (includes): Add <signal.h>.
93293         * tests/test-strcasestr.c (includes): Likewise.
93294         * tests/test-memmem.c (includes): Likewise.
93296 2008-06-10  Bruno Haible  <bruno@clisp.org>
93298         * lib/wait-process.c (wait_subprocess): Add an assertion.
93300 2008-06-10  Bruno Haible  <bruno@clisp.org>
93302         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
93304 2008-06-10  Bruno Haible  <bruno@clisp.org>
93306         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
93307         using alarm().
93308         * tests/test-strcasestr.c (main): Likewise.
93309         * tests/test-strstr.c (main): Likewise.
93311 2008-06-09  Bruno Haible  <bruno@clisp.org>
93313         Work around the Solaris 10 ACE ACLs ABI change.
93314         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
93315         declare if ACL_NO_TRIVIAL is present.
93316         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
93317         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93318         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
93319         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
93320         define if ACL_NO_TRIVIAL is present.
93321         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
93322         and use the current ABI.
93323         (file_has_acl): Use same #if condition as elsewhere.
93324         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
93325         in use, and use the current ABI.
93326         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
93327         Reported by Jim Meyering.
93329 2008-06-09  Eric Blake  <ebb9@byu.net>
93331         Work around environments that (stupidly) ignore SIGALRM.
93332         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
93333         before using alarm().
93334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93336         Reported by Ian Beckwith <ianb@erislabs.net>.
93338         Produce autobuild blurb earlier in log.
93339         * modules/autobuild (configure.ac-early): Move AB_INIT here.
93341 2008-06-09  Jim Meyering  <meyering@redhat.com>
93342         and Ondřej Vašík  <ovasik@redhat.com>
93344         utimens.c: correct kernel bug work-around
93345         Ondřej Vašík found that the invalid return value of 280 indicates
93346         failure, not success, and the kernel bug we're trying to work
93347         around affects not just the utimensat call, but also the fallback
93348         futimens call.
93349         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
93350         not success.
93351         [HAVE_FUTIMENS]: Use the same work-around, here.
93353 2008-06-09  Jim Meyering  <meyering@redhat.com>
93355         add more guards around definition of ACE_-related code
93356         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
93357         ALLOW and ACE_OWNER are also defined.
93359 2008-06-08  Bruno Haible  <bruno@clisp.org>
93361         * lib/acl-internal.h: Add me as co-author.
93362         * lib/file-has-acl.c: Likewise.
93363         * lib/set-mode-acl.c: Likewise.
93364         * lib/copy-acl.c: Likewise.
93366 2008-06-08  Bruno Haible  <bruno@clisp.org>
93368         Add support for AIX ACLs.
93369         * lib/acl-internal.h (acl_nontrivial): New declaration.
93370         * lib/file-has-acl.c (acl_nontrivial): New function.
93371         (file_has_acl): Add implementation using AIX 4 ACL API.
93372         * lib/set-mode-acl.c (qset_acl): Likewise.
93373         * lib/copy-acl.c (qcopy_acl): Likewise.
93375 2008-06-08  Bruno Haible  <bruno@clisp.org>
93377         Add support for HP-UX ACLs.
93378         * lib/acl-internal.h (acl_nontrivial): New declaration.
93379         * lib/file-has-acl.c (acl_nontrivial): New function.
93380         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93381         * lib/set-mode-acl.c (qset_acl): Likewise.
93382         * lib/copy-acl.c (qcopy_acl): Likewise.
93384 2008-06-08  Bruno Haible  <bruno@clisp.org>
93386         Add support for Cygwin ACLs.
93387         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93388         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93389         the chmod_or_fchmod call.
93390         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93392 2008-06-08  Bruno Haible  <bruno@clisp.org>
93394         Fix bug with setuid modes in Solaris 10+ code.
93395         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93396         succeeded, when the mode contains some special bits.
93398 2008-06-08  Bruno Haible  <bruno@clisp.org>
93400         Add support for Solaris 7..10 ACLs.
93401         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93402         declarations.
93403         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93404         functions.
93405         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93406         * lib/set-mode-acl.c (qset_acl): Likewise.
93407         * lib/copy-acl.c (qcopy_acl): Likewise.
93409 2008-06-08  Bruno Haible  <bruno@clisp.org>
93411         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93412         declaration.
93413         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93414         (acl_access_nontrivial): Remove MacOS X case.
93415         (file_has_acl): Use acl_extended_nontrivial.
93416         * lib/copy-acl.c (qcopy_acl): Likewise.
93418 2008-06-08  Bruno Haible  <bruno@clisp.org>
93420         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93422 2008-06-08  Jim Meyering  <meyering@redhat.com>
93424         * modules/acl (Maintainer): Add Bruno Haible.
93426 2008-06-07  Bruno Haible  <bruno@clisp.org>
93428         Improve support for Tru64 ACLs.
93429         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93430         ACL on OSF/1.
93432 2008-06-07  Bruno Haible  <bruno@clisp.org>
93434         Add support for MacOS X ACLs.
93435         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93436         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93437         * lib/set-mode-acl.c (qset_acl): Likewise.
93438         * lib/copy-acl.c (qcopy_acl): Likewise.
93440 2008-06-07  Bruno Haible  <bruno@clisp.org>
93442         Fix memory leak introduced on 2008-05-22.
93443         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93444         use.
93446 2008-06-07  Bruno Haible  <bruno@clisp.org>
93448         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93449         to construct an empty ACL.
93451 2008-06-07  Bruno Haible  <bruno@clisp.org>
93453         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93454         precisely.
93455         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93457 2008-06-07  Bruno Haible  <bruno@clisp.org>
93459         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93460         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93462 2008-06-07  Bruno Haible  <bruno@clisp.org>
93464         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93465         regardless of POSIX.
93466         * doc/posix-functions/_longjmp.texi: Likewise.
93467         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93468         SystemV platform in this case.
93470 2008-06-06  Eric Blake  <ebb9@byu.net>
93472         Document abort() bugs.
93473         * doc/posix-functions/abort.texi (abort): Mention anomalies.
93475         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
93476         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
93477         sigsetjmp.
93478         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
93479         siglongjmp, but only as a macro.
93480         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
93481         is obsolete.
93482         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
93484         Tweak documentation to cover cygwin argz bugs.
93485         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
93486         argz bug fix; no code change needed since no cygwin releases
93487         occurred between the last fix and the bug being tested.
93488         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
93489         module and recently fixed cygwin bugs.
93490         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
93491         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
93492         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
93493         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
93494         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
93495         Likewise.
93496         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
93497         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
93498         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
93499         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
93500         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
93501         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
93502         Likewise.
93504         Avoid gcc warning on cygwin.
93505         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
93506         !ACL_NO_TRIVIAL]: Avoid unused variable.
93508 2008-06-05  Eric Blake  <ebb9@byu.net>
93510         Be tolerant of UNKNOWN version in gnulib-tool test dir.
93511         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
93512         git-version-gen fails to come up with a version.
93513         Reported by Simon Josefsson.
93515 2008-06-05  Jim Meyering  <meyering@redhat.com>
93516             Paul Eggert  <eggert@cs.ucla.edu>
93518         utimens.c: work around a probable Linux kernel bug
93519         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
93520         appears to be a kernel bug that causes utimensat to return 280
93521         instead of 0, indicating success.
93523 2008-06-04  Bruno Haible  <bruno@clisp.org>
93525         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
93526         2008-06-01 commit.
93528 2008-06-04  Bruno Haible  <bruno@clisp.org>
93530         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
93531         * lib/file-has-acl.c (acl_access_nontrivial): New function.
93532         (file_has_acl): Use it. Save errno afterwards.
93533         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
93535 2008-06-03  Bruno Haible  <bruno@clisp.org>
93537         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
93538         draft code. Simplify #ifs.
93539         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
93540         Put Solaris code after POSIX-draft code. Fix comments regarding
93541         Solaris 10, HP-UX. Mention Cygwin.
93542         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
93544 2008-06-03  Eric Blake  <ebb9@byu.net>
93546         Provide fallback for older kernels.
93547         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
93548         Provide runtime fallback if kernel lacks support.
93549         Reported by Mike Frysinger.
93551 2008-06-02  Bruno Haible  <bruno@clisp.org>
93553         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
93554         it exists.
93556 2008-06-02  Bruno Haible  <bruno@clisp.org>
93558         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
93559         * lib/copy-acl.c (qcopy_acl): Update comment.
93561 2008-06-02  Bruno Haible  <bruno@clisp.org>
93563         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
93564         like ACL APIs.
93566 2008-06-02  Bruno Haible  <bruno@clisp.org>
93568         * tests/test-file-has-acl.sh: Use different code for Cygwin.
93569         * tests/test-set-mode-acl.sh: Likewise.
93570         * tests/test-copy-acl.sh: Likewise.
93571         * tests/test-copy-file.sh: Likewise.
93573 2008-06-02  Bruno Haible  <bruno@clisp.org>
93575         * tests/test-file-has-acl.sh: Remove unused code.
93577 2008-06-01  Bruno Haible  <bruno@clisp.org>
93579         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
93580         (copy_acl): Just a wrapper around qcopy_acl that emits the error
93581         messages.
93582         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
93584 2008-06-01  Bruno Haible  <bruno@clisp.org>
93586         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
93587         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
93588         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
93589         APIs.
93590         * modules/acl-tests (configure.ac): Remove tests now contained in
93591         m4/acl.m4.
93593 2008-06-02  Jim Meyering  <meyering@redhat.com>
93595         announce-gen: use a better key-server host name
93596         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
93597         it may be more consistently reliable.  Suggested by Werner Koch
93598         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
93600 2008-06-01  Bruno Haible  <bruno@clisp.org>
93602         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
93603         Reported by Voroskoi Andras <voroskoi@gmail.com>.
93605 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
93607         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93609 2008-06-01  Bruno Haible  <bruno@clisp.org>
93611         New ACL tests.
93612         * tests/test-file-has-acl.sh: New file.
93613         * tests/test-file-has-acl.c: New file.
93614         * tests/test-set-mode-acl.sh: New file.
93615         * tests/test-set-mode-acl.c: New file.
93616         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
93617         * tests/test-copy-acl.c: New file.
93618         * modules/acl-tests: New file, based on modules/copy-file-tests.
93619         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
93620         (Depends-on): Add acl-tests.
93621         (configure.ac): Remove checks.
93622         (Makefile.am): Don't create test-sameacls program here any more.
93624 2008-06-01  Bruno Haible  <bruno@clisp.org>
93626         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
93627         * tests/test-sameacls.c: Include progname.h.
93628         (main): Invoke set_program_name. Portability fixes for MacOS X,
93629         Solaris, HP-UX.
93631 2008-06-01  Bruno Haible  <bruno@clisp.org>
93633         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
93634         function.
93635         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
93637 2008-06-01  Bruno Haible  <bruno@clisp.org>
93639         * modules/rpmatch (Depends-on): Add strdup.
93641 2008-06-01  Bruno Haible  <bruno@clisp.org>
93643         * lib/pipe.c: Include unistd-safer.h.
93644         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
93645         * modules/pipe (Depends-on): Add unistd-safer.
93647 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93649         * modules/autobuild (configure.ac): Call AB_INIT.
93651 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93653         * tests/test-getaddrinfo.c: Don't print debug messages by default.
93654         Suggested by Bruno Haible <bruno@clisp.org>.
93656 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93658         * tests/test-base64.c: Cast size_t to unsigned long when invoking
93659         printf.  Use %lu instead of %d.  Reported by Bruno Haible
93660         <bruno@clisp.org>.
93662 2008-05-29  Eric Blake  <ebb9@byu.net>
93664         Prefer new POSIX 200x interfaces over futimesat.
93665         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
93666         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
93667         when available.
93668         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
93670 2008-05-28  Bruno Haible  <bruno@clisp.org>
93672         * modules/stpcpy (License): Change to LGPLv2+.
93673         Requested by David Lutterkort <dlutter@redhat.com>.
93675 2008-05-27  Bruno Haible  <bruno@clisp.org>
93677         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
93678         current mingw.
93679         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93681 2008-05-27  Bruno Haible  <bruno@clisp.org>
93683         * modules/iconv_open (Link): New section, from module 'iconv'.
93684         * modules/striconv (Link): Likewise.
93685         * modules/striconveh (Link): Likewise.
93686         * modules/xstriconv (Link): Likewise.
93687         * modules/unicodeio (Link): Likewise.
93688         * modules/propername (Link): Likewise.
93689         Reported by Jim Meyering.
93691 2008-05-26  Jim Meyering  <meyering@redhat.com>
93693         sha256: do not artificially restrict buffer length to be < 2^32
93694         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93695         uint32_t to size_t.
93696         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93697         to match.
93699         avoid unaligned access errors, e.g., on sparc
93700         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93701         direct access through a possibly-unaligned uint64* pointer.
93702         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93703         direct access through a possibly-unaligned uint32* pointer.
93704         Prompted by this patch from Tom "spot" Callaway:
93705         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93707         sha512.c: fix typo in comment
93708         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93710 2008-05-25  Bruno Haible  <bruno@clisp.org>
93712         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93713         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93714         (Makefile.am): Update lib_SOURCES.
93716 2008-05-25  Bruno Haible  <bruno@clisp.org>
93718         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93720 2008-05-25  Jim Meyering  <meyering@redhat.com>
93722         useless-if-before-free: freed expr may have white-space differences
93723         * build-aux/useless-if-before-free: Recognize cases in which the
93724         freed expression differs from the tested one in embedded white
93725         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93726         $1 was used, so we can't make any regexp shy.  Improved tests now
93727         detect this.
93729         useless-if-before-free: accept white space in the expression.
93730         * build-aux/useless-if-before-free: For now, any white space
93731         in the expression must be identical in the free argument.
93733         useless-if-before-free: efficiency tweak
93734         * build-aux/useless-if-before-free: Make the expression-matching
93735         regexp "shy".
93736         Make the *outer* regexp shy, not the expr-matching one.
93738         update code-in-comment to accept cast of free arg
93739         * build-aux/useless-if-before-free: Update regexp.
93741 2008-05-25  Bruno Haible  <bruno@clisp.org>
93743         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93744         * modules/copy-file-tests (Files, Makefile.am): Update.
93745         * tests/test-copy-file.c (func_test_copy): Update.
93747 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93749         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93751 2008-05-23  Bruno Haible  <bruno@clisp.org>
93753         Improve support for ACLs on OSF/1.
93754         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93755         Remove fallback for unknown flavors of ACLs.
93757 2008-05-22  Bruno Haible  <bruno@clisp.org>
93759         Add support for ACLs on OSF/1.
93760         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93761         replacements.
93762         (acl_free_text): New macro fallback.
93763         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93764         acl_free.
93765         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93766         acl_free_text function. Require AC_C_INLINE.
93768 2008-05-22  Bruno Haible  <bruno@clisp.org>
93770         Make copy_acl work on MacOS X 10.5.
93771         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93772         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93773         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93774         If MODE_INSIDE_ACL, don't assume that every system has the same text
93775         representation for ACLs as FreeBSD.
93776         * lib/copy-acl.c (copy_acl): Add support for platforms with
93777         !MODE_INSIDE_ACL.
93778         * lib/file-has-acl.c (file_has_acl): Likewise.
93779         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93780         FreeBSD, MacOS X, or IRIX, respectively.
93782 2008-05-22  Bruno Haible  <bruno@clisp.org>
93784         * lib/acl.h: Don't include <sys/acl.h>.
93785         (GETACLCNT): Move fallback to lib/acl-internal.h.
93786         * lib/acl-internal.h: Include <sys/acl.h> here.
93787         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93789 2008-05-22  Bruno Haible  <bruno@clisp.org>
93791         Split off copy_acl function to separate file.
93792         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93793         * lib/acl.c (copy_acl): Moved function to separate file.
93794         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93795         * modules/acl (Files): Add lib/copy-acl.c.
93796         (Makefiles.am): Augment lib_SOURCES.
93798 2008-05-22  Bruno Haible  <bruno@clisp.org>
93800         * modules/copy-file-tests: New file.
93801         * tests/test-copy-file.sh: New file.
93802         * tests/test-copy-file.c: New file.
93803         * tests/test-copy-file-sameacls.c: New file.
93805 2008-05-22  Eric Blake  <ebb9@byu.net>
93807         Avoid gcc warning.
93808         * tests/test-memcmp.c (main): Pass NULL indirectly.
93810 2008-05-21  Bruno Haible  <bruno@clisp.org>
93812         Add reference doc about ACLs.
93813         * doc/acl-resources.txt: New file.
93814         * doc/acl-cygwin.txt: New file.
93816 2008-05-21  Bruno Haible  <bruno@clisp.org>
93818         Avoid one more warning from gcc.
93819         * lib/vasnprintf.c (IF_LINT): Update comments.
93820         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93822 2008-05-21  Jim Meyering  <meyering@redhat.com>
93824         avoid a warning from gcc
93825         * lib/vasnprintf.c (IF_LINT): Define.
93826         (scale10_round_decimal_long_double):
93827         Use it to avoid a "may be used uninitialized" warning.
93828         (scale10_round_decimal_double): Likewise.
93830 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93832         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93833         declared.
93835 2008-05-20  Bruno Haible  <bruno@clisp.org>
93837         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93838         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93840 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93842         * modules/memcmp-tests: New file.
93843         * tests/test-memcmp.c: New file.
93845 2008-05-19  Bruno Haible  <bruno@clisp.org>
93847         * modules/propername (Notice, configure.ac): Put quoted "..." into
93848         --keyword option.
93849         * lib/propername.h: Update comments accordingly.
93850         Reported by Eric Blake.
93852 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93854         * modules/getpass-gnu (Depends-on): Add fseeko.
93856 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93858         * modules/base64-tests: New file.
93860 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93862         * lib/base64.c (base64_decode_ctx): If a decode context structure
93863         was passed in use it to ignore newlines.  If a context structure
93864         was _not_ passed in, continue to treat newlines as garbage (this
93865         is the historical behavior).  Formerly base64_decode.
93866         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93867         takes a decode context structure.
93868         * lib/base64.h (base64_decode): Macro for four-argument calls.
93869         (base64_decode_alloc): Likewise.
93870         * lib/base64.c (base64_decode_ctx): If a decode context structure
93871         was passed in use it to ignore newlines.  If a context structure
93872         was _not_ passed in, continue to treat newlines as garbage (this
93873         is the historical behavior).  Formerly base64_decode.
93874         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93875         takes a decode context structure.
93876         * lib/base64.h (base64_decode): Macro for four-argument calls.
93877         (base64_decode_alloc): Likewise.
93879 2008-05-19  Jim Meyering  <meyering@redhat.com>
93881         avoid a warning from gcc
93882         * lib/trim.c (IF_LINT): Define.
93883         (trim2): Use it to avoid a "may be used uninitialized" warning.
93885         Fix doc typo.
93886         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93888 2008-05-19  Bruno Haible  <bruno@clisp.org>
93890         * doc/glibc-functions/getpass.texi: Document limits of other
93891         implementations.
93893 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93894             Bruno Haible <bruno@clisp.org>
93896         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93898 2008-05-18  Bruno Haible  <bruno@clisp.org>
93900         * modules/propername: New file, from GNU gettext.
93901         * lib/propername.h: New file, from GNU gettext.
93902         * lib/propername.c: New file, from GNU gettext.
93903         * MODULES.html.sh (Internationalization functions): Add propername.
93905 2008-05-16  Jim Meyering  <meyering@redhat.com>
93906             Bruno Haible  <bruno@clisp.org>
93908         Avoid some warnings from "gcc -Wshadow".
93909         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93911 2008-05-15  Eric Blake  <ebb9@byu.net>
93913         Extend previous patch to cygwin 1.7.0.
93914         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93915         fast implementation in cygwin >= 1.7.0.
93916         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93917         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93919 2008-05-15  Bruno Haible  <bruno@clisp.org>
93921         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93922         implementation in glibc >= 2.9.
93923         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93926 2008-05-15  Bruno Haible  <bruno@clisp.org>
93928         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93929         (Unicode string functions): Add unilbrk/*.
93930         Reported by Karl Berry.
93932 2008-05-15  Eric Blake  <ebb9@byu.net>
93934         Fix violation of <stdbool.h> replacement in regex.
93935         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93936         * lib/regexec.c (re_search_internal): Likewise.
93937         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93939 2008-05-15  Jim Meyering  <meyering@redhat.com>
93941         avoid distracting test output when git or cvs is not found
93942         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93943         * tests/test-vc-list-files-git.sh: Likewise.
93945 2008-05-15  Eric Blake  <ebb9@byu.net>
93947         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93948         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93949         glibc version.
93950         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93951         * doc/posix-functions/strstr.texi (strstr): Likewise.
93952         * lib/str-two-way.h (MAX): Sychronize with glibc.
93954 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93956         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93957         opr.ctx_type.
93958         (calc_first): Initialize constraint field.
93959         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93960         Fix grammar.
93961         (duplicate_node): Merge constraint field for all node types.
93962         (calc_eclosure_iter): Look at constraint field for all node types.
93963         * lib/regex_internal.c (create_cd_newstate): Don't look at
93964         opr.ctx_type.
93966 2008-05-14  Bruno Haible  <bruno@clisp.org>
93968         Help GCC to do better code generation.
93969         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93970         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93971         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93972         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93973         Declare with attribute 'malloc' if supported.
93975 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93977         use "echo STR|wc -c" rather than unportable "expr length STR"
93978         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93979         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93981 2008-05-14  Jim Meyering  <meyering@redhat.com>
93983         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93984         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93985         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93986         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93987         via Collin Lasse.
93989 2008-05-14  Eric Blake  <ebb9@byu.net>
93991         Avoid quadratic growth in gl_LIBSOURCES.
93992         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93993         Suggested by Bruno Haible.
93995         Test xmemdup0.
93996         * modules/xmemdup0-tests: New file.
93997         * tests/test-xmemdup0.c: Likewise.
93999 2008-05-13  Eric Blake  <ebb9@byu.net>
94001         Split xmemdup0 into its own module.
94002         * modules/xmemdup0: New file.
94003         * lib/xmemdup0.h: Likewise.
94004         * lib/xmemdup0.c: Likewise.
94005         * MODULES.html.sh (Memory management functions): Add xmemdup0.
94006         * lib/xalloc.h (xmemdup0): Remove.
94007         * lib/xmalloc.c (xmemdup0): Likewise.
94009 2008-05-13  Eric Blake  <ebb9@byu.net>
94010             Bruno Haible  <bruno@clisp.org>
94012         Reduce number of forks required during autoconf.
94013         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
94014         and gl_LIBSOURCES_DIR.
94015         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
94016         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
94017         m4_syscmd per file.
94018         <m4_foreach_w>: Move...
94019         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
94021 2008-05-13  Eric Blake  <ebb9@byu.net>
94023         * gnulib-tool: Fix various comment typos.
94025 2008-05-12  Bruno Haible  <bruno@clisp.org>
94027         Tailor the linebreaking algorithm.
94028         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
94030 2008-05-12  Bruno Haible  <bruno@clisp.org>
94032         Update to Unicode 5.0.0.
94033         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94034         LBP_JV, LBP_JT. Redistribute values.
94035         (unilbrk_table): Change size.
94036         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
94037         Unicode TR#14 rev. 22.
94038         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94039         LBP_JV, LBP_JT. Redistribute values.
94040         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
94041         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
94042         Update.
94043         * lib/unilbrk/lbrkprop1.h: Regenerated.
94044         * lib/unilbrk/lbrkprop2.h: Regenerated.
94045         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
94046         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
94047         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
94048         Likewise.
94049         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
94050         Likewise.
94051         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
94052         result.
94053         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
94054         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
94055         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
94056         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
94057         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
94058         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
94060 2008-05-11  Bruno Haible  <bruno@clisp.org>
94062         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
94064 2008-05-11  Bruno Haible  <bruno@clisp.org>
94066         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
94067         * modules/unilbrk/gen-lbrk: New file.
94069 2008-05-11  Bruno Haible  <bruno@clisp.org>
94071         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
94072         * m4/sha512.m4 (gl_SHA512): Likewise.
94074 2008-05-11  Jim Meyering  <meyering@redhat.com>
94076         New modules: crypto/sha256, crypto/sha512 (from coreutils)
94077         * modules/crypto/sha256: New file.
94078         * modules/crypto/sha512: Likewise.
94079         * lib/sha256.c: Likewise.
94080         * lib/sha256.h: Likewise.
94081         * lib/sha512.c: Likewise.
94082         * lib/sha512.h: Likewise.
94083         * lib/u64.h: Likewise.
94084         * m4/sha256.m4: Likewise.
94085         * m4/sha512.m4: Likewise.
94086         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
94088 2008-05-10  Bruno Haible  <bruno@clisp.org>
94090         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
94091         (Input/Output <stdio.h>): Add xprintf.
94092         (Signal handling <signal.h>): Add strsignal.
94093         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
94094         (Core language properties): Add func.
94095         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
94096         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
94097         strings.
94098         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
94099         (Input/output): New section.
94100         (File system functions): Add openat-die, stat-macros.
94101         (Networking functions): Add sockets.
94102         (Unicode string functions): Add unictype/*.
94103         (Support for building libraries and executables): Add gperf.
94104         (Support for building documentation): Add agpl-3.0.
94105         (Misc): Add nocrash.
94107 2008-05-10  Bruno Haible  <bruno@clisp.org>
94109         * modules/unictype/gen-ctype: New file.
94111 2008-05-10  Jim Meyering  <meyering@redhat.com>
94113         Make chdir-safer.c more efficient on a system with no symlinks.
94114         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
94115         also if ELOOP is zero.  Suggested by Bruno Haible.
94117         Make chdir-safer.c slightly safer.
94118         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
94119         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
94121         Avoid compile failure on systems without ELOOP (like mingw).
94122         * lib/chdir-safer.c (ELOOP): Define if not already defined.
94123         Reported by Bruno Haible.
94125 2008-05-10  Bruno Haible  <bruno@clisp.org>
94127         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
94128         (is_utf8_encoding): Use a case-insensitive comparison.
94129         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
94130         streq.
94132 2008-05-10  Bruno Haible  <bruno@clisp.org>
94134         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
94135         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
94136         * lib/unilbrk/ulc-common.h (iconv_string_length,
94137         iconv_string_keeping_offsets): Remove declarations.
94138         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
94139         Don't include <iconv.h>, streq.h, xsize.h.
94140         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
94141         conversion.
94142         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
94143         <iconv.h>, streq.h, xsize.h.
94144         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
94145         conversion.
94146         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
94147         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
94148         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
94149         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
94151 2008-05-10  Bruno Haible  <bruno@clisp.org>
94153         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
94154         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
94156         * modules/unilbrk/u32-width-linebreaks-tests: New file.
94157         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
94159         * modules/unilbrk/u16-width-linebreaks-tests: New file.
94160         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
94162         * modules/unilbrk/u8-width-linebreaks-tests: New file.
94163         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
94165         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
94166         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
94168         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
94169         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
94171         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
94172         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
94174         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
94175         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
94177 2008-05-10  Bruno Haible  <bruno@clisp.org>
94179         Split up 'linebreak' module.
94180         * lib/unilbrk.h: New file, based on lib/linebreak.h.
94181         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
94182         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
94183         modifications.
94184         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
94185         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
94186         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
94187         lib/linebreak.c.
94188         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
94189         lib/linebreak.c.
94190         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
94191         lib/linebreak.c.
94192         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94193         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94194         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94195         lib/linebreak.c.
94196         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
94197         lib/linebreak.c.
94198         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
94199         lib/linebreak.c.
94200         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
94201         lib/linebreak.c.
94202         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
94203         lib/linebreak.c.
94204         * modules/unilbrk/base: New file.
94205         * modules/unilbrk/tables: New file.
94206         * modules/unilbrk/u8-possible-linebreaks: New file.
94207         * modules/unilbrk/u16-possible-linebreaks: New file.
94208         * modules/unilbrk/u32-possible-linebreaks: New file.
94209         * modules/unilbrk/ulc-common: New file.
94210         * modules/unilbrk/ulc-possible-linebreaks: New file.
94211         * modules/unilbrk/u8-width-linebreaks: New file.
94212         * modules/unilbrk/u16-width-linebreaks: New file.
94213         * modules/unilbrk/u32-width-linebreaks: New file.
94214         * modules/unilbrk/ulc-width-linebreaks: New file.
94215         * lib/linebreak.h: Remove file.
94216         * lib/linebreak.c: Remove file.
94217         * m4/linebreak.m4: Remove file.
94218         * modules/linebreak: Remove file.
94219         * NEWS: Mention the changes.
94221 2008-05-09  Eric Blake  <ebb9@byu.net>
94223         Add xmemdup0.
94224         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
94225         implementation.
94226         * lib/xmalloc.c (xmemdup0): New C implementation.
94228 2008-05-08  Bruno Haible  <bruno@clisp.org>
94230         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
94232 2008-05-07  Eric Blake  <ebb9@byu.net>
94234         Support cross-compilation of <wctype.h>.
94235         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
94236         AC_CACHE_CHECK.
94238 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
94240         * build-aux/vc-list-files: Add support for bzr.
94242 2008-05-03  Jim Meyering  <meyering@redhat.com>
94244         avoid failed assertion with tight malloc
94245         * tests/test-getndelim2.c: Correct an off-by-one assertion.
94247 2008-05-03  Simon Josefsson  <simon@josefsson.org>
94249         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
94250         are needed from arpa/inet.h.
94251         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
94252         Reported by Bruno Haible.
94254 2008-05-02  Jim Meyering  <meyering@redhat.com>
94256         avoid compilation error on FreeBSD 6
94257         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
94259 2008-05-01  Jim Meyering  <meyering@redhat.com>
94261         useless-if-before-free: correct --help's exit status description
94262         * build-aux/useless-if-before-free (usage): Like grep, exit 0
94263         for one or more matches, etc.  Reported by Bruno Haible.
94265         vc-list-files: make the stand-alone gnulib test work
94266         * modules/vc-list-files-tests (configure.ac):
94267         Define and AC_SUBST abs_aux_dir.
94268         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
94269         $(abs_top_srcdir) to each script and having each of them
94270         duplicate the work of setting PATH, set PATH here, using
94271         the new variable, abs_aux_dir instead.
94272         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
94273         * tests/test-vc-list-files-git.sh: Likewise.
94274         Reported by Bruno Haible.
94276 2008-05-01  Bruno Haible  <bruno@clisp.org>
94278         * lib/getndelim2.c (getndelim2): Fix newsize computation during
94279         reallocation. Rename 'done' to 'found_delimiter'.
94281 2008-05-01  Jim Meyering  <meyering@redhat.com>
94283         vc-list-files: accommodate /bin/sh like the one from Solaris 10
94284         * build-aux/vc-list-files: Use `...`, not $(...).
94286 2008-04-30  Jim Meyering  <meyering@redhat.com>
94288         add tests for vc-list-files
94289         * modules/vc-list-files-tests: New module.
94290         * tests/test-vc-list-files-cvs.sh: New file.
94291         * tests/test-vc-list-files-git.sh: New file.
94293         avoid a warning from gcc
94294         * lib/getndelim2.c (IF_LINT): Define.
94295         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
94297         vc-list-files: work properly with build-aux/cvsu, too
94298         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
94299         to all cvs-based clauses.
94301         vc-list-files: work properly in the CVS+awk case, too
94302         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
94304         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
94305         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
94306         take more than one file argument, so .  Add quotes, just in case $dir
94307         ever contains a shell meta-character.  Prompted by Soren Hansen in
94308         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
94310 2008-04-29  Eric Blake  <ebb9@byu.net>
94312         Optimize getndelim2 to use block operations when possible.
94313         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
94314         freadseek, and memchr2.
94315         * lib/getndelim2.c (getndelim2): Use them for block reads.
94317 2008-04-29  Bruno Haible  <bruno@clisp.org>
94319         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
94320         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94321         * modules/inet_ntop (Depends-on): Add extensions.
94322         * modules/inet_pton (Depends-on): Likewise.
94323         Reported by Simon Josefsson.
94325 2008-04-29  Jim Meyering  <meyering@redhat.com>
94327         When the is more than one match in a block, match all of them.
94328         * build-aux/useless-if-before-free: Iterate through each block
94329         until there are no more matches.
94331         Fix broken useless-if-before-free script.
94332         * build-aux/useless-if-before-free: Fix typo: missing "?" after
94333         the expression to match cast of argument to free-like function.
94335 2008-04-29  Eric Blake  <ebb9@byu.net>
94337         Use new header.
94338         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
94340 2008-04-29  Jim Meyering  <meyering@redhat.com>
94342         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
94343         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
94344         by gnulib to exist and to declare e.g., inet_ntop.
94345         Don't include "inet_ntop.h", now removed.
94347         * m4/arpa_inet_h.m4: Remove trailing blanks.
94349 2008-04-29  Eric Blake  <ebb9@byu.net>
94351         Silence valgrind on safe reads beyond potential array bounds.
94352         * lib/rawmemchr.valgrind: New file.
94353         * lib/strchrnul.valgrind: Likewise.
94354         * modules/rawmemchr (Files): Distribute new file.
94355         * modules/strchrnul (Files): Likewise.
94356         Suggested by Bruno Haible.
94358 2008-04-29  Bruno Haible  <bruno@clisp.org>
94360         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
94361         (inet_ntop, inet_pton): Change portability warning's wording.
94362         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94363         Invoke gl_CHECK_NEXT_HEADERS.
94364         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94365         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94366         set ARPA_INET_H.
94367         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94368         * modules/arpa_inet (Description): No longer only for systems that
94369         lack it.
94370         (Depends-on): Add include_next.
94371         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94372         HAVE_ARPA_INET_H.
94374 2008-04-29  Jim Meyering  <meyering@redhat.com>
94376         * modules/mkdir (License): Re-license as LGPLv2+.
94378 2008-04-29  Bruno Haible  <bruno@clisp.org>
94380         * modules/rawmemchr (Maintainer): Set to Eric.
94381         * modules/strchrnul (Maintainer): Likewise.
94383 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94385         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94386         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94388         * modules/arpa_inet (arpa/inet.h): Use them.
94390 2008-04-28  Eric Blake  <ebb9@byu.net>
94392         Test getndelim2.
94393         * modules/getndelim2-tests: New file.
94394         * tests/test-getndelim2.c: Likewise.
94395         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94396         stream.
94397         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94399         * MODULES.html.sh: Document new module.
94401 2008-04-20  Bruno Haible  <bruno@clisp.org>
94403         * lib/c-stack.c (die): Use raise.
94404         * modules/c-stack (Depends-on): Add raise.
94406 2008-04-28  Bruno Haible  <bruno@clisp.org>
94408         Expect rpmatch to be declared.
94409         * lib/yesno.c (rpmatch): Remove declaration.
94411         Declare rpmatch.
94412         * lib/stdlib.in.h (rpmatch): New declaration.
94413         * lib/rpmatch.c: Include <stdlib.h> first.
94414         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94415         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94417         HAVE_RPMATCH.
94418         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94419         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94420         (Include): Set to <stdlib.h>.
94421         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94422         HAVE_RPMATCH.
94423         * NEWS: Document the change.
94425 2008-04-28  Bruno Haible  <bruno@clisp.org>
94427         Change rpmatch to use nl_langinfo when appropriate.
94428         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94429         (N_): New macro.
94430         (localized_pattern): New function/macro.
94431         (try): Remove match, nomatch arguments. Copy the pattern into safe
94432         memory before caching it.
94433         (rpmatch): Use localized_pattern. Add translator comments.
94434         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94435         Suggested by Eric Blake.
94436         * modules/rpmatch (Depends-on): Add stdbool.
94438 2008-04-28  Eric Blake  <ebb9@byu.net>
94440         Add rawmemchr module, matching glibc.
94441         * modules/string (Makefile.am): New indicator.
94442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94443         * lib/string.in.h (rawmemchr): Declare when appropriate.
94444         * modules/rawmemchr: New file.
94445         * m4/rawmemchr.m4: Likewise.
94446         * lib/rawmemchr.c: Likewise.
94447         * modules/rawmemchr-tests: Likewise.
94448         * tests/test-rawmemchr.c: Likewise.
94449         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94450         module.
94451         * modules/strchrnul (Depends-on): Add rawmemchr.
94452         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94454         Whitespace cleanup.
94455         * tests/test-strchrnul.c: Reindent.
94456         * lib/strchrnul.c: Likewise.
94458         Optimize and test strchrnul.
94459         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94460         * modules/strchrnul-tests: New file.
94461         * tests/test-strchrnul.c: Likewise.
94463         Remove intprops dependency.
94464         * modules/memchr (Depends-on): Remove intprops.
94465         * modules/memrchr (Depends-on): Likewise.
94466         * modules/memchr2 (Depends-on): Likewise.
94467         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94468         * lib/memrchr.c (__memrchr): Likewise.
94469         * lib/memrchr2.c (memchr2): Likewise.
94470         Reported by Simon Josefsson.
94472 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94474         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
94475         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94477 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94479         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
94481         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
94483         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
94485         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
94486         declarations.
94487         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
94489         * m4/inet_pton.m4: Don't check for header files.
94491         * m4/inet_ntop.m4: Don't check for header files.
94493 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94495         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
94496         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
94497         trigger for cygwin).
94498         Reported by Bruno Haible  <bruno@clisp.org>.
94500 2008-04-28  Bruno Haible  <bruno@clisp.org>
94502         * doc/posix-functions/strdup.texi: Mention mingw problem.
94504 2008-04-27  Bruno Haible  <bruno@clisp.org>
94506         * modules/stat-time-tests (Depends-on): Add sleep.
94507         * tests/test-stat-time.c (force_unlink): New function.
94508         (cleanup): Use it.
94509         (test_mtime): Remove the ctime related tests.
94510         (test_ctime): New function, containing the ctime related tests.
94511         (main): Call test_ctime, except on native Windows platforms.
94513 2008-04-27  Bruno Haible  <bruno@clisp.org>
94515         * lib/rpmatch.c (rpmatch): Add some comments.
94516         Reported by James Youngman <jay@gnu.org>.
94518 2008-04-27  Bruno Haible  <bruno@clisp.org>
94520         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
94521         quiet NaNs.
94523 2008-04-27  Bruno Haible  <bruno@clisp.org>
94525         Make test-yesno.sh work on mingw.
94526         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
94527         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
94528         (main): Set stdin to binary mode.
94529         * modules/yesno-tests (Depends-on): Add binary-io.
94531 2008-04-27  Bruno Haible  <bruno@clisp.org>
94533         Fix 'isfinite' on x86, x86_64, ia64 platforms.
94534         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
94535         argument that lie outside the IEEE 854 domain.
94536         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
94537         (gl_ISFINITE): Use it.
94538         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
94540 2008-04-27  Bruno Haible  <bruno@clisp.org>
94542         Allow local renaming in config.h.
94543         * lib/memrchr.c (memrchr): Don't undefine outside libc.
94545 2008-04-27  Bruno Haible  <bruno@clisp.org>
94547         * lib/memchr.c (__memchr): Change type of 'i'.
94548         * lib/memchr2.c (memchr2): Likewise.
94550 2008-04-26  Eric Blake  <ebb9@byu.net>
94551         and Bruno Haible  <bruno@clisp.org>
94553         Optimize and test memrchr.
94554         * modules/memrchr (Depends-on): Add intprops.
94555         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
94556         * modules/memrchr-tests: New file.
94557         * tests/test-memrchr.c: New file.
94559 2008-04-26  Bruno Haible  <bruno@clisp.org>
94561         Add tentative support for DragonFly BSD.
94562         * lib/stdio-impl.h: Add macros for DragonFly BSD.
94563         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
94564         fp.
94565         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94566         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
94567         * lib/fpurge.c (fpurge): Likewise.
94568         * lib/freadable.c (freaadable): Likewise.
94569         * lib/freadahead.c (freadahead): Likewise.
94570         * lib/freading.c (freading): Likewise.
94571         * lib/freadptr.c (freadptr): Likewise.
94572         * lib/freadseek.c (freadptrinc): Likewise.
94573         * lib/fseeko.c (fseeko): Likewise.
94574         * lib/fseterr.c (fseterr): Likewise.
94575         * lib/fwritable.c (fwritable): Likewise.
94576         * lib/fwriting.c (fwriting): Likewise.
94578 2008-04-26  Bruno Haible  <bruno@clisp.org>
94580         * lib/stdio-impl.h: New file.
94581         * lib/fbufmode.c: Include stdio-impl.h.
94582         (fbufmode): Use fp_, remove redundant #defines.
94583         * lib/fflush.c: Include stdio-impl.h.
94584         (clear_ungetc_buffer): Remove redundant #defines.
94585         * lib/fpurge.c: Include stdio-impl.h.
94586         (fpurge): Remove redundant #defines.
94587         * lib/freadable.c: Include stdio-impl.h.
94588         (freadable): Remove redundant #defines.
94589         * lib/freadahead.c: Include stdio-impl.h.
94590         (freadahead): Remove redundant #defines.
94591         * lib/freading.c: Include stdio-impl.h.
94592         (freading): Remove redundant #defines.
94593         * lib/freadptr.c: Include stdio-impl.h.
94594         (freadptr): Remove redundant #defines.
94595         * lib/freadseek.c: Include stdio-impl.h.
94596         (freadptrinc): Remove redundant #defines.
94597         * lib/fseeko.c: Include stdio-impl.h.
94598         (rpl_fseeko): Remove redundant #defines.
94599         * lib/fseterr.c: Include stdio-impl.h.
94600         (fseterr): Remove redundant #defines.
94601         * lib/fwritable.c: Include stdio-impl.h.
94602         (fwritable: Remove redundant #defines.
94603         * lib/fwriting.c: Include stdio-impl.h.
94604         (fwriting): Remove redundant #defines.
94605         * modules/fbufmode (Files): Add lib/stdio-impl.h.
94606         * modules/fflush (Files): Likewise.
94607         * modules/fpurge (Files): Likewise.
94608         * modules/freadable (Files): Likewise.
94609         * modules/freadahead (Files): Likewise.
94610         * modules/freading (Files): Likewise.
94611         * modules/freadptr (Files): Likewise.
94612         * modules/freadseek (Files): Likewise.
94613         * modules/fseeko (Files): Likewise.
94614         * modules/fseterr (Files): Likewise.
94615         * modules/fwritable (Files): Likewise.
94616         * modules/fwriting (Files): Likewise.
94618 2008-04-26  Bruno Haible  <bruno@clisp.org>
94620         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94621         restore_seek_optimization, update_fpos_cache): New functions, extracted
94622         from rpl_fflush.
94623         (rpl_fflush): Use them.
94624         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
94625         (gl_REPLACE_FFLUSH): Use it.
94627 2008-04-26  Bruno Haible  <bruno@clisp.org>
94629         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
94630         on Solaris.
94631         * tests/test-xstrtoimax.sh: Likewise.
94632         * tests/test-xstrtoumax.sh: Likewise.
94633         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94635 2008-04-26  Bruno Haible  <bruno@clisp.org>
94637         * modules/memchr-tests: New file.
94638         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
94640 2008-04-26  Eric Blake  <ebb9@byu.net>
94641             Bruno Haible  <bruno@clisp.org>
94643         * lib/memchr.c: Include intprops.h.
94644         (__memchr): Optimize parallel detection of matching bytes. Rename local
94645         variables. Add explanatory comments.
94647 2008-04-26  Bruno Haible  <bruno@clisp.org>
94649         Fix module 'memchr', broken since 2000-10-28.
94650         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
94652 2008-04-26  Bruno Haible  <bruno@clisp.org>
94654         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
94655         comments.
94657 2008-04-25  Eric Blake  <ebb9@byu.net>
94659         Use native fstatat on cygwin 1.7.0.
94660         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
94661         first.
94663 2008-04-23  Eric Blake  <ebb9@byu.net>
94665         Improve memchr2 performance.
94666         * lib/memchr2.c (memchr2): Further optimize parallel detection of
94667         NUL bytes.
94668         * modules/memchr2 (Depends-on): Use intprops.h.
94670 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94672         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
94673         an inline function instead of a CPP macro.  Patch by Ben Pfaff
94674         <blp@cs.stanford.edu>.
94676 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94678         * lib/arpa_inet.in.h: New file.
94680         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94681         (Makefile.am): Sed in substitute header file.
94683         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94684         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94686         * modules/inet_ntop (configure.ac): Use
94687         gl_ARPA_INET_MODULE_INDICATOR.
94689         * modules/inet_pton (configure.ac): Use
94690         gl_ARPA_INET_MODULE_INDICATOR.
94692 2008-04-22  Jim Meyering  <meyering@redhat.com>
94694         * modules/verify (License): Re-license as LGPLv2+.
94696 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94698         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94699         parameter to void* as per POSIX standard (MinGW uses char*).
94701 2008-04-21  Bruno Haible  <bruno@clisp.org>
94703         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94704         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94705         Define to replacements if REPLACE_ISWCNTRL is 1.
94706         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94707         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94708         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94709         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94710         what it fixes.
94711         * doc/posix-functions/iswalpha.texi: Likewise.
94712         * doc/posix-functions/iswblank.texi: Likewise.
94713         * doc/posix-functions/iswcntrl.texi: Likewise.
94714         * doc/posix-functions/iswdigit.texi: Likewise.
94715         * doc/posix-functions/iswgraph.texi: Likewise.
94716         * doc/posix-functions/iswlower.texi: Likewise.
94717         * doc/posix-functions/iswprint.texi: Likewise.
94718         * doc/posix-functions/iswpunct.texi: Likewise.
94719         * doc/posix-functions/iswspace.texi: Likewise.
94720         * doc/posix-functions/iswupper.texi: Likewise.
94721         * doc/posix-functions/iswxdigit.texi: Likewise.
94722         Reported by Alain Guibert.
94724 2008-04-21  Bruno Haible  <bruno@clisp.org>
94726         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94727         Patch by Alain Guibert.
94729 2008-04-21  Bruno Haible  <bruno@clisp.org>
94731         Fix test failures on mingw.
94732         * tests/test-xstrtol.c (print_no_progname): New function.
94733         (main): Install it in error_print_progname hook.
94734         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94735         * tests/test-xstrtoimax.sh: Likewise.
94736         * tests/test-xstrtoumax.sh: Likewise.
94738 2008-04-21  Bruno Haible  <bruno@clisp.org>
94740         Fix test failure on mingw.
94741         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94743 2008-04-21  Bruno Haible  <bruno@clisp.org>
94745         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94746         Actually assign a value.
94748 2008-04-20  Bruno Haible  <bruno@clisp.org>
94750         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94751         take 2.
94752         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94753         'canonicalize-lgpl' module is also used.
94754         * lib/canonicalize-lgpl.c: Undo last change.
94755         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94757 2008-04-20  Bruno Haible  <bruno@clisp.org>
94759         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94760         config.h. Provide _mkdir based fallback for mingw.
94761         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94762         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94763         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94764         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94765         rather than defining mkdir in config.h.
94766         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94767         (gl_SYS_STAT_H_DEFAULTS): New macro.
94768         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94769         HAVE_IO_H any more.
94770         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94771         HAVE_DECL_MKDIR and HAVE_IO_H.
94773 2008-04-20  Bruno Haible  <bruno@clisp.org>
94775         * lib/isapipe.c: Port to native Windows platforms.
94777 2008-04-20  Bruno Haible  <bruno@clisp.org>
94779         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94781 2008-04-21  Eric Blake  <ebb9@byu.net>
94783         Work around preprocessors that don't handle UINTMAX_MAX.
94784         * lib/memchr2.c (memchr2): Avoid embedded #if.
94785         Reported by Alain Guibert, fix suggested by Bruno Haible.
94787 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94789         * doc/posix-functions/strftime.texi (strftime): Explain better
94790         Windows incompatibility.  Suggested by Micah Cowan
94791         <micah@cowan.name>.
94793 2008-04-20  Bruno Haible  <bruno@clisp.org>
94795         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94796         unistr/u8-mblen.
94798 2008-04-20  Bruno Haible  <bruno@clisp.org>
94800         Fix test failure on platforms with non-GNU iconv.
94801         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94802         (U_TO_U8): Use it, rather than u16_to_u8.
94803         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94804         units at the end of the input string.
94805         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94807 2008-04-20  Bruno Haible  <bruno@clisp.org>
94809         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94810         when the resulting length is 0.
94811         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94813 2008-04-20  Bruno Haible  <bruno@clisp.org>
94815         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94816         works.
94817         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94819 2008-04-20  Bruno Haible  <bruno@clisp.org>
94821         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94822         * modules/tsearch-tests (configure.ac): Test for initstate function.
94824 2008-04-20  Bruno Haible  <bruno@clisp.org>
94826         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94827         for nlink_t if missing.
94828         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94830 2008-04-19  Bruno Haible  <bruno@clisp.org>
94832         Work around snprintf bug on Linux libc5.
94833         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94835         gl_SNPRINTF_SIZE1.
94836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94837         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94838         that test failed.
94839         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94840         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94841         * modules/snprintf (Files): Add m4/printf.m4.
94842         * modules/vsnprintf (Files): Likewise.
94843         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94844         * doc/posix-functions/vsnprintf.texi: Likewise.
94846 2008-04-19  Bruno Haible  <bruno@clisp.org>
94848         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94849         from 0.0058 to less than 10^-7.
94851 2008-04-19  Bruno Haible  <bruno@clisp.org>
94853         Fix rounding when a precision is given.
94854         * lib/vasnprintf.c (is_borderline): New function.
94855         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94856         9...9x.
94857         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94858         %e, %g.
94859         * tests/test-vasprintf-posix.c (test_function): Likewise.
94860         * tests/test-snprintf-posix.h (test_function): Likewise.
94861         * tests/test-sprintf-posix.h (test_function): Likewise.
94862         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94863         * tests/test-printf-posix.h (test_function): Likewise.
94864         * tests/test-printf-posix.output: Update.
94865         Reported by John Darrington <john@darrington.wattle.id.au> via
94866         Ben Pfaff <blp@cs.stanford.edu>.
94868 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94870         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94871         Suggested by Bruno Haible <bruno@clisp.org>.
94873 2008-04-17  Bruno Haible  <bruno@clisp.org>
94875         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94876         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94877         implementation.
94878         Patch by Bruce Merry <bmerry@gmail.com>.
94880 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94882         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94883         doesn't work under Windows.
94885 2008-04-16  Bruno Haible  <bruno@clisp.org>
94887         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94888         New macros.
94889         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94890         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94891         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94892         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94893         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94894         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94895         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94896         macros.
94897         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94898         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94899         Northern Sotho, Uighur.
94901 2008-04-16  Bruno Haible  <bruno@clisp.org>
94903         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94904         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94905         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94906         Reported by Daniel Bergström <daniel@octocode.com>.
94908 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94909             Bruno Haible  <bruno@clisp.org>
94911         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94912         function.
94913         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94914         New functions, mostly extracted from gl_locale_name_default.
94915         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94917 2008-04-16  Eric Blake  <ebb9@byu.net>
94919         Adjust strtod detection to catch glibc 2.7 bug.
94920         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94921         Reported by John Gatewood Ham.
94923 2008-04-16  Bruno Haible  <bruno@clisp.org>
94925         Add tentative support for Linux libc5.
94926         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94927         * lib/fpurge.c (fpurge): Likewise.
94928         * lib/freadable.c (freadable): Likewise.
94929         * lib/freadahead.c (freadahead): Likewise.
94930         * lib/freading.c (freading): Likewise.
94931         * lib/freadptr.c (freadptr): Likewise.
94932         * lib/freadseek.c (freadptrinc): Likewise.
94933         * lib/fseeko.c (rpl_fseeko): Likewise.
94934         * lib/fseterr.c (fseterr): Likewise.
94935         * lib/fwritable.c (fwritable): Likewise.
94936         * lib/fwriting.c (fwriting): Likewise.
94937         Reported by Alain Guibert <alguibert+bts@free.fr>.
94939 2008-04-15  Bruno Haible  <bruno@clisp.org>
94941         * modules/mathl (configure.ac): Define module indicator.
94943 2008-04-15  Bruno Haible  <bruno@clisp.org>
94945         * lib/logl.c (logl): Remove unused variables.
94947 2008-04-15  Bruno Haible  <bruno@clisp.org>
94949         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94950         fails.
94952 2008-04-15  Bruno Haible  <bruno@clisp.org>
94954         * lib/trim.c (trim2): Fix argument of isspace() macro.
94956 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94958         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94959         to 0.
94960         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94962 2008-04-14  Bruno Haible  <bruno@clisp.org>
94964         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94965         AC_LANG_PROGRAM argument.
94966         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94967         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94969         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94970         * m4/math_h.m4 (gl_MATH_H): Likewise.
94971         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94972         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94973         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94974         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94975         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94976         * m4/regex.m4 (gl_REGEX): Likewise.
94977         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94978         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94980         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94981         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94982         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94986 2008-04-14  Jim Meyering  <meyering@redhat.com>
94988         test-strtod: fix typos: s/abs/fabs/
94989         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94991 2008-04-13  Bruno Haible  <bruno@clisp.org>
94993         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94994         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94995         module is also used and while not building the reloc-wrapper.
94997 2008-04-13  Bruno Haible  <bruno@clisp.org>
94999         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
95001 2008-04-13  Bruno Haible  <bruno@clisp.org>
95003         Fix AIX compilation failure introduced on 2008-04-02.
95004         * tests/test-frexp.c (exp): Undefine before redefining.
95005         * tests/test-frexpl.c (exp): Likewise.
95007 2008-04-13  Bruno Haible  <bruno@clisp.org>
95009         Work around a HP-UX stdio bug.
95010         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
95011         * tests/test-ftello.c (main): Likewise.
95012         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
95013         * doc/posix-functions/ftello.texi: Likewise.
95015 2008-04-13  Bruno Haible  <bruno@clisp.org>
95017         Make test-signbit pass on HP-UX/hppa.
95018         * tests/test-signbit.c (minus_zerol): New variable.
95019         (test_signbitl): Use it.
95021 2008-04-13  Bruno Haible  <bruno@clisp.org>
95023         Make truncl work on OSF/1 4.0.
95024         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
95025         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95026         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
95028         HAVE_DECL_TRUNCL.
95029         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
95030         HAVE_DECL_TRUNCL.
95031         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
95033 2008-04-13  Bruno Haible  <bruno@clisp.org>
95035         * lib/unictype.h: Remove trailing comma from enumeration definitions.
95037 2008-04-13  Bruno Haible  <bruno@clisp.org>
95039         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
95040         expression, so as to avoid HP-UX 11 cc compiler bug.
95042 2008-04-13  Bruno Haible  <bruno@clisp.org>
95044         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
95046 2008-04-13  Bruno Haible  <bruno@clisp.org>
95048         * lib/git-merge-changelog.c: Remove empty declaration outside of
95049         functions.
95051 2008-04-13  Bruno Haible  <bruno@clisp.org>
95053         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
95055 2008-04-13  Bruno Haible  <bruno@clisp.org>
95057         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
95058         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
95059         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
95060         also if it exists but lacks definitions of the SHUT_* macros.
95061         * modules/sys_socket (Description): Update.
95062         Reported by Elbert Pol <e.pol@chello.nl>.
95064 2008-04-13  Bruno Haible  <bruno@clisp.org>
95066         * lib/localcharset.c (OS2): Don't redefine if already defined.
95067         Reported by Elbert Pol <e.pol@chello.nl>.
95069 2008-04-13  Bruno Haible  <bruno@clisp.org>
95071         * lib/binary-io.h [__EMX__]: Include <io.h>.
95072         Reported by Elbert Pol <e.pol@chello.nl>.
95074 2008-04-12  Bruno Haible  <bruno@clisp.org>
95076         * lib/fpucw.h: Enable the definitions also for x86_64.
95077         Needed for NetBSD/x86_64.
95078         Reported by Thomas Klausner <tk@giga.or.at>.
95080 2008-04-12  Bruno Haible  <bruno@clisp.org>
95082         * tests/test-strtod.c: Include isnand.h.
95083         (main): Use isnand instead of isnan.
95084         Reported by Jim Meyering.
95086 2008-04-12  Bruno Haible  <bruno@clisp.org>
95088         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
95089         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95091 2008-04-12  Jim Meyering  <meyering@redhat.com>
95093         * m4/math_h.m4 (gl_MATH_H): Fix typos.
95095 2008-04-12  Bruno Haible  <bruno@clisp.org>
95097         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
95098         Reported by Elbert Pol <e.pol@chello.nl>.
95100 2008-04-12  Eric Blake  <ebb9@byu.net>
95102         Work around Solaris 10 math.h bug.
95103         * m4/math_h.m4 (gl_MATH_H): Check for bug.
95104         (gl_MATH_H_DEFAULTS): Set up default.
95105         * modules/math (Makefile.am): Replace new indicators.
95106         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
95107         * tests/test-math.c (main): Test this.
95108         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
95109         * doc/posix-headers/math.texi (math.h): Mention bug.
95110         Reported by Nelson H. F. Beebe and Jim Meyering.
95112 2008-04-11  Bruno Haible  <bruno@clisp.org>
95114         Adapt to future versions of Apple GCC.
95115         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
95116         Reported by Peter O'Gorman <peter@pogma.com>.
95118 2008-04-11  Bruno Haible  <bruno@clisp.org>
95120         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
95122 2008-04-11  Bruno Haible  <bruno@clisp.org>
95124         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
95126         * modules/getaddrinfo-tests (Makefile.am): Define
95127         test_getaddrinfo_LDADD.
95129 2008-04-11  Bruno Haible  <bruno@clisp.org>
95131         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
95132         (init): Fix syntax error.
95133         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
95134         is declared.
95136 2008-04-11  Bruno Haible  <bruno@clisp.org>
95138         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
95139         * modules/glob (Depends-on): Add stdbool.
95141 2008-04-11  Bruno Haible  <bruno@clisp.org>
95143         * lib/trim.c: Include <string.h>.
95145 2008-04-11  Eric Blake  <ebb9@byu.net>
95147         Avoid compile failure on OS/2.
95148         * lib/regex_internal.h (internal_function): Disable optimization
95149         on OS/2 (__EMX__), where it caused compiler error.
95150         Reported by Elbert Pol.
95152 2008-04-11  Bruno Haible  <bruno@clisp.org>
95154         Flush the standard error stream before aborting. Needed on mingw.
95155         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
95156         * tests/test-array_list.c (ASSERT): Likewise.
95157         * tests/test-array_oset.c (ASSERT): Likewise.
95158         * tests/test-avltree_list.c (ASSERT): Likewise.
95159         * tests/test-avltree_oset.c (ASSERT): Likewise.
95160         * tests/test-avltreehash_list.c (ASSERT): Likewise.
95161         * tests/test-binary-io.c (ASSERT): Likewise.
95162         * tests/test-byteswap.c (ASSERT): Likewise.
95163         * tests/test-c-ctype.c (ASSERT): Likewise.
95164         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
95165         * tests/test-c-strcasestr.c (ASSERT): Likewise.
95166         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
95167         * tests/test-c-strstr.c (ASSERT): Likewise.
95168         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
95169         * tests/test-canonicalize.c (ASSERT): Likewise.
95170         * tests/test-carray_list.c (ASSERT): Likewise.
95171         * tests/test-ceilf1.c (ASSERT): Likewise.
95172         * tests/test-ceilf2.c (ASSERT): Likewise.
95173         * tests/test-ceill.c (ASSERT): Likewise.
95174         * tests/test-count-one-bits.c (ASSERT): Likewise.
95175         * tests/test-fbufmode.c (ASSERT): Likewise.
95176         * tests/test-fflush2.c (ASSERT): Likewise.
95177         * tests/test-floorf1.c (ASSERT): Likewise.
95178         * tests/test-floorf2.c (ASSERT): Likewise.
95179         * tests/test-floorl.c (ASSERT): Likewise.
95180         * tests/test-fopen.c (ASSERT): Likewise.
95181         * tests/test-fpending.c (ASSERT): Likewise.
95182         * tests/test-fprintf-posix.c (ASSERT): Likewise.
95183         * tests/test-fpurge.c (ASSERT): Likewise.
95184         * tests/test-freadable.c (ASSERT): Likewise.
95185         * tests/test-freadahead.c (ASSERT): Likewise.
95186         * tests/test-freading.c (ASSERT): Likewise.
95187         * tests/test-freadptr.c (ASSERT): Likewise.
95188         * tests/test-freadptr2.c (ASSERT): Likewise.
95189         * tests/test-freadseek.c (ASSERT): Likewise.
95190         * tests/test-freopen.c (ASSERT): Likewise.
95191         * tests/test-frexp.c (ASSERT): Likewise.
95192         * tests/test-frexpl.c (ASSERT): Likewise.
95193         * tests/test-fseek.c (ASSERT): Likewise.
95194         * tests/test-fseeko.c (ASSERT): Likewise.
95195         * tests/test-fstrcmp.c (ASSERT): Likewise.
95196         * tests/test-ftell.c (ASSERT): Likewise.
95197         * tests/test-ftello.c (ASSERT): Likewise.
95198         * tests/test-func.c (ASSERT): Likewise.
95199         * tests/test-fwritable.c (ASSERT): Likewise.
95200         * tests/test-fwriting.c (ASSERT): Likewise.
95201         * tests/test-getdelim.c (ASSERT): Likewise.
95202         * tests/test-getline.c (ASSERT): Likewise.
95203         * tests/test-i-ring.c (ASSERT): Likewise.
95204         * tests/test-iconv-utf.c (ASSERT): Likewise.
95205         * tests/test-iconv.c (ASSERT): Likewise.
95206         * tests/test-isfinite.c (ASSERT): Likewise.
95207         * tests/test-isnand.c (ASSERT): Likewise.
95208         * tests/test-isnanf.c (ASSERT): Likewise.
95209         * tests/test-isnanl.h (ASSERT): Likewise.
95210         * tests/test-ldexpl.c (ASSERT): Likewise.
95211         * tests/test-linked_list.c (ASSERT): Likewise.
95212         * tests/test-linkedhash_list.c (ASSERT): Likewise.
95213         * tests/test-localename.c (ASSERT): Likewise.
95214         * tests/test-lseek.c (ASSERT): Likewise.
95215         * tests/test-mbscasecmp.c (ASSERT): Likewise.
95216         * tests/test-mbscasestr1.c (ASSERT): Likewise.
95217         * tests/test-mbscasestr2.c (ASSERT): Likewise.
95218         * tests/test-mbscasestr3.c (ASSERT): Likewise.
95219         * tests/test-mbscasestr4.c (ASSERT): Likewise.
95220         * tests/test-mbschr.c (ASSERT): Likewise.
95221         * tests/test-mbscspn.c (ASSERT): Likewise.
95222         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
95223         * tests/test-mbspbrk.c (ASSERT): Likewise.
95224         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
95225         * tests/test-mbsrchr.c (ASSERT): Likewise.
95226         * tests/test-mbsspn.c (ASSERT): Likewise.
95227         * tests/test-mbsstr1.c (ASSERT): Likewise.
95228         * tests/test-mbsstr2.c (ASSERT): Likewise.
95229         * tests/test-mbsstr3.c (ASSERT): Likewise.
95230         * tests/test-memchr2.c (ASSERT): Likewise.
95231         * tests/test-memmem.c (ASSERT): Likewise.
95232         * tests/test-open.c (ASSERT): Likewise.
95233         * tests/test-printf-frexp.c (ASSERT): Likewise.
95234         * tests/test-printf-frexpl.c (ASSERT): Likewise.
95235         * tests/test-printf-posix.c (ASSERT): Likewise.
95236         * tests/test-quotearg.c (ASSERT): Likewise.
95237         * tests/test-rbtree_list.c (ASSERT): Likewise.
95238         * tests/test-rbtree_oset.c (ASSERT): Likewise.
95239         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
95240         * tests/test-round1.c (ASSERT): Likewise.
95241         * tests/test-roundf1.c (ASSERT): Likewise.
95242         * tests/test-roundl.c (ASSERT): Likewise.
95243         * tests/test-signbit.c (ASSERT): Likewise.
95244         * tests/test-sleep.c (ASSERT): Likewise.
95245         * tests/test-snprintf-posix.c (ASSERT): Likewise.
95246         * tests/test-snprintf.c (ASSERT): Likewise.
95247         * tests/test-sprintf-posix.c (ASSERT): Likewise.
95248         * tests/test-stat-time.c (ASSERT): Likewise.
95249         * tests/test-strcasestr.c (ASSERT): Likewise.
95250         * tests/test-strerror.c (ASSERT): Likewise.
95251         * tests/test-striconv.c (ASSERT): Likewise.
95252         * tests/test-striconveh.c (ASSERT): Likewise.
95253         * tests/test-striconveha.c (ASSERT): Likewise.
95254         * tests/test-strsignal.c (ASSERT): Likewise.
95255         * tests/test-strstr.c (ASSERT): Likewise.
95256         * tests/test-strtod.c (ASSERT): Likewise.
95257         * tests/test-trunc1.c (ASSERT): Likewise.
95258         * tests/test-trunc2.c (ASSERT): Likewise.
95259         * tests/test-truncf1.c (ASSERT): Likewise.
95260         * tests/test-truncf2.c (ASSERT): Likewise.
95261         * tests/test-truncl.c (ASSERT): Likewise.
95262         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
95263         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
95264         * tests/test-vasnprintf.c (ASSERT): Likewise.
95265         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
95266         * tests/test-vasprintf.c (ASSERT): Likewise.
95267         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
95268         * tests/test-vprintf-posix.c (ASSERT): Likewise.
95269         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
95270         * tests/test-vsnprintf.c (ASSERT): Likewise.
95271         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
95272         * tests/test-wcwidth.c (ASSERT): Likewise.
95273         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
95274         * tests/test-xprintf-posix.c (ASSERT): Likewise.
95275         * tests/test-xvasprintf.c (ASSERT): Likewise.
95276         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
95277         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
95278         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
95279         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
95280         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
95281         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
95282         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
95283         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
95284         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
95285         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
95286         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
95287         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
95288         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
95289         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
95290         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
95291         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
95292         * tests/unictype/test-block_list.c (ASSERT): Likewise.
95293         * tests/unictype/test-block_of.c (ASSERT): Likewise.
95294         * tests/unictype/test-block_test.c (ASSERT): Likewise.
95295         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
95296         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
95297         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
95298         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
95299         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
95300         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
95301         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
95302         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
95303         * tests/unictype/test-combining.c (ASSERT): Likewise.
95304         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
95305         * tests/unictype/test-digit.c (ASSERT): Likewise.
95306         * tests/unictype/test-mirror.c (ASSERT): Likewise.
95307         * tests/unictype/test-numeric.c (ASSERT): Likewise.
95308         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
95309         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
95310         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
95311         * tests/unictype/test-scripts.c (ASSERT): Likewise.
95312         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
95313         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
95314         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
95315         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
95316         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
95317         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
95318         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
95319         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
95320         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
95321         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
95322         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
95323         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
95324         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
95325         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
95326         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
95327         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
95328         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
95329         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
95330         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
95331         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
95332         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
95333         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
95334         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
95335         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
95336         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
95337         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
95338         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
95339         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
95340         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
95341         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
95342         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
95343         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
95344         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
95345         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
95346         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
95347         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
95348         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
95349         Reported by Eric Blake.
95351 2008-04-11  Bruno Haible  <bruno@clisp.org>
95353         * lib/wchar.in.h: Tweak comment.
95355 2008-04-11  Bruno Haible  <bruno@clisp.org>
95357         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
95358         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
95359         gl_COMMON.
95360         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95362 2008-04-11  Bruno Haible  <bruno@clisp.org>
95364         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95366 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95368         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95369         of attempting to use non-existing /dev/*random.  Based on patch
95370         from Adam Strzelecki <ono@java.pl> in
95371         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95373 2008-04-08  Bruno Haible  <bruno@clisp.org>
95375         Add tentative support for emx+gcc.
95376         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95377         * lib/fpurge.c (fpurge): Likewise.
95378         * lib/freadable.c (freadable): Likewise.
95379         * lib/freadahead.c (freadahead): Likewise.
95380         * lib/freading.c (freading): Likewise.
95381         * lib/freadptr.c (freadptr): Likewise.
95382         * lib/freadseek.c (freadptrinc): Likewise.
95383         * lib/fseeko.c (rpl_fseeko): Likewise.
95384         * lib/fseterr.c (fseterr): Likewise.
95385         * lib/fwritable.c (fwritable): Likewise.
95386         * lib/fwriting.c (fwriting): Likewise.
95387         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95389 2008-04-09  Eric Blake  <ebb9@byu.net>
95391         Avoid some autoconf warnings.
95392         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95393         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95394         * m4/afs.m4 (gl_AFS): Likewise.
95395         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95396         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95397         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95398         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95399         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95400         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95401         (AC_CHECK_DECLS_ONCE): Likewise.
95402         Rename file...
95403         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95404         gnulib-tool requires autoconf 2.59 or better.
95405         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95407 2008-04-08  Eric Blake  <ebb9@byu.net>
95409         Use 'git describe --match' if present (added in git 1.5.5).
95410         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95411         if possible.
95413 2008-04-08  Bruno Haible  <bruno@clisp.org>
95415         Add tentative support for OpenServer.
95416         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95417         _ptr, _cnt.
95418         * lib/fpurge.c (fpurge): Likewise.
95419         * lib/freadable.c (freadable): Likewise.
95420         * lib/freadahead.c (freadahead): Likewise.
95421         * lib/freading.c (freading): Likewise.
95422         * lib/freadptr.c (freadptr): Likewise.
95423         * lib/freadseek.c (freadptrinc): Likewise.
95424         * lib/fseeko.c (rpl_fseeko): Likewise.
95425         * lib/fseterr.c (fseterr): Likewise.
95426         * lib/fwritable.c (fwritable): Likewise.
95427         * lib/fwriting.c (fwriting): Likewise.
95428         Reported by Roger Cornelius <rac@tenzing.org> and
95429         Brian K. White <brian@aljex.com>.
95431 2008-04-06  Jim Meyering  <meyering@redhat.com>
95433         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95435 2008-04-06  Bruno Haible  <bruno@clisp.org>
95437         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95438         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95439         * tests/test-printf-posix.sh: Likewise.
95440         * tests/test-vfprintf-posix.sh: Likewise.
95441         * tests/test-vprintf-posix.sh: Likewise.
95442         * tests/test-xprintf-posix.sh: Likewise.
95444 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95446         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95447         hide error from 'ls', needed on OS/2.
95448         Report by Elbert Pol <elbert.pol@gmail.com>.
95450 2008-04-04  Eric Blake  <ebb9@byu.net>
95452         Make test-fseeko.c failures meaningful.
95453         * tests/test-fseeko.c: Print line number on failure.
95454         * tests/test-fseek.c: Likewise.
95455         Reported by Nelson H. F. Beebe.
95457         Improve strtod bug detection check.
95458         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95459         required for Solaris 10.
95460         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95462 2008-04-04  Bruno Haible  <bruno@clisp.org>
95464         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95465         by m4/setenv.m4.
95467 2008-04-03  Eric Blake  <ebb9@byu.net>
95469         Ensure sane .version contents.
95470         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95471         version string.
95472         * build-aux/git-version-gen: Improve documentation.
95474         Make GNU make output nicer.
95475         * top/GNUmakefile [!_have-Makefile]: Add dependency on
95476         MAKECMDGOALS to enforce message for all command line targets.  Set
95477         srcdir for use in maint.mk.
95479         Another maintainer tweak.
95480         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
95481         a target that regenerates version.
95483 2008-04-03  Jim Meyering  <meyering@redhat.com>
95485         vc-list-files: don't cause coreutils "make po-check" failure
95486         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
95488 2008-04-03  Eric Blake  <ebb9@byu.net>
95490         Allow VPATH usage of vc-list-files.
95491         * build-aux/vc-list-files (scriptversion): Add timestamp.
95492         (options): Add --help, --version, -C.
95493         (CVS): Support installed cvsu.
95495 2008-04-02  Bruno Haible  <bruno@clisp.org>
95497         Avoid some "statement with no effect" warnings from gcc.
95498         * tests/test-wctype.c (main): Explicitly ignore unused values.
95499         Reported by Jim Meyering.
95501 2008-04-02  Jim Meyering  <meyering@redhat.com>
95503         Avoid some warnings from "gcc -Wshadow".
95504         * tests/test-frexp.c (exp): Define to a different identifier.
95505         * tests/test-frexpl.c (exp): Likewise.
95507 2008-04-03  Jim Meyering  <meyering@redhat.com>
95509         bootstrap: remove dangling *.[ch] symlinks from lib
95510         * build-aux/bootstrap [dangling symlink removal]: Move find's
95511         -depth option to precede all others, to avoid a warning.
95512         Remove *.[ch] files too, and from "$source_base" (usually lib/).
95514 2008-04-02  Bruno Haible  <bruno@clisp.org>
95516         Avoid some warnings from "gcc -Wshadow".
95517         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
95518         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
95519         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
95520         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
95521         Reported by Jim Meyering.
95523 2008-04-01  Bruno Haible  <bruno@clisp.org>
95525         Fix test to work on IRIX 6.5 with cc.
95526         * tests/test-math.c (numeric_equal): New function.
95527         (main): Use it.
95529 2008-04-01  Bruno Haible  <bruno@clisp.org>
95531         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
95533 2008-04-01  Bruno Haible  <bruno@clisp.org>
95535         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
95536         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95537         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
95538         (Depends-on): Remove math.
95540         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
95541         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95542         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
95543         (Depends-on): Remove math.
95545         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
95546         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95547         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
95548         (Depends-on): Remove math.
95549         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
95550         (Depends-on): Remove math.
95552         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
95553         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95554         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
95555         (Depends-on): Remove math.
95556         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
95557         (Depends-on): Remove math.
95559         * tests/test-round1.c: Include nan.h.
95560         (main): Use NaNd instead of NAN.
95561         * modules/round-tests (Files): Add tests/nan.h.
95563         * tests/test-trunc1.c: Include nan.h.
95564         (main): Use NaNd instead of NAN.
95565         * modules/trunc-tests (Files): Add tests/nan.h.
95567         * tests/test-roundf1.c: Include nan.h.
95568         (main): Use NaNf instead of NAN.
95569         * modules/roundf-tests (Files): Add tests/nan.h.
95571         * tests/test-truncf1.c: Include nan.h.
95572         (main): Use NaNf instead of NAN.
95573         * modules/truncf-tests (Files): Add tests/nan.h.
95575         * tests/test-ceilf1.c: Include nan.h.
95576         (main): Use NaNf instead of NAN.
95577         * modules/ceilf-tests (Files): Add tests/nan.h.
95579         * tests/test-floorf1.c: Include nan.h.
95580         (main): Use NaNf instead of NAN.
95581         * modules/floorf-tests (Files): Add tests/nan.h.
95583         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
95584         (main): Use NaNf instead of NAN.
95585         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
95587         * tests/test-isnand.c: Include nan.h instead of <math.h>.
95588         (main): Use NaNd instead of NAN.
95589         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
95591         * tests/test-frexp.c: Include nan.h.
95592         (main): Use NaNd instead of NAN.
95593         * modules/frexp-tests (Files): Add tests/nan.h.
95595         * lib/isnan.c: Don't include <math.h>.
95596         (FUNC): Don't use NAN macro.
95597         * modules/isnand-nolibm (Depends-on): Remove math.
95598         * modules/isnanf-nolibm (Depends-on): Remove math.
95599         * modules/isnanl (Depends-on): Remove math.
95600         * modules/isnanl-nolibm (Depends-on): Remove math.
95602         * tests/nan.h: New file.
95604 2008-04-01  Eric Blake  <ebb9@byu.net>
95606         Fix typos.
95607         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
95608         values to be the right type.
95610         For now, cater to gnulib strtod inaccuracies.
95611         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95612         fractional results.  While not as nice from a QoI perspective, it
95613         is a quicker patch than correctly implementing decimal to binary
95614         rounding.
95616 2008-03-31  Eric Blake  <ebb9@byu.net>
95618         Guarantee a definition of NAN.
95619         * lib/math.in.h (NAN): Define if missing.
95620         * tests/test-math.c (main): Test it.
95621         * doc/posix-headers/math.texi (math.h): Document this.
95622         * lib/isnan.c (rpl_isnand): Use it.
95623         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
95624         * tests/test-floorf1.c (NaN): Likewise.
95625         * tests/test-frexp.c (NaN): Likewise.
95626         * tests/test-isnand.c (NaN): Likewise.
95627         * tests/test-isnanf.c (NaN): Likewise.
95628         * tests/test-round1.c (NaN): Likewise.
95629         * tests/test-roundf1.c (NaN): Likewise.
95630         * tests/test-snprintf-posix.h (NaN): Likewise.
95631         * tests/test-sprintf-posix.h (NaN): Likewise.
95632         * tests/test-trunc1.c (NaN): Likewise.
95633         * tests/test-truncf1.c (NaN): Likewise.
95634         * tests/test-vasnprintf-posix.c (NaN): Likewise.
95635         * tests/test-vasprintf-posix.c (NaN): Likewise.
95636         * modules/isnand-nolibm (Depends-on): Add math.
95637         * modules/isnanf-nolibm (Depends-on): Likewise.
95638         * modules/isnanl (Depends-on): Likewise.
95639         * modules/isnanl-nolibm (Depends-on): Likewise.
95640         * modules/snprintf-posix-tests (Depends-on): Likewise.
95641         * modules/sprintf-posix-tests (Depends-on): Likewise.
95642         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
95643         * modules/vsprintf-posix-tests (Depends-on): Likewise.
95644         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
95645         * modules/vasprintf-posix-tests (Depends-on): Likewise.
95647 2008-03-31  Bruno Haible  <bruno@clisp.org>
95649         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
95650         * doc/posix-functions/strtod.texi: Likewise.
95652 2008-03-31  Bruno Haible  <bruno@clisp.org>
95654         * tests/test-strtod.c (main): Don't use C99 syntax.
95656 2008-03-31  Bruno Haible  <bruno@clisp.org>
95658         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
95659         Reported by Eric Blake.
95661 2008-03-31  Jim Meyering  <meyering@redhat.com>
95663         Don't compare actual signbit return values.
95664         * tests/test-strtod.c (main): Rather, compare only their
95665         zero/non-zero nature.
95667 2008-03-31  Eric Blake  <ebb9@byu.net>
95669         More strtod documentation.
95670         * doc/posix-functions/strtod.texi (strtod): Interpret more test
95671         failures as distinct bugs.
95673 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95675         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
95676         Problem reported by Erik Benada in
95677         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
95679 2008-03-30  Bruno Haible  <bruno@clisp.org>
95681         * tests/test-strtod.c: Add comments about which assertion fails on which
95682         platform.
95683         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95685 2008-03-30  Eric Blake  <ebb9@byu.net>
95687         Test signbit behavior on zeros.
95688         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95689         (test_signbitd, test_signbitl): Likewise.
95691         More strtod touchups.
95692         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95693         sign of negative underflow, for now.  Use .5, not .1.
95694         * doc/posix-functions/strtod.texi (strtod): Mention these
95695         limitations.
95696         Reported by Jim Meyering.
95698 2008-03-30  Bruno Haible  <bruno@clisp.org>
95700         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95701         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95703 2008-03-30  Bruno Haible  <bruno@clisp.org>
95705         Avoid failure when attempting to return empty iconv results on some
95706         platforms.
95707         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95708         allocation, don't report ENOMEM when the resulting string is empty.
95710 2008-03-30  Bruno Haible  <bruno@clisp.org>
95712         Fix buffer overrun.
95713         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95714         Don't consider the width for tmp_length. Check count against tmp_length
95715         before doing the padding. Ensure enough allocation during padding.
95717 2008-03-30  Eric Blake  <ebb9@byu.net>
95719         strtod touchups.
95720         * lib/strtod.c (strtod): Avoid compiler warnings.
95721         Reported by Jim Meyering.
95723 2008-03-30  Bruno Haible  <bruno@clisp.org>
95725         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95726         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95727         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95728         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95729         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95730         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95731         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95732         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95734         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95735         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95736         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95737         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95738         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95739         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95740         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95741         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95743         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95744         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95745         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95746         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95747         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95748         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95749         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95750         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95752         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95753         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95755         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95756         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95758         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95759         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95761         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95763         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95765         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95767         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95769         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95770         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95771         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95773         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95775         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95777         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95778         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95779         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95780         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95781         (Depends-on): Add EOVERFLOW.
95782         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95783         (Depends-on): Add EOVERFLOW.
95784         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95785         (Depends-on): Add EOVERFLOW.
95786         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95787         (Depends-on): Add EOVERFLOW.
95788         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95789         (Depends-on): Add EOVERFLOW.
95790         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95791         (Depends-on): Add EOVERFLOW.
95792         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95793         (Depends-on): Add EOVERFLOW.
95794         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95795         (Depends-on): Add EOVERFLOW.
95797         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95799         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95801         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95803         * modules/snprintf (Depends-on): Add EOVERFLOW.
95805         * lib/poll.c (EOVERFLOW): Remove fallback.
95806         * modules/poll (Depends-on): Add EOVERFLOW.
95808         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95809         * modules/getugroups (Depends-on): Add EOVERFLOW.
95811         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95812         * modules/getdelim (Depends-on): Add EOVERFLOW.
95814         * lib/ftell.c (EOVERFLOW): Remove fallback.
95815         * modules/ftell (Depends-on): Add EOVERFLOW.
95817         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95818         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95819         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95821         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95823         * modules/EOVERFLOW-tests: New file.
95824         * tests/test-EOVERFLOW.c: New file.
95826         * modules/EOVERFLOW: New file.
95827         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95829 2008-03-30  Bruno Haible  <bruno@clisp.org>
95831         Fix bug introduced on 2007-06-10.
95832         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95833         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95835 2008-03-30  Bruno Haible  <bruno@clisp.org>
95837         Improve freadseek's efficiency after ungetc.
95838         * lib/freadseek.c: Include freadahead.h.
95839         (freadptrinc): New function, extracted from freadseek.
95840         (freadseek): Use it in a loop. Use freadahead to determine the number
95841         of loop iterations.
95842         * modules/freadseek (Depends-on): Add freadahead.
95843         (configure.ac): Require AC_C_INLINE.
95845 2008-03-30  Bruno Haible  <bruno@clisp.org>
95847         * lib/freadseek.c (freadseek): Don't ignore the return value of
95848         freadptr.
95850 2008-03-29  Eric Blake  <ebb9@byu.net>
95852         Add hex float support.
95853         * modules/strtod (Depends-on): Add c-ctype.
95854         (Link): Mention POW_LIB.
95855         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95856         whitespace between 'e' and exponent.
95857         * tests/test-strtod.c (main): Enable hex float tests.
95858         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95859         now provides.
95861         Document various strtod bugs, with some fixes.
95862         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95863         "-0x", "inf", "nan", and hex constants.
95864         * doc/posix-functions/atof.texi (atof): Likewise.
95865         * modules/stdlib (Makefile.am): Support strtod.
95866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95867         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95868         detect additional strtod bugs.
95869         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95870         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95871         bool where appropriate.  Parse 'inf' and 'nan'.
95872         * tests/test-strtod.c: New file.
95873         * modules/strtod (Depends-on): Add stdbool, stdlib.
95874         (configure.ac): Turn on module indicator.
95875         * modules/strtod-tests: New module.
95877 2008-03-29  Eric Blake  <ebb9@byu.net>
95879         Fix ftell on mingw.
95880         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95881         * modules/ftell-tests (Depends-on): Add binary-io.
95882         * modules/ftello-tests (Depends-on): Likewise.
95883         * tests/test-ftell.c (main): Enhance test to cover behavior after
95884         ungetc.  Enforce binary mode.
95885         * tests/test-ftello.c (main): Likewise.
95887         Pass test-freadseek on cygwin.
95888         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95889         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95890         ungetc buffer.
95892         * tests/test-fflush2.c (main): Fix typo.
95894 2008-03-29  Bruno Haible  <bruno@clisp.org>
95896         * tests/test-fflush2.c (main): Temporarily disable the contents of
95897         this test.
95898         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95899         Reported by Eric Blake.
95901 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95903         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95904         (GC_SHA224_DIGEST_SIZE): Add.
95906         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95907         (gc_hash_digest_length): Likewise.
95908         (gc_hash_buffer): Likewise.
95910 2008-03-25  Bruno Haible  <bruno@clisp.org>
95912         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95913         detail which gettext release to use.
95914         Reported by Simon Josefsson.
95916 2008-03-26  Jim Meyering  <meyering@redhat.com>
95918         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95919         * modules/gnumakefile (clean-GNUmakefile): Also, use
95920         test ... && ... || : syntax rather than if-then ... fi.
95922         gnumakefile: Don't double-quote-expand $(VPATH) value.
95923         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95925 2008-03-24  Eric Blake  <ebb9@byu.net>
95927         Alter GNUmakefile to install into top directory.
95928         * modules/maintainer-makefile: Split, and add dependency...
95929         * modules/gnumakefile: to this new module.
95930         * build-aux/GNUmakefile: Move...
95931         * top/GNUmakefile: ...here.
95932         * build-aux/maint.mk: Move...
95933         * top/maint.mk: ...here.
95934         * MODULES.html.sh (Support for maintaining...): Document new
95935         module.
95937 2008-03-23  Bruno Haible  <bruno@clisp.org>
95939         * gnulib-tool: New options --vc-files, --no-vc-files.
95940         (func_usage): Document them.
95941         (vc_files): New variable.
95942         (func_import): Consider vc_files.
95943         (func_create_testdir): Set vc_files to empty.
95944         Suggested by Jim Meyering and Karl Berry.
95946 2008-03-23  Bruno Haible  <bruno@clisp.org>
95948         Fix regex compilation error on HP-UX 11.
95949         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95950         * modules/regex (Files): Add m4/mbstate_t.m4.
95951         Reported by Ton Voon <ton.voon@altinity.com>.
95953 2008-03-23  Bruno Haible  <bruno@clisp.org>
95955         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95957 2008-03-23  Eric Blake  <ebb9@byu.net>
95958             Bruno Haible  <bruno@clisp.org>
95960         Install files from top/ in the destination directory.
95961         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95962         augmentation also for the files from top/.
95963         (func_import, func_create_testdir): Rewrite file names:
95964         top/filename -> filename.
95966 2008-03-23  Bruno Haible  <bruno@clisp.org>
95968         Tweak "gnulib --version" output.
95969         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95971 2008-03-23  Bruno Haible  <bruno@clisp.org>
95973         Tweak "gnulib --version" output.
95974         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95975         rather than contents of ChangeLog, when possible.
95977 2008-03-21  Eric Blake  <ebb9@byu.net>
95979         More --version tweaks.
95980         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95981         date of last ChangeLog entry.
95983 2008-03-21  Jim Meyering  <meyering@redhat.com>
95985         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95987 2008-03-20  Eric Blake  <ebb9@byu.net>
95989         VPATH fix.
95990         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95992 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95994         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95995         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95997 2008-03-20  Eric Blake  <ebb9@byu.net>
95999         Sync GNUmakefile with coreutils.
96000         * build-aux/GNUmakefile (have-Makefile): Rename...
96001         (_have-Makefile): ...to this, for namespace consideration.
96002         (GNUmakefile.cfg): Include, if present.
96003         (_autoreconf): Define a default.
96004         (_is-dist-target): New rule for rebuilds to pick up intra-release
96005         version.
96006         (maint-cfg.mk): Rename...
96007         (cfg.mk): ...to this.
96009 2008-03-18  Jim Meyering  <meyering@redhat.com>
96011         New script and module: mktempd
96012         * MODULES.html.sh (maint+release support): Add mktempd.
96013         * build-aux/mktempd: New file.
96014         * modules/mktempd: New file.
96016 2008-03-15  Jim Meyering  <meyering@redhat.com>
96018         Undo last change.
96019         * lib/sha1.c, lib/md5.c: 63 != ~63.
96020         Reported by Andreas Schwab.
96022         sha1.c, md5.c: Hoist a redundant expression.
96023         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
96024         "ctx->buflen" only once, before calling *_process_block.
96025         * lib/md5.c (md5_process_bytes): Likewise.
96027 2008-03-14  Eric Blake  <ebb9@byu.net>
96029         Bump copyright year in files generated by gnulib-tool.
96030         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
96031         gnulib-tool, rather than hard-coding it.
96033         Fix 'gnulib-tool --version' output to work with git.
96034         * gnulib-tool (func_gnulib_dir): New function, extracted from...
96035         (startup): ...here.
96036         (func_version): Use it to invoke git-version-gen, rather than
96037         relying on CVS keyword expansion.  Modernize wording.
96038         (cvsdatestamp, last_checkin_date, version): Kill unused
96039         variables.
96041 2008-03-12  Jim Meyering  <meyering@redhat.com>
96043         Recognize optional cast of the argument to free.
96044         * build-aux/useless-if-before-free: Update regexps.
96046         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
96048 2008-03-11  Bruno Haible  <bruno@clisp.org>
96050         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
96051         by a single package.
96052         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
96053         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
96054         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
96055         Reported by Sam Steingold <sds@gnu.org>.
96057 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96059         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
96060         repositories.
96062 2008-03-11  Bruno Haible  <bruno@clisp.org>
96064         Avoid conflicts between local macro definitions.
96065         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
96066         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
96068 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
96069             Bruno Haible  <bruno@clisp.org>
96071         Make va_copy work with some version of xlc on AIX 5.1.
96072         * lib/stdarg.in.h: New file.
96073         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
96074         On AIX, use a <stdarg.h> file substitute.
96075         * modules/stdarg (Files): Add lib/stdarg.in.h.
96076         (Depends-on): Add include_next.
96077         (Makefile.am): Build a stdarg.h substitute if requested.
96078         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
96080 2008-03-10  Bruno Haible  <bruno@clisp.org>
96082         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
96083         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96084         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96086 2008-03-10  Bruno Haible  <bruno@clisp.org>
96088         * modules/stdlib (Depends-on): Add include_next, remove
96089         absolute-header.
96091 2008-03-09  Bruno Haible  <bruno@clisp.org>
96093         * lib/freadahead.h (freadahead): Document more precisely.
96094         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
96095         the sum of both buffer sizes.
96096         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
96097         * NEWS: Document the change.
96099 2008-03-09  Bruno Haible  <bruno@clisp.org>
96101         Extend freadptr to return also the buffer size.
96102         * lib/freadptr.h (freadptr): Add sizep argument.
96103         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
96104         (freadptr): Add sizep argument. Determine buffer size like freadahead
96105         does.
96106         * tests/test-freadptr.c: Don't include freadahead.h.
96107         (main): Adapt for new calling convention of freadptr.
96108         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
96109         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
96110         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
96111         tests/test-freadptr2.sh.
96112         (Depends): Remove freadahead.
96113         (TESTS): Add test-freadptr2.sh.
96114         (check_PROGRAMS): Add test-freadptr2.
96116 2008-03-09  Bruno Haible  <bruno@clisp.org>
96118         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
96119         Report and solution by Simon Josefsson.
96121 2008-03-06  Bruno Haible  <bruno@clisp.org>
96123         Make fflush after ungetc work on BSD platforms.
96124         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
96125         * tests/test-fflush2.c: New file.
96126         * tests/test-fflush2.sh: New file.
96127         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
96128         tests/test-fflush2.c.
96129         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
96130         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
96132 2008-03-06  Eric Blake  <ebb9@byu.net>
96134         Likewise for ftello.
96135         * modules/ftello (Dependencies): Add extensions.
96136         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
96138 2008-03-06  Bruno Haible  <bruno@clisp.org>
96140         * modules/fseeko (Dependencies): Add extensions.
96141         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
96142         Needed on glibc systems.
96144 2008-03-06  Bruno Haible  <bruno@clisp.org>
96146         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
96147         email address.
96148         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96150 2008-03-06  Bruno Haible  <bruno@clisp.org>
96152         * users.txt: Add libgnupdf.
96154 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96156         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
96157         (Header File Substitutes, Function Substitutes,
96158         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
96159         (Build robot for gnulib): Fix typo.
96161 2008-03-06  Bruno Haible  <bruno@clisp.org>
96163         * doc/gnulib-tool.texi (VCS Issues): Small updates.
96164         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96166 2008-03-06  Bruno Haible  <bruno@clisp.org>
96168         * doc/func.texi: New file, extracted from doc/gnulib.texi.
96169         * doc/gnulib.texi: Include it.
96171 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96173         * modules/func (License): Change license to unlimited; there was
96174         no LGPL parts in the module anyway.
96176 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96178         * modules/__func__: Renamed to modules/func.
96179         * modules/__func__-tests: Renamed to modules/func-tests.
96180         * tests/test-__func__.c: Renamed to tests/test-func.c.
96181         * m4/__func__.m4: Renamed to m4/func.m4.
96182         * doc/gnulib.texi (__func__): Section renamed to func.
96183         Suggested by Eric Blake <ebb9@byu.net>.
96185 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96187         * doc/gnulib.texi (__func__): Use C99 terminology when talking
96188         about __func__.  Make example self-contained.  Suggested by Eric
96189         Blake <ebb9@byu.net>.
96191         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96192         Suggested by Eric Blake <ebb9@byu.net>.
96194 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96196         * modules/__func__: New file.
96197         * modules/__func__-tests: New file.
96198         * tests/test-__func__.c: New file.
96199         * m4/__func__.m4: New file.
96200         * doc/gnulib.texi (__func__): Document __func__ module.
96202 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96204         * modules/byteswap (License): Re-license as LGPLv2+.
96206 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96208         * doc/Makefile: Add pdf target.
96210 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96212         * modules/inline (License): Use 'unlimited', since there are only
96213         *.m4 files in this module.
96215 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96216             Bruno Haible  <bruno@clisp.org>
96218         Add support for HP C 7.1 on OpenVMS 8.3.
96219         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
96221 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96223         Update VMS specifics.
96224         * lib/getopt.c [VMS]: Remove include of unixlib.h.
96226 2008-03-02  Jim Meyering  <meyering@redhat.com>
96228         Remove the last dependency on the "free" module.
96229         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
96230         Reported by Bob Proulx.
96232         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
96234         Remove useless "if" tests before free.  Deprecate "free" module.
96235         * doc/posix-functions/free.texi: Mention that this
96236         module is no longer useful.
96237         * modules/free (Notice): Say this module is obsolete.
96238         * modules/readutmp (Depends-on): Remove free.
96239         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
96240         * lib/putenv.c (putenv): Likewise.
96241         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
96242         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
96243         * tests/test-c-strcasestr.c (main): Likewise.
96244         * tests/test-c-strstr.c (main): Likewise.
96245         * tests/test-mbscasestr1.c (main): Likewise.
96246         * tests/test-mbscasestr2.c (main): Likewise.
96247         * tests/test-mbsstr1.c (main): Likewise.
96248         * tests/test-mbsstr2.c (main): Likewise.
96249         * tests/test-memmem.c (main): Likewise.
96250         * tests/test-strcasestr.c (main): Likewise.
96251         * tests/test-striconv.c (main): Likewise.
96252         * tests/test-striconveh.c (main): Likewise.
96253         * tests/test-striconveha.c (main): Likewise.
96254         * tests/test-strstr.c (main): Likewise.
96256         * build-aux/git-version-gen: Adjust a comment and the Usage string.
96258         bootstrap: sync from coreutils again
96259         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
96261 2008-03-01  Jim Meyering  <meyering@redhat.com>
96263         bootstrap: sync from coreutils
96264         * build-aux/bootstrap (update_po_files): Copy a .po file into place
96265         also when the target doesn't exist.
96267 2008-03-01  Eric Blake  <ebb9@byu.net>
96269         Fix bugs in last patch.
96270         * lib/memchr2.c (memchr2): Fix typo.
96271         * tests/test-memchr2.c: Test previous bug, and don't use GNU
96272         extension.
96273         Reported by Bruce Korb.
96275         New module 'memchr2'.
96276         * modules/memchr2: New file.
96277         * modules/memchr2-tests: Likewise.
96278         * lib/memchr2.h: Likewise.
96279         * lib/memchr2.c: Likewise, based on memchr.c.
96280         * tests/test-memchr2.c: New test.
96281         * MODULES.html.sh (String handling): Add memchr2.
96283 2008-02-29  Bruno Haible  <bruno@clisp.org>
96285         * modules/freadseek-tests: New file.
96286         * tests/test-freadseek.sh: New file.
96287         * tests/test-freadseek.c: New file.
96289         New module 'freadseek'.
96290         * modules/freadseek: New file.
96291         * lib/freadseek.h: New file.
96292         * lib/freadseek.c: New file.
96293         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
96295 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96297         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
96298         wydawca.
96300         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
96301         program_invocation_name and program_invocation_short_name are
96302         present.
96304 2008-02-28  Bruno Haible  <bruno@clisp.org>
96306         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
96307         * tests/test-freadptr.sh: Also test non-seekable stdin.
96309 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
96311         * build-aux/bootstrap (source_base, m4_base)
96312         (doc_base, tests_base): New variables.
96313         (gnulib_tool_options): Do not hardcode base directories, use
96314         the above variables instead.
96316 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
96318         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
96320 2008-02-28  Bruno Haible  <bruno@clisp.org>
96322         * modules/freadptr-tests: New file.
96323         * tests/test-freadptr.sh: New file.
96324         * tests/test-freadptr.c: New file.
96326         New module 'freadptr'.
96327         * modules/freadptr: New file.
96328         * lib/freadptr.h: New file.
96329         * lib/freadptr.c: New file.
96330         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
96332 2008-02-26  Karl Berry  <karl@freefriends.org>
96334         Sync from Libtool:
96335         * libltdl/argz.c (argz_add, argz_count): New functions.
96336         * libltdl/argz.in.h: Declare them.
96337         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
96339 2008-02-22  Bruno Haible  <bruno@clisp.org>
96341         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
96342         is a pointer type.  Needed for HP-UX 10.
96343         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
96344         * doc/posix-functions/gmtime_r.texi: Likewise.
96345         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96347 2008-02-24  Bruno Haible  <bruno@clisp.org>
96349         * modules/environ-tests: New file.
96350         * tests/test-environ.c: New file.
96352         New module 'environ'.
96353         * modules/environ: New file.
96354         * lib/unistd.in.h (environ): New declaration.
96355         * m4/environ.m4: New file.
96356         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
96357         after use.
96358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
96359         HAVE_DECL_ENVIRON.
96360         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
96361         HAVE_DECL_ENVIRON.
96362         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96363         wrong claim that 'environ' is missing on some systems.
96364         * modules/execute (Depends-on): Add environ.
96365         * lib/execute.c (environ): Remove fallback declaration.
96366         * modules/pipe (Depends-on): Add environ.
96367         * lib/pipe.c (environ): Remove fallback declaration.
96368         * modules/setenv (Depends-on): Add environ.
96369         * lib/setenv.c (environ): Remove fallback declaration.
96370         * modules/unsetenv (Depends-on): Add environ.
96371         * lib/unsetenv.c (environ): Remove fallback declaration.
96372         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96373         m4/environ.m4.
96374         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96375         (gl_PREREQ_UNSETENV): Likewise.
96377 2008-02-24  Bruno Haible  <bruno@clisp.org>
96379         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96381 2008-02-20  Bob Proulx  <bob@proulx.com>
96383         Enable use of older two part flavor 'git describe'.
96384         * build-aux/git-version-gen: If using the older two part flavor of
96385         git version then recreate the third part now present in the
96386         newer three part flavor of git describe.
96388 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96390         * lib/fts.c (fts_build): Typo correction to comment.
96392 2008-02-17  Bruno Haible  <bruno@clisp.org>
96394         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96395         generating no-op conflicts.
96397 2008-02-17  Bruno Haible  <bruno@clisp.org>
96399         Speed up by 10%.
96400         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96401         result_entries, rather than an index-based loop.
96403 2008-02-17  Bruno Haible  <bruno@clisp.org>
96405         Speed up by 25%.
96406         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96407         'hashcode_cached'.
96408         (entry_create): New function.
96409         (entry_hashcode): Use the cached hashcode if possible.
96410         (read_changelog_file, try_split_merged_entry): Use entry_create.
96412 2008-02-17  Bruno Haible  <bruno@clisp.org>
96414         Speed up from O(n^2) to O(n) for long ChangeLog files.
96415         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96416         (read_changelog_file): Change implementation of entries_reversed list
96417         to rbtreehash.
96418         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96420 2008-02-17  Bruno Haible  <bruno@clisp.org>
96422         New option --split-merged-entry.
96423         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96424         (find_paragraph_end, try_split_merged_entry): New functions.
96425         (long_options): Add option --split-merged-entry.
96426         (usage): Document option --split-merged-entry.
96427         (main): Implement option --split-merged-entry.
96428         Reported by Eric Blake.
96430 2008-02-17  Bruno Haible  <bruno@clisp.org>
96432         * lib/git-merge-changelog.c: Include c-strstr.h.
96433         (main): Support the "git pull --rebase" situation.
96434         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96435         Reported by Eric Blake.
96437 2008-02-16  Eric Blake  <ebb9@byu.net>
96439         Avoid doubling \ in common case of "c-maybe" quoting style.
96440         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96441         eliding outer quotes.
96442         * lib/quotearg.h: Document this.
96443         * tests/test-quotearg.c (result_strings, inputs, results_g)
96444         (flag_results, locale_results): Test it by adding a new string to
96445         each test group.
96446         (compare_strings): Test new string.
96448 2008-02-13  Eric Blake  <ebb9@byu.net>
96450         Avoid trigraph quoting in default output.
96451         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96452         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96453         unless explicitly requested.
96454         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96456 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96458         Don't rely on signed integer overflowing to negative value.
96459         * lib/getugroups.c (getugroups): Include <limits.h>.
96460         Instead, compare against INT_MAX, and increment only if the test passes.
96462 2008-02-13  Jim Meyering  <meyering@redhat.com>
96463         and Eric Blake  <ebb9@byu.net>
96465         Avoid shadowing warning and compile errors on Linux.
96466         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96467         forwarding macros on Linux.
96468         (dcgettext): Define a stub, for Linux.
96469         (results_g, main): Avoid warnings.
96471 2008-02-12  Eric Blake  <ebb9@byu.net>
96473         Silence warning in last patch.
96474         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
96476         Quotearg part 4: add tests, fix c-maybe colon quoting.
96477         * lib/quotearg.h: Improve documentation.
96478         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
96479         escapes when adding outer quotes.  When quoting trigraphs, use
96480         valid C notation.  When quoting NUL, omit extra characters if next
96481         character is not digit.  Alter prototype.
96482         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
96483         callers.
96484         * modules/quotearg-tests: New module.
96485         * tests/test-quotearg.c: New test.
96487 2008-02-07  Eric Blake  <ebb9@byu.net>
96489         Quotearg part 3: add flag to control outer quote elision.
96490         * lib/quotearg.h (c_maybe_quoting_style): New style.
96491         (enum quoting_flags): Better documentation of flags.
96492         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
96493         c-maybe style.
96494         (quotearg_buffer_restyled): Handle new flag to elide outer
96495         quotes.
96497         Quotearg part 2: add flag that can control NUL elision.
96498         * lib/quotearg.h (set_quoting_flags): New prototype.
96499         * lib/quotearg.c (struct quoting_options): Add flag field.
96500         (set_quoting_flags): New function.
96501         (quotearg_buffer_restyled): Add flags parameter.
96502         (quotearg_alloc_mem): Set the flag if length cannot be returned.
96503         (quotearg_n_options): Set the flag, since length cannot be
96504         returned.
96505         (quoting_options_from_style): Default flags correctly.
96507         Quotearg part 1: more wrappers, restore quotearg_char state.
96508         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
96509         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
96510         (quotearg_colon_mem): New wrappers.
96511         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
96512         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
96513         functions.
96514         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
96515         (quotearg_colon_mem): New functions.
96517 2008-02-11  Bruno Haible  <bruno@clisp.org>
96519         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
96520         library in the current directory: it does not work with parallel make.
96521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96523 2008-02-11  Bruno Haible  <bruno@clisp.org>
96525         * .gitattributes: New file.
96527 2008-02-11  Jim Meyering  <meyering@redhat.com>
96529         useless-if-before-free: Fix reversed exit values.
96530         * build-aux/useless-if-before-free: Use correct values
96531         for EXIT_MATCH and EXIT_NO_MATCH.
96533         * build-aux/useless-if-before-free: Close stdout carefully.
96535 2008-02-10  Bruno Haible  <bruno@clisp.org>
96537         New module 'git-merge-changelog'.
96538         * modules/git-merge-changelog: New file.
96539         * lib/git-merge-changelog.c: New file.
96541 2008-02-10  Jim Meyering  <meyering@redhat.com>
96543         useless-if-before-free: New option: --list (-l).
96545         useless-if-before-free: Don't exit immediately upon open failure.
96546         * build-aux/useless-if-before-free: Exit 2 for errors.
96547         Upon failure to open a file, don't exit immediately.
96548         Rather, just warn and continue with any remaining files.
96550 2008-02-10  Bruno Haible  <bruno@clisp.org>
96552         New abstract list operation 'node_set_value'.
96553         * lib/gl_list.h (gl_list_node_set_value): New function.
96554         (struct gl_list_implementation): New field node_set_value.
96555         * lib/gl_list.c (gl_list_node_set_value): New function.
96556         * lib/gl_array_list.c (gl_array_node_set_value): New function.
96557         (gl_array_list_implementation): Update.
96558         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
96559         (gl_carray_list_implementation): Update.
96560         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
96561         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96562         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96563         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
96564         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96565         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96566         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96567         Update.
96568         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96569         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
96570         (gl_sublist_list_implementation): Update.
96572 2008-02-10  Bruno Haible  <bruno@clisp.org>
96574         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
96575         Needed when ELEMENT is #defined to 'some_type *'.
96577 2008-02-10  Jim Meyering  <meyering@redhat.com>
96579         New script and module: useless-if-before-free
96580         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
96581         * build-aux/useless-if-before-free: New file.
96582         * modules/useless-if-before-free: New file.
96584         * build-aux/gitlog-to-changelog: Use committer date, not author date.
96586         xstrtol_error: Fix typo.
96587         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
96588         s/exit_failure/exit_status/.
96590 2008-02-09  Jim Meyering  <meyering@redhat.com>
96592         New script and module: gitlog-to-changelog
96593         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
96594         * modules/gitlog-to-changelog: New file.
96595         * build-aux/gitlog-to-changelog: New file.
96597 2008-02-08  Jim Meyering  <meyering@redhat.com>
96599         Avoid two "parameter unused" warnings.
96600         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
96601         Mark "st" as used.
96603         Use "git COMMAND", not "git-COMMAND".
96604         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
96605         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
96606         * build-aux/git-version-gen: Use "git status", not "git-status".
96608 2008-02-07  Bruno Haible  <bruno@clisp.org>
96610         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96611         Avoids a crash on Windows Vista.
96612         Reported by Adam Strzelecki <ono@java.pl> via
96613         Simon Josefsson <simon@josefsson.org>.
96615 2008-02-06  Bruno Haible  <bruno@clisp.org>
96617         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
96618         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
96619         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
96620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
96621         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96623         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
96624         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
96625         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96626         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96627         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96628         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96629         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96632         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
96633         left-adjust flag.
96634         * tests/test-snprintf-posix.h (test_function): Likewise.
96635         * tests/test-sprintf-posix.h (test_function): Likewise.
96636         * tests/test-vasprintf-posix.c (test_function): Likewise.
96637         * doc/posix-functions/fprintf.texi: Update.
96638         * doc/posix-functions/printf.texi: Update.
96639         * doc/posix-functions/snprintf.texi: Update.
96640         * doc/posix-functions/sprintf.texi: Update.
96641         * doc/posix-functions/vfprintf.texi: Update.
96642         * doc/posix-functions/vprintf.texi: Update.
96643         * doc/posix-functions/vsnprintf.texi: Update.
96644         * doc/posix-functions/vsprintf.texi: Update.
96645         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96647 2008-02-06  Bruno Haible  <bruno@clisp.org>
96649         Fix bug introduced on 2008-01-26.
96650         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
96652 2008-02-06  Bruno Haible  <bruno@clisp.org>
96654         Fix bug introduced on 2007-06-10.
96655         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
96656         !NEED_PRINTF_FLAG_ZERO.
96658 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
96660         getloadavg: use libperfstat on AIX5
96661         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
96663 2008-02-03  Bruno Haible  <bruno@clisp.org>
96665         * lib/diffseq.h: Add comments about required #includes.
96666         Reported by Michael Biggs <gnulib@doubleplum.net>.
96668 2008-02-01  Bruno Haible  <bruno@clisp.org>
96670         * users.txt: Add gnuit.
96672 2008-01-31  Bruno Haible  <bruno@clisp.org>
96674         * lib/md4.c (set_uint32): Mark as inline.
96675         * lib/md5.c (set_uint32): Likewise.
96676         * lib/sha1.c (set_uint32): Likewise.
96677         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
96678         * m4/md5.m4 (gl_MD5): Likewise.
96679         * m4/sha1.m4 (gl_SHA1): Likewise.
96681 2008-01-31  Jim Meyering  <meyering@redhat.com>
96683         Use "sizeof VAR", rather than a literal "4".
96684         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96685         * lib/md4.c (md4_read_ctx): Likewise.
96686         * lib/sha1.c (sha1_read_ctx): Likewise.
96688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96690         * tests/test-sha1.c: New file, based on test-md5.c.
96692         * modules/crypto/sha1-tests: New file.
96694 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96696         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96698 2008-01-31  Jim Meyering  <meyering@redhat.com>
96700         Prefer "sizeof v" over the equivalent "4".
96701         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96702         * lib/md5.c (set_uint32): Likewise.
96703         * lib/sha1.c (set_uint32): Likewise.
96705 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96707         * lib/sha1.c (set_uint32): Mark function as static.
96709 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96711         md2: clarify comments to say that alignment is not required.
96712         * lib/md2.h: Remove warning about alignment in comment.
96713         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96714         never been required.
96716 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96718         md4: adapt alignment constraint fix from sha1.
96719         * lib/md4.c (set_uint32): New function, from sha1.c
96720         (md4_read_ctx): Use it.
96721         (md4_finish_ctx): Doc fix.
96722         * lib/md4.h: Doc fix.
96724 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96726         md5: adapt alignment constraint fix from sha1.
96727         * lib/md5.c (set_uint32): New function, from sha1.c
96728         (md5_read_ctx): Use it.
96729         (md5_finish_ctx): Doc fix.
96730         * lib/md5.h: Doc fix.
96732 2008-01-30  Peter Palfrader  <weasel@debian.org>
96734         sha1: remove the result buffer alignment constraint
96735         * lib/sha1.c (set_uint32): New function.
96736         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96737         constraint.
96738         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96739         * lib/sha1.h: Likewise.
96741 2008-01-30  Andreas Schwab  <schwab@suse.de>
96742             Bruno Haible  <bruno@clisp.org>
96744         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96745         correct definition of LDBL_MIN_EXP.
96747 2008-01-30  Karl Berry  <karl@gnu.org>
96749         * config/srclist-update: try to preserve x bit on updates.
96750         * config/srclistvars.sh: update for karl.
96752 2008-01-29  Jim Meyering  <meyering@redhat.com>
96754         vasnprintf.c: Avoid warning about unused label
96755         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96756         "overflow" label definition and associated code with the
96757         same cpp condition that guards the sole use of that label.
96759 2008-01-26  Bruno Haible  <bruno@clisp.org>
96761         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96762         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96763         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96764         * lib/isnanl-nolibm.h (isnanl): Likewise.
96765         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96767 2008-01-26  Bruno Haible  <bruno@clisp.org>
96769         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96770         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96772 2008-01-26  Bruno Haible  <bruno@clisp.org>
96774         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96775         GCC >= 4.0 built-in.
96776         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96778 2008-01-26  Bruno Haible  <bruno@clisp.org>
96780         Rename isnan, applicable to 'double' only, to isnand.
96781         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96782         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96783         (configure.ac): Update.
96784         (Include): Replace "isnan.h" with "isnand.h".
96785         * m4/isnand.m4: Renamed from m4/isnan.m4.
96786         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96787         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96788         instead of isnan.c.
96789         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96790         instead of HAVE_ISNAN_IN_LIBC.
96791         (isnand): Renamed from isnan.
96792         * lib/isnand.c: New file.
96793         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96794         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96795         (Makefile.am): Update.
96796         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96797         Include isnand.h instead of isnan.h.
96798         (main): Test isnand instead of isnan.
96799         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96800         isnan-nolibm.
96801         * modules/frexp (Depends-on): Likewise.
96802         * modules/frexp-tests (Depends-on): Likewise.
96803         * modules/frexp-nolibm (Depends-on): Likewise.
96804         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96805         * modules/isfinite (Depends-on): Likewise.
96806         * modules/round-tests (Depends-on): Likewise.
96807         * modules/signbit (Depends-on): Likewise.
96808         * modules/signbit-tests (Depends-on): Likewise.
96809         * modules/snprintf-posix (Depends-on): Likewise.
96810         * modules/sprintf-posix (Depends-on): Likewise.
96811         * modules/trunc-tests (Depends-on): Likewise.
96812         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96813         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96814         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96815         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96816         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96817         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96818         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96819         * modules/vasnprintf-posix (Depends-on): Likewise.
96820         * modules/vasprintf-posix (Depends-on): Likewise.
96821         * modules/vfprintf-posix (Depends-on): Likewise.
96822         * modules/vsnprintf-posix (Depends-on): Likewise.
96823         * modules/vsprintf-posix (Depends-on): Likewise.
96824         * lib/frexp.c: Include isnand.h instead of isnan.h.
96825         (ISNAN): Set to isnand instead of isnan.
96826         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96827         (gl_isfinited): Use isnand instead of isnan.
96828         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96829         (gl_signbitd): Use isnand instead of isnan.
96830         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96831         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96832         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96833         (main): Use isnand instead of isnan.
96834         * tests/test-round1.c: Include isnand.h.
96835         (main): Use isnand instead of isnan.
96836         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96837         (ISNAN): Set to isnand instead of isnan.
96838         * tests/test-trunc1.c: Include isnand.h.
96839         (main): Use isnand instead of isnan.
96840         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96841         (equal): Use isnand instead of isnan.
96842         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96843         isnand-nolibm.
96844         * NEWS: Mention the change.
96846 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96847             Bruno Haible  <bruno@clisp.org>
96849         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96850         the GCC builtins for signbits are present and set
96851         REPLACE_SIGNBIT_USING_GCC if so.
96852         * lib/math.in.h (signbit): Define using GCC builtins if
96853         REPLACE_SIGNBIT_USING_GCC is set.
96854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96855         REPLACE_SIGNBIT_USING_GCC.
96856         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96858 2008-01-25  Jim Meyering  <meyering@redhat.com>
96860         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96861         * lib/poll.c: Include <config.h>, not "config.h".
96862         * tests/test-getaddrinfo.c: Likewise.
96864 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96866         * modules/sockets-tests: New file.
96868 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96870         * modules/sockets: New module, can be used to call WSA_Startup and
96871         WSA_Cleanup when needed.
96873         * lib/sockets.h, lib/sockets.c: New files.
96875         * m4/sockets.m4: New file.
96877         * tests/test-sockets.c: New file.
96879 2008-01-19  Bruno Haible  <bruno@clisp.org>
96881         * doc/posix-headers: Renamed from doc/headers.
96882         * doc/posix-functions: Renamed from doc/functions.
96883         * doc/gnulib.texi: Update.
96885 2008-01-19  Bruno Haible  <bruno@clisp.org>
96887         * doc/glibc-functions/strcasestr.texi: Include contents of
96888         doc/functions/strcasestr.texi, fixing the list of platforms.
96889         * doc/functions/strcasestr.texi: Remove file.
96891 2008-01-19  Bruno Haible  <bruno@clisp.org>
96893         * doc/glibc-functions/memmem.texi: Include contents of
96894         doc/functions/memmem.texi.
96895         * doc/functions/memmem.texi: Remove file.
96897 2008-01-18  Bruno Haible  <bruno@clisp.org>
96899         * doc/glibc-functions/*.texi: New files.
96900         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96901         to use the new files.
96903 2008-01-17  Bruno Haible  <bruno@clisp.org>
96905         * tests/test-gethostname.c (main): Fix printf statement.
96907 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96909         * modules/gethostname-tests: New file.
96911         * tests/test-gethostname.c: New file.
96913 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96915         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96916         used by the UNAME case.  Reported by Bruno Haible
96917         <bruno@clisp.org>.
96919 2008-01-17  Eric Blake  <ebb9@byu.net>
96921         Convert c-strcasestr to be more efficient.
96922         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96923         (Depends-on): Add c-strcase, remove malloca, strnlen.
96924         * tests/test-c-strcasestr.c (main): Enhance test.
96925         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96927 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96929         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96930         Use it in creating po/Makevars.
96932 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96934         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96935         Applications that requires it should initialize libgcrypt
96936         manually.
96938 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96940         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96942 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96944         Fix problem with getdate on mingw32 reported by Simon Josefsson
96945         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96946         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96947         tzname", when deciding whether to declare tzname.
96948         * lib/strftime.c (tzname): Likewise.
96950 2008-01-15  Bruno Haible  <bruno@clisp.org>
96952         Work around a MacOS X 10.5 bug in frexpl().
96953         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96954         * doc/functions/frexpl.texi: Document the bug.
96955         Reported by Elias Pipping <pipping@gentoo.org>.
96957 2008-01-14  Eric Blake  <ebb9@byu.net>
96959         Touch up previous patch.
96960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96961         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96963         Convert strcasestr module to use Two-Way algorithm.
96964         * modules/strcasestr-simple: New module, based on the old
96965         strcasestr, but with Two-Way rather than KMP.
96966         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96967         * lib/string.in.h (rpl_strcasestr): Declare.
96968         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96969         performance.
96970         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96971         * modules/string (Makefile.am): Support strcasestr.
96972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96973         * modules/strcasestr-tests (Depends-on): Check for alarm.
96974         * tests/test-strcasestr.c: Augment test.
96975         * lib/str-two-way.h: Clean up stray macro.
96976         * NEWS: Document new module.
96977         * MODULES.html.sh (string handling): Likewise.
96978         * doc/functions/strcasestr.texi: New file.
96979         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96980         here, since it is not a POSIX function.
96982 2008-01-14  Colin Watson  <cjwatson@debian.org>
96983             Bruno Haible  <bruno@clisp.org>
96985         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96986         works fine; if not, set REPLACE_STRSIGNAL.
96987         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96989         REPLACE_STRSIGNAL.
96990         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96991         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96992         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96994 2008-01-14  Bruno Haible  <bruno@clisp.org>
96996         * modules/strsignal (Include): Change to <string.h>.
96998 2008-01-14  Colin Watson  <cjwatson@debian.org>
97000         * modules/argp (Notice): Add a notice recommending to change
97001         XGETTEXT_OPTIONS.
97002         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
97004 2008-01-13  Colin Watson  <cjwatson@debian.org>
97006         * modules/strsignal-tests: New file.
97007         * tests/test-strsignal.c: New file.
97009         * lib/strsignal.c: New file, from glibc with modifications.
97010         * lib/siglist.h: New file, from glibc with modifications.
97011         * lib/string.in.h (strsignal): New declaration.
97012         * m4/strsignal.m4: New file.
97013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97014         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
97015         * modules/strsignal: New file.
97016         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
97017         HAVE_DECL_STRSIGNAL.
97019 2008-01-13  Bruno Haible  <bruno@clisp.org>
97021         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
97022         locale encoding is not ASCII. Needed for OpenBSD 4.0.
97023         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97024         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97026 2008-01-13  Bruno Haible  <bruno@clisp.org>
97028         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
97029         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
97030         * lib/argp.h (__attribute__): Likewise.
97031         * lib/c-stack.c (__attribute__): Likewise.
97032         * lib/error.h (__attribute__): Likewise.
97033         * lib/fts.c (__attribute__): Likewise.
97034         * lib/openat.h (__attribute__): Likewise.
97035         * lib/stdio.in.h (__attribute__): Likewise.
97036         * lib/string.in.h (__attribute__): Likewise.
97037         * lib/utimens.c (__attribute__): Likewise.
97038         * lib/vasnprintf.h (__attribute__): Likewise.
97039         * lib/xalloc.h (__attribute__): Likewise.
97040         * lib/xprintf.h (__attribute__): Likewise.
97041         * lib/xstrtol.h (__attribute__): Likewise.
97042         * lib/xvasprintf.h (__attribute__): Likewise.
97044 2008-01-12  Bruno Haible  <bruno@clisp.org>
97046         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
97047         * doc/glibc-headers/a.out.texi: New file.
97048         * doc/glibc-headers/aliases.texi: New file.
97049         * doc/glibc-headers/alloca.texi: New file.
97050         * doc/glibc-headers/ar.texi: New file.
97051         * doc/glibc-headers/argp.texi: New file.
97052         * doc/glibc-headers/argz.texi: New file.
97053         * doc/glibc-headers/byteswap.texi: New file.
97054         * doc/glibc-headers/crypt.texi: New file.
97055         * doc/glibc-headers/endian.texi: New file.
97056         * doc/glibc-headers/envz.texi: New file.
97057         * doc/glibc-headers/err.texi: New file.
97058         * doc/glibc-headers/error.texi: New file.
97059         * doc/glibc-headers/execinfo.texi: New file.
97060         * doc/glibc-headers/fpu_control.texi: New file.
97061         * doc/glibc-headers/fstab.texi: New file.
97062         * doc/glibc-headers/fts.texi: New file.
97063         * doc/glibc-headers/getopt.texi: New file.
97064         * doc/glibc-headers/ieee754.texi: New file.
97065         * doc/glibc-headers/ifaddrs.texi: New file.
97066         * doc/glibc-headers/libintl.texi: New file.
97067         * doc/glibc-headers/mcheck.texi: New file.
97068         * doc/glibc-headers/mntent.texi: New file.
97069         * doc/glibc-headers/obstack.texi: New file.
97070         * doc/glibc-headers/paths.texi: New file.
97071         * doc/glibc-headers/printf.texi: New file.
97072         * doc/glibc-headers/pty.texi: New file.
97073         * doc/glibc-headers/resolv.texi: New file.
97074         * doc/glibc-headers/shadow.texi: New file.
97075         * doc/glibc-headers/sysexits.texi: New file.
97076         * doc/glibc-headers/ttyent.texi: New file.
97078 2008-01-12  Jim Meyering  <meyering@redhat.com>
97080         announce-gen: emit Gnulib's git-based version string.
97081         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
97082         New option --gnulib-version=V, where V is expected to be
97083         the output of running git describe in the gnulib directory.
97084         (get_tool_versions): Request feedback on xdelta.  I suspect it's
97085         not useful, and plan to stop publishing an xdelta file with each
97086         coreutils release.
97088         * build-aux/announce-gen: Also check for lzma-compressed files.
97090 2008-01-11  Bruno Haible  <bruno@clisp.org>
97092         * tests/test-memmem.c (main): Increase maximum allowed time.
97093         * tests/test-strstr.c (main): Likewise.
97095 2008-01-11  Bruno Haible  <bruno@clisp.org>
97097         * doc/functions/memmem.texi: Add more precisions about platforms.
97098         * doc/functions/strstr.texi: Likewise.
97100 2008-01-10  Eric Blake  <ebb9@byu.net>
97102         * m4/strstr.m4: Delete cruft from copy-n-paste.
97103         Reported by Bruno Haible.
97105 2008-01-10  Bruno Haible  <bruno@clisp.org>
97107         Make c-strstr rely on strstr.
97108         * lib/c-strstr.c: Don't include str-kmp.h.
97109         (c_strstr): Define in terms of strstr.
97110         * modules/c-strstr (Files): Remove lib/str-kmp.h.
97111         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
97113 2008-01-10  Bruno Haible  <bruno@clisp.org>
97115         * doc/gnulib.texi (String Functions in C Locale): New section.
97116         * doc/c-ctype.texi: New file.
97117         * doc/c-strcase.texi: New file.
97118         * doc/c-strcaseeq.texi: New file.
97119         * doc/c-strcasestr.texi: New file.
97120         * doc/c-strstr.texi: New file.
97121         * doc/c-strtod.texi: New file.
97122         * doc/c-strtold.texi: New file.
97124 2008-01-10  Eric Blake  <ebb9@byu.net>
97126         * lib/relocatable.h: Fix a comment.
97128 2008-01-10  Eric Blake  <ebb9@byu.net>
97130         Share two-way algorithm.
97131         * lib/str-two-way.h: New file, merged from...
97132         * lib/memmem.c: ...here...
97133         * lib/strstr.c: ...and here.
97134         * modules/memmem (Files): Use it.
97135         * modules/strstr (Files): Likewise.
97137         Avoid quadratic strstr implementations.
97138         * lib/strstr.c: New file.
97139         * m4/strstr.m4: Likewise.
97140         * modules/strstr: Likewise.
97141         * modules/strstr-tests: Likewise.
97142         * tests/test-strstr.c: Likewise.
97143         * lib/string.in.h (rpl_strstr): Declare.
97144         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
97145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
97146         * modules/string (Makefile.am): Likewise.
97147         * MODULES.html.sh (string handling): Mention new module.
97148         * doc/functions/strstr.texi (strstr): Document the bug.
97150 2008-01-10  Bruno Haible  <bruno@clisp.org>
97152         * lib/relocatable.h (relocate): State whether result is freshly
97153         allocated or not.
97154         * lib/relocatable.c (relocate): Return a freshly allocated string
97155         instead of a pointer to a privately held string.
97156         Reported by Sylvain Beucler <beuc@gnu.org>.
97158 2008-01-10  Colin Watson  <cjwatson@debian.org>
97160         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
97161         s/S_ISNLK/S_ISLNK/.
97163 2008-01-09  Bruno Haible  <bruno@clisp.org>
97165         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
97166         and other files.
97167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
97168         if it's only a guess.
97169         * modules/memmem: Simplify by depending on memmem-simple.
97171 2008-01-09  Bruno Haible  <bruno@clisp.org>
97173         Work around OpenBSD 4.0 tdelete() bug.
97174         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
97175         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
97176         macros and don't redefine the enum values.
97177         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
97178         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
97179         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
97181 2008-01-09  Bruno Haible  <bruno@clisp.org>
97183         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
97184         (main): Don't perform the tests if setlocale did not install a UTF-8
97185         locale. Needed on OpenBSD 4.0.
97186         * modules/wcwidth-tests (Depends-on): Add localcharset.
97188 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97190         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
97191         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97192         * NEWS: announce this.
97193         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97195 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97196         and Eric Blake  <ebb9@byu.net>
97198         Add memmem-simple module.
97199         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
97200         (gl_FUNC_MEMMEM): Separate performance from presence checks.
97201         * modules/memmem-simple: New file.
97202         * modules/memmem (Description): Tweak.
97203         * MODULES.html.sh (string handling): Mention new module.
97204         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
97205         addressed by memmem-simple.
97206         * NEWS: Document the difference.
97208 2008-01-09  Eric Blake  <ebb9@byu.net>
97210         Give gcc some memmem optimization hints.
97211         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
97212         (strcasestr): Declare as pure.
97213         * modules/memmem (Maintainer): Claim my implementation.
97215 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97217         Support AIX 6.1 and higher.
97218         * build-aux/config.libpath: Likewise.
97219         * build-aux/config.rpath: Likewise.
97221 2008-01-08  Jim Meyering  <meyering@redhat.com>
97222             Bruno Haible  <bruno@clisp.org>
97224         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
97225         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
97226         Reported by Peter Fales in
97227         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
97229 2008-01-08  Bruno Haible  <bruno@clisp.org>
97231         * modules/unictype/category-of (Depends-on): Add
97232         unictype/category-none.
97233         * modules/unictype/category-and-tests (Depends-on): Add
97234         unictype/category-{L,N,Lu,Nd}.
97235         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
97236         * modules/unictype/category-or-tests (Depends-on): Add
97237         unictype/category-{L,N}.
97238         * modules/unictype/category-name-tests (Depends-on): Add
97239         unictype/category-{Z,Nl}.
97240         Reported by Simon Josefsson.
97242 2008-01-08  Bruno Haible  <bruno@clisp.org>
97244         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
97245         convention better.
97246         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
97247         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
97248         Reported by Peter Miller <millerp@canb.auug.org.au>.
97250 2008-01-08  Eric Blake  <ebb9@byu.net>
97252         Rewrite memmem to guarantee linear complexity without malloc.
97253         * lib/memmem.c (memmem): Use Two-Way rather than
97254         Knuth-Morris-Pratt, to allow O(1) space usage.
97255         (critical_factorization, two_way_short_needle)
97256         (two_way_long_needle): New functions.
97257         (knuth_morris_pratt): Delete.
97258         * modules/memmem (Depends-on): No longer need malloca or stdbool.
97259         Add stdint.
97260         * tests/test-memmem.c (main): Add tests for periodic needle and
97261         sublinear performance.
97262         * doc/functions/memmem.texi (memmem): Document other deficiencies
97263         in cygwin and older glibc.
97265 2008-01-08  Bruno Haible  <bruno@clisp.org>
97267         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
97268         augmentation.
97270 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
97272         Add a configure time option: --disable-acl.
97273         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
97274         AC_ARG_ENABLE(acl).
97276 2008-01-06  Simon Josefsson  <simon@josefsson.org>
97278         * tests/test-localename.c: Don't include obsolete "setenv.h".
97280         * modules/localename-tests (Depends-on): Need unsetenv.
97282 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97284         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
97286 2008-01-06  Colin Watson  <cjwatson@debian.org>
97288         * users.txt: Add man-db.
97290 2008-01-07  Bruno Haible  <bruno@clisp.org>
97292         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
97293         previous section name.
97295 2008-01-07  Bruno Haible  <bruno@clisp.org>
97297         * lib/progname.c (set_program_name): Don't strip off a leading
97298         "lt-" prefix outside a .libs directory.
97299         Suggested by Paul Eggert.
97301 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
97302             Bruno Haible  <bruno@clisp.org>
97304         Improve memory cleanup in 'relocatable' module.
97305         * lib/relocatable.h (compute_curr_prefix): Change return type to
97306         'char *'.
97307         * lib/relocatable.c (compute_curr_prefix): Change return type to
97308         'char *'. Free curr_installdir after use.
97309         (relocate): Free curr_prefix_better after use.
97310         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
97312 2008-01-01  Bruno Haible  <bruno@clisp.org>
97314         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
97315         failure on older glibc systems.
97316         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97318 2008-01-05  Eric Blake  <ebb9@byu.net>
97320         Avoid quadratic system memmem.
97321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
97322         Reported by Ralf Wildenhues.
97324         Fix memmem test for mingw.
97325         * modules/memmem-tests (configure.ac): Check for alarm.
97326         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
97327         it.
97328         * doc/functions/memmem.texi: New file.
97329         * doc/gnulib.texi (Function Substitutes): Add memmem.
97330         Reported by Bruno Haible.
97332 2008-01-04  Bruno Haible  <bruno@clisp.org>
97334         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
97335         Require gl_HEADER_STRINGS_H_DEFAULTS, not
97336         gl_HEADER_STRING_H_DEFAULTS.
97338 2008-01-04  Eric Blake  <ebb9@byu.net>
97340         Shorten duration of memmem test.
97341         * tests/test-memmem.c (main): Use alarm to declare failure if test
97342         is taking too long.
97343         Reported by Ralf Wildenhues.
97345 2007-12-21  Simon Josefsson  <simon@josefsson.org>
97347         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
97348         string, needed by strerror.
97350 2008-01-03  Colin Watson  <cjwatson@debian.org>
97351             Bruno Haible  <bruno@clisp.org>
97353         * doc/gnulib-tool.texi (Localization): New section.
97355 2008-01-02  Bruno Haible  <bruno@clisp.org>
97357         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
97358         variables to 'unsigned char *' type.
97359         Reported by Paul Eggert.
97361 2008-01-02  Jim Meyering  <jim@meyering.net>
97363         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97365 2007-12-31  Jim Meyering  <jim@meyering.net>
97367         Avoid use of private FTS type name.
97368         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97370 2007-12-30  Karl Berry  <karl@gnu.org>
97372         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97373         work around defect in Texinfo and/or the standalone Info browser.
97375 2007-12-30  Bruno Haible  <bruno@clisp.org>
97377         Unify 5 copies of the KMP code.
97378         * lib/str-kmp.h: New file.
97379         * lib/c-strcasestr.c: Include str-kmp.h.
97380         (knuth_morris_pratt): Remove function.
97381         (c_strcasestr): Update.
97382         * lib/c-strstr.c: Include str-kmp.h.
97383         (knuth_morris_pratt): Remove function.
97384         (c_strcasestr): Update.
97385         * lib/mbscasestr.c: Include str-kmp.h.
97386         (knuth_morris_pratt_unibyte): Remove function.
97387         * lib/mbsstr.c: Include str-kmp.h.
97388         (knuth_morris_pratt_unibyte): Remove function.
97389         * lib/strcasestr.c: Include str-kmp.h.
97390         (knuth_morris_pratt): Remove function.
97391         (strcasestr): Update.
97392         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97393         * modules/c-strstr (Files): Likewise.
97394         * modules/mbscasestr (Files): Likewise.
97395         * modules/mbsstr (Files): Likewise.
97396         * modules/strcasestr (Files): Likewise.
97397         Suggested by Paul Eggert.
97399 2007-12-30  Bruno Haible  <bruno@clisp.org>
97401         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97402         defined.
97404 2007-12-30  Bruno Haible  <bruno@clisp.org>
97406         * lib/xmalloca.h: Include xalloc.h.
97407         (xnmalloca): New macro.
97409 2007-12-30  Bruno Haible  <bruno@clisp.org>
97411         * lib/malloca.h (nmalloca): New macro.
97412         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97413         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97414         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97415         knuth_morris_pratt_multibyte): Likewise.
97416         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97417         knuth_morris_pratt_multibyte): Likewise.
97418         * lib/memmem.c (knuth_morris_pratt): Likewise.
97419         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97421 2007-12-25  Bruno Haible  <bruno@clisp.org>
97423         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97424         * lib/glob.c: Don't include openat.h.
97425         (link_exists2_p): Add back the code that deals with the
97426         !GLOB_ALTDIRFUNC case.
97427         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97428         let it do the filename concatenation.
97429         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97430         * modules/glob (Depends-on): Remove openat.
97432 2007-12-31  Bruno Haible  <bruno@clisp.org>
97434         * modules/dirfd (License): Change to LGPLv2+.
97435         Approved by Jim Meyering.
97437 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97439         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97440         when multiplying M by sizeof (size_t).
97442 2007-12-10  Martin Lambers  <marlam@marlam.de>
97444         Override getpagesize on mingw.
97445         * lib/getpagesize.c: New file.
97446         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97447         * modules/getpagesize (Files): Add lib/getpagesize.c.
97448         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97450         REPLACE_GETPAGESIZE.
97451         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97453 2007-12-25  Bruno Haible  <bruno@clisp.org>
97455         * modules/localcharset (Notice): New field.
97456         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97457         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97459 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97460             Bruno Haible  <bruno@clisp.org>
97462         Avoid using the syntax symbol() in formatted documentation.
97463         * MODULES.html.sh (func_module): When replacing symbol() with a
97464         hyperlink, remove the parentheses. Show an error if some remain.
97465         Recognize and render the '...' syntax.
97466         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97467         Rework. Add paragraph about GCC's inlining.
97468         * doc/alloca.texi: Likewise.
97469         * doc/error.texi: Remove parentheses from symbol reference.
97470         * doc/gnulib-intro.texi: Likewise.
97471         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97472         * modules/fnmatch (Description): Reword to say "the ... function".
97473         * modules/full-read (Description): Likewise.
97474         * modules/full-write (Description): Likewise.
97475         * modules/safe-read (Description): Likewise.
97476         * modules/safe-write (Description): Likewise.
97477         * modules/strchrnul (Description): Likewise.
97478         * modules/trim (Description): Likewise.
97479         * modules/error (Description): Remove parentheses from symbol
97480         references.
97481         * modules/verror (Description): Likewise.
97482         Reported by Karl Berry.
97484 2007-12-25  Bruno Haible  <bruno@clisp.org>
97486         Fixup after 2007-10-16 commit.
97487         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
97489 2007-12-24  Bruno Haible  <bruno@clisp.org>
97491         Make --enable-relocatable work with DESTDIR.
97492         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
97493         to compute installdir from destprog.
97494         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
97495         also set the RELOC_DESTDIR variable.
97496         Reported by Левашев Иван <octagram@bluebottle.com>.
97498 2007-12-24  Bruno Haible  <bruno@clisp.org>
97500         Fix link error due to xalloc_die().
97501         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
97502         of xreadlink.
97503         * lib/relocwrapper.c: Update comments.
97504         * build-aux/install-reloc: Remove xreadlink.c from file list.
97505         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
97506         xreadlink.c.
97507         Reported by Левашев Иван <octagram@bluebottle.com>.
97509 2007-12-24  Bruno Haible  <bruno@clisp.org>
97511         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
97512         * lib/setenv.h: Remove file.
97513         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
97514         lib/setenv.h.
97515         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
97516         (Depends-on): Add stdlib.
97517         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
97518         gl_FUNC_UNSETENV.
97519         (Include): Replace setenv.h with <stdlib.h>.
97520         * modules/unsetenv: New file.
97521         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
97522         * lib/unsetenv.c: Include <stdlib.h> first.
97523         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
97524         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
97525         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
97526         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
97527         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
97528         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
97530         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97531         * doc/functions/unsetenv.texi: Update.
97532         * modules/xsetenv (Depends-on): Add unsetenv.
97533         * modules/getdate (Depends-on): Likewise.
97534         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
97535         * lib/xsetenv.c: Don't include setenv.h.
97536         * lib/getdate.y: Likewise.
97537         * lib/relocwrapper.c: Likewise.
97538         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
97539         (Depends-on): Add stdlib.
97540         * NEWS: Mention the changes.
97541         Reported by Левашев Иван <octagram@bluebottle.com>.
97543 2007-12-23  Bruno Haible  <bruno@clisp.org>
97545         * lib/memmem.c (memmem): Use lowercase variable names. Tab
97546         indentation.
97548 2007-12-23  Bruno Haible  <bruno@clisp.org>
97550         * lib/c-strcasestr.c: Add more comments.
97551         * lib/c-strstr.c: Likewise.
97552         * lib/mbscasestr.c: Likewise.
97553         * lib/mbsstr.c: Likewise.
97554         * lib/strcasestr.c: Likewise.
97555         * lib/memmem.c: Likewise.
97557 2007-12-23  Bruno Haible  <bruno@clisp.org>
97559         * tests/test-memmem.c: Include <string.h> first.
97561 2007-12-22  Bruno Haible  <bruno@clisp.org>
97563         * gnulib-tool (func_create_testdir): Change $auxdir while generating
97564         the contents of $testsbase.
97565         Reported by Ralf Wildenhues.
97567 2007-12-22  Bruno Haible  <bruno@clisp.org>
97569         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
97570         two variables local_ldadd_before, local_ldadd_last.
97572 2007-12-20  Eric Blake  <ebb9@byu.net>
97574         Work around circular library issue when cross-compiling.
97575         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
97576         that progname.o does not need to pull in rpl_memcmp.
97578 2007-12-19  Eric Blake  <ebb9@byu.net>
97580         Fix memmem to avoid O(n^2) worst-case complexity.
97581         * lib/memmem.c (knuth_morris_pratt): New function.
97582         (memmem): Use it if first few naive iterations fail.
97583         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
97584         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
97585         * modules/memchr (License): Likewise.
97586         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
97587         malloca.
97588         * tests/test-memmem.c: Rewrite, borrowing ideas from
97589         test-mbsstr1.c; the old version wouldn't even compile!
97590         * modules/memmem-tests: New file.
97591         * lib/string.in.h (rpl_memmem): Add declaration.
97592         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
97593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97594         REPLACE_MEMMEM.
97596 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
97598         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
97599         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
97600         before any system include files, and undef after them all.  This
97601         should fix a problem on VMS reported by John E. Malmberg in
97602         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
97604 2007-12-17  Eric Blake  <ebb9@byu.net>
97606         Revert addition of verify, for BSD/OS.
97607         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
97608         can't handle large files, for the sake of obsolete platforms.
97609         * modules/fseeko (Depends-on): Remove verify.
97610         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97611         * doc/functions/ftello.texi (ftello): Likewise.
97612         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97613         Reported by Larry Jones.
97615 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
97617         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
97618         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
97620 2007-12-17  Jim Meyering  <meyering@redhat.com>
97622         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
97623         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
97624         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
97625         * modules/getcwd (Depends-on): Add openat.
97626         Reported by Petr Salinger.
97628 2007-12-17  Bruno Haible  <bruno@clisp.org>
97630         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
97631         avoid a segmentation fault of the configure test on x86_64 systems.
97633 2007-12-15  Jim Meyering  <meyering@redhat.com>
97635         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
97637 2007-12-13  Eric Blake  <ebb9@byu.net>
97639         Another fseek test.
97640         * tests/test-fseek.c (main): Also test ungetc handling.
97641         * tests/test-fseeko.c (main): Likewise.
97642         * modules/fseeko (Depends-on): Add verify.
97643         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
97644         large.
97645         Reported by Larry Jones.
97647         Fix fseeko on mingw.
97648         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
97649         seek.
97651         Beef up fseek tests.
97652         * tests/test-fseek.c (main): Also test eof handling.
97653         * tests/test-fseeko.c (main): Likewise.
97654         Reported by Larry Jones.
97656 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
97658         Fix fseeko on BSD-based platforms.
97659         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
97660         successful seek.
97662 2007-12-12  Eric Blake  <ebb9@byu.net>
97664         Allow circular dependency of separate libtests.a
97665         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
97666         when use_libtests.
97668 2007-12-11  Eric Blake  <ebb9@byu.net>
97670         Fix bug with -0.0L in previous patch.
97671         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
97672         * tests/test-isnan.c (main): Also test on zeroes.
97673         * tests/test-isnanf.c (main): Likewise.
97674         * tests/test-isnanl.h (main): Likewise.
97676         Detect pseudo-denormals on x86 even when cross-compiling.
97677         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
97678         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
97679         invalid bit patterns that happen to satisfy ==.
97681         Avoid link failures with separate libtests.a.
97682         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97683         last, to satisfy circular dependencies.
97685 2007-12-11  Eric Blake  <ebb9@byu.net>
97686         and Bruno Haible  <bruno@clisp.org>
97688         Fix OpenBSD 4.0 <float.h> handling of long double.
97689         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97690         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97691         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97693 2007-12-11  Jim Meyering  <meyering@redhat.com>
97695         * users.txt: Add libvirt.
97697         Support versions of autoconf prior to 2.59c.
97698         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97699         if it is not already defined.
97701 2007-12-09  Bruno Haible  <bruno@clisp.org>
97703         Let 'gnulib-tool --import' collect sources needed for the tests in
97704         tests/ rather than in lib/.
97705         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97706         argument. If true, add rules to generate libtests.a, and put libtests.a
97707         into $(LDADD). Consider source files in subdirectories and set
97708         uses_subdirs.
97709         (func_emit_initmacro_start, func_emit_initmacro_end,
97710         func_emit_initmacro_done): Pass all arguments explicitly.
97711         (func_import): Determine two module lists main_modules,
97712         testsrelated_modules. Determine use_libtests. Determine two variables
97713         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97714         instead of just sed_transform_lib_file. Determine two variables
97715         main_files and testsrelated_files. Compute 'files' as the union of
97716         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97717         func_add_or_update. In the generated gnulib-comp.m4, collect the
97718         object files for tests/ in different variables than those for lib/.
97719         Substitute LIBTESTS_LIBDEPS.
97720         (func_create_testdir): Combine the uses_subdirs results from
97721         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97723 2007-12-09  Bruno Haible  <bruno@clisp.org>
97725         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97726         the build-aux directory.
97728 2007-12-09  Bruno Haible  <bruno@clisp.org>
97730         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97731         introduced on 2006-09-09.
97733 2007-12-07  Jim Meyering  <meyering@redhat.com>
97735         Let these macros work also with autoconf-2.59.
97736         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97737         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97738         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97740 2007-12-06  Jim Meyering  <meyering@redhat.com>
97742         Avoid a configure-time syntax error in gl_FUNC_ACL.
97743         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97744         function in each branch, before testing the cache variable.
97746 2007-12-04  Eric Blake  <ebb9@byu.net>
97748         Make scripts executable.
97749         * build-aux/config.guess: Add execute permissions.
97750         * build-aux/config.sub: Likewise.
97751         * build-aux/gendocs.sh: Likewise.
97753         Fix frexp on mingw.
97754         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97755         cross-compiling.
97756         * doc/functions/frexp.texi (frexp): Document the bug.
97758         Make cygwin fseeko check more reliable.
97759         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97760         version numbers, rather than unrelated feature check.
97761         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97762         * doc/functions/ftello.texi (ftello): Likewise.
97763         Reported by Bruno Haible.
97765         * m4/strerror.m4: Bump version number.
97767 2007-12-03  Bruno Haible  <bruno@clisp.org>
97769         * doc/functions/mprotect.texi: Mention the mingw problem.
97771 2007-12-03  Eric Blake  <ebb9@byu.net>
97773         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97774         REPLACE_STRERROR is initialized before this macro.
97776 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97778         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97779         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97780         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97781         put -lsec in even for programs other than 'ls'.  This fixes a problem
97782         for gettext reported by Bruno Haible in
97783         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97784         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97785         Add support for Solaris 10.  This isn't efficient, but should get the
97786         job done for now.
97788 2007-12-03  James Youngman  <jay@gnu.org>
97790         * doc/regexprops-generic.texi: change "an close-group" to "a
97791         close-group" and "illegal" to "not allowed".
97793 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97795         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97796         pr_byname.h. Needed for the rare case when the maintainer has done
97797         "make maintainer-clean" in the source directory and then attempts a
97798         build outside the source directory.
97799         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97800         scripts_byname.h.
97802 2007-12-02  Martin Lambers  <marlam@marlam.de>
97803             Bruno Haible  <bruno@clisp.org>
97805         * lib/getpagesize.h: Remove file.
97806         * lib/unistd.in.h: Include declaration of getpagesize here.
97807         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97808         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97809         HAVE_SYS_PARAM_H.
97810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97811         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97812         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97813         (Depends-on): Add unistd.
97814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97815         (Include): Use <unistd.h> instead of getpagesize.h.
97816         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97817         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97818         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97819         gl_GETPAGESIZE invocation, already handled by module dependency.
97820         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97822 2007-12-02  Bruno Haible  <bruno@clisp.org>
97824         * modules/strings-tests: New file.
97825         * tests/test-strings.c: New file.
97827         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97828         * lib/strings.in.h: New file.
97829         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97830         * m4/strings_h.m4: New file.
97831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97832         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97833         * modules/strings: New file.
97834         * modules/string (Makefile.am): Update.
97835         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97836         Reported by Karl Berry.
97838 2007-12-01  Eric Blake  <ebb9@byu.net>
97840         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97841         accommodate fix in cygwin 1.5.25.
97843 2007-12-01  Jim Meyering  <meyering@redhat.com>
97845         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97846         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97847         that would inhibit utf8-optimization of a regexp containing line-
97848         or buffer-anchors, e.g., `^', `$'.
97850 2007-11-30  Bruno Haible  <bruno@clisp.org>
97852         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97853         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97854         glthread_recursive_lock_init.
97855         * lib/lock.c (glthread_recursive_lock_init)
97856         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97857         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97859 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97861         New function qset_acl, like set_acl but with syscall semantics.
97862         * lib/acl.h (qset_acl): New decl.
97863         * lib/acl.c (qset_acl): New function.
97864         (set_acl): Use new function.  Use more-consistent diagnostics.
97866 2007-11-28  Jim Meyering  <meyering@redhat.com>
97868         * modules/physmem (License): Change from GPL to LGPLv2+.
97870 2007-11-26  Bruno Haible  <bruno@clisp.org>
97872         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97873         'long double' type has excess precision.
97874         Reported by Jim Meyering in
97875         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97877 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97879         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97880         Sync from <http://gnu.org/licenses>.
97881         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97882         with license text from same location.
97883         * doc/maintain.texi, doc/standards.texi:  Sync from
97884         <http://savannah.gnu.org/projects/gnustandards>.
97886 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97887         and Jim Meyering  <meyering@redhat.com>
97889         Adjust getdate' grammar to accept a slightly more regular language.
97890         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97891         Before, the former was rejected.
97892         * lib/getdate.y (digits_to_date_time): New function, factored
97893         out of ...
97894         (number): ...here.  Just call digits_to_date_time.
97895         (hybrid): New non-terminal to handle an <unsigned number,
97896         signed relative offset> sequence consistently.
97898 2007-11-18  Jim Meyering  <meyering@redhat.com>
97900         Pull my changes from coreutils:
97901         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97902         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97903         use of $gnulib_tool_option_extras, so that it's separated from the
97904         preceding argument.
97906         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97907         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97908         parent destination directories before copying a file into place.
97910 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97912         bootstrap: work also with 4-argument variant of AC_INIT
97913         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97915 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97917         Port test-getaddrinfo to Solaris.
97918         Problem reported by Bruno Haible in
97919         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97920         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97921         explanation of setting 'hints'.
97922         Don't reject an implementation merely because it returns EAI_SERVICE.
97923         (EAI_SERVICE): Define to 0 if not defined.
97925 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97927         The license of gnu-make and posix-shell is now "GPLed build tool".
97928         * modules/gnu-make (License): Likewise.
97929         * modules/posix-shell (License): Likewise.
97931         New module posix-shell, for determining a POSIX shell
97932         or perhaps something that is close enough to a POSIX shell.
97933         * m4/posix-shell.m4: New file.
97934         * modules/posix-shell: New file.
97936         * MODULES.html.sh: Mention new module.
97938         New module gnu-make, for determining whether we're using GNU Make.
97939         * m4/gnu-make.m4: New file.
97940         * modules/gnu-make: New file.
97941         * MODULES.html.sh: Mention new module.
97943 2007-11-14  Jim Meyering  <meyering@redhat.com>
97945         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97946         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97947         use this macro to create a function _definition_.
97948         Remove useless "#undef ARGMATCH_DIE".
97950 2007-11-14  Bruno Haible  <bruno@clisp.org>
97952         * lib/config.charset: Update for OpenBSD 4.1.
97953         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97955 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97957         Document 64-bit #if problems in stdint.texi.
97958         * doc/headers/stdint.texi (stdint.h): Mention problems with
97959         64-bit-#if, and how to work around them.
97961         Don't insist on 'long long int' support in the preprocessor.  It
97962         breaks too many things.  For example, PRIdMAX still uses a 'long
97963         long int' format with the latest Sun compiler, even though
97964         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97965         preprocessor problem.  This causes the latest coreutils to dump
97966         core on Solaris 10 sparc with the Sun C compiler.
97967         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97968         the troublesome expressions at configure-time, not at #if-time.
97969         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97970         preprocessor.
97971         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97972         compile-time C checks, done at 'configure'-time.
97973         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97974         * modules/inttypes (Makefile): Substitute the new symbols that
97975         gl_INTTYPES_H now generates.
97976         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97978 2007-11-12  Bruno Haible  <bruno@clisp.org>
97980         Tests for Unicode character classification functions.
97982         * modules/unictype/bidicategory-byname-tests: New file.
97983         * modules/unictype/bidicategory-name-tests: New file.
97984         * modules/unictype/bidicategory-of-tests: New file.
97985         * modules/unictype/bidicategory-test-tests: New file.
97986         * modules/unictype/block-list-tests: New file.
97987         * modules/unictype/block-of-tests: New file.
97988         * modules/unictype/block-test-tests: New file.
97989         * modules/unictype/category-C-tests: New file.
97990         * modules/unictype/category-Cc-tests: New file.
97991         * modules/unictype/category-Cf-tests: New file.
97992         * modules/unictype/category-Cn-tests: New file.
97993         * modules/unictype/category-Co-tests: New file.
97994         * modules/unictype/category-Cs-tests: New file.
97995         * modules/unictype/category-L-tests: New file.
97996         * modules/unictype/category-Ll-tests: New file.
97997         * modules/unictype/category-Lm-tests: New file.
97998         * modules/unictype/category-Lo-tests: New file.
97999         * modules/unictype/category-Lt-tests: New file.
98000         * modules/unictype/category-Lu-tests: New file.
98001         * modules/unictype/category-M-tests: New file.
98002         * modules/unictype/category-Mc-tests: New file.
98003         * modules/unictype/category-Me-tests: New file.
98004         * modules/unictype/category-Mn-tests: New file.
98005         * modules/unictype/category-N-tests: New file.
98006         * modules/unictype/category-Nd-tests: New file.
98007         * modules/unictype/category-Nl-tests: New file.
98008         * modules/unictype/category-No-tests: New file.
98009         * modules/unictype/category-P-tests: New file.
98010         * modules/unictype/category-Pc-tests: New file.
98011         * modules/unictype/category-Pd-tests: New file.
98012         * modules/unictype/category-Pe-tests: New file.
98013         * modules/unictype/category-Pf-tests: New file.
98014         * modules/unictype/category-Pi-tests: New file.
98015         * modules/unictype/category-Po-tests: New file.
98016         * modules/unictype/category-Ps-tests: New file.
98017         * modules/unictype/category-S-tests: New file.
98018         * modules/unictype/category-Sc-tests: New file.
98019         * modules/unictype/category-Sk-tests: New file.
98020         * modules/unictype/category-Sm-tests: New file.
98021         * modules/unictype/category-So-tests: New file.
98022         * modules/unictype/category-Z-tests: New file.
98023         * modules/unictype/category-Zl-tests: New file.
98024         * modules/unictype/category-Zp-tests: New file.
98025         * modules/unictype/category-Zs-tests: New file.
98026         * modules/unictype/category-and-not-tests: New file.
98027         * modules/unictype/category-and-tests: New file.
98028         * modules/unictype/category-byname-tests: New file.
98029         * modules/unictype/category-name-tests: New file.
98030         * modules/unictype/category-none-tests: New file.
98031         * modules/unictype/category-of-tests: New file.
98032         * modules/unictype/category-or-tests: New file.
98033         * modules/unictype/category-test-withtable-tests: New file.
98034         * modules/unictype/combining-class-tests: New file.
98035         * modules/unictype/ctype-alnum-tests: New file.
98036         * modules/unictype/ctype-alpha-tests: New file.
98037         * modules/unictype/ctype-blank-tests: New file.
98038         * modules/unictype/ctype-cntrl-tests: New file.
98039         * modules/unictype/ctype-digit-tests: New file.
98040         * modules/unictype/ctype-graph-tests: New file.
98041         * modules/unictype/ctype-lower-tests: New file.
98042         * modules/unictype/ctype-print-tests: New file.
98043         * modules/unictype/ctype-punct-tests: New file.
98044         * modules/unictype/ctype-space-tests: New file.
98045         * modules/unictype/ctype-upper-tests: New file.
98046         * modules/unictype/ctype-xdigit-tests: New file.
98047         * modules/unictype/decimal-digit-tests: New file.
98048         * modules/unictype/digit-tests: New file.
98049         * modules/unictype/mirror-tests: New file.
98050         * modules/unictype/numeric-tests: New file.
98051         * modules/unictype/property-alphabetic-tests: New file.
98052         * modules/unictype/property-ascii-hex-digit-tests: New file.
98053         * modules/unictype/property-bidi-arabic-digit-tests: New file.
98054         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
98055         * modules/unictype/property-bidi-block-separator-tests: New file.
98056         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
98057         * modules/unictype/property-bidi-common-separator-tests: New file.
98058         * modules/unictype/property-bidi-control-tests: New file.
98059         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
98060         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
98061         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
98062         * modules/unictype/property-bidi-european-digit-tests: New file.
98063         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
98064         * modules/unictype/property-bidi-left-to-right-tests: New file.
98065         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
98066         * modules/unictype/property-bidi-other-neutral-tests: New file.
98067         * modules/unictype/property-bidi-pdf-tests: New file.
98068         * modules/unictype/property-bidi-segment-separator-tests: New file.
98069         * modules/unictype/property-bidi-whitespace-tests: New file.
98070         * modules/unictype/property-byname-tests: New file.
98071         * modules/unictype/property-combining-tests: New file.
98072         * modules/unictype/property-composite-tests: New file.
98073         * modules/unictype/property-currency-symbol-tests: New file.
98074         * modules/unictype/property-dash-tests: New file.
98075         * modules/unictype/property-decimal-digit-tests: New file.
98076         * modules/unictype/property-default-ignorable-code-point-tests: New file.
98077         * modules/unictype/property-deprecated-tests: New file.
98078         * modules/unictype/property-diacritic-tests: New file.
98079         * modules/unictype/property-extender-tests: New file.
98080         * modules/unictype/property-format-control-tests: New file.
98081         * modules/unictype/property-grapheme-base-tests: New file.
98082         * modules/unictype/property-grapheme-extend-tests: New file.
98083         * modules/unictype/property-grapheme-link-tests: New file.
98084         * modules/unictype/property-hex-digit-tests: New file.
98085         * modules/unictype/property-hyphen-tests: New file.
98086         * modules/unictype/property-id-continue-tests: New file.
98087         * modules/unictype/property-id-start-tests: New file.
98088         * modules/unictype/property-ideographic-tests: New file.
98089         * modules/unictype/property-ids-binary-operator-tests: New file.
98090         * modules/unictype/property-ids-trinary-operator-tests: New file.
98091         * modules/unictype/property-ignorable-control-tests: New file.
98092         * modules/unictype/property-iso-control-tests: New file.
98093         * modules/unictype/property-join-control-tests: New file.
98094         * modules/unictype/property-left-of-pair-tests: New file.
98095         * modules/unictype/property-line-separator-tests: New file.
98096         * modules/unictype/property-logical-order-exception-tests: New file.
98097         * modules/unictype/property-lowercase-tests: New file.
98098         * modules/unictype/property-math-tests: New file.
98099         * modules/unictype/property-non-break-tests: New file.
98100         * modules/unictype/property-not-a-character-tests: New file.
98101         * modules/unictype/property-numeric-tests: New file.
98102         * modules/unictype/property-other-alphabetic-tests: New file.
98103         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
98104         * modules/unictype/property-other-grapheme-extend-tests: New file.
98105         * modules/unictype/property-other-id-continue-tests: New file.
98106         * modules/unictype/property-other-id-start-tests: New file.
98107         * modules/unictype/property-other-lowercase-tests: New file.
98108         * modules/unictype/property-other-math-tests: New file.
98109         * modules/unictype/property-other-uppercase-tests: New file.
98110         * modules/unictype/property-paired-punctuation-tests: New file.
98111         * modules/unictype/property-paragraph-separator-tests: New file.
98112         * modules/unictype/property-pattern-syntax-tests: New file.
98113         * modules/unictype/property-pattern-white-space-tests: New file.
98114         * modules/unictype/property-private-use-tests: New file.
98115         * modules/unictype/property-punctuation-tests: New file.
98116         * modules/unictype/property-quotation-mark-tests: New file.
98117         * modules/unictype/property-radical-tests: New file.
98118         * modules/unictype/property-sentence-terminal-tests: New file.
98119         * modules/unictype/property-soft-dotted-tests: New file.
98120         * modules/unictype/property-space-tests: New file.
98121         * modules/unictype/property-terminal-punctuation-tests: New file.
98122         * modules/unictype/property-test-tests: New file.
98123         * modules/unictype/property-titlecase-tests: New file.
98124         * modules/unictype/property-unassigned-code-value-tests: New file.
98125         * modules/unictype/property-unified-ideograph-tests: New file.
98126         * modules/unictype/property-uppercase-tests: New file.
98127         * modules/unictype/property-variation-selector-tests: New file.
98128         * modules/unictype/property-white-space-tests: New file.
98129         * modules/unictype/property-xid-continue-tests: New file.
98130         * modules/unictype/property-xid-start-tests: New file.
98131         * modules/unictype/property-zero-width-tests: New file.
98132         * modules/unictype/scripts-tests: New file.
98133         * modules/unictype/syntax-c-ident-tests: New file.
98134         * modules/unictype/syntax-c-whitespace-tests: New file.
98135         * modules/unictype/syntax-java-ident-tests: New file.
98136         * modules/unictype/syntax-java-whitespace-tests: New file.
98137         * tests/unictype/test-bidi_byname.c: New file.
98138         * tests/unictype/test-bidi_name.c: New file.
98139         * tests/unictype/test-bidi_of.c: New file.
98140         * tests/unictype/test-bidi_test.c: New file.
98141         * tests/unictype/test-block_list.c: New file.
98142         * tests/unictype/test-block_of.c: New file.
98143         * tests/unictype/test-block_test.c: New file.
98144         * tests/unictype/test-categ_and.c: New file.
98145         * tests/unictype/test-categ_and_not.c: New file.
98146         * tests/unictype/test-categ_byname.c: New file.
98147         * tests/unictype/test-categ_name.c: New file.
98148         * tests/unictype/test-categ_none.c: New file.
98149         * tests/unictype/test-categ_of.c: New file.
98150         * tests/unictype/test-categ_or.c: New file.
98151         * tests/unictype/test-categ_test_withtable.c: New file.
98152         * tests/unictype/test-combining.c: New file.
98153         * tests/unictype/test-decdigit.c: New file.
98154         * tests/unictype/test-digit.c: New file.
98155         * tests/unictype/test-mirror.c: New file.
98156         * tests/unictype/test-numeric.c: New file.
98157         * tests/unictype/test-pr_byname.c: New file.
98158         * tests/unictype/test-pr_test.c: New file.
98159         * tests/unictype/test-predicate-part1.h: New file.
98160         * tests/unictype/test-predicate-part2.h: New file.
98161         * tests/unictype/test-scripts.c: New file.
98162         * tests/unictype/test-sy_c_ident.c: New file.
98163         * tests/unictype/test-sy_java_ident.c: New file.
98165         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
98166         for Unicode 5.0.0.
98167         * tests/unictype/test-categ_Cc.c: Likewise.
98168         * tests/unictype/test-categ_Cf.c: Likewise.
98169         * tests/unictype/test-categ_Cn.c: Likewise.
98170         * tests/unictype/test-categ_Co.c: Likewise.
98171         * tests/unictype/test-categ_Cs.c: Likewise.
98172         * tests/unictype/test-categ_L.c: Likewise.
98173         * tests/unictype/test-categ_Ll.c: Likewise.
98174         * tests/unictype/test-categ_Lm.c: Likewise.
98175         * tests/unictype/test-categ_Lo.c: Likewise.
98176         * tests/unictype/test-categ_Lt.c: Likewise.
98177         * tests/unictype/test-categ_Lu.c: Likewise.
98178         * tests/unictype/test-categ_M.c: Likewise.
98179         * tests/unictype/test-categ_Mc.c: Likewise.
98180         * tests/unictype/test-categ_Me.c: Likewise.
98181         * tests/unictype/test-categ_Mn.c: Likewise.
98182         * tests/unictype/test-categ_N.c: Likewise.
98183         * tests/unictype/test-categ_Nd.c: Likewise.
98184         * tests/unictype/test-categ_Nl.c: Likewise.
98185         * tests/unictype/test-categ_No.c: Likewise.
98186         * tests/unictype/test-categ_P.c: Likewise.
98187         * tests/unictype/test-categ_Pc.c: Likewise.
98188         * tests/unictype/test-categ_Pd.c: Likewise.
98189         * tests/unictype/test-categ_Pe.c: Likewise.
98190         * tests/unictype/test-categ_Pf.c: Likewise.
98191         * tests/unictype/test-categ_Pi.c: Likewise.
98192         * tests/unictype/test-categ_Po.c: Likewise.
98193         * tests/unictype/test-categ_Ps.c: Likewise.
98194         * tests/unictype/test-categ_S.c: Likewise.
98195         * tests/unictype/test-categ_Sc.c: Likewise.
98196         * tests/unictype/test-categ_Sk.c: Likewise.
98197         * tests/unictype/test-categ_Sm.c: Likewise.
98198         * tests/unictype/test-categ_So.c: Likewise.
98199         * tests/unictype/test-categ_Z.c: Likewise.
98200         * tests/unictype/test-categ_Zl.c: Likewise.
98201         * tests/unictype/test-categ_Zp.c: Likewise.
98202         * tests/unictype/test-categ_Zs.c: Likewise.
98203         * tests/unictype/test-ctype_alnum.c: Likewise.
98204         * tests/unictype/test-ctype_alpha.c: Likewise.
98205         * tests/unictype/test-ctype_blank.c: Likewise.
98206         * tests/unictype/test-ctype_cntrl.c: Likewise.
98207         * tests/unictype/test-ctype_digit.c: Likewise.
98208         * tests/unictype/test-ctype_graph.c: Likewise.
98209         * tests/unictype/test-ctype_lower.c: Likewise.
98210         * tests/unictype/test-ctype_print.c: Likewise.
98211         * tests/unictype/test-ctype_punct.c: Likewise.
98212         * tests/unictype/test-ctype_space.c: Likewise.
98213         * tests/unictype/test-ctype_upper.c: Likewise.
98214         * tests/unictype/test-ctype_xdigit.c: Likewise.
98215         * tests/unictype/test-decdigit.h: Likewise.
98216         * tests/unictype/test-digit.h: Likewise.
98217         * tests/unictype/test-numeric.h: Likewise.
98218         * tests/unictype/test-pr_alphabetic.c: Likewise.
98219         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
98220         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
98221         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
98222         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
98223         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
98224         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
98225         * tests/unictype/test-pr_bidi_control.c: Likewise.
98226         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
98227         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
98228         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
98229         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
98230         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
98231         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
98232         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
98233         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
98234         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
98235         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
98236         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
98237         * tests/unictype/test-pr_combining.c: Likewise.
98238         * tests/unictype/test-pr_composite.c: Likewise.
98239         * tests/unictype/test-pr_currency_symbol.c: Likewise.
98240         * tests/unictype/test-pr_dash.c: Likewise.
98241         * tests/unictype/test-pr_decimal_digit.c: Likewise.
98242         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
98243         * tests/unictype/test-pr_deprecated.c: Likewise.
98244         * tests/unictype/test-pr_diacritic.c: Likewise.
98245         * tests/unictype/test-pr_extender.c: Likewise.
98246         * tests/unictype/test-pr_format_control.c: Likewise.
98247         * tests/unictype/test-pr_grapheme_base.c: Likewise.
98248         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
98249         * tests/unictype/test-pr_grapheme_link.c: Likewise.
98250         * tests/unictype/test-pr_hex_digit.c: Likewise.
98251         * tests/unictype/test-pr_hyphen.c: Likewise.
98252         * tests/unictype/test-pr_id_continue.c: Likewise.
98253         * tests/unictype/test-pr_id_start.c: Likewise.
98254         * tests/unictype/test-pr_ideographic.c: Likewise.
98255         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
98256         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
98257         * tests/unictype/test-pr_ignorable_control.c: Likewise.
98258         * tests/unictype/test-pr_iso_control.c: Likewise.
98259         * tests/unictype/test-pr_join_control.c: Likewise.
98260         * tests/unictype/test-pr_left_of_pair.c: Likewise.
98261         * tests/unictype/test-pr_line_separator.c: Likewise.
98262         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
98263         * tests/unictype/test-pr_lowercase.c: Likewise.
98264         * tests/unictype/test-pr_math.c: Likewise.
98265         * tests/unictype/test-pr_non_break.c: Likewise.
98266         * tests/unictype/test-pr_not_a_character.c: Likewise.
98267         * tests/unictype/test-pr_numeric.c: Likewise.
98268         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
98269         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
98270         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
98271         * tests/unictype/test-pr_other_id_continue.c: Likewise.
98272         * tests/unictype/test-pr_other_id_start.c: Likewise.
98273         * tests/unictype/test-pr_other_lowercase.c: Likewise.
98274         * tests/unictype/test-pr_other_math.c: Likewise.
98275         * tests/unictype/test-pr_other_uppercase.c: Likewise.
98276         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
98277         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
98278         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
98279         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
98280         * tests/unictype/test-pr_private_use.c: Likewise.
98281         * tests/unictype/test-pr_punctuation.c: Likewise.
98282         * tests/unictype/test-pr_quotation_mark.c: Likewise.
98283         * tests/unictype/test-pr_radical.c: Likewise.
98284         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
98285         * tests/unictype/test-pr_soft_dotted.c: Likewise.
98286         * tests/unictype/test-pr_space.c: Likewise.
98287         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
98288         * tests/unictype/test-pr_titlecase.c: Likewise.
98289         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
98290         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
98291         * tests/unictype/test-pr_uppercase.c: Likewise.
98292         * tests/unictype/test-pr_variation_selector.c: Likewise.
98293         * tests/unictype/test-pr_white_space.c: Likewise.
98294         * tests/unictype/test-pr_xid_continue.c: Likewise.
98295         * tests/unictype/test-pr_xid_start.c: Likewise.
98296         * tests/unictype/test-pr_zero_width.c: Likewise.
98297         * tests/unictype/test-sy_c_whitespace.c: Likewise.
98298         * tests/unictype/test-sy_java_whitespace.c: Likewise.
98300 2007-11-12  Bruno Haible  <bruno@clisp.org>
98302         Unicode character classification functions.
98303         * lib/unictype.h: New file.
98304         * modules/unictype/base: New file.
98305         * modules/unictype/category-L: New file.
98306         * modules/unictype/category-Lu: New file.
98307         * modules/unictype/category-Ll: New file.
98308         * modules/unictype/category-Lt: New file.
98309         * modules/unictype/category-Lm: New file.
98310         * modules/unictype/category-Lo: New file.
98311         * modules/unictype/category-M: New file.
98312         * modules/unictype/category-Mn: New file.
98313         * modules/unictype/category-Mc: New file.
98314         * modules/unictype/category-Me: New file.
98315         * modules/unictype/category-N: New file.
98316         * modules/unictype/category-Nd: New file.
98317         * modules/unictype/category-Nl: New file.
98318         * modules/unictype/category-No: New file.
98319         * modules/unictype/category-P: New file.
98320         * modules/unictype/category-Pc: New file.
98321         * modules/unictype/category-Pd: New file.
98322         * modules/unictype/category-Ps: New file.
98323         * modules/unictype/category-Pe: New file.
98324         * modules/unictype/category-Pi: New file.
98325         * modules/unictype/category-Pf: New file.
98326         * modules/unictype/category-Po: New file.
98327         * modules/unictype/category-S: New file.
98328         * modules/unictype/category-Sm: New file.
98329         * modules/unictype/category-Sc: New file.
98330         * modules/unictype/category-Sk: New file.
98331         * modules/unictype/category-So: New file.
98332         * modules/unictype/category-Z: New file.
98333         * modules/unictype/category-Zs: New file.
98334         * modules/unictype/category-Zl: New file.
98335         * modules/unictype/category-Zp: New file.
98336         * modules/unictype/category-C: New file.
98337         * modules/unictype/category-Cc: New file.
98338         * modules/unictype/category-Cf: New file.
98339         * modules/unictype/category-Cs: New file.
98340         * modules/unictype/category-Co: New file.
98341         * modules/unictype/category-Cn: New file.
98342         * modules/unictype/category-or: New file.
98343         * modules/unictype/category-of: New file.
98344         * modules/unictype/category-test: New file.
98345         * modules/unictype/category-test-withtable: New file.
98346         * modules/unictype/category-byname: New file.
98347         * modules/unictype/category-none: New file.
98348         * modules/unictype/category-and: New file.
98349         * modules/unictype/category-and-not: New file.
98350         * modules/unictype/category-name: New file.
98351         * modules/unictype/combining-class: New file.
98352         * modules/unictype/category-all: New file.
98353         * modules/unictype/bidicategory-all: New file.
98354         * modules/unictype/bidicategory-byname: New file.
98355         * modules/unictype/bidicategory-name: New file.
98356         * modules/unictype/bidicategory-of: New file.
98357         * modules/unictype/bidicategory-test: New file.
98358         * modules/unictype/decimal-digit: New file.
98359         * modules/unictype/digit: New file.
98360         * modules/unictype/numeric: New file.
98361         * modules/unictype/mirror: New file.
98362         * modules/unictype/property-white-space: New file.
98363         * modules/unictype/property-alphabetic: New file.
98364         * modules/unictype/property-other-alphabetic: New file.
98365         * modules/unictype/property-not-a-character: New file.
98366         * modules/unictype/property-default-ignorable-code-point: New file.
98367         * modules/unictype/property-other-default-ignorable-code-point: New
98368         file.
98369         * modules/unictype/property-deprecated: New file.
98370         * modules/unictype/property-logical-order-exception: New file.
98371         * modules/unictype/property-variation-selector: New file.
98372         * modules/unictype/property-private-use: New file.
98373         * modules/unictype/property-unassigned-code-value: New file.
98374         * modules/unictype/property-uppercase: New file.
98375         * modules/unictype/property-other-uppercase: New file.
98376         * modules/unictype/property-lowercase: New file.
98377         * modules/unictype/property-other-lowercase: New file.
98378         * modules/unictype/property-titlecase: New file.
98379         * modules/unictype/property-soft-dotted: New file.
98380         * modules/unictype/property-id-start: New file.
98381         * modules/unictype/property-other-id-start: New file.
98382         * modules/unictype/property-id-continue: New file.
98383         * modules/unictype/property-other-id-continue: New file.
98384         * modules/unictype/property-xid-start: New file.
98385         * modules/unictype/property-xid-continue: New file.
98386         * modules/unictype/property-pattern-white-space: New file.
98387         * modules/unictype/property-pattern-syntax: New file.
98388         * modules/unictype/property-join-control: New file.
98389         * modules/unictype/property-grapheme-base: New file.
98390         * modules/unictype/property-grapheme-extend: New file.
98391         * modules/unictype/property-other-grapheme-extend: New file.
98392         * modules/unictype/property-grapheme-link: New file.
98393         * modules/unictype/property-bidi-control: New file.
98394         * modules/unictype/property-bidi-left-to-right: New file.
98395         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98396         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98397         * modules/unictype/property-bidi-european-digit: New file.
98398         * modules/unictype/property-bidi-eur-num-separator: New file.
98399         * modules/unictype/property-bidi-eur-num-terminator: New file.
98400         * modules/unictype/property-bidi-arabic-digit: New file.
98401         * modules/unictype/property-bidi-common-separator: New file.
98402         * modules/unictype/property-bidi-block-separator: New file.
98403         * modules/unictype/property-bidi-segment-separator: New file.
98404         * modules/unictype/property-bidi-whitespace: New file.
98405         * modules/unictype/property-bidi-non-spacing-mark: New file.
98406         * modules/unictype/property-bidi-boundary-neutral: New file.
98407         * modules/unictype/property-bidi-pdf: New file.
98408         * modules/unictype/property-bidi-embedding-or-override: New file.
98409         * modules/unictype/property-bidi-other-neutral: New file.
98410         * modules/unictype/property-hex-digit: New file.
98411         * modules/unictype/property-ascii-hex-digit: New file.
98412         * modules/unictype/property-ideographic: New file.
98413         * modules/unictype/property-unified-ideograph: New file.
98414         * modules/unictype/property-radical: New file.
98415         * modules/unictype/property-ids-binary-operator: New file.
98416         * modules/unictype/property-ids-trinary-operator: New file.
98417         * modules/unictype/property-zero-width: New file.
98418         * modules/unictype/property-space: New file.
98419         * modules/unictype/property-non-break: New file.
98420         * modules/unictype/property-iso-control: New file.
98421         * modules/unictype/property-format-control: New file.
98422         * modules/unictype/property-dash: New file.
98423         * modules/unictype/property-hyphen: New file.
98424         * modules/unictype/property-punctuation: New file.
98425         * modules/unictype/property-line-separator: New file.
98426         * modules/unictype/property-paragraph-separator: New file.
98427         * modules/unictype/property-quotation-mark: New file.
98428         * modules/unictype/property-sentence-terminal: New file.
98429         * modules/unictype/property-terminal-punctuation: New file.
98430         * modules/unictype/property-currency-symbol: New file.
98431         * modules/unictype/property-math: New file.
98432         * modules/unictype/property-other-math: New file.
98433         * modules/unictype/property-paired-punctuation: New file.
98434         * modules/unictype/property-left-of-pair: New file.
98435         * modules/unictype/property-combining: New file.
98436         * modules/unictype/property-composite: New file.
98437         * modules/unictype/property-decimal-digit: New file.
98438         * modules/unictype/property-numeric: New file.
98439         * modules/unictype/property-diacritic: New file.
98440         * modules/unictype/property-extender: New file.
98441         * modules/unictype/property-ignorable-control: New file.
98442         * modules/unictype/property-test: New file.
98443         * modules/unictype/property-byname: New file.
98444         * modules/unictype/property-all: New file.
98445         * modules/unictype/scripts: New file.
98446         * modules/unictype/scripts-all: New file.
98447         * modules/unictype/block-of: New file.
98448         * modules/unictype/block-test: New file.
98449         * modules/unictype/block-list: New file.
98450         * modules/unictype/block-all: New file.
98451         * modules/unictype/syntax-c-whitespace: New file.
98452         * modules/unictype/syntax-java-whitespace: New file.
98453         * modules/unictype/syntax-c-ident: New file.
98454         * modules/unictype/syntax-java-ident: New file.
98455         * modules/unictype/ctype-alnum: New file.
98456         * modules/unictype/ctype-alpha: New file.
98457         * modules/unictype/ctype-cntrl: New file.
98458         * modules/unictype/ctype-digit: New file.
98459         * modules/unictype/ctype-graph: New file.
98460         * modules/unictype/ctype-lower: New file.
98461         * modules/unictype/ctype-print: New file.
98462         * modules/unictype/ctype-punct: New file.
98463         * modules/unictype/ctype-space: New file.
98464         * modules/unictype/ctype-upper: New file.
98465         * modules/unictype/ctype-xdigit: New file.
98466         * modules/unictype/ctype-blank: New file.
98467         * lib/unictype/bidi_byname.c: New file.
98468         * lib/unictype/bidi_name.c: New file.
98469         * lib/unictype/bidi_of.c: New file.
98470         * lib/unictype/bidi_test.c: New file.
98471         * lib/unictype/bitmap.h: New file.
98472         * lib/unictype/block_test.c: New file.
98473         * lib/unictype/blocks.c: New file.
98474         * lib/unictype/categ_C.c: New file.
98475         * lib/unictype/categ_Cc.c: New file.
98476         * lib/unictype/categ_Cf.c: New file.
98477         * lib/unictype/categ_Cn.c: New file.
98478         * lib/unictype/categ_Co.c: New file.
98479         * lib/unictype/categ_Cs.c: New file.
98480         * lib/unictype/categ_L.c: New file.
98481         * lib/unictype/categ_Ll.c: New file.
98482         * lib/unictype/categ_Lm.c: New file.
98483         * lib/unictype/categ_Lo.c: New file.
98484         * lib/unictype/categ_Lt.c: New file.
98485         * lib/unictype/categ_Lu.c: New file.
98486         * lib/unictype/categ_M.c: New file.
98487         * lib/unictype/categ_Mc.c: New file.
98488         * lib/unictype/categ_Me.c: New file.
98489         * lib/unictype/categ_Mn.c: New file.
98490         * lib/unictype/categ_N.c: New file.
98491         * lib/unictype/categ_Nd.c: New file.
98492         * lib/unictype/categ_Nl.c: New file.
98493         * lib/unictype/categ_No.c: New file.
98494         * lib/unictype/categ_P.c: New file.
98495         * lib/unictype/categ_Pc.c: New file.
98496         * lib/unictype/categ_Pd.c: New file.
98497         * lib/unictype/categ_Pe.c: New file.
98498         * lib/unictype/categ_Pf.c: New file.
98499         * lib/unictype/categ_Pi.c: New file.
98500         * lib/unictype/categ_Po.c: New file.
98501         * lib/unictype/categ_Ps.c: New file.
98502         * lib/unictype/categ_S.c: New file.
98503         * lib/unictype/categ_Sc.c: New file.
98504         * lib/unictype/categ_Sk.c: New file.
98505         * lib/unictype/categ_Sm.c: New file.
98506         * lib/unictype/categ_So.c: New file.
98507         * lib/unictype/categ_Z.c: New file.
98508         * lib/unictype/categ_Zl.c: New file.
98509         * lib/unictype/categ_Zp.c: New file.
98510         * lib/unictype/categ_Zs.c: New file.
98511         * lib/unictype/categ_and.c: New file.
98512         * lib/unictype/categ_and_not.c: New file.
98513         * lib/unictype/categ_byname.c: New file.
98514         * lib/unictype/categ_name.c: New file.
98515         * lib/unictype/categ_none.c: New file.
98516         * lib/unictype/categ_of.c: New file.
98517         * lib/unictype/categ_or.c: New file.
98518         * lib/unictype/categ_test.c: New file.
98519         * lib/unictype/combining.c: New file.
98520         * lib/unictype/ctype_alnum.c: New file.
98521         * lib/unictype/ctype_alpha.c: New file.
98522         * lib/unictype/ctype_blank.c: New file.
98523         * lib/unictype/ctype_cntrl.c: New file.
98524         * lib/unictype/ctype_digit.c: New file.
98525         * lib/unictype/ctype_graph.c: New file.
98526         * lib/unictype/ctype_lower.c: New file.
98527         * lib/unictype/ctype_print.c: New file.
98528         * lib/unictype/ctype_punct.c: New file.
98529         * lib/unictype/ctype_space.c: New file.
98530         * lib/unictype/ctype_upper.c: New file.
98531         * lib/unictype/ctype_xdigit.c: New file.
98532         * lib/unictype/decdigit.c: New file.
98533         * lib/unictype/digit.c: New file.
98534         * lib/unictype/identsyntaxmap.h: New file.
98535         * lib/unictype/mirror.c: New file.
98536         * lib/unictype/numeric.c: New file.
98537         * lib/unictype/pr_alphabetic.c: New file.
98538         * lib/unictype/pr_ascii_hex_digit.c: New file.
98539         * lib/unictype/pr_bidi_arabic_digit.c: New file.
98540         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
98541         * lib/unictype/pr_bidi_block_separator.c: New file.
98542         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
98543         * lib/unictype/pr_bidi_common_separator.c: New file.
98544         * lib/unictype/pr_bidi_control.c: New file.
98545         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
98546         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
98547         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
98548         * lib/unictype/pr_bidi_european_digit.c: New file.
98549         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
98550         * lib/unictype/pr_bidi_left_to_right.c: New file.
98551         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
98552         * lib/unictype/pr_bidi_other_neutral.c: New file.
98553         * lib/unictype/pr_bidi_pdf.c: New file.
98554         * lib/unictype/pr_bidi_segment_separator.c: New file.
98555         * lib/unictype/pr_bidi_whitespace.c: New file.
98556         * lib/unictype/pr_byname.c: New file.
98557         * lib/unictype/pr_byname.gperf: New file.
98558         * lib/unictype/pr_combining.c: New file.
98559         * lib/unictype/pr_composite.c: New file.
98560         * lib/unictype/pr_currency_symbol.c: New file.
98561         * lib/unictype/pr_dash.c: New file.
98562         * lib/unictype/pr_decimal_digit.c: New file.
98563         * lib/unictype/pr_default_ignorable_code_point.c: New file.
98564         * lib/unictype/pr_deprecated.c: New file.
98565         * lib/unictype/pr_diacritic.c: New file.
98566         * lib/unictype/pr_extender.c: New file.
98567         * lib/unictype/pr_format_control.c: New file.
98568         * lib/unictype/pr_grapheme_base.c: New file.
98569         * lib/unictype/pr_grapheme_extend.c: New file.
98570         * lib/unictype/pr_grapheme_link.c: New file.
98571         * lib/unictype/pr_hex_digit.c: New file.
98572         * lib/unictype/pr_hyphen.c: New file.
98573         * lib/unictype/pr_id_continue.c: New file.
98574         * lib/unictype/pr_id_start.c: New file.
98575         * lib/unictype/pr_ideographic.c: New file.
98576         * lib/unictype/pr_ids_binary_operator.c: New file.
98577         * lib/unictype/pr_ids_trinary_operator.c: New file.
98578         * lib/unictype/pr_ignorable_control.c: New file.
98579         * lib/unictype/pr_iso_control.c: New file.
98580         * lib/unictype/pr_join_control.c: New file.
98581         * lib/unictype/pr_left_of_pair.c: New file.
98582         * lib/unictype/pr_line_separator.c: New file.
98583         * lib/unictype/pr_logical_order_exception.c: New file.
98584         * lib/unictype/pr_lowercase.c: New file.
98585         * lib/unictype/pr_math.c: New file.
98586         * lib/unictype/pr_non_break.c: New file.
98587         * lib/unictype/pr_not_a_character.c: New file.
98588         * lib/unictype/pr_numeric.c: New file.
98589         * lib/unictype/pr_other_alphabetic.c: New file.
98590         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
98591         * lib/unictype/pr_other_grapheme_extend.c: New file.
98592         * lib/unictype/pr_other_id_continue.c: New file.
98593         * lib/unictype/pr_other_id_start.c: New file.
98594         * lib/unictype/pr_other_lowercase.c: New file.
98595         * lib/unictype/pr_other_math.c: New file.
98596         * lib/unictype/pr_other_uppercase.c: New file.
98597         * lib/unictype/pr_paired_punctuation.c: New file.
98598         * lib/unictype/pr_paragraph_separator.c: New file.
98599         * lib/unictype/pr_pattern_syntax.c: New file.
98600         * lib/unictype/pr_pattern_white_space.c: New file.
98601         * lib/unictype/pr_private_use.c: New file.
98602         * lib/unictype/pr_punctuation.c: New file.
98603         * lib/unictype/pr_quotation_mark.c: New file.
98604         * lib/unictype/pr_radical.c: New file.
98605         * lib/unictype/pr_sentence_terminal.c: New file.
98606         * lib/unictype/pr_soft_dotted.c: New file.
98607         * lib/unictype/pr_space.c: New file.
98608         * lib/unictype/pr_terminal_punctuation.c: New file.
98609         * lib/unictype/pr_test.c: New file.
98610         * lib/unictype/pr_titlecase.c: New file.
98611         * lib/unictype/pr_unassigned_code_value.c: New file.
98612         * lib/unictype/pr_unified_ideograph.c: New file.
98613         * lib/unictype/pr_uppercase.c: New file.
98614         * lib/unictype/pr_variation_selector.c: New file.
98615         * lib/unictype/pr_white_space.c: New file.
98616         * lib/unictype/pr_xid_continue.c: New file.
98617         * lib/unictype/pr_xid_start.c: New file.
98618         * lib/unictype/pr_zero_width.c: New file.
98619         * lib/unictype/scripts.c: New file.
98620         * lib/unictype/sy_c_ident.c: New file.
98621         * lib/unictype/sy_c_whitespace.c: New file.
98622         * lib/unictype/sy_java_ident.c: New file.
98623         * lib/unictype/sy_java_whitespace.c: New file.
98625         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
98626         Unicode 5.0.0.
98627         * lib/unictype/blocks.h: Likewise.
98628         * lib/unictype/categ_C.h: Likewise.
98629         * lib/unictype/categ_Cc.h: Likewise.
98630         * lib/unictype/categ_Cf.h: Likewise.
98631         * lib/unictype/categ_Cn.h: Likewise.
98632         * lib/unictype/categ_Co.h: Likewise.
98633         * lib/unictype/categ_Cs.h: Likewise.
98634         * lib/unictype/categ_L.h: Likewise.
98635         * lib/unictype/categ_Ll.h: Likewise.
98636         * lib/unictype/categ_Lm.h: Likewise.
98637         * lib/unictype/categ_Lo.h: Likewise.
98638         * lib/unictype/categ_Lt.h: Likewise.
98639         * lib/unictype/categ_Lu.h: Likewise.
98640         * lib/unictype/categ_M.h: Likewise.
98641         * lib/unictype/categ_Mc.h: Likewise.
98642         * lib/unictype/categ_Me.h: Likewise.
98643         * lib/unictype/categ_Mn.h: Likewise.
98644         * lib/unictype/categ_N.h: Likewise.
98645         * lib/unictype/categ_Nd.h: Likewise.
98646         * lib/unictype/categ_Nl.h: Likewise.
98647         * lib/unictype/categ_No.h: Likewise.
98648         * lib/unictype/categ_P.h: Likewise.
98649         * lib/unictype/categ_Pc.h: Likewise.
98650         * lib/unictype/categ_Pd.h: Likewise.
98651         * lib/unictype/categ_Pe.h: Likewise.
98652         * lib/unictype/categ_Pf.h: Likewise.
98653         * lib/unictype/categ_Pi.h: Likewise.
98654         * lib/unictype/categ_Po.h: Likewise.
98655         * lib/unictype/categ_Ps.h: Likewise.
98656         * lib/unictype/categ_S.h: Likewise.
98657         * lib/unictype/categ_Sc.h: Likewise.
98658         * lib/unictype/categ_Sk.h: Likewise.
98659         * lib/unictype/categ_Sm.h: Likewise.
98660         * lib/unictype/categ_So.h: Likewise.
98661         * lib/unictype/categ_Z.h: Likewise.
98662         * lib/unictype/categ_Zl.h: Likewise.
98663         * lib/unictype/categ_Zp.h: Likewise.
98664         * lib/unictype/categ_Zs.h: Likewise.
98665         * lib/unictype/categ_of.h: Likewise.
98666         * lib/unictype/combining.h: Likewise.
98667         * lib/unictype/ctype_alnum.h: Likewise.
98668         * lib/unictype/ctype_alpha.h: Likewise.
98669         * lib/unictype/ctype_blank.h: Likewise.
98670         * lib/unictype/ctype_cntrl.h: Likewise.
98671         * lib/unictype/ctype_digit.h: Likewise.
98672         * lib/unictype/ctype_graph.h: Likewise.
98673         * lib/unictype/ctype_lower.h: Likewise.
98674         * lib/unictype/ctype_print.h: Likewise.
98675         * lib/unictype/ctype_punct.h: Likewise.
98676         * lib/unictype/ctype_space.h: Likewise.
98677         * lib/unictype/ctype_upper.h: Likewise.
98678         * lib/unictype/ctype_xdigit.h: Likewise.
98679         * lib/unictype/decdigit.h: Likewise.
98680         * lib/unictype/digit.h: Likewise.
98681         * lib/unictype/mirror.h: Likewise.
98682         * lib/unictype/numeric.h: Likewise.
98683         * lib/unictype/pr_alphabetic.h: Likewise.
98684         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98685         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98686         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98687         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98688         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98689         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98690         * lib/unictype/pr_bidi_control.h: Likewise.
98691         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98692         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98693         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98694         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98695         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98696         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98697         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98698         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98699         * lib/unictype/pr_bidi_pdf.h: Likewise.
98700         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98701         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98702         * lib/unictype/pr_combining.h: Likewise.
98703         * lib/unictype/pr_composite.h: Likewise.
98704         * lib/unictype/pr_currency_symbol.h: Likewise.
98705         * lib/unictype/pr_dash.h: Likewise.
98706         * lib/unictype/pr_decimal_digit.h: Likewise.
98707         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98708         * lib/unictype/pr_deprecated.h: Likewise.
98709         * lib/unictype/pr_diacritic.h: Likewise.
98710         * lib/unictype/pr_extender.h: Likewise.
98711         * lib/unictype/pr_format_control.h: Likewise.
98712         * lib/unictype/pr_grapheme_base.h: Likewise.
98713         * lib/unictype/pr_grapheme_extend.h: Likewise.
98714         * lib/unictype/pr_grapheme_link.h: Likewise.
98715         * lib/unictype/pr_hex_digit.h: Likewise.
98716         * lib/unictype/pr_hyphen.h: Likewise.
98717         * lib/unictype/pr_id_continue.h: Likewise.
98718         * lib/unictype/pr_id_start.h: Likewise.
98719         * lib/unictype/pr_ideographic.h: Likewise.
98720         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98721         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98722         * lib/unictype/pr_ignorable_control.h: Likewise.
98723         * lib/unictype/pr_iso_control.h: Likewise.
98724         * lib/unictype/pr_join_control.h: Likewise.
98725         * lib/unictype/pr_left_of_pair.h: Likewise.
98726         * lib/unictype/pr_line_separator.h: Likewise.
98727         * lib/unictype/pr_logical_order_exception.h: Likewise.
98728         * lib/unictype/pr_lowercase.h: Likewise.
98729         * lib/unictype/pr_math.h: Likewise.
98730         * lib/unictype/pr_non_break.h: Likewise.
98731         * lib/unictype/pr_not_a_character.h: Likewise.
98732         * lib/unictype/pr_numeric.h: Likewise.
98733         * lib/unictype/pr_other_alphabetic.h: Likewise.
98734         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98735         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98736         * lib/unictype/pr_other_id_continue.h: Likewise.
98737         * lib/unictype/pr_other_id_start.h: Likewise.
98738         * lib/unictype/pr_other_lowercase.h: Likewise.
98739         * lib/unictype/pr_other_math.h: Likewise.
98740         * lib/unictype/pr_other_uppercase.h: Likewise.
98741         * lib/unictype/pr_paired_punctuation.h: Likewise.
98742         * lib/unictype/pr_paragraph_separator.h: Likewise.
98743         * lib/unictype/pr_pattern_syntax.h: Likewise.
98744         * lib/unictype/pr_pattern_white_space.h: Likewise.
98745         * lib/unictype/pr_private_use.h: Likewise.
98746         * lib/unictype/pr_punctuation.h: Likewise.
98747         * lib/unictype/pr_quotation_mark.h: Likewise.
98748         * lib/unictype/pr_radical.h: Likewise.
98749         * lib/unictype/pr_sentence_terminal.h: Likewise.
98750         * lib/unictype/pr_soft_dotted.h: Likewise.
98751         * lib/unictype/pr_space.h: Likewise.
98752         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98753         * lib/unictype/pr_titlecase.h: Likewise.
98754         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98755         * lib/unictype/pr_unified_ideograph.h: Likewise.
98756         * lib/unictype/pr_uppercase.h: Likewise.
98757         * lib/unictype/pr_variation_selector.h: Likewise.
98758         * lib/unictype/pr_white_space.h: Likewise.
98759         * lib/unictype/pr_xid_continue.h: Likewise.
98760         * lib/unictype/pr_xid_start.h: Likewise.
98761         * lib/unictype/pr_zero_width.h: Likewise.
98762         * lib/unictype/scripts.h: Likewise.
98763         * lib/unictype/scripts_byname.gperf: Likewise.
98764         * lib/unictype/sy_c_ident.h: Likewise.
98765         * lib/unictype/sy_c_whitespace.h: Likewise.
98766         * lib/unictype/sy_java_ident.h: Likewise.
98767         * lib/unictype/sy_java_whitespace.h: Likewise.
98769         * lib/unictype/Makefile: New file.
98770         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98771         glibc.
98772         * lib/unictype/3level.h: New file, copied from glibc.
98773         * lib/unictype/3levelbit.h: New file.
98775 2007-11-11  Bruno Haible  <bruno@clisp.org>
98777         * modules/gperf: New file.
98778         * modules/iconv_open (Depends-on): Add it.
98779         (Makefile.am): Remove the GPERF definition.
98781 2007-11-11  Bruno Haible  <bruno@clisp.org>
98783         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98784         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98786 2007-11-11  Bruno Haible  <bruno@clisp.org>
98788         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98789         (usage): Remove function.
98791 2007-11-11  Bruno Haible  <bruno@clisp.org>
98793         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98794         gl_FUNC_CEILF_LIBS.
98795         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98796         gl_FUNC_CEIL_LIBS.
98797         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98798         gl_FUNC_CEILL_LIBS.
98799         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98800         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98801         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98803 2007-11-11  Bruno Haible  <bruno@clisp.org>
98805         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98806         roundf were declared but do not exist on functions.
98807         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98808         roundl were declared but do not exist on functions.
98809         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98810         HAVE_FLOORL_AND_CEILL, respectively.
98811         Needed for Sun C on Solaris 10.
98813 2007-11-11  Bruno Haible  <bruno@clisp.org>
98815         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98816         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98817         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98818         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98819         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98820         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98821         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98822         HAVE_DECL_ROUNDF.
98823         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98824         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98826         of HAVE_DECL_ROUND*.
98827         * modules/math (Makefile.am): Update.
98829 2007-11-10  Bruno Haible  <bruno@clisp.org>
98831         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98832         ptrdiff_t as m4/intl.m4.
98834 2007-11-10  Jim Meyering  <meyering@redhat.com>
98836         Avoid link failure for the argmatch test.
98837         * tests/test-argmatch.c (usage): Define function to avoid a link
98838         failure: argmatch_die requires a usage function.
98840 2007-11-09  Bruno Haible  <bruno@clisp.org>
98842         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98843         * doc/functions/vsnprintf.texi: Likewise.
98844         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98845         with a size argument < 2.
98847 2007-11-09  Bruno Haible  <bruno@clisp.org>
98849         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98850         buffer. Fixes an inefficiency introduced on 2007-11-03.
98852 2007-11-09  Bruno Haible  <bruno@clisp.org>
98854         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98855         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98857 2007-11-08  Jim Meyering  <meyering@redhat.com>
98859         Change cache variable name prefix "jm_" to "gl_" everywhere.
98860         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98861         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98862         * m4/uptime.m4: s/gl_/jm_/
98864 2007-11-07  Bruno Haible  <bruno@clisp.org>
98866         Update to GNU gettext 0.17.
98867         * m4/intl.m4: Update to GNU gettext 0.17.
98868         * m4/po.m4: Likewise.
98869         * modules/gettext (Files): Remove m4/ulonglong.m4.
98870         (configure.ac): Require gettext infrastructure from version 0.17.
98872 2007-11-06  Bruno Haible  <bruno@clisp.org>
98874         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98875         symbolic values are not defined in a public header.
98876         * lib/freadable.c (freadable) [QNX]: Likewise.
98877         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98878         * lib/freading.c (freading) [QNX]: Likewise.
98879         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98880         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98881         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98882         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98883         Reported by Alain Magloire.
98885         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98887 2007-11-05  Bruno Haible  <bruno@clisp.org>
98889         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98890         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98891         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98892         Reported by Eric Blake.
98894 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98895             Bruno Haible  <bruno@clisp.org>
98897         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98898         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98899         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98900         (malloc): Undefine also before including <stdlib.h>.
98901         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98902         Needed on OSF/1 4.0.
98904 2007-11-05  Jim Meyering  <meyering@redhat.com>
98906         git-version-gen: sync from coreutils.
98907         * build-aux/git-version-gen: Add comments.
98908         Change the first '-' to '.' in the snapshot version string,
98909         e.g., 6.9-377-08144 -> 6.9.377-08144
98910         Remove first parameter.
98911         Don't declare a version "-dirty" merely because a time
98912         stamp has changed.
98914 2007-11-04  Bruno Haible  <bruno@clisp.org>
98916         * lib/lock.h: Protect all macro definitions containing an 'if'
98917         statement through a "do { ... } while (0)".
98918         * lib/tls.h: Likewise.
98920 2007-11-04  Bruno Haible  <bruno@clisp.org>
98922         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98924 2007-11-04  Bruno Haible  <bruno@clisp.org>
98926         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98927         * modules/fprintf-posix (Depends-on): Add nocrash.
98928         * modules/snprintf-posix (Depends-on): Likewise.
98929         * modules/sprintf-posix (Depends-on): Likewise.
98930         * modules/vasnprintf-posix (Depends-on): Likewise.
98931         * modules/vasprintf-posix (Depends-on): Likewise.
98932         * modules/vfprintf-posix (Depends-on): Likewise.
98933         * modules/vsnprintf-posix (Depends-on): Likewise.
98934         * modules/vsprintf-posix (Depends-on): Likewise.
98935         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98936         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98937         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98938         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98939         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98940         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98941         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98943 2007-11-04  Bruno Haible  <bruno@clisp.org>
98945         * modules/nocrash: New file.
98946         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98947         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98949 2007-11-04  Bruno Haible  <bruno@clisp.org>
98951         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98952         precision handling.
98953         * tests/test-vasprintf-posix.c (test_function): Likewise.
98954         * tests/test-snprintf-posix.h (test_function): Likewise.
98955         * tests/test-sprintf-posix.h (test_function): Likewise.
98957         Fix *printf behaviour for large precisions on mingw and BeOS.
98958         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98959         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98961         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98962         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98963         gl_PRINTF_PRECISION and test its result. Invoke
98964         gl_PREREQ_VASNPRINTF_PRECISION.
98965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98966         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98967         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98969         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98970         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98971         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98972         * doc/functions/fprintf.texi: Update.
98973         * doc/functions/printf.texi: Update.
98974         * doc/functions/snprintf.texi: Update.
98975         * doc/functions/sprintf.texi: Update.
98976         * doc/functions/vfprintf.texi: Update.
98977         * doc/functions/vprintf.texi: Update.
98978         * doc/functions/vsnprintf.texi: Update.
98979         * doc/functions/vsprintf.texi: Update.
98981 2007-11-04  Bruno Haible  <bruno@clisp.org>
98983         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98985 2007-11-04  Bruno Haible  <bruno@clisp.org>
98987         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98988         Reported by Sylvain Beucler <beuc@gnu.org>.
98990 2007-11-03  Bruno Haible  <bruno@clisp.org>
98992         * tests/test-fprintf-posix2.sh: New file.
98993         * tests/test-fprintf-posix2.c: New file.
98994         * modules/fprintf-posix-tests (Files): Add them.
98995         (TESTS): Add test-fprintf-posix2.sh.
98996         (configure.ac): Check for getrlimit and setrlimit.
98997         (check_PROGRAMS): Add test-fprintf-posix2.
98999         * tests/test-printf-posix2.sh: New file.
99000         * tests/test-printf-posix2.c: New file.
99001         * modules/printf-posix-tests (Files): Add them.
99002         (TESTS): Add test-printf-posix2.sh.
99003         (configure.ac): Check for getrlimit and setrlimit.
99004         (check_PROGRAMS): Add test-printf-posix2.
99006         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
99007         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
99008         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
99009         (decode_double): New function, copied from decode_long_double.
99010         (scale10_round_decimal_decoded): New function, extracted from
99011         scale10_round_decimal_long_double.
99012         (scale10_round_decimal_long_double): Use it.
99013         (scale10_round_decimal_double): New function.
99014         (floorlog10): New function.
99015         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
99016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
99017         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99018         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99019         gl_PRINTF_ENOMEM and test its result. Invoke
99020         gl_PREREQ_VASNPRINTF_ENOMEM.
99021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99022         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99023         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99025         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99026         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99027         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99028         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
99029         * modules/snprintf-posix (Depends-on): Likewise.
99030         * modules/sprintf-posix (Depends-on): Likewise.
99031         * modules/vasnprintf-posix (Depends-on): Likewise.
99032         * modules/vasprintf-posix (Depends-on): Likewise.
99033         * modules/vfprintf-posix (Depends-on): Likewise.
99034         * modules/vsnprintf-posix (Depends-on): Likewise.
99035         * modules/vsprintf-posix (Depends-on): Likewise.
99036         * doc/functions/fprintf.texi: Update.
99037         * doc/functions/printf.texi: Update.
99038         * doc/functions/snprintf.texi: Update.
99039         * doc/functions/sprintf.texi: Update.
99040         * doc/functions/vfprintf.texi: Update.
99041         * doc/functions/vprintf.texi: Update.
99042         * doc/functions/vsnprintf.texi: Update.
99043         * doc/functions/vsprintf.texi: Update.
99045 2007-11-03  Bruno Haible  <bruno@clisp.org>
99047         * modules/frexp-nolibm-tests: New file.
99049         * modules/frexp-nolibm: New file.
99050         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
99052 2007-11-03  Bruno Haible  <bruno@clisp.org>
99054         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
99055         value is C99 compliant.
99056         Needed for OSF/1 5.1.
99058 2007-11-03  Bruno Haible  <bruno@clisp.org>
99060         Fix out-of-memory handling of vasnprintf.
99061         * lib/printf-parse.c: Include <errno.h>.
99062         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
99063         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
99064         is already set.
99066 2007-11-02  Eric Blake  <ebb9@byu.net>
99068         Fix tests on cygwin.
99069         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
99071 2007-11-01  Bruno Haible  <bruno@clisp.org>
99073         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
99074         warning.
99075         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
99076         needed for POSIX compatibility.
99078 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99080         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
99081         for compatibility with GNU.
99083 2007-11-01  Bruno Haible  <bruno@clisp.org>
99085         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
99086         (putenv): Renamed from rpl_putenv. Change argument type from
99087         'const char *' to 'char *'.
99088         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
99089         of defining putenv in config.h, just set REPLACE_PUTENV.
99090         * modules/putenv (Depends-on): Add stdlib.
99091         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99092         (Include): Use <stdlib.h>.
99093         * lib/stdlib.in.h (putenv): New declaration.
99094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
99095         REPLACE_PUTENV.
99096         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
99097         REPLACE_PUTENV.
99098         Needed for MacOS X 10.5.0.
99099         Reported by Peter O'Gorman <peter@pogma.com>.
99101 2007-11-01  Jim Meyering  <meyering@redhat.com>
99103         Treat an empty date string exactly like "0".
99104         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
99105         if the remaining date string (to be parsed) is empty, use "0".
99106         Reported by Mischa Molhoek and discussed in this thread:
99107         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
99109 2007-10-31  Bruno Haible  <bruno@clisp.org>
99111         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
99112         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
99113         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
99114         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
99115         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
99116         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
99118 2007-10-31  Bruno Haible  <bruno@clisp.org>
99120         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
99121         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
99122         (AC_TYPE_LONG_LONG_INT): Use it.
99123         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
99124         it as well.
99125         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
99126         to m4/longlong.m4.
99127         * modules/stdint (Files): Remove m4/ulonglong.m4.
99128         * modules/strtoull (Files): Use m4/longlong.m4 instead of
99129         m4/ulonglong.m4.
99130         * modules/strtoumax (Files): Likewise.
99132 2007-10-30  Bruno Haible  <bruno@clisp.org>
99134         * modules/xvasprintf-posix: New file.
99135         Suggested by Eric Blake.
99137 2007-10-30  Bruno Haible  <bruno@clisp.org>
99139         * modules/xprintf-posix-tests: New file.
99140         * tests/test-xprintf-posix.sh: New file.
99141         * tests/test-xprintf-posix.c: New file.
99142         * tests/test-xfprintf-posix.c: New file.
99144         * modules/xprintf-posix: New file.
99146 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99148         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
99149         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
99150         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
99152 2007-10-29  Bruno Haible  <bruno@clisp.org>
99154         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
99155         contain the special marker '_cv_'.
99156         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
99157         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
99158         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
99159         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
99160         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
99161         Reported by Ralf Wildenhues.
99163 2007-10-29  Bruno Haible  <bruno@clisp.org>
99165         * gnulib-tool (func_import): When --lgpl is not specified, set
99166         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
99167         GPLv3.
99168         Reported by Simon Josefsson.
99170 2007-10-28  Bruno Haible  <bruno@clisp.org>
99172         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
99173         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
99174         HAVE_DECL_ISFINITE.
99175         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99176         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
99177         HAVE_DECL_ISFINITE.
99179 2007-10-28  Bruno Haible  <bruno@clisp.org>
99181         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
99182         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
99184 2007-10-28  Bruno Haible  <bruno@clisp.org>
99186         Fix link errors with Sun C 5.0 on Solaris 10.
99187         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
99188         function is declared but not present in the compiler's libm.
99189         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
99190         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
99191         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99192         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99193         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99194         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99195         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99197         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
99198         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
99199         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
99200         HAVE_DECL_FLOORL.
99202 2007-10-28  Bruno Haible  <bruno@clisp.org>
99204         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
99205         gl_FUNC_FLOORL. Cache the result.
99206         (gl_FUNC_FLOORL): Use it.
99207         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
99208         gl_FUNC_CEILL. Cache the result.
99209         (gl_FUNC_CEILL): Use it.
99211         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
99212         gl_FUNC_FLOOR. Cache the result.
99213         (gl_FUNC_FLOOR): Use it.
99214         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
99215         gl_FUNC_CEIL. Cache the result.
99216         (gl_FUNC_CEIL): Use it.
99218         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
99219         gl_FUNC_FLOORF. Cache the result.
99220         (gl_FUNC_FLOORF): Use it.
99221         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
99222         gl_FUNC_CEILF. Cache the result.
99223         (gl_FUNC_CEILF): Use it.
99225 2007-10-28  Bruno Haible  <bruno@clisp.org>
99227         * gnulib-tool: Allow specifying the LGPL version number through
99228         --lgpl=2 or --lgpl=3.
99229         (func_usage): Document --lgpl with argument.
99230         Handle --lgpl=... arguments.
99231         (func_import): Recognize also gl_LGPL calls with an argument. When
99232         --lgpl=2 is used and the module's license is just LGPL, report an
99233         error. Set sed_transform_lib_file according to the lgpl variable. In
99234         the generated files, use --lgpl or gl_LGPL invocations with argument,
99235         if necessary.
99236         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
99237         an LGPv2+ license.
99238         * doc/gnulib-tool.texi (Modified imports): Update explanation of
99239         gl_LGPL macro.
99241 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99242             Bruno Haible  <bruno@clisp.org>
99244         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
99245         (u16_uctomb_aux): Likewise.
99246         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
99247         !HAVE_INLINE.
99248         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
99250 2007-10-28  Bruno Haible  <bruno@clisp.org>
99252         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
99253         Invoke AM_GETTEXT_OPTION if it exists.
99254         * modules/vasprintf: Likewise.
99255         * modules/verror: Likewise.
99256         * modules/xprintf: Likewise.
99257         * modules/xvasprintf: Likewise.
99259 2007-10-27  Ben Pfaff  <blp@gnu.org>
99261         * lib/math.in.h: Define isfinite macro and prototypes for
99262         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
99263         implementations.
99264         * m4/math_h.m4: New substitutions for isfinite module.
99265         * lib/isfinite.c: New file.
99266         * m4/isfinite.m4: New file.
99267         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
99268         * modules/isfinite: New file.
99269         * modules/isfinite-tests: New file.
99270         * tests/tests-isfinite.c: New file.
99271         * doc/functions/isfinite.texi: Mention isfinite module.
99272         * MODULES.html.sh: Mention new module.
99274 2007-10-27  Ben Pfaff  <blp@gnu.org>
99276         Ralf Wildenhues reported that Tru64 4.0D declares the round
99277         functions but does not have definitions.
99278         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
99279         cannot be found in any library, set the output variable to
99280         "missing" instead of "".
99281         * m4/round.m4: Also use our substitute if we cannot find round in
99282         any library, even if it is declared.
99283         * m4/roundf.m4: Likewise for roundf.
99284         * m4/roundl.m4: Likewise for roundl.
99285         * lib/math.in.h: Undefine roundf, round, roundl before defining
99286         their replacements, to allow for hypothetical systems where these
99287         may be defined as macros but not available in libraries.
99289 2007-10-27  Bruno Haible  <bruno@clisp.org>
99291         * doc/gnulib.texi: Invoke @firstparagraphindent.
99292         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
99293         changes in gnulib.
99294         (Source changes): New section.
99296 2007-10-26  Bruno Haible  <bruno@clisp.org>
99298         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
99299         borrowed from autoconf.
99301 2007-10-26  Bruno Haible  <bruno@clisp.org>
99303         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
99304         strerror returned the empty string. Needed on HP-UX 11.00.
99306 2007-10-24  Micah Cowan  <micah@cowan.name>
99308         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
99309         * build-aux/bootstrap: Remove support for now-unnecessary option,
99310         --cvs-user, and envvars CVS_USER, CVS_RSH.
99312 2007-10-24  Jim Meyering  <meyering@redhat.com>
99314         Avoid diagnostics from sha1sum when there is no cached checksum.
99315         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
99316         if the po.s1 file hasn't been created yet.
99318         * build-aux/bootstrap: Sync from coreutils:
99319         2007-10-24  Jim Meyering  <meyering@redhat.com>
99320         Get gnulib from the git repository, not from an obsolete cvs one.
99321         * build-aux/bootstrap: Suggestion from Micah Cowan.
99322         2007-10-04  Jim Meyering  <jim@meyering.net>
99323         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
99324         (update_po_files): Work also when there are no .po files in po/.
99326 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99328         * README: Append ".git" to git and cg examples.
99329         Problem reported by Benoit Sigoure.
99331 2007-10-23  Micah Cowan  <micah@cowan.name>
99333         * users.txt: Add wget.
99335 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99337         Fix linking of some unistdio tests on FreeBSD.
99338         * modules/unistdio/u16-vsnprintf-tests
99339         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
99340         * modules/unistdio/u16-vsprintf-tests
99341         (test_u16_vsnprintf1_LDADD): Likewise.
99342         * modules/unistdio/u32-vsnprintf-tests
99343         (test_u32_vsnprintf1_LDADD): Likewise.
99344         * modules/unistdio/u32-vsprintf-tests
99345         (test_u32_vsprintf1_LDADD): Likewise.
99346         * modules/unistdio/u8-vsnprintf-tests
99347         (test_u8_vsnprintf1_LDADD): Likewise.
99348         * modules/unistdio/u8-vsprintf-tests
99349         (test_u8_vsprintf1_LDADD): Likewise.
99350         * modules/unistdio/ulc-vsnprintf-tests
99351         (test_ulc_vsnprintf1_LDADD): Likewise.
99352         * modules/unistdio/ulc-vsprintf-tests
99353         (test_ulc_vsprintf1_LDADD): Likewise.
99355         Fix linking of some uniconv tests on FreeBSD.
99356         * modules/uniconv/u16-conv-from-enc-tests
99357         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
99358         * modules/uniconv/u16-conv-to-enc-tests
99359         (test_u16_conv_to_enc_LDADD): Likewise.
99360         * modules/uniconv/u16-strconv-from-enc-tests
99361         (test_u16_strconv_from_enc_LDADD): Likewise.
99362         * modules/uniconv/u16-strconv-to-enc-tests
99363         (test_u16_strconv_to_enc_LDADD): Likewise.
99364         * modules/uniconv/u32-conv-from-enc-tests
99365         (test_u32_conv_from_enc_LDADD): Likewise.
99366         * modules/uniconv/u32-conv-to-enc-tests
99367         (test_u32_conv_to_enc_LDADD): Likewise.
99368         * modules/uniconv/u32-strconv-from-enc-tests
99369         (test_u32_strconv_from_enc_LDADD): Likewise.
99370         * modules/uniconv/u32-strconv-to-enc-tests
99371         (test_u32_strconv_to_enc_LDADD): Likewise.
99372         * modules/uniconv/u8-conv-from-enc-tests
99373         (test_u8_conv_from_enc_LDADD): Likewise.
99374         * modules/uniconv/u8-conv-to-enc-tests
99375         (test_u8_conv_to_enc_LDADD): Likewise.
99376         * modules/uniconv/u8-strconv-from-enc-tests
99377         (test_u8_strconv_from_enc_LDADD): Likewise.
99378         * modules/uniconv/u8-strconv-to-enc-tests
99379         (test_u8_strconv_to_enc_LDADD): Likewise.
99381 2007-10-22  Bruno Haible  <bruno@clisp.org>
99383         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99384         size.
99386 2007-10-22  Eric Blake  <ebb9@byu.net>
99388         Tweak x*printf documentation.
99389         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99390         variable name and comments.
99391         Suggested by Bruno Haible.
99393 2007-10-22  Bruno Haible  <bruno@clisp.org>
99395         * lib/acl.c (copy_acl): Fix file name in comment.
99397 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99399         Fix Tru64 problem with stdbool.h.
99400         * lib/stdbool.in.h (false, true):
99401         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99402         Don't declare as an enum in this situation; it runs afoul of Tru64.
99403         Problem reported by Steven M. Schweda in
99404         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99406 2007-10-22  Eric Blake  <ebb9@byu.net>
99408         Also wrap vf?printf.
99409         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99410         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99411         (xvprintf, xvfprintf): New functions.
99413 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99415         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99416         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99418         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99419         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99421 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99423         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99424         by Bruno Haible.
99426 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99428         * lib/getloadavg.c
99429         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99430         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99432         * tests/test-i-ring.c: Work for C89.
99434 2007-10-22  Bruno Haible  <bruno@clisp.org>
99436         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99437         -1u, in preprocessor expression, so that we don't test for the bug
99438         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99439         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99441 2007-10-22  Eric Blake  <ebb9@byu.net>
99443         * tests/test-yesno.sh: Silence stderr during test.
99445 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99447         * modules/crypto/gc-camellia: New file.
99449         * m4/gc-camellia.m4: New file.
99451         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99453         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99455 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99457         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99458         --help to stdout.  Reported by sms@antinode.org (Steven
99459         M. Schweda).
99461 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99463         * users.txt: Fix link to libksba.
99465 2007-10-21  Ben Pfaff  <blp@gnu.org>
99467         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99468         round.c roundf implementation that depends on floorf and ceilf to
99469         be tested unconditionally.
99471 2007-10-21  Ben Pfaff  <blp@gnu.org>
99473         * m4/check-libm-func.m4: Removed.
99474         * m4/check-math-lib.m4: New file.
99475         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
99476         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
99477         definition and lack of AC_LIBOBJ([roundf]).
99478         * m4/roundl.m4: Ditto, and similarly for roundl.
99479         * modules/round: Reference new m4 file.
99480         * modules/roundf: Ditto.
99481         * modules/roundl: Ditto.
99482         * tests/test-round2.c (main): Use ROUND instead of round.
99483         Bug report from Bruno Haible.
99485 2007-10-21  Bruno Haible  <bruno@clisp.org>
99487         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
99488         context.
99490 2007-10-21  Bruno Haible  <bruno@clisp.org>
99492         * tests/test-wcwidth.c (main): Allow negative result for some control
99493         characters.
99495         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
99496         Needed on OSF/1 5.1.
99498 2007-10-21  Bruno Haible  <bruno@clisp.org>
99500         * tests/test-floorf1.c: Include isnanf.h.
99501         (main): Use isnanf() instead of isnan().
99502         * tests/test-ceilf1.c: Include isnanf.h.
99503         (main): Use isnanf() instead of isnan().
99504         * tests/test-truncf1.c: Include isnanf.h.
99505         (main): Use isnanf() instead of isnan().
99506         * tests/test-roundf1.c: Include isnanf.h.
99507         (main): Use isnanf() instead of isnan().
99509 2007-10-21  Eric Blake  <ebb9@byu.net>
99511         * users.txt: Update URL for m4.
99513 2007-10-21  Bruno Haible  <bruno@clisp.org>
99515         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
99517 2007-10-21  Bruno Haible  <bruno@clisp.org>
99519         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
99520         Git's management files if the CVS files are not present.
99522 2007-10-20  Bruno Haible  <bruno@clisp.org>
99524         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
99525         gcc-3.4.x.
99527 2007-10-20  Ben Pfaff  <blp@gnu.org>
99529         * lib/math.in.h: Declare round, roundf, roundl if we are providing
99530         implementations.
99531         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
99532         * lib/round.c: New file.
99533         * lib/roundf.c: New file.
99534         * lib/roundl.c: New file.
99535         * m4/round.m4: New file.
99536         * m4/roundf.m4: New file.
99537         * m4/roundl.m4: New file.
99538         * m4/check-libm-func-m4: New file.
99539         * modules/math: Replace round, roundf, roundl related @VARS@ in
99540         math.in.h.
99541         * modules/round: New file.
99542         * modules/round-tests: New file.
99543         * modules/roundf: New file.
99544         * modules/roundf-tests: New file.
99545         * modules/roundl: New file.
99546         * modules/roundl-tests: New file.
99547         * tests/test-round1.c: New file.
99548         * tests/test-round2.c: New file.
99549         * tests/test-roundf1.c: New file.
99550         * tests/test-roundf2.c: New file.
99551         * tests/test-roundl.c: New file.
99552         * doc/functions/round.texi: Mention round module.
99553         * doc/functions/roundf.texi: Mention roundf module.
99554         * doc/functions/roundl.texi: Mention roundl module.
99555         * MODULES.html.sh: Mention new modules.
99556         Thanks to Bruno Haible for suggestions.
99558 2007-10-20  Jim Meyering  <meyering@redhat.com>
99560         * lib/xprintf.c: Include <config.h> unconditionally.
99562         Change xprintf's license to GPL.
99563         * modules/xprintf (License): s/LGPL/GPL/, since this module
99564         depends on modules (exit and exitfail) which are GPL.
99565         Suggestion from Bruno Haible.
99567         xprintf fixes.
99568         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
99569         Use a clearer diagnostic.
99570         Patch from Bruno Haible.
99572 2007-10-20  Bruno Haible  <bruno@clisp.org>
99574         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
99575         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
99576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99578 2007-10-20  Bruno Haible  <bruno@clisp.org>
99580         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
99581         precision in the comparison result > x - 1 or similar.
99582         * tests/test-ceilf2.c (correct_result_p): Likewise.
99583         * tests/test-truncf2.c (correct_result_p): Likewise.
99584         * tests/test-trunc2.c (correct_result_p): Likewise.
99585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99587 2007-10-20  Bruno Haible  <bruno@clisp.org>
99589         * modules/ceil: New file.
99590         * m4/ceil.m4: New file.
99591         * doc/functions/ceil.texi: Mention the 'ceil' module.
99593 2007-10-20  Bruno Haible  <bruno@clisp.org>
99595         * modules/floor: New file.
99596         * m4/floor.m4: New file.
99597         * doc/functions/floor.texi: Mention the 'floor' module.
99599 2007-10-20  Bruno Haible  <bruno@clisp.org>
99601         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
99602         of %a.
99603         * modules/floorf-tests (Depends-on): Likewise.
99604         * modules/truncf-tests (Depends-on): Likewise.
99605         * modules/trunc-tests (Depends-on): Likewise.
99606         Reported by Ben Pfaff.
99608 2007-10-19  Jim Meyering  <meyering@redhat.com>
99610         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99611         Don't bother testing specific errno values.  Just test ferror.
99613         New module: xprintf
99614         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99616 2007-10-19  Bruno Haible  <bruno@clisp.org>
99618         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
99619         syntax.
99620         * modules/javaexec (Makefile.am): Likewise.
99621         * modules/relocatable-prog (Makefile.am): Likewise.
99622         Suggested by Jim Meyering.
99624 2007-10-18  Bruno Haible  <bruno@clisp.org>
99626         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
99627         Reported by Jim Meyering.
99629 2007-10-18  Eric Blake  <ebb9@byu.net>
99631         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
99633 2007-10-18  Bruno Haible  <bruno@clisp.org>
99635         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
99636         the format string into writable memory. Needed in Fortify conditions.
99638 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
99639             Bruno Haible  <bruno@clisp.org>
99641         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
99642         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
99643         * modules/trim (Depends-on): Add mbchar.
99644         (configure.ac): Add gl_FUNC_MBRTOWC.
99645         (Makefile.am): Augment lib_SOURCES.
99647 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99649         Modify glob.c to use fstatat and dirfd, to simplify it.
99650         Suggested by Eric Blake.
99651         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
99652         Don't include <stdbool.h>; not used.
99653         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
99654         (link_exists_p): Simplify implementation, since we can now assume
99655         dirfd and fstatat.
99656         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
99658 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99660         * gnulib-tool (func_get_dependencies): Fix sed script to
99661         match only tests.
99663 2007-10-17  Bruno Haible  <bruno@clisp.org>
99665         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
99666         allow locale names without encoding suffix.
99667         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
99668         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99670 2007-10-16  Bruno Haible  <bruno@clisp.org>
99672         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
99673         * lib/getgroups.c (getgroups): Likewise.
99674         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
99676 2007-10-16  Bruno Haible  <bruno@clisp.org>
99678         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
99679         * modules/malloc-posix (License): Likewise.
99680         * modules/realloc-posix (License): Likewise.
99681         * modules/calloc-posix (License): Likewise.
99682         * modules/intprops (License): Change from GPL to LGPL, with
99683         Paul Eggert's approval.
99685 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99687         Merge glibc changes into lib/glob.c.
99689         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99690         2007-10-15 04:59:03 UTC.  Here are the changes:
99692         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99694         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99696         * lib/glob.c: Add some branch prediction throughout.
99698         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99700         [BZ #5103]
99701         * lib/glob.c (glob): Recognize patterns starting \/.
99703         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99705         [BZ #3996]
99706         * lib/glob.c (attribute_hidden): Define if not defined.
99707         (glob): Unescape dirname, filename or username when needed and not
99708         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99709         is NULL.  Handle unescaped [ in pattern without closing ].
99710         Don't pass GLOB_CHECK down to recursive glob for directories.
99711         (__glob_pattern_type): New function.
99712         (__glob_pattern_p): Implement using __glob_pattern_type.
99713         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99714         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99715         Remove unreachable code.
99717         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99719         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99720         explain why there are no leaks.
99722         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99724         [BZ #3253]
99725         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99726         time, rather allocate increasingly bigger arrays of pointers, if
99727         possible with alloca, if too large with malloc.
99729 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99731         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99732         Problem reported by H.Merijn Brand in
99733         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99735         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99737 2007-10-15  Bruno Haible  <bruno@clisp.org>
99739         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99740         with explicit rpl_ prefix.
99741         * lib/fopen.c (fopen): Likewise.
99742         * lib/freopen.c (freopen): Likewise.
99743         * lib/iconv.c (iconv): Likewise.
99744         * lib/iconv_close.c (iconv_close): Likewise.
99746 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99748         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99750 2007-10-15  Bruno Haible  <bruno@clisp.org>
99752         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99753         <stddef.h> instead of <stdlib.h> since we only need NULL.
99754         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99756 2007-10-15  Bruno Haible  <bruno@clisp.org>
99758         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99759         Replace paragraph talking about LIBOBJS.
99760         Reported by Colin Watson <cjwatson@debian.org>.
99762 2007-10-15  Bruno Haible  <bruno@clisp.org>
99764         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99765         <stdlib.h> before using NULL.
99767 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99769         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99770         Reported by Albert Chin <china@thewrittenword.com>.
99772 2007-10-14  Bruno Haible  <bruno@clisp.org>
99774         * modules/iconv_open-utf-tests: New file.
99775         * tests/test-iconv-utf.c: New file.
99777         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99778         * modules/iconv_open-utf: New file.
99779         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99780         (iconv, iconv_close): New declarations.
99781         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99782         be defined.
99783         (iconv_open): Add special handling of conversion between UTF-8 and
99784         UTF-{16,32}{BE,LE}.
99785         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99786         * lib/iconv_close.c: New file.
99787         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99788         gl_FUNC_ICONV_OPEN.
99789         (gl_FUNC_ICONV_OPEN): Use it.
99790         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99791         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99792         and REPLACE_ICONV_UTF.
99793         * modules/iconv_open (Depends-on): Add c-strcase.
99794         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99795         ICONV_CONST.
99796         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99798 2007-10-13  Albert Chin  <china@thewrittenword.com>
99799             Bruno Haible  <bruno@clisp.org>
99801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99802         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99804 2007-10-13  Bruno Haible  <bruno@clisp.org>
99806         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99807         defined, use the ISO C99 inline semantics.
99808         * lib/argp.h (ARGP_EI): Likewise.
99810 2007-10-13  Bruno Haible  <bruno@clisp.org>
99812         Handle 'inline' change in gcc 4.3.0.
99813         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99814         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99815         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99816         argp_fmtstream_point): Disable 'extern' declaration if the function
99817         definition is going to be provided inline.
99818         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99819         semantics, not the ISO C99 inline semantics.
99820         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99821         'extern' declaration if the function definition is going to be provided
99822         inline.
99823         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99824         the GNU C inline semantics, not the ISO C99 inline semantics. With
99825         GCC 4.2, avoid a warning.
99827 2007-10-13  Bruno Haible  <bruno@clisp.org>
99829         * lib/freading.h (freading): Enable the use of __freading for
99830         glibc >= 2.7.
99831         * lib/freading.c (freading): Likewise.
99833 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99835         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99836         "warning: C99 inline functions are not supported; using GNU89".
99838 2007-10-12  Bruno Haible  <bruno@clisp.org>
99840         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99841         of 2.
99842         * tests/test-ceilf2.c: New file.
99843         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99845         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99846         * modules/ceilf-tests: Update.
99848 2007-10-12  Bruno Haible  <bruno@clisp.org>
99850         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99851         of 2.
99852         * tests/test-floorf2.c: New file.
99853         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99855         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99856         * modules/floorf-tests: Update.
99858 2007-10-12  Bruno Haible  <bruno@clisp.org>
99860         * tests/test-trunc2.c: New file.
99861         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99863         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99864         * modules/trunc-tests: Update.
99866 2007-10-12  Bruno Haible  <bruno@clisp.org>
99868         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99869         of 2.
99870         * tests/test-truncf2.c: New file.
99871         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99873         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99874         * modules/truncf-tests: Update.
99876 2007-10-11  Eric Blake  <ebb9@byu.net>
99878         Don't claim strerror is broken on Interix.
99879         * doc/functions/strerror.texi (strerror): Known broken systems are
99880         now Solaris 8, and not Interix.
99881         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99882         Interix on cross-compile.
99883         Reported by Martin Koeppe in
99884         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99886 2007-10-11  Bruno Haible  <bruno@clisp.org>
99888         * modules/i-ring-tests: New file.
99889         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99890         instead of assert.
99892 2007-10-11  Bruno Haible  <bruno@clisp.org>
99894         * modules/filenamecat-tests: New file.
99895         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99896         * lib/filenamecat.c: Remove test code.
99898 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99900         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99902         * lib/strerror.c: Include <string.h> always, to test interface,
99903         and to remove the need for the dummy.
99904         Include intprops.h to compute width instead of doing it ourselves
99905         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99906         (strerror): Define it to return NULL if there's no system strerror.
99907         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99908         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99909         ancient pre-strerror Unix systems well any more.  Saying "unknown
99910         system error" is enough.
99911         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99912         simpler strerror.c implementation.
99913         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99914         Simplify the tests to reflect the simpler strerror implementation.
99915         * modules/strerror (Depends-on): Add intprops.
99917 2007-10-09  Eric Blake  <ebb9@byu.net>
99919         Silence test-fpending.
99920         * modules/fpending-tests (Files): Add wrapper script.
99921         * tests/test-fpending.sh: New file.
99923 2007-10-09  Bruno Haible  <bruno@clisp.org>
99925         * MODULES.html.sh (func_module): Don't create a hyperlink for
99926         function names like 'printf_frexp'.
99927         (Misc): Add crc, memxor.
99928         (Characteristics of floating types): New section.
99929         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99930         isnanf-nolibm, signbit, trunc, truncf, truncl.
99931         (Enhancements for ISO C 99 functions): New subsection Input/output.
99932         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99933         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99934         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99935         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99936         (Enhancements for POSIX:2001 functions): Add chdir-long.
99937         (File system functions): Add areadlink, chdir-safer, read-file.
99938         Remove cycle-check.
99939         (File system as inode set): New section.
99940         (Date and time): Add gethrxtime.
99941         (Multithreading): Add openmp.
99942         (Internationalization functions): Add localename.
99943         (Unicode string functions): Add unistr/u*-mbsnlen.
99944         (Support for maintaining and releasing projects): Add git-version-gen.
99945         (Lone files): Remove directories.
99947 2007-10-08  Ben Pfaff  <blp@gnu.org>
99949         * lib/xmalloca.h: Fix typo in comment.
99951 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99953         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99954         when avoiding problems with integer overflow.  Use a portable test
99955         instead.
99957 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99959         * modules/dummy (License): Change to LGPLv2+.
99960         * modules/float (License): Likewise
99961         * modules/realloc (License): Likewise
99962         * modules/stdlib (License): Likewise
99964 2007-10-07  Bruno Haible  <bruno@clisp.org>
99966         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99967         * floor.c (TWO_MANT_DIG): Likewise.
99968         * ceil.c (TWO_MANT_DIG): Likewise.
99969         Reported by Ben Pfaff.
99971 2007-10-07  Bruno Haible  <bruno@clisp.org>
99973         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99974         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99975         * lib/frexp.c (FUNC): Likewise.
99976         * lib/printf-frexp.h (printf_frexp): Likewise.
99977         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99978         * lib/printf-frexp.c (FUNC): Likewise.
99979         Suggested by Jim Meyering.
99981 2007-10-07  Jim Meyering  <meyering@redhat.com>
99983         Make xnanosleep's integer overflow test more robust.
99984         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99985         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99987 2007-10-07  Bruno Haible  <bruno@clisp.org>
99989         * NEWS: Mention the license change.
99991         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99992         abbreviations in the modules files.
99994         Change copyright notice from GPLv2+ to GPLv3+.
99995         * README: Change copyright notice.
99996         * MODULES.html.sh: Likewise.
99997         * build-aux/bootstrap.conf: Likewise.
99998         * build-aux/config.libpath: Likewise.
99999         * build-aux/csharpcomp.sh.in: Likewise.
100000         * build-aux/csharpexec.sh.in: Likewise.
100001         * build-aux/install-reloc: Likewise.
100002         * build-aux/javacomp.sh.in: Likewise.
100003         * build-aux/javaexec.sh.in: Likewise.
100004         * build-aux/ldd.sh.in: Likewise.
100005         * build-aux/reloc-ldflags: Likewise.
100006         * build-aux/relocatable.sh.in: Likewise.
100007         * build-aux/x-to-1.in: Likewise.
100008         * check-module: Likewise.
100009         * config/srclistvars.sh: Likewise.
100010         * gnulib-tool: Likewise.
100011         * lib/acl-internal.h: Likewise.
100012         * lib/acl.c: Likewise.
100013         * lib/acl.h: Likewise.
100014         * lib/acl_entries.c: Likewise.
100015         * lib/areadlink-with-size.c: Likewise.
100016         * lib/areadlink.c: Likewise.
100017         * lib/areadlink.h: Likewise.
100018         * lib/argmatch.c: Likewise.
100019         * lib/argmatch.h: Likewise.
100020         * lib/argp-ba.c: Likewise.
100021         * lib/argp-eexst.c: Likewise.
100022         * lib/argp-fmtstream.c: Likewise.
100023         * lib/argp-fmtstream.h: Likewise.
100024         * lib/argp-fs-xinl.c: Likewise.
100025         * lib/argp-help.c: Likewise.
100026         * lib/argp-namefrob.h: Likewise.
100027         * lib/argp-parse.c: Likewise.
100028         * lib/argp-pin.c: Likewise.
100029         * lib/argp-pv.c: Likewise.
100030         * lib/argp-pvh.c: Likewise.
100031         * lib/argp-xinl.c: Likewise.
100032         * lib/argp.h: Likewise.
100033         * lib/at-func.c: Likewise.
100034         * lib/atanl.c: Likewise.
100035         * lib/backupfile.c: Likewise.
100036         * lib/backupfile.h: Likewise.
100037         * lib/basename.c: Likewise.
100038         * lib/binary-io.h: Likewise.
100039         * lib/byteswap.in.h: Likewise.
100040         * lib/c-stack.c: Likewise.
100041         * lib/c-stack.h: Likewise.
100042         * lib/c-strcasestr.c: Likewise.
100043         * lib/c-strcasestr.h: Likewise.
100044         * lib/c-strstr.c: Likewise.
100045         * lib/c-strstr.h: Likewise.
100046         * lib/c-strtod.c: Likewise.
100047         * lib/calloc.c: Likewise.
100048         * lib/canon-host.c: Likewise.
100049         * lib/canon-host.h: Likewise.
100050         * lib/canonicalize-lgpl.c: Likewise.
100051         * lib/canonicalize.c: Likewise.
100052         * lib/canonicalize.h: Likewise.
100053         * lib/ceil.c: Likewise.
100054         * lib/ceilf.c: Likewise.
100055         * lib/ceill.c: Likewise.
100056         * lib/chdir-long.c: Likewise.
100057         * lib/chdir-long.h: Likewise.
100058         * lib/chdir-safer.c: Likewise.
100059         * lib/chdir-safer.h: Likewise.
100060         * lib/chown.c: Likewise.
100061         * lib/classpath.c: Likewise.
100062         * lib/classpath.h: Likewise.
100063         * lib/clean-temp.c: Likewise.
100064         * lib/clean-temp.h: Likewise.
100065         * lib/cloexec.c: Likewise.
100066         * lib/close-stream.c: Likewise.
100067         * lib/closein.c: Likewise.
100068         * lib/closein.h: Likewise.
100069         * lib/closeout.c: Likewise.
100070         * lib/closeout.h: Likewise.
100071         * lib/concat-filename.c: Likewise.
100072         * lib/copy-file.c: Likewise.
100073         * lib/copy-file.h: Likewise.
100074         * lib/count-one-bits.h: Likewise.
100075         * lib/crc.c: Likewise.
100076         * lib/crc.h: Likewise.
100077         * lib/creat-safer.c: Likewise.
100078         * lib/csharpcomp.c: Likewise.
100079         * lib/csharpcomp.h: Likewise.
100080         * lib/csharpexec.c: Likewise.
100081         * lib/csharpexec.h: Likewise.
100082         * lib/cycle-check.c: Likewise.
100083         * lib/cycle-check.h: Likewise.
100084         * lib/diacrit.c: Likewise.
100085         * lib/diacrit.h: Likewise.
100086         * lib/diffseq.h: Likewise.
100087         * lib/dirchownmod.c: Likewise.
100088         * lib/dirent.in.h: Likewise.
100089         * lib/dirfd.c: Likewise.
100090         * lib/dirfd.h: Likewise.
100091         * lib/dirname.c: Likewise.
100092         * lib/dirname.h: Likewise.
100093         * lib/dummy.c: Likewise.
100094         * lib/dup-safer.c: Likewise.
100095         * lib/dup2.c: Likewise.
100096         * lib/eealloc.h: Likewise.
100097         * lib/error.c: Likewise.
100098         * lib/error.h: Likewise.
100099         * lib/euidaccess.c: Likewise.
100100         * lib/exclude.c: Likewise.
100101         * lib/exclude.h: Likewise.
100102         * lib/execute.c: Likewise.
100103         * lib/execute.h: Likewise.
100104         * lib/exitfail.c: Likewise.
100105         * lib/exitfail.h: Likewise.
100106         * lib/expl.c: Likewise.
100107         * lib/fatal-signal.c: Likewise.
100108         * lib/fatal-signal.h: Likewise.
100109         * lib/fbufmode.c: Likewise.
100110         * lib/fbufmode.h: Likewise.
100111         * lib/fchdir.c: Likewise.
100112         * lib/fchmodat.c: Likewise.
100113         * lib/fchownat.c: Likewise.
100114         * lib/fcntl--.h: Likewise.
100115         * lib/fcntl-safer.h: Likewise.
100116         * lib/fcntl.in.h: Likewise.
100117         * lib/fd-safer.c: Likewise.
100118         * lib/fflush.c: Likewise.
100119         * lib/file-has-acl.c: Likewise.
100120         * lib/file-set.c: Likewise.
100121         * lib/file-type.c: Likewise.
100122         * lib/file-type.h: Likewise.
100123         * lib/fileblocks.c: Likewise.
100124         * lib/filemode.c: Likewise.
100125         * lib/filemode.h: Likewise.
100126         * lib/filename.h: Likewise.
100127         * lib/filenamecat.c: Likewise.
100128         * lib/filenamecat.h: Likewise.
100129         * lib/findprog.c: Likewise.
100130         * lib/findprog.h: Likewise.
100131         * lib/float.in.h: Likewise.
100132         * lib/floor.c: Likewise.
100133         * lib/floorf.c: Likewise.
100134         * lib/floorl.c: Likewise.
100135         * lib/fopen-safer.c: Likewise.
100136         * lib/fopen.c: Likewise.
100137         * lib/fpending.c: Likewise.
100138         * lib/fpending.h: Likewise.
100139         * lib/fprintf.c: Likewise.
100140         * lib/fprintftime.h: Likewise.
100141         * lib/fpucw.h: Likewise.
100142         * lib/fpurge.c: Likewise.
100143         * lib/fpurge.h: Likewise.
100144         * lib/freadable.c: Likewise.
100145         * lib/freadable.h: Likewise.
100146         * lib/freadahead.c: Likewise.
100147         * lib/freadahead.h: Likewise.
100148         * lib/freading.c: Likewise.
100149         * lib/freading.h: Likewise.
100150         * lib/free.c: Likewise.
100151         * lib/freopen.c: Likewise.
100152         * lib/frexp.c: Likewise.
100153         * lib/frexpl.c: Likewise.
100154         * lib/fseek.c: Likewise.
100155         * lib/fseterr.c: Likewise.
100156         * lib/fseterr.h: Likewise.
100157         * lib/fstatat.c: Likewise.
100158         * lib/fstrcmp.c: Likewise.
100159         * lib/fstrcmp.h: Likewise.
100160         * lib/fsusage.c: Likewise.
100161         * lib/fsusage.h: Likewise.
100162         * lib/ftell.c: Likewise.
100163         * lib/ftello.c: Likewise.
100164         * lib/fts-cycle.c: Likewise.
100165         * lib/fts.c: Likewise.
100166         * lib/fts_.h: Likewise.
100167         * lib/full-read.c: Likewise.
100168         * lib/full-read.h: Likewise.
100169         * lib/full-write.c: Likewise.
100170         * lib/full-write.h: Likewise.
100171         * lib/fwritable.c: Likewise.
100172         * lib/fwritable.h: Likewise.
100173         * lib/fwriteerror.c: Likewise.
100174         * lib/fwriteerror.h: Likewise.
100175         * lib/fwriting.c: Likewise.
100176         * lib/fwriting.h: Likewise.
100177         * lib/gcd.c: Likewise.
100178         * lib/gcd.h: Likewise.
100179         * lib/getcwd.c: Likewise.
100180         * lib/getdate.h: Likewise.
100181         * lib/getdate.y: Likewise.
100182         * lib/getdomainname.c: Likewise.
100183         * lib/getdomainname.h: Likewise.
100184         * lib/getgroups.c: Likewise.
100185         * lib/gethostname.c: Likewise.
100186         * lib/gethrxtime.c: Likewise.
100187         * lib/gethrxtime.h: Likewise.
100188         * lib/getloadavg.c: Likewise.
100189         * lib/getndelim2.c: Likewise.
100190         * lib/getndelim2.h: Likewise.
100191         * lib/getnline.c: Likewise.
100192         * lib/getnline.h: Likewise.
100193         * lib/getopt.c: Likewise.
100194         * lib/getopt.in.h: Likewise.
100195         * lib/getopt1.c: Likewise.
100196         * lib/getopt_int.h: Likewise.
100197         * lib/getpagesize.h: Likewise.
100198         * lib/getsubopt.c: Likewise.
100199         * lib/gettime.c: Likewise.
100200         * lib/getugroups.c: Likewise.
100201         * lib/getugroups.h: Likewise.
100202         * lib/getusershell.c: Likewise.
100203         * lib/gl_anyavltree_list1.h: Likewise.
100204         * lib/gl_anyavltree_list2.h: Likewise.
100205         * lib/gl_anyhash_list1.h: Likewise.
100206         * lib/gl_anyhash_list2.h: Likewise.
100207         * lib/gl_anylinked_list1.h: Likewise.
100208         * lib/gl_anylinked_list2.h: Likewise.
100209         * lib/gl_anyrbtree_list1.h: Likewise.
100210         * lib/gl_anyrbtree_list2.h: Likewise.
100211         * lib/gl_anytree_list1.h: Likewise.
100212         * lib/gl_anytree_list2.h: Likewise.
100213         * lib/gl_anytree_oset.h: Likewise.
100214         * lib/gl_anytreehash_list1.h: Likewise.
100215         * lib/gl_anytreehash_list2.h: Likewise.
100216         * lib/gl_array_list.c: Likewise.
100217         * lib/gl_array_list.h: Likewise.
100218         * lib/gl_array_oset.c: Likewise.
100219         * lib/gl_array_oset.h: Likewise.
100220         * lib/gl_avltree_list.c: Likewise.
100221         * lib/gl_avltree_list.h: Likewise.
100222         * lib/gl_avltree_oset.c: Likewise.
100223         * lib/gl_avltree_oset.h: Likewise.
100224         * lib/gl_avltreehash_list.c: Likewise.
100225         * lib/gl_avltreehash_list.h: Likewise.
100226         * lib/gl_carray_list.c: Likewise.
100227         * lib/gl_carray_list.h: Likewise.
100228         * lib/gl_linked_list.c: Likewise.
100229         * lib/gl_linked_list.h: Likewise.
100230         * lib/gl_linkedhash_list.c: Likewise.
100231         * lib/gl_linkedhash_list.h: Likewise.
100232         * lib/gl_list.c: Likewise.
100233         * lib/gl_list.h: Likewise.
100234         * lib/gl_oset.c: Likewise.
100235         * lib/gl_oset.h: Likewise.
100236         * lib/gl_rbtree_list.c: Likewise.
100237         * lib/gl_rbtree_list.h: Likewise.
100238         * lib/gl_rbtree_oset.c: Likewise.
100239         * lib/gl_rbtree_oset.h: Likewise.
100240         * lib/gl_rbtreehash_list.c: Likewise.
100241         * lib/gl_rbtreehash_list.h: Likewise.
100242         * lib/gl_sublist.c: Likewise.
100243         * lib/gl_sublist.h: Likewise.
100244         * lib/group-member.c: Likewise.
100245         * lib/group-member.h: Likewise.
100246         * lib/hard-locale.c: Likewise.
100247         * lib/hard-locale.h: Likewise.
100248         * lib/hash-pjw.c: Likewise.
100249         * lib/hash-pjw.h: Likewise.
100250         * lib/hash-triple.c: Likewise.
100251         * lib/hash.c: Likewise.
100252         * lib/hash.h: Likewise.
100253         * lib/human.c: Likewise.
100254         * lib/human.h: Likewise.
100255         * lib/i-ring.c: Likewise.
100256         * lib/i-ring.h: Likewise.
100257         * lib/idcache.c: Likewise.
100258         * lib/imaxabs.c: Likewise.
100259         * lib/imaxdiv.c: Likewise.
100260         * lib/inet_pton.c: Likewise.
100261         * lib/inet_pton.h: Likewise.
100262         * lib/intprops.h: Likewise.
100263         * lib/inttostr.c: Likewise.
100264         * lib/inttostr.h: Likewise.
100265         * lib/inttypes.in.h: Likewise.
100266         * lib/isapipe.c: Likewise.
100267         * lib/isdir.c: Likewise.
100268         * lib/isnan.c: Likewise.
100269         * lib/isnan.h: Likewise.
100270         * lib/isnanf.c: Likewise.
100271         * lib/isnanf.h: Likewise.
100272         * lib/isnanl-nolibm.h: Likewise.
100273         * lib/isnanl.c: Likewise.
100274         * lib/isnanl.h: Likewise.
100275         * lib/javacomp.c: Likewise.
100276         * lib/javacomp.h: Likewise.
100277         * lib/javaexec.c: Likewise.
100278         * lib/javaexec.h: Likewise.
100279         * lib/javaversion.c: Likewise.
100280         * lib/javaversion.h: Likewise.
100281         * lib/javaversion.java: Likewise.
100282         * lib/lbrkprop.h: Likewise.
100283         * lib/lchmod.h: Likewise.
100284         * lib/lchown.c: Likewise.
100285         * lib/ldexpl.c: Likewise.
100286         * lib/linebreak.c: Likewise.
100287         * lib/linebreak.h: Likewise.
100288         * lib/linebuffer.c: Likewise.
100289         * lib/linebuffer.h: Likewise.
100290         * lib/locale.in.h: Likewise.
100291         * lib/logl.c: Likewise.
100292         * lib/long-options.c: Likewise.
100293         * lib/long-options.h: Likewise.
100294         * lib/lstat.c: Likewise.
100295         * lib/lstat.h: Likewise.
100296         * lib/math.in.h: Likewise.
100297         * lib/mbchar.c: Likewise.
100298         * lib/mbchar.h: Likewise.
100299         * lib/mbfile.h: Likewise.
100300         * lib/mbiter.h: Likewise.
100301         * lib/mbscasecmp.c: Likewise.
100302         * lib/mbscasestr.c: Likewise.
100303         * lib/mbschr.c: Likewise.
100304         * lib/mbscspn.c: Likewise.
100305         * lib/mbslen.c: Likewise.
100306         * lib/mbsncasecmp.c: Likewise.
100307         * lib/mbsnlen.c: Likewise.
100308         * lib/mbspbrk.c: Likewise.
100309         * lib/mbspcasecmp.c: Likewise.
100310         * lib/mbsrchr.c: Likewise.
100311         * lib/mbssep.c: Likewise.
100312         * lib/mbsspn.c: Likewise.
100313         * lib/mbsstr.c: Likewise.
100314         * lib/mbstok_r.c: Likewise.
100315         * lib/mbswidth.c: Likewise.
100316         * lib/mbswidth.h: Likewise.
100317         * lib/mbuiter.h: Likewise.
100318         * lib/memcasecmp.c: Likewise.
100319         * lib/memcasecmp.h: Likewise.
100320         * lib/memchr.c: Likewise.
100321         * lib/memcmp.c: Likewise.
100322         * lib/memcoll.c: Likewise.
100323         * lib/memcoll.h: Likewise.
100324         * lib/memcpy.c: Likewise.
100325         * lib/memrchr.c: Likewise.
100326         * lib/mkancesdirs.c: Likewise.
100327         * lib/mkdir-p.c: Likewise.
100328         * lib/mkdir-p.h: Likewise.
100329         * lib/mkdir.c: Likewise.
100330         * lib/mkdirat.c: Likewise.
100331         * lib/mkdtemp.c: Likewise.
100332         * lib/mkstemp-safer.c: Likewise.
100333         * lib/mkstemp.c: Likewise.
100334         * lib/modechange.c: Likewise.
100335         * lib/modechange.h: Likewise.
100336         * lib/mountlist.c: Likewise.
100337         * lib/mountlist.h: Likewise.
100338         * lib/mpsort.c: Likewise.
100339         * lib/nanosleep.c: Likewise.
100340         * lib/obstack.c: Likewise.
100341         * lib/obstack.h: Likewise.
100342         * lib/open-safer.c: Likewise.
100343         * lib/open.c: Likewise.
100344         * lib/openat-die.c: Likewise.
100345         * lib/openat-priv.h: Likewise.
100346         * lib/openat-proc.c: Likewise.
100347         * lib/openat.c: Likewise.
100348         * lib/openat.h: Likewise.
100349         * lib/pagealign_alloc.c: Likewise.
100350         * lib/pagealign_alloc.h: Likewise.
100351         * lib/physmem.c: Likewise.
100352         * lib/physmem.h: Likewise.
100353         * lib/pipe-safer.c: Likewise.
100354         * lib/pipe.c: Likewise.
100355         * lib/pipe.h: Likewise.
100356         * lib/posixtm.c: Likewise.
100357         * lib/posixtm.h: Likewise.
100358         * lib/posixver.c: Likewise.
100359         * lib/printf-frexp.c: Likewise.
100360         * lib/printf-frexp.h: Likewise.
100361         * lib/printf-frexpl.c: Likewise.
100362         * lib/printf-frexpl.h: Likewise.
100363         * lib/printf.c: Likewise.
100364         * lib/progname.c: Likewise.
100365         * lib/progname.h: Likewise.
100366         * lib/progreloc.c: Likewise.
100367         * lib/putenv.c: Likewise.
100368         * lib/quote.c: Likewise.
100369         * lib/quote.h: Likewise.
100370         * lib/quotearg.c: Likewise.
100371         * lib/quotearg.h: Likewise.
100372         * lib/raise.c: Likewise.
100373         * lib/readline.c: Likewise.
100374         * lib/readline.h: Likewise.
100375         * lib/readlink.c: Likewise.
100376         * lib/readtokens.c: Likewise.
100377         * lib/readtokens.h: Likewise.
100378         * lib/readtokens0.c: Likewise.
100379         * lib/readtokens0.h: Likewise.
100380         * lib/readutmp.c: Likewise.
100381         * lib/readutmp.h: Likewise.
100382         * lib/realloc.c: Likewise.
100383         * lib/relocwrapper.c: Likewise.
100384         * lib/rename-dest-slash.c: Likewise.
100385         * lib/rename.c: Likewise.
100386         * lib/rmdir.c: Likewise.
100387         * lib/rpmatch.c: Likewise.
100388         * lib/safe-read.c: Likewise.
100389         * lib/safe-read.h: Likewise.
100390         * lib/safe-write.c: Likewise.
100391         * lib/safe-write.h: Likewise.
100392         * lib/same-inode.h: Likewise.
100393         * lib/same.c: Likewise.
100394         * lib/same.h: Likewise.
100395         * lib/save-cwd.c: Likewise.
100396         * lib/save-cwd.h: Likewise.
100397         * lib/savedir.c: Likewise.
100398         * lib/savedir.h: Likewise.
100399         * lib/savewd.c: Likewise.
100400         * lib/savewd.h: Likewise.
100401         * lib/search.in.h: Likewise.
100402         * lib/setenv.c: Likewise.
100403         * lib/setenv.h: Likewise.
100404         * lib/settime.c: Likewise.
100405         * lib/sh-quote.c: Likewise.
100406         * lib/sh-quote.h: Likewise.
100407         * lib/sig2str.c: Likewise.
100408         * lib/sig2str.h: Likewise.
100409         * lib/signal.in.h: Likewise.
100410         * lib/signbitd.c: Likewise.
100411         * lib/signbitf.c: Likewise.
100412         * lib/signbitl.c: Likewise.
100413         * lib/sigprocmask.c: Likewise.
100414         * lib/sincosl.c: Likewise.
100415         * lib/sleep.c: Likewise.
100416         * lib/sprintf.c: Likewise.
100417         * lib/sqrtl.c: Likewise.
100418         * lib/stat-time.h: Likewise.
100419         * lib/stdio--.h: Likewise.
100420         * lib/stdio-safer.h: Likewise.
100421         * lib/stdlib--.h: Likewise.
100422         * lib/stdlib-safer.h: Likewise.
100423         * lib/stdlib.in.h: Likewise.
100424         * lib/stpcpy.c: Likewise.
100425         * lib/stpncpy.c: Likewise.
100426         * lib/strchrnul.c: Likewise.
100427         * lib/strcspn.c: Likewise.
100428         * lib/strerror.c: Likewise.
100429         * lib/strftime.c: Likewise.
100430         * lib/strftime.h: Likewise.
100431         * lib/striconveh.c: Likewise.
100432         * lib/striconveh.h: Likewise.
100433         * lib/striconveha.c: Likewise.
100434         * lib/striconveha.h: Likewise.
100435         * lib/stripslash.c: Likewise.
100436         * lib/strnlen1.c: Likewise.
100437         * lib/strnlen1.h: Likewise.
100438         * lib/strtod.c: Likewise.
100439         * lib/strtoimax.c: Likewise.
100440         * lib/strtok_r.c: Likewise.
100441         * lib/strtol.c: Likewise.
100442         * lib/strtoll.c: Likewise.
100443         * lib/strtoul.c: Likewise.
100444         * lib/strtoull.c: Likewise.
100445         * lib/sysexits.in.h: Likewise.
100446         * lib/tempname.c: Likewise.
100447         * lib/tempname.h: Likewise.
100448         * lib/timespec.h: Likewise.
100449         * lib/tls.c: Likewise.
100450         * lib/tls.h: Likewise.
100451         * lib/tmpdir.c: Likewise.
100452         * lib/tmpdir.h: Likewise.
100453         * lib/tmpfile-safer.c: Likewise.
100454         * lib/tmpfile.c: Likewise.
100455         * lib/trigl.c: Likewise.
100456         * lib/trigl.h: Likewise.
100457         * lib/trim.c: Likewise.
100458         * lib/trim.h: Likewise.
100459         * lib/trunc.c: Likewise.
100460         * lib/truncf.c: Likewise.
100461         * lib/truncl.c: Likewise.
100462         * lib/tsearch.c: Likewise.
100463         * lib/unicodeio.c: Likewise.
100464         * lib/unicodeio.h: Likewise.
100465         * lib/unistd--.h: Likewise.
100466         * lib/unistd-safer.h: Likewise.
100467         * lib/unistdio/ulc-fprintf.c: Likewise.
100468         * lib/unistdio/ulc-vfprintf.c: Likewise.
100469         * lib/unlinkdir.c: Likewise.
100470         * lib/unlinkdir.h: Likewise.
100471         * lib/unlocked-io.h: Likewise.
100472         * lib/unsetenv.c: Likewise.
100473         * lib/userspec.c: Likewise.
100474         * lib/utime.c: Likewise.
100475         * lib/utimecmp.c: Likewise.
100476         * lib/utimecmp.h: Likewise.
100477         * lib/utimens.c: Likewise.
100478         * lib/verify.h: Likewise.
100479         * lib/verror.c: Likewise.
100480         * lib/verror.h: Likewise.
100481         * lib/version-etc-fsf.c: Likewise.
100482         * lib/version-etc.c: Likewise.
100483         * lib/version-etc.h: Likewise.
100484         * lib/vfprintf.c: Likewise.
100485         * lib/vprintf.c: Likewise.
100486         * lib/vsprintf.c: Likewise.
100487         * lib/w32spawn.h: Likewise.
100488         * lib/wait-process.c: Likewise.
100489         * lib/wait-process.h: Likewise.
100490         * lib/wcwidth.c: Likewise.
100491         * lib/write-any-file.c: Likewise.
100492         * lib/xalloc-die.c: Likewise.
100493         * lib/xalloc.h: Likewise.
100494         * lib/xasprintf.c: Likewise.
100495         * lib/xgetcwd.c: Likewise.
100496         * lib/xgetcwd.h: Likewise.
100497         * lib/xgetdomainname.c: Likewise.
100498         * lib/xgetdomainname.h: Likewise.
100499         * lib/xgethostname.c: Likewise.
100500         * lib/xmalloc.c: Likewise.
100501         * lib/xmalloca.c: Likewise.
100502         * lib/xmalloca.h: Likewise.
100503         * lib/xmemcoll.c: Likewise.
100504         * lib/xnanosleep.c: Likewise.
100505         * lib/xreadlink.c: Likewise.
100506         * lib/xreadlink.h: Likewise.
100507         * lib/xsetenv.c: Likewise.
100508         * lib/xsetenv.h: Likewise.
100509         * lib/xstriconv.c: Likewise.
100510         * lib/xstriconv.h: Likewise.
100511         * lib/xstrndup.c: Likewise.
100512         * lib/xstrndup.h: Likewise.
100513         * lib/xstrtod.c: Likewise.
100514         * lib/xstrtod.h: Likewise.
100515         * lib/xstrtol-error.c: Likewise.
100516         * lib/xstrtol.c: Likewise.
100517         * lib/xstrtol.h: Likewise.
100518         * lib/xtime.h: Likewise.
100519         * lib/xvasprintf.c: Likewise.
100520         * lib/xvasprintf.h: Likewise.
100521         * lib/yesno.c: Likewise.
100522         * lib/yesno.h: Likewise.
100523         * posix-modules: Likewise.
100524         * tests/test-alloca-opt.c: Likewise.
100525         * tests/test-arcfour.c: Likewise.
100526         * tests/test-arctwo.c: Likewise.
100527         * tests/test-argmatch.c: Likewise.
100528         * tests/test-argp-2.sh: Likewise.
100529         * tests/test-argp.c: Likewise.
100530         * tests/test-arpa_inet.c: Likewise.
100531         * tests/test-array_list.c: Likewise.
100532         * tests/test-array_oset.c: Likewise.
100533         * tests/test-atexit.c: Likewise.
100534         * tests/test-avltree_list.c: Likewise.
100535         * tests/test-avltree_oset.c: Likewise.
100536         * tests/test-avltreehash_list.c: Likewise.
100537         * tests/test-base64.c: Likewise.
100538         * tests/test-binary-io.c: Likewise.
100539         * tests/test-byteswap.c: Likewise.
100540         * tests/test-c-ctype.c: Likewise.
100541         * tests/test-c-strcasecmp.c: Likewise.
100542         * tests/test-c-strcasestr.c: Likewise.
100543         * tests/test-c-strncasecmp.c: Likewise.
100544         * tests/test-c-strstr.c: Likewise.
100545         * tests/test-canonicalize-lgpl.c: Likewise.
100546         * tests/test-canonicalize.c: Likewise.
100547         * tests/test-carray_list.c: Likewise.
100548         * tests/test-ceilf.c: Likewise.
100549         * tests/test-ceill.c: Likewise.
100550         * tests/test-count-one-bits.c: Likewise.
100551         * tests/test-crc.c: Likewise.
100552         * tests/test-dirname.c: Likewise.
100553         * tests/test-fbufmode.c: Likewise.
100554         * tests/test-fcntl.c: Likewise.
100555         * tests/test-fflush.c: Likewise.
100556         * tests/test-floorf.c: Likewise.
100557         * tests/test-floorl.c: Likewise.
100558         * tests/test-fopen.c: Likewise.
100559         * tests/test-fprintf-posix.c: Likewise.
100560         * tests/test-fprintf-posix.h: Likewise.
100561         * tests/test-fpurge.c: Likewise.
100562         * tests/test-freadable.c: Likewise.
100563         * tests/test-freadahead.c: Likewise.
100564         * tests/test-freading.c: Likewise.
100565         * tests/test-freopen.c: Likewise.
100566         * tests/test-frexp.c: Likewise.
100567         * tests/test-frexpl.c: Likewise.
100568         * tests/test-fseek.c: Likewise.
100569         * tests/test-fseeko.c: Likewise.
100570         * tests/test-fseterr.c: Likewise.
100571         * tests/test-fstrcmp.c: Likewise.
100572         * tests/test-ftell.c: Likewise.
100573         * tests/test-ftello.c: Likewise.
100574         * tests/test-fwritable.c: Likewise.
100575         * tests/test-fwriting.c: Likewise.
100576         * tests/test-getaddrinfo.c: Likewise.
100577         * tests/test-getpass.c: Likewise.
100578         * tests/test-gettimeofday.c: Likewise.
100579         * tests/test-hmac-md5.c: Likewise.
100580         * tests/test-hmac-sha1.c: Likewise.
100581         * tests/test-iconv.c: Likewise.
100582         * tests/test-iconvme.c: Likewise.
100583         * tests/test-inttypes.c: Likewise.
100584         * tests/test-isnan.c: Likewise.
100585         * tests/test-isnanf.c: Likewise.
100586         * tests/test-isnanl-nolibm.c: Likewise.
100587         * tests/test-isnanl.c: Likewise.
100588         * tests/test-isnanl.h: Likewise.
100589         * tests/test-ldexpl.c: Likewise.
100590         * tests/test-linked_list.c: Likewise.
100591         * tests/test-linkedhash_list.c: Likewise.
100592         * tests/test-locale.c: Likewise.
100593         * tests/test-localename.c: Likewise.
100594         * tests/test-lock.c: Likewise.
100595         * tests/test-lseek.c: Likewise.
100596         * tests/test-malloca.c: Likewise.
100597         * tests/test-math.c: Likewise.
100598         * tests/test-mbscasecmp.c: Likewise.
100599         * tests/test-mbscasestr1.c: Likewise.
100600         * tests/test-mbscasestr2.c: Likewise.
100601         * tests/test-mbscasestr3.c: Likewise.
100602         * tests/test-mbscasestr4.c: Likewise.
100603         * tests/test-mbschr.c: Likewise.
100604         * tests/test-mbscspn.c: Likewise.
100605         * tests/test-mbsncasecmp.c: Likewise.
100606         * tests/test-mbspbrk.c: Likewise.
100607         * tests/test-mbspcasecmp.c: Likewise.
100608         * tests/test-mbsrchr.c: Likewise.
100609         * tests/test-mbsspn.c: Likewise.
100610         * tests/test-mbsstr1.c: Likewise.
100611         * tests/test-mbsstr2.c: Likewise.
100612         * tests/test-mbsstr3.c: Likewise.
100613         * tests/test-md5.c: Likewise.
100614         * tests/test-memmem.c: Likewise.
100615         * tests/test-netinet_in.c: Likewise.
100616         * tests/test-open.c: Likewise.
100617         * tests/test-printf-frexp.c: Likewise.
100618         * tests/test-printf-frexpl.c: Likewise.
100619         * tests/test-printf-posix.c: Likewise.
100620         * tests/test-printf-posix.h: Likewise.
100621         * tests/test-rbtree_list.c: Likewise.
100622         * tests/test-rbtree_oset.c: Likewise.
100623         * tests/test-rbtreehash_list.c: Likewise.
100624         * tests/test-read-file.c: Likewise.
100625         * tests/test-rijndael.c: Likewise.
100626         * tests/test-search.c: Likewise.
100627         * tests/test-signbit.c: Likewise.
100628         * tests/test-sleep.c: Likewise.
100629         * tests/test-snprintf-posix.c: Likewise.
100630         * tests/test-snprintf-posix.h: Likewise.
100631         * tests/test-snprintf.c: Likewise.
100632         * tests/test-sprintf-posix.c: Likewise.
100633         * tests/test-sprintf-posix.h: Likewise.
100634         * tests/test-stat-time.c: Likewise.
100635         * tests/test-stdbool.c: Likewise.
100636         * tests/test-stdint.c: Likewise.
100637         * tests/test-stdio.c: Likewise.
100638         * tests/test-stdlib.c: Likewise.
100639         * tests/test-stpncpy.c: Likewise.
100640         * tests/test-strcasestr.c: Likewise.
100641         * tests/test-striconv.c: Likewise.
100642         * tests/test-striconveh.c: Likewise.
100643         * tests/test-striconveha.c: Likewise.
100644         * tests/test-string.c: Likewise.
100645         * tests/test-sys_select.c: Likewise.
100646         * tests/test-sys_socket.c: Likewise.
100647         * tests/test-sys_stat.c: Likewise.
100648         * tests/test-sys_time.c: Likewise.
100649         * tests/test-sysexits.c: Likewise.
100650         * tests/test-time.c: Likewise.
100651         * tests/test-tls.c: Likewise.
100652         * tests/test-trunc.c: Likewise.
100653         * tests/test-truncf.c: Likewise.
100654         * tests/test-truncl.c: Likewise.
100655         * tests/test-unistd.c: Likewise.
100656         * tests/test-vasnprintf-posix.c: Likewise.
100657         * tests/test-vasnprintf-posix2.c: Likewise.
100658         * tests/test-vasnprintf.c: Likewise.
100659         * tests/test-vasprintf-posix.c: Likewise.
100660         * tests/test-vasprintf.c: Likewise.
100661         * tests/test-verify.c: Likewise.
100662         * tests/test-vfprintf-posix.c: Likewise.
100663         * tests/test-vprintf-posix.c: Likewise.
100664         * tests/test-vsnprintf-posix.c: Likewise.
100665         * tests/test-vsnprintf.c: Likewise.
100666         * tests/test-vsprintf-posix.c: Likewise.
100667         * tests/test-wchar.c: Likewise.
100668         * tests/test-wctype.c: Likewise.
100669         * tests/test-wcwidth.c: Likewise.
100670         * tests/test-xstrtol.c: Likewise.
100671         * tests/test-xvasprintf.c: Likewise.
100672         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
100673         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
100674         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100675         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100676         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100677         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
100678         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100679         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100680         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100681         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100682         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100683         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100684         * tests/uniname/test-uninames.c: Likewise.
100685         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100686         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100687         * tests/unistdio/test-u16-printf1.h: Likewise.
100688         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100689         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100690         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100691         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100692         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100693         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100694         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100695         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100696         * tests/unistdio/test-u32-printf1.h: Likewise.
100697         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100698         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100699         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100700         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100701         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100702         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100703         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100704         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100705         * tests/unistdio/test-u8-printf1.h: Likewise.
100706         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100707         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100708         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100709         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100710         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100711         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100712         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100713         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100714         * tests/unistdio/test-ulc-printf1.h: Likewise.
100715         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100716         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100717         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100718         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100719         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100720         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100721         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100722         * tests/uniwidth/test-u16-width.c: Likewise.
100723         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100724         * tests/uniwidth/test-u32-width.c: Likewise.
100725         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100726         * tests/uniwidth/test-u8-width.c: Likewise.
100727         * tests/uniwidth/test-uc_width.c: Likewise.
100728         * config/srclist-update: Likewise.
100729         (fixlicense): Update to GPLv3+.
100731         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100732         * tests/test-tsearch.c: Change copyright notice.
100734         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100735         * lib/c-strcaseeq.h: Change copyright notice.
100736         * lib/streq.h: Likewise.
100737         * lib/uniconv.h: Likewise.
100738         * lib/uniconv/u-conv-from-enc.h: Likewise.
100739         * lib/uniconv/u-conv-to-enc.h: Likewise.
100740         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100741         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100742         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100743         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100744         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100745         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100746         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100747         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100748         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100749         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100750         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100751         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100752         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100753         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100754         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100755         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100756         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100757         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100758         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100759         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100760         * lib/uniname.h: Likewise.
100761         * lib/uniname/uniname.c: Likewise.
100762         * lib/unistdio.h: Likewise.
100763         * lib/unistdio/u-asnprintf.h: Likewise.
100764         * lib/unistdio/u-asprintf.h: Likewise.
100765         * lib/unistdio/u-printf-args.c: Likewise.
100766         * lib/unistdio/u-printf-args.h: Likewise.
100767         * lib/unistdio/u-printf-parse.h: Likewise.
100768         * lib/unistdio/u-snprintf.h: Likewise.
100769         * lib/unistdio/u-sprintf.h: Likewise.
100770         * lib/unistdio/u-vasprintf.h: Likewise.
100771         * lib/unistdio/u-vsnprintf.h: Likewise.
100772         * lib/unistdio/u-vsprintf.h: Likewise.
100773         * lib/unistdio/u16-asnprintf.c: Likewise.
100774         * lib/unistdio/u16-asprintf.c: Likewise.
100775         * lib/unistdio/u16-printf-parse.c: Likewise.
100776         * lib/unistdio/u16-snprintf.c: Likewise.
100777         * lib/unistdio/u16-sprintf.c: Likewise.
100778         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100779         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100780         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100781         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100782         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100783         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100784         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100785         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100786         * lib/unistdio/u16-vasnprintf.c: Likewise.
100787         * lib/unistdio/u16-vasprintf.c: Likewise.
100788         * lib/unistdio/u16-vsnprintf.c: Likewise.
100789         * lib/unistdio/u16-vsprintf.c: Likewise.
100790         * lib/unistdio/u32-asnprintf.c: Likewise.
100791         * lib/unistdio/u32-asprintf.c: Likewise.
100792         * lib/unistdio/u32-printf-parse.c: Likewise.
100793         * lib/unistdio/u32-snprintf.c: Likewise.
100794         * lib/unistdio/u32-sprintf.c: Likewise.
100795         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100796         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100797         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100798         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100799         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100800         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100801         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100802         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100803         * lib/unistdio/u32-vasnprintf.c: Likewise.
100804         * lib/unistdio/u32-vasprintf.c: Likewise.
100805         * lib/unistdio/u32-vsnprintf.c: Likewise.
100806         * lib/unistdio/u32-vsprintf.c: Likewise.
100807         * lib/unistdio/u8-asnprintf.c: Likewise.
100808         * lib/unistdio/u8-asprintf.c: Likewise.
100809         * lib/unistdio/u8-printf-parse.c: Likewise.
100810         * lib/unistdio/u8-snprintf.c: Likewise.
100811         * lib/unistdio/u8-sprintf.c: Likewise.
100812         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100813         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100814         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100815         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100816         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100817         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100818         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100819         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100820         * lib/unistdio/u8-vasnprintf.c: Likewise.
100821         * lib/unistdio/u8-vasprintf.c: Likewise.
100822         * lib/unistdio/u8-vsnprintf.c: Likewise.
100823         * lib/unistdio/u8-vsprintf.c: Likewise.
100824         * lib/unistdio/ulc-asnprintf.c: Likewise.
100825         * lib/unistdio/ulc-asprintf.c: Likewise.
100826         * lib/unistdio/ulc-printf-parse.c: Likewise.
100827         * lib/unistdio/ulc-snprintf.c: Likewise.
100828         * lib/unistdio/ulc-sprintf.c: Likewise.
100829         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100830         * lib/unistdio/ulc-vasprintf.c: Likewise.
100831         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100832         * lib/unistdio/ulc-vsprintf.c: Likewise.
100833         * lib/unistr.h: Likewise.
100834         * lib/unistr/u-cpy-alloc.h: Likewise.
100835         * lib/unistr/u-cpy.h: Likewise.
100836         * lib/unistr/u-endswith.h: Likewise.
100837         * lib/unistr/u-move.h: Likewise.
100838         * lib/unistr/u-set.h: Likewise.
100839         * lib/unistr/u-startswith.h: Likewise.
100840         * lib/unistr/u-stpcpy.h: Likewise.
100841         * lib/unistr/u-stpncpy.h: Likewise.
100842         * lib/unistr/u-strcat.h: Likewise.
100843         * lib/unistr/u-strcpy.h: Likewise.
100844         * lib/unistr/u-strcspn.h: Likewise.
100845         * lib/unistr/u-strdup.h: Likewise.
100846         * lib/unistr/u-strlen.h: Likewise.
100847         * lib/unistr/u-strncat.h: Likewise.
100848         * lib/unistr/u-strncpy.h: Likewise.
100849         * lib/unistr/u-strnlen.h: Likewise.
100850         * lib/unistr/u-strpbrk.h: Likewise.
100851         * lib/unistr/u-strspn.h: Likewise.
100852         * lib/unistr/u-strstr.h: Likewise.
100853         * lib/unistr/u-strtok.h: Likewise.
100854         * lib/unistr/u16-check.c: Likewise.
100855         * lib/unistr/u16-chr.c: Likewise.
100856         * lib/unistr/u16-cmp.c: Likewise.
100857         * lib/unistr/u16-cpy-alloc.c: Likewise.
100858         * lib/unistr/u16-cpy.c: Likewise.
100859         * lib/unistr/u16-endswith.c: Likewise.
100860         * lib/unistr/u16-mblen.c: Likewise.
100861         * lib/unistr/u16-mbsnlen.c: Likewise.
100862         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100863         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100864         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100865         * lib/unistr/u16-mbtouc.c: Likewise.
100866         * lib/unistr/u16-mbtoucr.c: Likewise.
100867         * lib/unistr/u16-move.c: Likewise.
100868         * lib/unistr/u16-next.c: Likewise.
100869         * lib/unistr/u16-prev.c: Likewise.
100870         * lib/unistr/u16-set.c: Likewise.
100871         * lib/unistr/u16-startswith.c: Likewise.
100872         * lib/unistr/u16-stpcpy.c: Likewise.
100873         * lib/unistr/u16-stpncpy.c: Likewise.
100874         * lib/unistr/u16-strcat.c: Likewise.
100875         * lib/unistr/u16-strchr.c: Likewise.
100876         * lib/unistr/u16-strcmp.c: Likewise.
100877         * lib/unistr/u16-strcpy.c: Likewise.
100878         * lib/unistr/u16-strcspn.c: Likewise.
100879         * lib/unistr/u16-strdup.c: Likewise.
100880         * lib/unistr/u16-strlen.c: Likewise.
100881         * lib/unistr/u16-strmblen.c: Likewise.
100882         * lib/unistr/u16-strmbtouc.c: Likewise.
100883         * lib/unistr/u16-strncat.c: Likewise.
100884         * lib/unistr/u16-strncmp.c: Likewise.
100885         * lib/unistr/u16-strncpy.c: Likewise.
100886         * lib/unistr/u16-strnlen.c: Likewise.
100887         * lib/unistr/u16-strpbrk.c: Likewise.
100888         * lib/unistr/u16-strrchr.c: Likewise.
100889         * lib/unistr/u16-strspn.c: Likewise.
100890         * lib/unistr/u16-strstr.c: Likewise.
100891         * lib/unistr/u16-strtok.c: Likewise.
100892         * lib/unistr/u16-to-u32.c: Likewise.
100893         * lib/unistr/u16-to-u8.c: Likewise.
100894         * lib/unistr/u16-uctomb-aux.c: Likewise.
100895         * lib/unistr/u16-uctomb.c: Likewise.
100896         * lib/unistr/u32-check.c: Likewise.
100897         * lib/unistr/u32-chr.c: Likewise.
100898         * lib/unistr/u32-cmp.c: Likewise.
100899         * lib/unistr/u32-cpy-alloc.c: Likewise.
100900         * lib/unistr/u32-cpy.c: Likewise.
100901         * lib/unistr/u32-endswith.c: Likewise.
100902         * lib/unistr/u32-mblen.c: Likewise.
100903         * lib/unistr/u32-mbsnlen.c: Likewise.
100904         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100905         * lib/unistr/u32-mbtouc.c: Likewise.
100906         * lib/unistr/u32-mbtoucr.c: Likewise.
100907         * lib/unistr/u32-move.c: Likewise.
100908         * lib/unistr/u32-next.c: Likewise.
100909         * lib/unistr/u32-prev.c: Likewise.
100910         * lib/unistr/u32-set.c: Likewise.
100911         * lib/unistr/u32-startswith.c: Likewise.
100912         * lib/unistr/u32-stpcpy.c: Likewise.
100913         * lib/unistr/u32-stpncpy.c: Likewise.
100914         * lib/unistr/u32-strcat.c: Likewise.
100915         * lib/unistr/u32-strchr.c: Likewise.
100916         * lib/unistr/u32-strcmp.c: Likewise.
100917         * lib/unistr/u32-strcpy.c: Likewise.
100918         * lib/unistr/u32-strcspn.c: Likewise.
100919         * lib/unistr/u32-strdup.c: Likewise.
100920         * lib/unistr/u32-strlen.c: Likewise.
100921         * lib/unistr/u32-strmblen.c: Likewise.
100922         * lib/unistr/u32-strmbtouc.c: Likewise.
100923         * lib/unistr/u32-strncat.c: Likewise.
100924         * lib/unistr/u32-strncmp.c: Likewise.
100925         * lib/unistr/u32-strncpy.c: Likewise.
100926         * lib/unistr/u32-strnlen.c: Likewise.
100927         * lib/unistr/u32-strpbrk.c: Likewise.
100928         * lib/unistr/u32-strrchr.c: Likewise.
100929         * lib/unistr/u32-strspn.c: Likewise.
100930         * lib/unistr/u32-strstr.c: Likewise.
100931         * lib/unistr/u32-strtok.c: Likewise.
100932         * lib/unistr/u32-to-u16.c: Likewise.
100933         * lib/unistr/u32-to-u8.c: Likewise.
100934         * lib/unistr/u32-uctomb.c: Likewise.
100935         * lib/unistr/u8-check.c: Likewise.
100936         * lib/unistr/u8-chr.c: Likewise.
100937         * lib/unistr/u8-cmp.c: Likewise.
100938         * lib/unistr/u8-cpy-alloc.c: Likewise.
100939         * lib/unistr/u8-cpy.c: Likewise.
100940         * lib/unistr/u8-endswith.c: Likewise.
100941         * lib/unistr/u8-mblen.c: Likewise.
100942         * lib/unistr/u8-mbsnlen.c: Likewise.
100943         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100944         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100945         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100946         * lib/unistr/u8-mbtouc.c: Likewise.
100947         * lib/unistr/u8-mbtoucr.c: Likewise.
100948         * lib/unistr/u8-move.c: Likewise.
100949         * lib/unistr/u8-next.c: Likewise.
100950         * lib/unistr/u8-prev.c: Likewise.
100951         * lib/unistr/u8-set.c: Likewise.
100952         * lib/unistr/u8-startswith.c: Likewise.
100953         * lib/unistr/u8-stpcpy.c: Likewise.
100954         * lib/unistr/u8-stpncpy.c: Likewise.
100955         * lib/unistr/u8-strcat.c: Likewise.
100956         * lib/unistr/u8-strchr.c: Likewise.
100957         * lib/unistr/u8-strcmp.c: Likewise.
100958         * lib/unistr/u8-strcpy.c: Likewise.
100959         * lib/unistr/u8-strcspn.c: Likewise.
100960         * lib/unistr/u8-strdup.c: Likewise.
100961         * lib/unistr/u8-strlen.c: Likewise.
100962         * lib/unistr/u8-strmblen.c: Likewise.
100963         * lib/unistr/u8-strmbtouc.c: Likewise.
100964         * lib/unistr/u8-strncat.c: Likewise.
100965         * lib/unistr/u8-strncmp.c: Likewise.
100966         * lib/unistr/u8-strncpy.c: Likewise.
100967         * lib/unistr/u8-strnlen.c: Likewise.
100968         * lib/unistr/u8-strpbrk.c: Likewise.
100969         * lib/unistr/u8-strrchr.c: Likewise.
100970         * lib/unistr/u8-strspn.c: Likewise.
100971         * lib/unistr/u8-strstr.c: Likewise.
100972         * lib/unistr/u8-strtok.c: Likewise.
100973         * lib/unistr/u8-to-u16.c: Likewise.
100974         * lib/unistr/u8-to-u32.c: Likewise.
100975         * lib/unistr/u8-uctomb-aux.c: Likewise.
100976         * lib/unistr/u8-uctomb.c: Likewise.
100977         * lib/unitypes.h: Likewise.
100978         * lib/uniwidth.h: Likewise.
100979         * lib/uniwidth/cjk.h: Likewise.
100980         * lib/uniwidth/u16-strwidth.c: Likewise.
100981         * lib/uniwidth/u16-width.c: Likewise.
100982         * lib/uniwidth/u32-strwidth.c: Likewise.
100983         * lib/uniwidth/u32-width.c: Likewise.
100984         * lib/uniwidth/u8-strwidth.c: Likewise.
100985         * lib/uniwidth/u8-width.c: Likewise.
100986         * lib/uniwidth/width.c: Likewise.
100988 2007-10-07  Bruno Haible  <bruno@clisp.org>
100990         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100991         The file is still under LGPL (see modules/inttypes).
100993 2007-10-06  Bruno Haible  <bruno@clisp.org>
100995         * modules/trunc (Dependencies): Add 'extensions'.
100996         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100997         Reported by Ben Pfaff <blp@gnu.org>.
100999 2007-10-06  Bruno Haible  <bruno@clisp.org>
101001         * modules/freopen-tests: New file.
101002         * tests/test-freopen.c: New file.
101004         * modules/fopen-tests: New file.
101005         * tests/test-fopen.c: New file.
101007         * modules/fopen: New file.
101008         * lib/fopen.c: New file.
101009         * m4/fopen.m4: New file.
101010         * modules/freopen: New file.
101011         * lib/freopen.c: New file.
101012         * m4/freopen.m4: New file.
101013         * lib/stdio.in.h (fopen, freopen): New declarations.
101014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
101015         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101016         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
101017         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101018         * doc/functions/fopen.texi: Mention the 'fopen' module.
101019         * doc/functions/freopen.texi: Mention the 'freopen' module.
101021 2007-10-06  Bruno Haible  <bruno@clisp.org>
101023         * modules/open-tests: New file.
101024         * tests/test-open.c: New file.
101026         * modules/open: New file.
101027         * lib/open.c: New file.
101028         * m4/open.m4: New file.
101029         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
101030         lib/open.c does.
101031         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
101032         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
101033         macros.
101034         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
101035         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
101036         REPLACE_OPEN.
101037         * doc/functions/open.texi: Mention the 'open' module.
101039 2007-10-04  Bruno Haible  <bruno@clisp.org>
101041         * modules/ceill-tests: New file.
101042         * tests/test-ceill.c: New file.
101044         * modules/ceill: New file.
101045         * lib/ceill.c: Replace entire file.
101046         * m4/ceill.m4: New file.
101047         * lib/math.in.h (ceill): Replace declaration.
101048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
101049         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
101050         * doc/functions/ceill.texi: Mention the 'ceill' module.
101051         * modules/mathl (Files): Remove lib/ceill.c.
101052         (Depends-on): Add ceill.
101054 2007-10-04  Bruno Haible  <bruno@clisp.org>
101056         * modules/ceilf-tests: New file.
101057         * tests/test-ceilf.c: New file.
101059         * modules/ceilf: New file.
101060         * lib/ceil.c: New file.
101061         * lib/ceilf.c: New file.
101062         * m4/ceilf.m4: New file.
101063         * lib/math.in.h (ceilf): New declaration.
101064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
101065         HAVE_DECL_CEILF.
101066         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
101067         HAVE_DECL_CEILF.
101068         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
101070 2007-10-04  Bruno Haible  <bruno@clisp.org>
101072         * modules/floorl-tests: New file.
101073         * tests/test-floorl.c: New file.
101075         * modules/floorl: New file.
101076         * lib/floorl.c: Replace entire file.
101077         * m4/floorl.m4: New file.
101078         * lib/math.in.h (floorl): Replace declaration.
101079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
101080         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
101081         * doc/functions/floorl.texi: Mention the 'floorl' module.
101082         * modules/mathl (Files): Remove lib/floorl.c.
101083         (Depends-on): Add floorl.
101085 2007-10-04  Bruno Haible  <bruno@clisp.org>
101087         * modules/floorf-tests: New file.
101088         * tests/test-floorf.c: New file.
101090         * modules/floorf: New file.
101091         * lib/floor.c: New file.
101092         * lib/floorf.c: New file.
101093         * m4/floorf.m4: New file.
101094         * lib/math.in.h (floorf): New declaration.
101095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
101096         HAVE_DECL_FLOORF.
101097         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
101098         HAVE_DECL_FLOORF.
101099         * doc/functions/floorf.texi: Mention the 'floorf' module.
101101 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
101102             Bruno Haible  <bruno@clisp.org>
101104         Advertise for the Git server instead of the CVS server.
101105         * doc/gnulib-intro.texi (Steady Development): Mention the Git
101106         repository instead of the CVS one.
101107         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
101108         about all VCS systems generically.
101109         * doc/gnulib.texi (Introduction): Capitalize `Git'.
101111 2007-10-04  Bruno Haible  <bruno@clisp.org>
101113         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
101114         means.
101115         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
101117 2007-10-04  Bruno Haible  <bruno@clisp.org>
101119         * modules/truncl-tests: New file.
101120         * tests/test-truncl.c: New file.
101122         * modules/truncl: New file.
101123         * lib/truncl.c: New file.
101124         * m4/truncl.m4: New file.
101125         * lib/math.in.h (truncl): New declaration.
101126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
101127         HAVE_DECL_TRUNCL.
101128         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
101129         HAVE_DECL_TRUNCL.
101130         * doc/functions/truncl.texi: Mention the 'truncl' module.
101132 2007-10-04  Bruno Haible  <bruno@clisp.org>
101134         * modules/truncf-tests: New file.
101135         * tests/test-truncf.c: New file.
101137         * modules/truncf: New file.
101138         * lib/trunc.c: Make paramerizable through USE_* macros.
101139         * lib/truncf.c: New file.
101140         * m4/truncf.m4: New file.
101141         * lib/math.in.h (truncf): New declaration.
101142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
101143         HAVE_DECL_TRUNCF.
101144         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
101145         HAVE_DECL_TRUNCF.
101146         * doc/functions/truncf.texi: Mention the 'truncf' module.
101148 2007-10-03  Bruno Haible  <bruno@clisp.org>
101150         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
101151         augmentation also for tests modules.
101152         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
101153         * modules/atexit-tests (Makefile.am): Likewise.
101154         * modules/binary-io-tests (Makefile.am): Likewise.
101155         * modules/c-strcase-tests (Makefile.am): Likewise.
101156         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
101157         * modules/canonicalize-tests (Makefile.am): Likewise.
101158         * modules/closein-tests (Makefile.am): Likewise.
101159         * modules/fprintf-posix-tests (Makefile.am): Likewise.
101160         * modules/freadahead-tests (Makefile.am): Likewise.
101161         * modules/fseek-tests (Makefile.am): Likewise.
101162         * modules/fseeko-tests (Makefile.am): Likewise.
101163         * modules/ftell-tests (Makefile.am): Likewise.
101164         * modules/ftello-tests (Makefile.am): Likewise.
101165         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
101166         * modules/isnanl-tests (Makefile.am): Likewise.
101167         * modules/lseek-tests (Makefile.am): Likewise.
101168         * modules/mbscasecmp-tests (Makefile.am): Likewise.
101169         * modules/mbscasestr-tests (Makefile.am): Likewise.
101170         * modules/mbschr-tests (Makefile.am): Likewise.
101171         * modules/mbscspn-tests (Makefile.am): Likewise.
101172         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
101173         * modules/mbspbrk-tests (Makefile.am): Likewise.
101174         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101175         * modules/mbsrchr-tests (Makefile.am): Likewise.
101176         * modules/mbsspn-tests (Makefile.am): Likewise.
101177         * modules/mbsstr-tests (Makefile.am): Likewise.
101178         * modules/printf-posix-tests (Makefile.am): Likewise.
101179         * modules/snprintf-posix-tests (Makefile.am): Likewise.
101180         * modules/sprintf-posix-tests (Makefile.am): Likewise.
101181         * modules/tsearch-tests (Makefile.am): Likewise.
101182         * modules/uniname/uniname-tests (Makefile.am): Likewise.
101183         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
101184         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
101185         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
101186         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
101187         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
101188         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
101189         * modules/vprintf-posix-tests (Makefile.am): Likewise.
101190         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
101191         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101192         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101193         * modules/xstrtol-tests (Makefile.am): Likewise.
101194         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101195         * modules/yesno-tests (Makefile.am): Likewise.
101197 2007-10-03  Bruno Haible  <bruno@clisp.org>
101199         * modules/trunc-tests: New file.
101200         * tests/test-trunc.c: New file.
101202         * modules/trunc: New file.
101203         * lib/trunc.c: New file.
101204         * m4/trunc.m4: New file.
101205         * lib/math.in.h (trunc): New declaration.
101206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
101207         HAVE_DECL_TRUNC.
101208         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
101209         HAVE_DECL_TRUNC.
101210         * doc/functions/trunc.texi: Mention the 'trunc' module.
101212 2007-10-03  Bruno Haible  <bruno@clisp.org>
101214         * tests/test-fpending.c: New file, mostly copied
101215         from coreutils/lib/t-fpending.c.
101216         * modules/fpending-tests: New file.
101218 2007-10-03  Bruno Haible  <bruno@clisp.org>
101220         Port the stdio extensions to QNX (untested).
101221         * lib/fseterr.c (fseterr): Add support for QNX.
101222         * lib/fbufmode.c (fbufmode): Likewise.
101223         * lib/freadable.c (freadable): Likewise.
101224         * lib/fwritable.c (fwritable): Likewise.
101225         * lib/freading.c (freading): Likewise.
101226         * lib/fwriting.c (fwriting): Likewise.
101227         * lib/freadahead.c (freadahed): Likewise.
101228         * lib/fpurge.c (fpurge): Likewise.
101229         * lib/fseeko.c (rpl_fseeko): Likewise.
101231 2007-10-03  Bruno Haible  <bruno@clisp.org>
101232             Jim Meyering  <jim@meyering.net>
101233             Eric Blake  <ebb9@byu.net>
101235         * doc/relocatable.texi: Use @command instead of @program.
101237 2007-10-02  Jim Meyering  <jim@meyering.net>
101239         Perform one more "_.h" -> ".in.h" substitution.
101240         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
101241         instead of unistd_.h here, too.
101243 2007-10-01  Bruno Haible  <bruno@clisp.org>
101245         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
101246         Needed for the alloca-opt module.
101248 2007-09-30  Bruno Haible  <bruno@clisp.org>
101250         * lib/alloca.in.h: Renamed from lib/alloca_.h.
101251         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
101252         alloca_.h.
101253         * lib/argz.in.h: Renamed from lib/argz_.h.
101254         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
101255         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
101256         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
101257         byteswap_.h.
101258         * lib/dirent.in.h: Renamed from lib/dirent_.h.
101259         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
101260         dirent_.h.
101261         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
101262         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
101263         fcntl_.h.
101264         * lib/float.in.h: Renamed from lib/float_.h.
101265         * modules/float (Files, Makefile.am): Use float.in.h instead of
101266         float_.h.
101267         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
101268         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
101269         fnmatch_.h.
101270         * lib/getopt.in.h: Renamed from lib/getopt_.h.
101271         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
101272         getopt_.h.
101273         * lib/glob.in.h: Renamed from lib/glob_.h.
101274         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
101275         * lib/iconv.in.h: Renamed from lib/iconv_.h.
101276         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
101277         iconv_.h.
101278         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
101279         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
101280         inttypes_.h.
101281         * lib/locale.in.h: Renamed from lib/locale_.h.
101282         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
101283         locale_.h.
101284         * lib/math.in.h: Renamed from lib/math_.h.
101285         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
101286         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
101287         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
101288         of netinet_in_.h. Add dependency.
101289         * lib/poll.in.h: Renamed from lib/poll_.h.
101290         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
101291         * lib/search.in.h: Renamed from lib/search_.h.
101292         * modules/search (Files, Makefile.am): Use search.in.h instead of
101293         search_.h.
101294         * lib/signal.in.h: Renamed from lib/signal_.h.
101295         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
101296         _signal.h.
101297         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
101298         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
101299         stdbool_.h.
101300         * lib/stdint.in.h: Renamed from lib/stdint_.h.
101301         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
101302         stdint_.h.
101303         * lib/stdio.in.h: Renamed from lib/stdio_.h.
101304         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
101305         stdio_.h.
101306         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
101307         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
101308         stdlib_.h.
101309         * lib/string.in.h: Renamed from lib/string_.h.
101310         * modules/string (Files, Makefile.am): Use string.in.h instead of
101311         string_.h.
101312         * doc/gnulib-tool.texi (Initial import): Update.
101313         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
101314         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
101315         of sys_select_.h. Add dependency.
101316         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
101317         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
101318         of sys_socket_.h.
101319         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
101320         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
101321         sys_stat_.h.
101322         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
101323         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
101324         sys_time_.h.
101325         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
101326         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
101327         sysexits_.h.
101328         * lib/time.in.h: Renamed from lib/time_.h.
101329         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
101330         * lib/unistd.in.h: Renamed from lib/unistd_.h.
101331         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
101332         unistd_.h.
101333         * lib/wchar.in.h: Renamed from lib/wchar_.h.
101334         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
101335         wchar_.h.
101336         * lib/wctype.in.h: Renamed from lib/wctype_.h.
101337         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
101338         wctype_.h.
101339         * build-aux/bootstrap (slurp): Update.
101340         * lib/.cppi-disable: Update.
101342 2007-09-30  Bruno Haible  <bruno@clisp.org>
101344         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
101345         Needed on BeOS.
101347 2007-09-30  Bruno Haible  <bruno@clisp.org>
101349         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
101351 2007-09-29  Bruno Haible  <bruno@clisp.org>
101353         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
101355 2007-09-29  Bruno Haible  <bruno@clisp.org>
101357         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
101358         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
101359         * build-aux/install-reloc: Compile also areadlink.c.
101360         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101362 2007-09-29  Bruno Haible  <bruno@clisp.org>
101364         * gnulib-tool (func_emit_initmacro_done): Indentation.
101366 2007-09-29  Bruno Haible  <bruno@clisp.org>
101368         * README: Add CVS checkout update instructions.
101369         Info from Bob Proulx <bob@proulx.com>.
101371 2007-09-28  Eric Blake  <ebb9@byu.net>
101373         Provide move-if-change.
101374         * build-aux/move-if-change: New file, based on best practice
101375         rather than any canonical upstream location.
101377 2007-09-28  Jim Meyering  <jim@meyering.net>
101379         Fix canonicalize loop-detection corner case.
101380         Do not attempt to stat the symlink values stored via seen_triple.
101381         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101382         on linux-2.6.18, (but not 2.6.22).
101383         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101384         triple_compare.  The former compares dev,ino,filename, while the latter
101385         would actually stat dirname(filename) when dev and ino were equal.
101386         * lib/hash-triple.c: Install <string.h>.
101387         (STREQ): Define.
101388         (triple_compare_ino_str): New function.
101389         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101391 2007-09-28  Eric Blake  <ebb9@byu.net>
101393         Enforce that AC_REPLACE_FUNCS files exist.
101394         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101395         override check for typos.
101397         Fix test-closein on Solaris 10.
101398         * tests/test-closein.c (main): Don't assume stdin can be inherited
101399         closed on all systems.
101400         * tests/test-closein.sh: Likewise.
101401         Reported by Piotr Tarnowski.
101403 2007-09-28  Jim Meyering  <jim@meyering.net>
101405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101407 2007-09-27  Jim Meyering  <jim@meyering.net>
101409         canonicalize: Avoid a false-positive cycle failure.
101410         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101411         Sort.  Remove cycle-check.
101412         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101413         not cycle-check.h.
101414         (seen_triple): New function.
101415         (canonicalize_filename_mode): Use it instead of cycle-check.
101416         * tests/test-canonicalize.c: Add a test for this bug.
101417         * tests/test-canonicalize.sh: Set up and run the test.
101419         New module, file-set, from coreutils.
101420         * modules/file-set: Define it.
101421         * lib/file-set.c, lib/file-set.h: Implement.
101423         New module, hash-triple, from coreutils.
101424         * modules/hash-triple: Define it.
101425         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101427 2007-09-25  Eric Blake  <ebb9@byu.net>
101429         Fix strerror on Interix.
101430         * lib/string_.h (strerror): Declare replacement.
101431         * doc/functions/strerror.texi (strerror): Document the Interix
101432         shortcoming.
101433         * modules/string (Makefile.am): Support new hooks.
101434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101435         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101436         gl_FUNC_STRERROR_SEPARATE.
101437         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101438         * lib/strerror.c (rpl_strerror): Provide replacement.
101439         * modules/strerror (Depends-on): Add string.
101440         (configure.ac): Detect use of module.
101441         * tests/test-strerror.c: New file.
101442         * modules/strerror-tests: New test module.
101443         * modules/argp (Depends-on): Add strerror.
101444         * modules/error (Depends-on): Likewise.
101445         Reported by Martin Koeppe.
101447 2007-09-24  Bruno Haible  <bruno@clisp.org>
101449         * README: Update git instructions.
101451 2007-09-24  Eric Blake  <ebb9@byu.net>
101453         Revert fpending breakage from 2007-09-08.
101454         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101455         __fpending.c.
101457 2007-09-24  Jim Meyering  <jim@meyering.net>
101459         filenamecat.c: Add a test.
101460         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101461         showing how the function works when DIR is the empty string.
101463 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101465         * tests/test-canonicalize.sh: Turn on executable bit.
101467 2007-09-19  Eric Blake  <ebb9@byu.net>
101469         * README: Update CVS instructions.
101471 2007-09-18  Bruno Haible  <bruno@clisp.org>
101473         * modules/areadlink: New file.
101474         * lib/areadlink.h (areadlink): New declaration.
101475         * lib/areadlink.c: New file, based on lib/xreadlink.c.
101477 2007-09-17  Jim Meyering  <jim@meyering.net>
101479         * lib/savewd.c (ESTALE) [!defined]: Define.
101480         Reported to be required on Interix by Martin Koeppe.
101482 2007-09-17  Bruno Haible  <bruno@clisp.org>
101484         * gnulib-tool (func_version): Use $version.
101486 2007-09-16  Bruno Haible  <bruno@clisp.org>
101488         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
101489         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
101490         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
101491         Reported by Greg Schafer <gschafer@zip.com.au>.
101493 2007-09-15  Bruno Haible  <bruno@clisp.org>
101495         * gnulib-tool (sed): Try a little harder to make bash understand the
101496         alias.
101497         Reported by Bruce Korb <bruce.korb@gmail.com>.
101499 2007-09-13  Eric Blake  <ebb9@byu.net>
101501         * ChangeLog: Remove conflict markers.
101503 2007-09-13  Simon Josefsson  <simon@josefsson.org>
101505         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
101506         Reported by Bruno Haible <bruno@clisp.org>.
101508 2007-09-12  Bruno Haible  <bruno@clisp.org>
101510         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
101511         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
101512         is not defined.
101514 2007-09-12  Eric Blake  <ebb9@byu.net>
101516         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
101517         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
101518         Autoconf definition.
101519         * modules/euidaccess (Depends-on): Add extensions, for
101520         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
101521         * modules/fnmatch (Depends-on): Likewise.
101522         * modules/getaddrinfo (Depends-on): Likewise.
101523         * modules/getdelim (Depends-on): Likewise.
101524         * modules/getline (Depends-on): Likewise.
101525         * modules/getsubopt (Depends-on): Likewise.
101526         * modules/gettext (Depends-on): Likewise.
101527         * modules/group-member (Depends-on): Likewise.
101528         * modules/mbchar (Depends-on): Likewise.
101529         * modules/memmem (Depends-on): Likewise.
101530         * modules/mempcpy (Depends-on): Likewise.
101531         * modules/memrchr (Depends-on): Likewise.
101532         * modules/pagealign_alloc (Depends-on): Likewise.
101533         * modules/readutmp (Depends-on): Likewise.
101534         * modules/stpcpy (Depends-on): Likewise.
101535         * modules/stpncpy (Depends-on): Likewise.
101536         * modules/strchrnul (Depends-on): Likewise.
101537         * modules/strndup (Depends-on): Likewise.
101538         * modules/strsep (Depends-on): Likewise.
101539         * modules/strverscmp (Depends-on): Likewise.
101540         * modules/vasprintf (Depends-on): Likewise.
101541         * modules/wcwidth (Depends-on): Likewise.
101542         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
101543         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
101544         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
101545         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
101546         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
101547         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101548         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
101549         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
101550         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
101551         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
101552         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
101553         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
101554         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
101555         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
101556         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
101557         * m4/readutmp.m4 (gl_READUTMP): Likewise.
101558         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101559         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
101560         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101561         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
101562         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
101563         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
101564         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
101565         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
101566         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
101567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101568         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
101569         so that lock.m4 can be used in gettext without extensions module.
101571 2007-09-11  Bruno Haible  <bruno@clisp.org>
101573         * m4/isc-posix.m4: Remove file.
101574         Suggested by Eric Blake.
101576 2007-09-11  Eric Blake  <ebb9@byu.net>
101578         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
101580 2007-09-10  Bruno Haible  <bruno@clisp.org>
101582         * posix-modules: Fix typo in error message.
101583         Reported by Matt <mkraai@beckman.com>.
101585 2007-09-09  Bruno Haible  <bruno@clisp.org>
101587         * doc/functions/getdelim.texi: Update list of platforms lacking the
101588         function.
101589         * doc/functions/getline.texi: Likewise.
101591 2007-09-09  Jim Meyering  <jim@meyering.net>
101593         * lib/hash.c (hash_initialize): Detect calloc failure.
101594         Reported by Bruno Haible.
101596 2007-09-09  Bruno Haible  <bruno@clisp.org>
101598         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
101599         malloc or realloc fails.
101601 2007-09-09  Bruno Haible  <bruno@clisp.org>
101603         * modules/getcwd (Depends-on): Add malloc-posix.
101604         * modules/glob (Depends-on): Likewise.
101605         * modules/putenv (Depends-on): Likewise.
101606         * modules/strdup (Depends-on): Likewise.
101607         * modules/getdelim (Depends-on): Add realloc-posix.
101608         * modules/read-file (Depends-on): Likewise.
101610 2007-09-09  Bruno Haible  <bruno@clisp.org>
101612         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101613         (gl_FUNC_MALLOC_POSIX): Require it.
101614         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101615         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101616         * modules/realloc (Files): Add m4/malloc.m4.
101617         * modules/calloc (Files): Likewise.
101619 2007-09-09  Bruno Haible  <bruno@clisp.org>
101621         * modules/malloc-posix: New file.
101622         * modules/malloc (Depends-on): Add malloc-posix.
101623         * lib/malloc.c: Include errno.h.
101624         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
101625         and a POSIX-compatible malloc into a single function. Set ENOMEM
101626         when returning NULL.
101627         * m4/malloc.m4: New file.
101628         * doc/functions/malloc.texi: Mention the malloc-posix module.
101629         * lib/stdlib_.h (malloc): New declaration.
101630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101631         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
101632         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
101633         and HAVE_MALLOC_POSIX.
101635 2007-09-09  Bruno Haible  <bruno@clisp.org>
101637         * modules/realloc-posix: New file.
101638         * modules/realloc (Depends-on): Add realloc-posix.
101639         * lib/realloc.c: Include errno.h.
101640         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
101641         and a POSIX-compatible realloc into a single function. Set ENOMEM
101642         when returning NULL.
101643         * m4/realloc.m4: New file.
101644         * doc/functions/realloc.texi: Mention the realloc-posix module.
101645         * lib/stdlib_.h (realloc): New declaration.
101646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101647         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
101648         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
101649         and HAVE_REALLOC_POSIX.
101651 2007-09-09  Bruno Haible  <bruno@clisp.org>
101653         * modules/calloc-posix: New file.
101654         * modules/calloc (Depends-on): Add calloc-posix.
101655         * lib/calloc.c: Include errno.h.
101656         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
101657         and a POSIX-compatible calloc into a single function. Set ENOMEM
101658         when returning NULL.
101659         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
101660         * doc/functions/calloc.texi: Mention the calloc-posix module.
101661         * lib/stdlib_.h (calloc): New declaration.
101662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101663         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
101664         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
101665         and HAVE_CALLOC_POSIX.
101667 2007-09-09  Bruno Haible  <bruno@clisp.org>
101669         Allow for modules to show an arbitrary notice.
101670         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
101671         * gnulib-tool: New option --extract-notice.
101672         (func_usage): Document it.
101673         (sed_extract_prog): Update.
101674         (func_get_notice): New function.
101675         (func_modules_notice): New function.
101676         (func_import, func_create_testdir): Invoke it.
101677         Suggested by Jim Meyering.
101679 2007-09-09  Bruno Haible  <bruno@clisp.org>
101681         * gnulib-tool: New options --verbose, --quiet.
101682         (func_usage): Document them.
101683         (verbose): New variable.
101684         (func_execute_command): New function.
101685         (func_import): Don't show the module list and the file list if
101686         $verbose < 0.
101687         (func_create_testdir): Likewise. Use func_execute_command.
101688         (func_create_megatestdir): Use func_execute_command.
101690 2007-09-08  Bruno Haible  <bruno@clisp.org>
101692         * gnulib-tool (func_import): Prefer rsync over wget when available,
101693         for fetching the PO files.
101695 2007-09-08  Bruno Haible  <bruno@clisp.org>
101697         * posix-modules: New file. Portions copied from gnulib-tool.
101698         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101700 2007-09-08  Jim Meyering  <jim@meyering.net>
101702         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101703         * lib/fpending.h: Rename from __fpending.h.
101704         * lib/fpending.c: Rename from __fpending.c.
101705         Include "fpending.h", not "__fpending.h".
101706         * lib/__fpending.h, lib/__fpending.c: Remove files.
101707         * modules/fpending (Files): Reflect new file names.
101708         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101710 2007-09-08  Bruno Haible  <bruno@clisp.org>
101712         * m4/inttypes-h.m4: Remove stub file.
101714 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101716         * doc/headers/stdint.texi: Discuss #include_next issue.
101718 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101720         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101722 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101724         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101725         in variable name.
101727 2007-09-03  Jim Meyering  <jim@meyering.net>
101729         New module: git-version-gen.
101730         * modules/git-version-gen: New file.
101732         Import changes from coreutils for bootstrap script.
101734         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101736         bootstrap: uses rsync to download the .po files
101737         * build-aux/bootstrap (po_download_command_format): New global.
101738         (download_po_files): Use rsync.
101739         (update_po_files): Don't remove .po files after download,
101740         so future rsync runs can take advantage of the copies.
101742         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101744         Solve the unnecessary-.po-file-regeneration problem once and for all.
101745         * build-aux/bootstrap (download_po_files): New function, renamed from
101746         get_translations.  Now, downloads, but doesn't update LINGUAS.
101747         (update_po_files): New function.
101749         bootstrap: Ignore more.
101750         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101751         uniwidth to e.g., lib/.gitignore.
101752         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101754         * build-aux/bootstrap: New setting: vc_ignore.
101755         (insert_sorted_if_absent): Create $file if absent.
101756         Adapt to new, possibly empty, list: $vc_ignore.
101758         bootstrap: generate more ignorable names
101759         * build-aux/bootstrap (slurp): When generating ignorable names,
101760         also map .sin to .sed, .gperf to .c, and .y to .c.
101762 2007-09-03  Jim Meyering  <jim@meyering.net>
101764         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101765         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101767 2007-09-02  Bruno Haible  <bruno@clisp.org>
101769         Fix mis-recognition of 'mcs' on QNX 6.
101770         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101771         output contains the string "Mono".
101772         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101773         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101775 2007-09-01  Bruno Haible  <bruno@clisp.org>
101777         Fix collision between uniwidth/* and linebreak modules.
101778         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101779         u32_width): Remove declarations.
101780         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101781         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101782         streq3, streq2, streq1, streq0): Remove functions.
101783         (STREQ): Remove macro.
101784         (is_cjk_encoding): Remove function.
101785         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101786         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101787         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101788         * NEWS: Document the change.
101790 2007-09-01  Bruno Haible  <bruno@clisp.org>
101792         * lib/streq.h: Add double-inclusion guard.
101794 2007-09-01  Karl Berry  <karl@gnu.org>
101796         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101798 2007-08-28  Jim Meyering  <jim@meyering.net>
101800         Rename mreadlink_with_size to areadlink_with_size.
101801         * NEWS: Document the change.
101802         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101803         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101804         * lib/mreadlink.h: Rename this to...
101805         * lib/areadlink.h: ...this.
101806         * modules/mreadlink-with-size: Rename this to...
101807         * modules/areadlink-with-size: ...this.
101808         * lib/canonicalize.c: Reflect the renaming.
101809         * modules/canonicalize: Likewise.
101811 2007-08-26  Bruno Haible  <bruno@clisp.org>
101813         * gnulib-tool (func_import): When deciding which files to remove,
101814         consider also dangling symbolic links.
101815         Reported by Eric Blake.
101817 2007-08-26  Bruno Haible  <bruno@clisp.org>
101819         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101821 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101823         * lib/readline.c: Don't include getline.h, the prototype is now
101824         found in stdio.h.
101826 2007-08-23  Jim Meyering  <jim@meyering.net>
101828         Getdelim touchup.
101829         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101830         around the funlockfile call, since funlockfile never sets errno.
101831         Don't set errno upon failed realloc.
101833 2007-08-22  Eric Blake  <ebb9@byu.net>
101835         Getline touchups.
101836         * lib/getdelim.c (getdelim): Revert regression that required *n to
101837         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101838         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101839         getdelim, rather than whether implementation is missing.
101840         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101841         * lib/stdio_.h (getline): Also declare if replacement is
101842         required.
101843         * doc/functions/getdelim.texi: New file.
101844         * doc/functions/getline.texi: Likewise.
101845         * doc/gnulib.texi (Function Substitutes): Add new files.
101846         Reported by Bruno Haible.
101848 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101850         * users.txt: Add Guile.
101852 2007-08-22  Eric Blake  <ebb9@byu.net>
101854         * tests/test-getdelim.c (main): Use remove, not unlink.
101855         * tests/test-getline.c (main): Likewise.
101857         Move getline and getdelim into stdio.h, per POSIX 200x.
101858         * modules/getline (Files): Remove getline.h.
101859         (Depends-on): Add stdio.
101860         (configure.ac): Add module indicator.
101861         * modules/getdelim (Files): Remove getdelim.h.
101862         (Depends-on): Add stdio.
101863         (configure.ac): Add module indicator.
101864         * modules/stdio (Makefile.am): Work with new indicators.
101865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101866         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101867         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101868         * lib/getdelim.h: Delete.
101869         * lib/getline.h: Delete.
101870         * lib/stdio_.h (getdelim, getline): Declare.
101871         * modules/getdelim-tests: New module.
101872         * modules/getline-tests: Likewise.
101873         * tests/test-getdelim.c: New file.
101874         * tests/test-getline.c: Likewise.
101875         * NEWS: Document the change.
101876         * lib/getline.c: Update choice of header.
101877         * lib/csharpcomp.c: Likewise.
101878         * lib/getpass.c: Likewise.
101879         * lib/javacomp.c: Likewise.
101880         * lib/javaversion.c: Likewise.
101881         * lib/yesno.c: Likewise.
101882         * lib/getdelim.c: Likewise.
101883         (getdelim): Set errno on failure, and avoid memory leak.
101885 2007-08-19  Bruno Haible  <bruno@clisp.org>
101887         * modules/closein (Depends-on): Add freadahead.
101888         * lib/closein.c: Include freadahead.h.
101889         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101890         is zero.
101892 2007-08-19  Bruno Haible  <bruno@clisp.org>
101894         * modules/freadahead-tests: New file.
101895         * tests/test-freadahead.sh: New file.
101896         * tests/test-freadahead.c: New file.
101898         * modules/freadahead: New file.
101899         * lib/freadahead.h: New file.
101900         * lib/freadahead.c: New file.
101901         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101902         fbufmode, fpurge, freadable, fwritable.
101904 2007-08-19  Eric Blake  <ebb9@byu.net>
101906         Test yesno in combination with closein.
101907         * lib/yesno.c (yesno): Document use of stdin.
101908         * modules/yesno-tests (Files): New module.
101909         * tests/test-yesno.c (main): New file.
101910         * tests/test-yesno.sh: Likewise.
101912 2007-08-19  Bruno Haible  <bruno@clisp.org>
101914         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101915         * lib/fseeko.c (rpl_fseeko): Likewise.
101916         * lib/fseterr.c (fseterr): Likewise.
101918 2007-08-19  Bruno Haible  <bruno@clisp.org>
101920         * tests/test-lseek.c (main): Disable a test for BeOS.
101921         * doc/functions/lseek.texi: Document the BeOS bug.
101923 2007-08-19  Bruno Haible  <bruno@clisp.org>
101924             Eric Blake  <ebb9@byu.net>
101926         * lib/lseek.c: Include <sys/stat.h>.
101927         (rpl_lseek): Add workaround code also for Unix platforms.
101928         Needed for BeOS.
101929         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101930         * doc/functions/lseek.texi: Document BeOS definiency.
101932 2007-08-18  Bruno Haible  <bruno@clisp.org>
101934         * modules/fstrcmp-tests: New file.
101935         * tests/test-fstrcmp.c: New file.
101937 2007-08-18  Bruno Haible  <bruno@clisp.org>
101939         * modules/fstrcmp: New file, from GNU gettext with modifications.
101940         * lib/fstrcmp.h: New file, from GNU gettext.
101941         * lib/fstrcmp.c: New file, from GNU gettext.
101942         * MODULES.html.sh (String handling): Add fstrcmp.
101944 2007-08-18  Bruno Haible  <bruno@clisp.org>
101946         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101947         'bool'.
101948         (diag, compareseq): Remove const from the ctxt argument.
101949         (USE_HEURISTIC): Undefine at the end.
101951 2007-08-18  Jim Meyering  <jim@meyering.net>
101953         New file: lib/idcache.h
101954         * NEWS: Mention the addition.
101955         * modules/idcache (Files): Add lib/idcache.h
101956         * lib/idcache.c: Include "idcache.h".
101957         Don't include <sys/types.h>.
101958         Add a FIXME comment.
101959         Move file-scoped "static" declarations to the top.
101960         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101962 2007-08-17  Bruno Haible  <bruno@clisp.org>
101963         and Paul Eggert  <eggert@cs.ucla.edu>
101965         * MODULES.html.sh: Add diffseq.
101966         * modules/diffseq: New file.
101967         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101968         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101970 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101972         Import changes from coreutils for bootstrap script.
101974         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101976         * build-aux/bootstrap (slurp): Work even in environments where
101977         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101978         current code does not slurp files whose names start with ".", and
101979         this looks like it might be a troublesome area.
101981         2007-07-11  Jim Meyering  <jim@meyering.net>
101983         If there's a GPL vN copyright comment, require that N == 3.
101985         2007-07-08  Jim Meyering  <jim@meyering.net>
101987         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101988         * build-aux/bootstrap (mam_template): Move definition out of loop.
101990         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101992         * build-aux/bootstrap (symlink_to_dir): Rename function from
101993         symlink_to_gnulib.  Add a directory parameter.  Update all
101994         callers.
101995         (cp_mark_as_generated): Also check for -- and link to -- files in
101996         gl/.
101998         2007-07-08  Jim Meyering  <jim@meyering.net>
102000         Adapt to deeper hierarchy in gnulib.
102001         * build-aux/bootstrap (symlink_to_dir): If the destination
102002         directory doesn't exist, create it. This is required at least for
102003         "lib/uniwidth/cjk.h".
102005         2007-05-15  Jim Meyering  <jim@meyering.net>
102007         * build-aux/bootstrap: Now that generated Makefile.am files
102008         are no longer under version control, they must be created at
102009         bootstrap time.
102011 2007-08-14  Ben Pfaff  <blp@gnu.org>
102013         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
102015 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
102017         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
102018         given the changes below.
102019         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
102020         even on hosts that have padding bits beyond the supported 64.
102022 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102024         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
102025         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
102026         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
102027         depends on it.
102028         (xstrtol_error): Remove.
102029         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
102030         but with a different signature.
102031         (ATTRIBUTE_NORETURN, __attribute__): New macros.
102032         * lib/xstrtol-error.c: Include exitfail.h.
102033         (xstrtol_fatal): New function, with a different signature from the
102034         old xstrtol_error, so that the caller need not worry about passing
102035         in an exit status, or about storage management of the option argument.
102036         (xstrtol_error): Now a static function.  Redo signature to
102037         implement xstrtol_fatal.  Output the correct number of hyphens in
102038         front of the option so that the caller need not worry about
102039         storage management.
102040         (N_): New macro.
102041         (_): Remove; not used now.
102042         * modules/xstrtol: Depend on getopt.
102043         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
102044         of old STRTOL_FATAL_ERROR macro.
102045         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
102046         of test program.
102047         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
102048         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
102050 2007-08-08  Eric Blake  <ebb9@byu.net>
102052         * lib/xstrtol-error.c: Add missing include.
102054         Move xstrtol messages into gnulib domain, when --pobase is used.
102055         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
102056         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
102057         * modules/xstrtol (Files): Distribute new file.
102058         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
102059         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
102060         * tests/test-xstrtol.c: ...into new file.
102061         * tests/test-xstrtoul.c: Also test xstrtoul.
102062         * tests/test-xstrtoimax.c: Also test xstrtoimax.
102063         * tests/test-xstrtoumax.c: Also test xstrtoumax.
102064         * tests/test-xstrtol.sh: Drive the tests.
102065         * tests/test-xstrtoimax.sh: Likewise.
102066         * tests/test-xstrtoumax.sh: Likewise.
102067         * modules/xstrtol-tests: New module.
102068         * modules/xstrtoimax-tests: Likewise.
102069         * modules/xstrtoumax-tests: Likewise.
102071 2007-08-08  Jim Meyering  <jim@meyering.net>
102073         New function: mfile_name_concat.
102074         * lib/filenamecat.c (mfile_name_concat): New function, just like
102075         file_name_concat, but return NULL upon failure rather than exiting
102076         with a diagnostic.
102077         * lib/filenamecat.h: Declare it.
102079 2007-08-07  Bruno Haible  <bruno@clisp.org>
102081         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
102082         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
102083         warning from gcc.
102084         Reported by Eric Blake.
102086 2007-08-07  Simon Josefsson  <simon@josefsson.org>
102088         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
102089         * modules/crypto/arcfour (License): Likewise.
102090         * modules/crypto/des-tests (License): Likewise.
102091         * modules/crypto/gc-arctwo-tests (License): Likewise.
102092         * modules/crypto/gc-des-tests (License): Likewise.
102093         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
102094         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
102095         * modules/crypto/gc-md2-tests (License): Likewise.
102096         * modules/crypto/gc-md4-tests (License): Likewise.
102097         * modules/crypto/gc-md5-tests (License): Likewise.
102098         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
102099         * modules/crypto/gc-rijndael-tests (License): Likewise.
102100         * modules/crypto/gc-sha1-tests (License): Likewise.
102101         * modules/crypto/gc-tests (License): Likewise.
102102         * modules/crypto/hmac-md5 (License): Likewise.
102103         * modules/crypto/hmac-sha1 (License): Likewise.
102104         * modules/crypto/md2-tests (License): Likewise.
102105         * modules/crypto/md4-tests (License): Likewise.
102106         * modules/crypto/md5 (License): Likewise.
102107         * modules/crypto/rijndael (License): Likewise.
102108         * modules/crypto/sha1 (License): Likewise.
102109         * modules/memxor (License): Likewise.
102111 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102112         and Bruno Haible  <bruno@clisp.org>
102114         * NEWS: Describe interface changes to human, xstrtol.
102115         * lib/human.h: Include <xstrtol.h>.
102116         (human_options): Return enum strtol_error, not int.  Remove
102117         bool arg; take int * instead.
102118         * lib/human.c: Don't include "gettext.h".
102119         (_): Remove; no longer used.
102120         Don't include <xstrtol.h>, since human.h does it.
102121         (human_options): Adjust to abovementioned interface changes.
102122         Do not report error to stderr; that's now the caller's
102123         responsibility.
102124         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
102125         interface change.
102126         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
102127         Str, Argument_type_string.  All uses changed.  Put " argument"
102128         in diagnostics to make them clearer.  Change wording of suffix
102129         message for clarity.
102130         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
102131         Argument_type_string.
102132         (STRTOL_FATAL_WARN): Remove; no longer used.
102133         * modules/human (Depends-on): Remove gettext-h.
102135 2007-08-06  Simon Josefsson  <simon@josefsson.org>
102137         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
102139 2007-07-31  Bruno Haible  <bruno@clisp.org>
102141         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
102142         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
102143         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
102145 2007-07-31  Bruno Haible  <bruno@clisp.org>
102147         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
102148         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
102150 2007-07-30  Bruno Haible  <bruno@clisp.org>
102152         * modules/base64 (License): Use the synonymous term "LGPLv2+".
102153         * modules/c-ctype (License): Likewise.
102154         * modules/c-strcase (License): Likewise.
102155         * modules/check-version (License): Likewise.
102156         * modules/iconv (License): Likewise.
102157         * modules/iconv_open (License): Likewise.
102158         * modules/read-file (License): Likewise.
102159         * modules/striconv (License): Likewise.
102160         * modules/strverscmp (License): Likewise.
102161         * modules/vasprintf (License): Likewise.
102162         * modules/crypto/des (License): Likewise.
102163         * modules/crypto/gc (License): Likewise.
102164         * modules/crypto/gc-arcfour (License): Likewise.
102165         * modules/crypto/gc-arctwo (License): Likewise.
102166         * modules/crypto/gc-des (License): Likewise.
102167         * modules/crypto/gc-hmac-md5 (License): Likewise.
102168         * modules/crypto/gc-hmac-sha1 (License): Likewise.
102169         * modules/crypto/gc-md2 (License): Likewise.
102170         * modules/crypto/gc-md4 (License): Likewise.
102171         * modules/crypto/gc-md5 (License): Likewise.
102172         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
102173         * modules/crypto/gc-random (License): Likewise.
102174         * modules/crypto/gc-rijndael (License): Likewise.
102175         * modules/crypto/gc-sha1 (License): Likewise.
102176         * modules/crypto/md2 (License): Likewise.
102177         * modules/crypto/md4 (License): Likewise.
102179 2007-07-30  Jim Meyering  <jim@meyering.net>
102181         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
102182         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
102183         it has valid stat data.  This bug would cause du not to count the
102184         sizes of inaccessible directories.
102185         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
102186         in <http://bugzilla.redhat.com/250077>.
102188 2007-07-25  Peter O'Gorman  <peter@pogma.com>
102189             Bruno Haible  <bruno@clisp.org>
102191         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102192         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102193         #include_next, gives a diagnostic about it, but reports no error in
102194         the exit code.
102195         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
102197 2007-07-24  Ben Pfaff  <blp@gnu.org>
102199         Improve name: "count-one-bits" is better than "popcount".
102200         * MODULES.html.sh: Update name.
102201         * lib/popcount.h: Renamed lib/count-one-bits.h.
102202         (popcount): Renamed count_one_bits.
102203         (popcountl): Renamed count_one_bits_l.
102204         (popcountll): Renamed count_one_bits_ll.
102205         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
102206         * modules/popcount: Renamed module/count-one-bits.
102207         * modules/popcount-tests: Renamed module/count-one-bits-tests.
102208         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
102210 2007-07-23  Ben Pfaff  <blp@gnu.org>
102212         * lib/popcount.h (popcount32): Reduce size of constants, to allow
102213         better code generation, and add U to large constants to avoid
102214         warnings, in non-GCC case.
102215         Suggested by Bruno Haible.
102217 2007-07-23  Ben Pfaff  <blp@gnu.org>
102219         * lib/popcount.h: Use verify_true instead of if...abort.
102220         * modules/popcount: Depend on verify module.
102221         Suggested by Jim Meyering.
102223 2007-07-23  Bruno Haible  <bruno@clisp.org>
102225         * gnulib-tool (func_import): Create a .cvsignore file also when the
102226         directory is not yet in CVS but the toplevel directory is. When
102227         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
102228         Reported by Karl Berry.
102230 2007-07-22  Ben Pfaff  <blp@gnu.org>
102232         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
102233         case.
102234         Suggested by Eric Blake.
102236 2007-07-22  Ben Pfaff  <blp@gnu.org>
102238         New module: popcount.
102239         * MODULES.html.sh: Add popcount.
102240         * modules/popcount: New file.
102241         * modules/popcount-tests: New file.
102242         * tests/test-popcount.c: New file.
102243         * lib/popcount.h: New file.
102244         * m4/popcount.m4: New file.
102246 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
102248         * build-aux/announce-gen: Update to GPLv3.
102250         * build-aux/config.guess: Update from config.
102252 2007-07-21  Bruno Haible  <bruno@clisp.org>
102254         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
102255         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
102257 2007-07-20  Jim Meyering  <jim@meyering.net>
102259         * check-module: Diagnose a self-dependency.
102261 2007-07-19  Bruno Haible  <bruno@clisp.org>
102263         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
102264         empty.
102265         Reported by Eric Blake.
102267 2007-07-18  Bruno Haible  <bruno@clisp.org>
102269         * gnulib-tool: New options --po-base, --po-domain.
102270         (func_usage): Document them.
102271         (pobase, po_domain): New variables.
102272         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
102273         DEFAULT_TEXT_DOMAIN.
102274         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
102275         (func_import): Consider pobase and po_domain. Create a po/ directory.
102276         (func_create_testdir): Set pobase and po_domain to empty.
102277         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
102278         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
102280 2007-07-18  Bruno Haible  <bruno@clisp.org>
102282         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102283         EXTRA_DIST augmentation for files in build-aux/.
102285 2007-07-16  Bruno Haible  <bruno@clisp.org>
102287         * modules/lseek (License): Use the synonymous term "LGPLv2+".
102288         * modules/getdelim (License): Likewise.
102290 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102292         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
102293         * modules/d-type (License): Likewise.
102294         * modules/extensions (License): Likewise.
102295         * modules/fnmatch (License): Likewise.
102296         * modules/fseeko (License): Likewise.
102297         * modules/getaddrinfo (License): Likewise.
102298         * modules/getline (License): Likewise.
102299         * modules/getlogin_r (License): Likewise.
102300         * modules/getpass (License): Likewise.
102301         * modules/gettimeofday (License): Likewise.
102302         * modules/glob (License): Likewise.
102303         * modules/inet_ntop (License): Likewise.
102304         * modules/malloc (License): Likewise.
102305         * modules/malloca (License): Likewise.
102306         * modules/memmem (License): Likewise.
102307         * modules/mempcpy (License): Likewise.
102308         * modules/memset (License): Likewise.
102309         * modules/minmax (License): Likewise.
102310         * modules/mktime (License): Likewise.
102311         * modules/netinet_in (License): Likewise.
102312         * modules/pathmax (License): Likewise.
102313         * modules/poll (License): Likewise.
102314         * modules/regex (License): Likewise.
102315         * modules/snprintf (License): Likewise.
102316         * modules/stdbool (License): Likewise.
102317         * modules/stdint (License): Likewise.
102318         * modules/stdio (License): Likewise.
102319         * modules/strcase (License): Likewise.
102320         * modules/strcasestr (License): Likewise.
102321         * modules/strdup (License): Likewise.
102322         * modules/string (License): Likewise.
102323         * modules/strndup (License): Likewise.
102324         * modules/strnlen (License): Likewise.
102325         * modules/strpbrk (License): Likewise.
102326         * modules/strptime (License): Likewise.
102327         * modules/strsep (License): Likewise.
102328         * modules/sys_select (License): Likewise.
102329         * modules/sys_socket (License): Likewise.
102330         * modules/sys_stat (License): Likewise.
102331         * modules/sys_time (License): Likewise.
102332         * modules/time (License): Likewise.
102333         * modules/time_r (License): Likewise.
102334         * modules/timegm (License): Likewise.
102335         * modules/unistd (License): Likewise.
102336         * modules/vsnprintf (License): Likewise.
102337         * modules/wctype (License): Likewise.
102339 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102341         * modules/argz (License): LGPLv2+.
102343 2007-07-15  Karl Berry  <karl@gnu.org>
102345         * doc/gnulib.texi: revise node structure per new fdl.texi.
102347 2007-07-14  Bruno Haible  <bruno@clisp.org>
102349         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
102350         the output file.
102351         * lib/uniname/uninames.h: Regenerated.
102353 2007-07-14  Karl Berry  <karl@gnu.org>
102355         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
102356         omitting sectioning and index commands.
102358 2007-07-13  Bruno Haible  <bruno@clisp.org>
102360         New gnulib-tool option --more-symlinks.
102361         * gnulib-tool (func_usage): Document --more-symlinks.
102362         (do_copyrights): New variable.
102363         Recognize option --more-symlinks.
102364         (func_import): Don't add a copyright notice transform to
102365         sed_transform_lib_file if do_copyrights is empty.
102367 2007-07-13  Bruno Haible  <bruno@clisp.org>
102369         * lib/vasnprintf.c (decimal_point_char): Define also if
102370         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102371         && !NEED_PRINTF_DIRECTIVE_A.
102372         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102373         Gary V. Vaughan <gary@gnu.org>.
102375 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102377         * lib/inttypes_.h: Undo previous change, since it was fixed
102378         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102380 2007-07-13  Bruno Haible  <bruno@clisp.org>
102382         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102383         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102385 2007-07-13  Jim Meyering  <jim@meyering.net>
102387         df: Don't fail for Tru64's "file-on-file mount".
102388         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102389         so we fall through and use statfs instead.  Details here:
102390         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102391         Reported by Albert Chin.
102393 2007-07-13  Bruno Haible  <bruno@clisp.org>
102395         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102396         * modules/configmake (License): Likewise.
102397         * modules/gettext (License): Likewise.
102398         * modules/gettext-h (License): Likewise.
102399         * modules/include_next (License): Likewise.
102400         * modules/link-warning (License): Likewise.
102401         * modules/localcharset (License): Likewise.
102402         * modules/localename (License): Likewise.
102403         * modules/lock (License): Likewise.
102404         * modules/relocatable-lib-lgpl (License): Likewise.
102405         * modules/size_max (License): Likewise.
102406         * modules/vasnprintf (License): Likewise.
102407         * modules/wchar (License): Likewise.
102408         * modules/xsize (License): Likewise.
102410 2007-07-13  Bruno Haible  <bruno@clisp.org>
102412         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102413         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102415 2007-07-12  Bruno Haible  <bruno@clisp.org>
102417         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102418         in the modules files.
102420 2007-07-11  Karl Berry  <karl@gnu.org>
102422         * MODULES.html.sh (func_module): use
102423          sed -e '\|^'"${includefile}"'$|d'
102424          instead of /.../d, to avoid errors on $includefile's containing /.
102426 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102428         * gnulib-tool (func_import): Avoid duplication of --avoid
102429         statements
102430         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102431         names to `_' in variable names.
102433 2007-07-10  Eric Blake  <ebb9@byu.net>
102435         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102436         * NEWS: Document this change.
102438 2007-07-08  Bruno Haible  <bruno@clisp.org>
102440         Update to Unicode 5.0.
102441         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102442         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102443         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102444         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102445         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102446         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102447         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102448         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102449         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102450         U+10A3F, U+1D242..U+1D244.
102451         (nonspacing_table_ind): Update.
102452         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102453         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102455 2007-07-08  Bruno Haible  <bruno@clisp.org>
102457         Update to Unicode 5.0.
102458         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102459         code transform. Extend the name index field of unicode_name_to_code and
102460         unicode_code_to_name from 16 to 24 bits.
102461         * lib/uniname/uniname.c (unicode_character_name,
102462         unicode_name_character): Add the range 0x12xxx to the code transform.
102463         * lib/uniname/uninames.h: Regenerated.
102464         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102466 2007-07-07  Bruno Haible  <bruno@clisp.org>
102468         * modules/wcwidth-tests: New file.
102469         * tests/test-wcwidth.c: New file.
102471         Work around MacOS X wcwidth() bug.
102472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
102473         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
102474         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
102475         original wcwidth in non-UTF-8 locales.
102476         * modules/wcwidth (Depends-on): Add localcharset, streq,
102477         uniwidth/width.
102478         * doc/functions/wcwidth.texi: Update.
102480 2007-07-07  Bruno Haible  <bruno@clisp.org>
102482         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
102483         (wcwidth): New declaration.
102484         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
102485         macros.
102486         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
102487         here. Prepare for creating <wchar.h> unconditionally.
102488         * modules/wchar (Depends-on): Add link-warning.
102489         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
102490         REPLACE_WCWIDTH, and GL_LINK_WARNING.
102491         * lib/wcwidth.h: Remove file.
102492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
102493         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
102494         * modules/wcwidth (Files): Remove lib/wcwidth.h.
102495         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
102496         (Include): Replace wcwidth.h with <wchar.h>.
102497         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
102498         * lib/mbchar.h: Don't include wcwidth.h.
102499         * lib/mbswidth.c: Likewise.
102500         * NEWS: Mention the change.
102502 2007-07-07  Bruno Haible  <bruno@clisp.org>
102504         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
102505         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
102506         definition with an external declaration.
102507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
102508         defined as a function. Remove AC_C_INLINE requirement.
102509         * modules/wcwidth (Files): Add lib/wcwidth.c.
102510         (Makefile.am): Remove redundant statement.
102512 2007-07-07  Bruno Haible  <bruno@clisp.org>
102514         * MODULES.html.sh (Unicode string functions): Add the new modules.
102516         * tests/uniwidth/test-u32-strwidth.c: New file.
102517         * modules/uniwidth/u32-strwidth-tests: New file.
102519         * lib/uniwidth/u32-strwidth.c: New file.
102520         * modules/uniwidth/u32-strwidth: New file.
102522         * tests/uniwidth/test-u16-strwidth.c: New file.
102523         * modules/uniwidth/u16-strwidth-tests: New file.
102525         * lib/uniwidth/u16-strwidth.c: New file.
102526         * modules/uniwidth/u16-strwidth: New file.
102528         * tests/uniwidth/test-u8-strwidth.c: New file.
102529         * modules/uniwidth/u8-strwidth-tests: New file.
102531         * lib/uniwidth/u8-strwidth.c: New file.
102532         * modules/uniwidth/u8-strwidth: New file.
102534         * tests/uniwidth/test-u32-width.c: New file.
102535         * modules/uniwidth/u32-width-tests: New file.
102537         * lib/uniwidth/u32-width.c: New file.
102538         * modules/uniwidth/u32-width: New file.
102540         * tests/uniwidth/test-u16-width.c: New file.
102541         * modules/uniwidth/u16-width-tests: New file.
102543         * lib/uniwidth/u16-width.c: New file.
102544         * modules/uniwidth/u16-width: New file.
102546         * tests/uniwidth/test-u8-width.c: New file.
102547         * modules/uniwidth/u8-width-tests: New file.
102549         * lib/uniwidth/u8-width.c: New file.
102550         * modules/uniwidth/u8-width: New file.
102552         * tests/uniwidth/test-uc_width.c: New file.
102553         * modules/uniwidth/width-tests: New file.
102555         * lib/uniwidth/width.c: New file, from GNU libiconv.
102556         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
102557         * modules/uniwidth/width: New file.
102559         * lib/uniwidth.h: New file, from GNU libiconv.
102560         * modules/uniwidth/base: New file.
102562 2007-07-07  Bruno Haible  <bruno@clisp.org>
102564         * lib/uniname.h: New file, from GNU gettext.
102565         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
102566         * lib/uniname/uninames.h: New file, from GNU gettext.
102567         * lib/uniname/uniname.c: New file, from GNU gettext.
102568         * tests/uniname/test-uninames.sh: New file.
102569         * tests/uniname/test-uninames.c: New file, from GNU gettext.
102570         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
102571         * modules/uniname/base: New file.
102572         * modules/uniname/uniname: New file.
102573         * modules/uniname/uniname-tests: New file.
102574         * MODULES.html.sh (Unicode string functions): Add the new modules.
102576 2007-07-06  Bruno Haible  <bruno@clisp.org>
102578         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
102580 2007-07-06  Bruno Haible  <bruno@clisp.org>
102582         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
102583         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
102584         includes <cygwin/sys_time.h> which includes <sys/select.h> which
102585         include <sys/time.h>.
102586         Reported by Eric Blake.
102588 2007-07-06  Eric Blake  <ebb9@byu.net>
102590         Fix testing canonicalize on cygwin.
102591         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102592         Revert patch from 2007-06-19.
102593         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
102594         canonicalize module is also in use.
102595         * tests/test-canonicalize.c: New file.
102596         * tests/test-canonicalize.sh: Likewise.
102597         * modules/canonicalize-tests: Likewise.
102599 2007-07-06  Jim Meyering  <jim@meyering.net>
102601         * lib/getugroups.c (getugroups): Detect getgrent failure.
102602         Adjust comment to reflect reality: this function may return -1.
102604 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
102606         * build-aux/bootstrap (TP_URL,get_translations): Update to use
102607         the new TP address.
102608         (usage): Fix typo
102609         (gnulib_mk): New variable.
102611 2007-07-05  Jim Meyering  <jim@meyering.net>
102613         Don't let endgrent clobber errno, no matter how improbable.
102614         * lib/getugroups.c (getugroups): Save and restore errno around
102615         endgrent call.
102617         Close the group DB even when failing with 2^31 or more members.
102618         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
102620 2007-07-04  Jim Meyering  <jim@meyering.net>
102622         * lib/getugroups.h: New file.
102623         * lib/getugroups.c: Include "getugroups.h".
102624         Remove uses of "register" keyword.
102625         Move local variable, "cp", down into scope where used.
102626         Give "username" parameter the "const" attribute.
102627         * modules/getugroups (Files): Add lib/getugroups.h
102629 2007-07-04  Karl Berry  <karl@gnu.org>
102631         * MODULES.html.sh (func_all_modules): Complete rename of
102632         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
102634 2007-07-02  Bruno Haible  <bruno@clisp.org>
102636         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
102637         mode, when inttypes.h comes from gnulib.
102638         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102640 2007-07-02  Simon Josefsson  <simon@josefsson.org>
102642         * NEWS: Mention lgpl module name change.
102644         * modules/lgpl-2.1: Renamed from lgpl.
102646         * NEWS: Mention gpl module name change.
102648         * modules/gpl-3.0: New file, based on gpl-2.0.
102650         * modules/gpl-2.0: Renamed from gpl.
102652         * modules/gpl: Fix filename, doc/gpl.texi is now found at
102653         doc/gpl-2.0.texi.
102655 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
102657         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
102658         #define __STDC_LIMIT_MACROS temporarily while including
102659         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
102660         Problem reported by Joel E. Denny in
102661         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
102663 2007-07-01  Bruno Haible  <bruno@clisp.org>
102665         * lib/unistdio.h: New file.
102666         * lib/unistdio/u-asnprintf.h: New file.
102667         * lib/unistdio/u-asprintf.h: New file.
102668         * lib/unistdio/u-printf-args.c: New file.
102669         * lib/unistdio/u-printf-args.h: New file.
102670         * lib/unistdio/u-printf-parse.h: New file.
102671         * lib/unistdio/u-snprintf.h: New file.
102672         * lib/unistdio/u-sprintf.h: New file.
102673         * lib/unistdio/u-vasprintf.h: New file.
102674         * lib/unistdio/u-vsnprintf.h: New file.
102675         * lib/unistdio/u-vsprintf.h: New file.
102676         * lib/unistdio/ulc-asnprintf.c: New file.
102677         * lib/unistdio/ulc-asprintf.c: New file.
102678         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
102679         * lib/unistdio/ulc-printf-parse.c: New file.
102680         * lib/unistdio/ulc-snprintf.c: New file.
102681         * lib/unistdio/ulc-sprintf.c: New file.
102682         * lib/unistdio/ulc-vasnprintf.c: New file.
102683         * lib/unistdio/ulc-vasprintf.c: New file.
102684         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102685         * lib/unistdio/ulc-vsnprintf.c: New file.
102686         * lib/unistdio/ulc-vsprintf.c: New file.
102687         * lib/unistdio/u8-asnprintf.c: New file.
102688         * lib/unistdio/u8-asprintf.c: New file.
102689         * lib/unistdio/u8-printf-parse.c: New file.
102690         * lib/unistdio/u8-snprintf.c: New file.
102691         * lib/unistdio/u8-sprintf.c: New file.
102692         * lib/unistdio/u8-vasnprintf.c: New file.
102693         * lib/unistdio/u8-vasprintf.c: New file.
102694         * lib/unistdio/u8-vsnprintf.c: New file.
102695         * lib/unistdio/u8-vsprintf.c: New file.
102696         * lib/unistdio/u8-u8-asnprintf.c: New file.
102697         * lib/unistdio/u8-u8-asprintf.c: New file.
102698         * lib/unistdio/u8-u8-snprintf.c: New file.
102699         * lib/unistdio/u8-u8-sprintf.c: New file.
102700         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102701         * lib/unistdio/u8-u8-vasprintf.c: New file.
102702         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102703         * lib/unistdio/u8-u8-vsprintf.c: New file.
102704         * lib/unistdio/u16-asnprintf.c: New file.
102705         * lib/unistdio/u16-asprintf.c: New file.
102706         * lib/unistdio/u16-printf-parse.c: New file.
102707         * lib/unistdio/u16-snprintf.c: New file.
102708         * lib/unistdio/u16-sprintf.c: New file.
102709         * lib/unistdio/u16-vasnprintf.c: New file.
102710         * lib/unistdio/u16-vasprintf.c: New file.
102711         * lib/unistdio/u16-vsnprintf.c: New file.
102712         * lib/unistdio/u16-vsprintf.c: New file.
102713         * lib/unistdio/u16-u16-asnprintf.c: New file.
102714         * lib/unistdio/u16-u16-asprintf.c: New file.
102715         * lib/unistdio/u16-u16-snprintf.c: New file.
102716         * lib/unistdio/u16-u16-sprintf.c: New file.
102717         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102718         * lib/unistdio/u16-u16-vasprintf.c: New file.
102719         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102720         * lib/unistdio/u16-u16-vsprintf.c: New file.
102721         * lib/unistdio/u32-asnprintf.c: New file.
102722         * lib/unistdio/u32-asprintf.c: New file.
102723         * lib/unistdio/u32-printf-parse.c: New file.
102724         * lib/unistdio/u32-snprintf.c: New file.
102725         * lib/unistdio/u32-sprintf.c: New file.
102726         * lib/unistdio/u32-vasnprintf.c: New file.
102727         * lib/unistdio/u32-vasprintf.c: New file.
102728         * lib/unistdio/u32-vsnprintf.c: New file.
102729         * lib/unistdio/u32-vsprintf.c: New file.
102730         * lib/unistdio/u32-u32-asnprintf.c: New file.
102731         * lib/unistdio/u32-u32-asprintf.c: New file.
102732         * lib/unistdio/u32-u32-snprintf.c: New file.
102733         * lib/unistdio/u32-u32-sprintf.c: New file.
102734         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102735         * lib/unistdio/u32-u32-vasprintf.c: New file.
102736         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102737         * lib/unistdio/u32-u32-vsprintf.c: New file.
102738         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102739         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102740         * tests/unistdio/test-ulc-printf1.h: New file.
102741         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102742         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102743         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102744         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102745         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102746         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102747         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102748         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102749         * tests/unistdio/test-u8-asnprintf1.c: New file.
102750         * tests/unistdio/test-u8-asnprintf1.h: New file.
102751         * tests/unistdio/test-u8-printf1.h: New file.
102752         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102753         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102754         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102755         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102756         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102757         * tests/unistdio/test-u8-vasprintf1.c: New file.
102758         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102759         * tests/unistdio/test-u8-vsprintf1.c: New file.
102760         * tests/unistdio/test-u16-asnprintf1.c: New file.
102761         * tests/unistdio/test-u16-asnprintf1.h: New file.
102762         * tests/unistdio/test-u16-printf1.h: New file.
102763         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102764         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102765         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102766         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102767         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102768         * tests/unistdio/test-u16-vasprintf1.c: New file.
102769         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102770         * tests/unistdio/test-u16-vsprintf1.c: New file.
102771         * tests/unistdio/test-u32-asnprintf1.c: New file.
102772         * tests/unistdio/test-u32-asnprintf1.h: New file.
102773         * tests/unistdio/test-u32-printf1.h: New file.
102774         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102775         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102776         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102777         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102778         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102779         * tests/unistdio/test-u32-vasprintf1.c: New file.
102780         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102781         * tests/unistdio/test-u32-vsprintf1.c: New file.
102782         * modules/unistdio/base: New file.
102783         * modules/unistdio/u-printf-args: New file.
102784         * modules/unistdio/ulc-asnprintf: New file.
102785         * modules/unistdio/ulc-asprintf: New file.
102786         * modules/unistdio/ulc-fprintf: New file.
102787         * modules/unistdio/ulc-printf-parse: New file.
102788         * modules/unistdio/ulc-snprintf: New file.
102789         * modules/unistdio/ulc-sprintf: New file.
102790         * modules/unistdio/ulc-vasnprintf: New file.
102791         * modules/unistdio/ulc-vasprintf: New file.
102792         * modules/unistdio/ulc-vfprintf: New file.
102793         * modules/unistdio/ulc-vsnprintf: New file.
102794         * modules/unistdio/ulc-vsprintf: New file.
102795         * modules/unistdio/u8-asnprintf: New file.
102796         * modules/unistdio/u8-asprintf: New file.
102797         * modules/unistdio/u8-printf-parse: New file.
102798         * modules/unistdio/u8-snprintf: New file.
102799         * modules/unistdio/u8-sprintf: New file.
102800         * modules/unistdio/u8-vasnprintf: New file.
102801         * modules/unistdio/u8-vasprintf: New file.
102802         * modules/unistdio/u8-vsnprintf: New file.
102803         * modules/unistdio/u8-vsprintf: New file.
102804         * modules/unistdio/u8-u8-asnprintf: New file.
102805         * modules/unistdio/u8-u8-asprintf: New file.
102806         * modules/unistdio/u8-u8-snprintf: New file.
102807         * modules/unistdio/u8-u8-sprintf: New file.
102808         * modules/unistdio/u8-u8-vasnprintf: New file.
102809         * modules/unistdio/u8-u8-vasprintf: New file.
102810         * modules/unistdio/u8-u8-vsnprintf: New file.
102811         * modules/unistdio/u8-u8-vsprintf: New file.
102812         * modules/unistdio/u16-asnprintf: New file.
102813         * modules/unistdio/u16-asprintf: New file.
102814         * modules/unistdio/u16-printf-parse: New file.
102815         * modules/unistdio/u16-snprintf: New file.
102816         * modules/unistdio/u16-sprintf: New file.
102817         * modules/unistdio/u16-vasnprintf: New file.
102818         * modules/unistdio/u16-vasprintf: New file.
102819         * modules/unistdio/u16-vsnprintf: New file.
102820         * modules/unistdio/u16-vsprintf: New file.
102821         * modules/unistdio/u16-u16-asnprintf: New file.
102822         * modules/unistdio/u16-u16-asprintf: New file.
102823         * modules/unistdio/u16-u16-snprintf: New file.
102824         * modules/unistdio/u16-u16-sprintf: New file.
102825         * modules/unistdio/u16-u16-vasnprintf: New file.
102826         * modules/unistdio/u16-u16-vasprintf: New file.
102827         * modules/unistdio/u16-u16-vsnprintf: New file.
102828         * modules/unistdio/u16-u16-vsprintf: New file.
102829         * modules/unistdio/u32-asnprintf: New file.
102830         * modules/unistdio/u32-asprintf: New file.
102831         * modules/unistdio/u32-printf-parse: New file.
102832         * modules/unistdio/u32-snprintf: New file.
102833         * modules/unistdio/u32-sprintf: New file.
102834         * modules/unistdio/u32-vasnprintf: New file.
102835         * modules/unistdio/u32-vasprintf: New file.
102836         * modules/unistdio/u32-vsnprintf: New file.
102837         * modules/unistdio/u32-vsprintf: New file.
102838         * modules/unistdio/u32-u32-asnprintf: New file.
102839         * modules/unistdio/u32-u32-asprintf: New file.
102840         * modules/unistdio/u32-u32-snprintf: New file.
102841         * modules/unistdio/u32-u32-sprintf: New file.
102842         * modules/unistdio/u32-u32-vasnprintf: New file.
102843         * modules/unistdio/u32-u32-vasprintf: New file.
102844         * modules/unistdio/u32-u32-vsnprintf: New file.
102845         * modules/unistdio/u32-u32-vsprintf: New file.
102846         * modules/unistdio/ulc-asnprintf-tests: New file.
102847         * modules/unistdio/ulc-vasnprintf-tests: New file.
102848         * modules/unistdio/ulc-vasprintf-tests: New file.
102849         * modules/unistdio/ulc-vsnprintf-tests: New file.
102850         * modules/unistdio/ulc-vsprintf-tests: New file.
102851         * modules/unistdio/u8-asnprintf-tests: New file.
102852         * modules/unistdio/u8-vasnprintf-tests: New file.
102853         * modules/unistdio/u8-vasprintf-tests: New file.
102854         * modules/unistdio/u8-vsnprintf-tests: New file.
102855         * modules/unistdio/u8-vsprintf-tests: New file.
102856         * modules/unistdio/u16-asnprintf-tests: New file.
102857         * modules/unistdio/u16-vasnprintf-tests: New file.
102858         * modules/unistdio/u16-vasprintf-tests: New file.
102859         * modules/unistdio/u16-vsnprintf-tests: New file.
102860         * modules/unistdio/u16-vsprintf-tests: New file.
102861         * modules/unistdio/u32-asnprintf-tests: New file.
102862         * modules/unistdio/u32-vasnprintf-tests: New file.
102863         * modules/unistdio/u32-vasprintf-tests: New file.
102864         * modules/unistdio/u32-vsnprintf-tests: New file.
102865         * modules/unistdio/u32-vsprintf-tests: New file.
102866         * MODULES.html.sh (Unicode string functions): Add the new modules.
102868 2007-07-01  Bruno Haible  <bruno@clisp.org>
102870         * lib/sprintf.c (sprintf): Limit the available length estimation,
102871         to avoid address wraparound.
102872         * lib/vsprintf.c (vsprintf): Likewise.
102873         * modules/sprintf-posix (Dependencies): Add stdint.
102874         * modules/vsprintf-posix (Dependencies): Likewise.
102876 2007-07-01  Bruno Haible  <bruno@clisp.org>
102878         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102879         Windows PATH as well. Conservative double-quoting. Comments.
102881 2007-07-01  Bruno Haible  <bruno@clisp.org>
102882             Eric Blake  <ebb9@byu.net>
102883             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102885         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102886         empty components in $PATH, denoting '.'.
102888 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102890         * gnulib-tool: Fix indentation.
102891         (func_create_megatestdir): Likewise.
102892         Report by Bruno Haible.
102894 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102896         Sync from Automake.
102897         * build-aux/gnupload: Fix shell portability issues with for loops.
102898         Report by Karl Berry.
102900 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102902         * build-aux/maint.mk (POURL): Use translationproject.org.
102904 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102905             Bruno Haible  <bruno@clisp.org>
102907         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102908         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102909         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102910         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102911         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102913 2007-06-27  Bruno Haible  <bruno@clisp.org>
102915         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102916         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102918 2007-06-26  Karl Berry  <karl@gnu.org>
102920         * MODULES.html.sh: remove xreadlink-with-size.
102922 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102924         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102925         method that I hope also handles the double-include problem noted
102926         by Bruno Haible in
102927         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102929 2007-06-23  Bruno Haible  <bruno@clisp.org>
102931         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102932         Don't let the 'mostlyclean' target fail if the last subdirectory could
102933         not be removed.
102934         Reported by Karl Berry.
102936 2007-06-23  Bruno Haible  <bruno@clisp.org>
102938         * gnulib-tool (echo): Add a speedier workaround for ksh.
102939         * tests/test-echo.sh: Likewise.
102941 2007-06-23  Bruno Haible  <bruno@clisp.org>
102943         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102944         * tests/test-echo.sh: Likewise.
102946 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102948         * gnulib-tool (IFS): Initialize early, so we don't set it to
102949         empty later.
102950         (self_abspathname): Rewrite algorithm to set it, reindent.
102951         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102952         (func_create_megatestdir): Merge some sed scripts.
102954 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102956         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102957         exposed by Sun Studio 11 cc on Solaris 8.
102959 2007-06-22  Bruno Haible  <bruno@clisp.org>
102961         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102962         backslashes.
102963         * tests/test-echo.sh: New file.
102965 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102967         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102968         simplify `sed_replace_build_aux' scripts, they are portable but
102969         echoing them with `echo' is not.
102970         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102972 2007-06-21  Karl Berry  <karl@gnu.org>
102974         * config/srclist.txt: guess we can't handle the licenses via
102975         srclist at the moment.
102977 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102979         * MODULES.html.sh: Add include_next.
102980         * modules/include_next: New file.
102982 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102984         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102985         INCLUDE_NEXT.
102986         (gl_CHECK_NEXT_HEADERS): New macro.
102987         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102988         the obsolescent gl_ABSOLUTE_HEADER.
102989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102990         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102991         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102992         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102993         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102994         * m4/math_h.m4 (gl_MATH_H): Likewise.
102995         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102996         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102997         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102998         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102999         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
103000         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
103001         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
103002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
103003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
103004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
103005         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
103006         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
103007         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
103008         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
103009         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
103010         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
103011         * m4/inttypes.m4 (gl_INTTYPES_H): Define
103012         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
103013         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
103014         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
103015         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
103016         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
103017         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
103018         * lib/float_.h: Likewise.
103019         * lib/inttypes_.h: Likewise.
103020         * lib/math_.h: Likewise.
103021         * lib/search_.h: Likewise.
103022         * lib/signal_.h: Likewise.
103023         * lib/stdint_.h: Likewise.
103024         * lib/stdio_.h: Likewise.
103025         * lib/stdlib_.h: Likewise.
103026         * lib/string_.h: Likewise.
103027         * lib/sys_stat_.h: Likewise.
103028         * lib/sys_time_.h: Likewise.
103029         * lib/time_.h: Likewise.
103030         * lib/unistd_.h: Likewise.
103031         * lib/wchar_.h: Likewise.
103032         * lib/wctype_.h: Likewise.
103033         * lib/dirent_.h: Likewise.
103034         * lib/iconv_.h: Likewise.
103035         * lib/locale_.h: Likewise.
103036         * lib/netinet_in_.h: Likewise.
103037         * lib/sys_select_.h: Likewise.
103038         * lib/sys_socket_.h: Likewise.
103039         * lib/sysexits_.h: Likewise.
103040         * modules/fcntl (Depends-on): Depend on include_next, not
103041         absolute_header.
103042         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
103043         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
103044         * modules/fchdir: Likewise.
103045         * modules/float: Likewise.
103046         * modules/iconv_open: Likewise.
103047         * modules/inttypes: Likewise.
103048         * modules/locale: Likewise.
103049         * modules/math: Likewise.
103050         * modules/netinet_in: Likewise.
103051         * modules/search: Likewise.
103052         * modules/signal: Likewise.
103053         * modules/stdint: Likewise.
103054         * modules/stdio: Likewise.
103055         * modules/stdlib: Likewise.
103056         * modules/string: Likewise.
103057         * modules/sys_select: Likewise.
103058         * modules/sys_socket: Likewise.
103059         * modules/sys_stat: Likewise.
103060         * modules/sys_time: Likewise.
103061         * modules/sysexits: Likewise.
103062         * modules/time: Likewise.
103063         * modules/unistd: Likewise.
103064         * modules/wchar: Likewise.
103065         * modules/wctype: Likewise.
103066         * modules/sys_stat: Change maintainer to "all".
103067         * modules/unistd: Likewise.
103069 2007-06-20  Karl Berry  <karl@gnu.org>
103071         * config/srclist.txt: track www changes in license files.
103073 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
103075         * build-aux/bootstrap: Remove stray dot.
103076         Make sure build_aux settings are honored when linking
103077         gnulib_extra_files.
103079 2007-06-19  Eric Blake  <ebb9@byu.net>
103081         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103082         Allow compilation on cygwin.
103084 2007-06-19  Jim Meyering  <jim@meyering.net>
103086         xreadlink-with-size: Remove module.  No longer used.
103087         Ex-callers now use xreadlink or mreadlink-with-size.
103088         * modules/xreadlink-with-size: Remove module.
103089         * lib/xreadlink-with-size.c: Remove file.
103090         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
103091         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
103092         just before the function definition *is* accurate.
103094         Eliminate one way canonicalize_filename_mode could exit.
103095         * lib/canonicalize.c (canonicalize_filename_mode):
103096         Use mreadlink_with_size, not xreadlink_with_size.
103098 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
103100         Detect porting problems to FreeBSD/arm, which has time_t wider than
103101         long int.  Original problem reported for GNU diff by Xin Li in
103102         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
103103         * modules/getdate (Depends-on): Add intprops, verify.
103104         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
103105         is an integer type no wider than long int.
103107 2007-06-18  Jim Meyering  <jim@meyering.net>
103109         New module: mreadlink-with-size.
103110         * MODULES.html.sh: Add mreadlink-with-size.
103111         * modules/mreadlink-with-size: New module
103112         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
103113         not xreadlink-with-size.
103114         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
103116 2007-06-16  Bruno Haible  <bruno@clisp.org>
103118         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
103119         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
103120         Reported by Gary V. Vaughan <gary@gnu.org>.
103122 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
103124         Revamp lchown so that it lives in unistd.h where it belongs.
103125         * lib/lchown.h: Remove.
103126         * lib/dirchownmod.c: Don't include lib/lchown.h.
103127         * lib/fchownat.c: Likewise.
103128         * lib/openat.c: Likewise.
103129         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
103130         does not follow symlinks.
103131         (EOPNOTSUPP): Define if not defined.
103132         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
103133         is defined to 0.
103134         (lchown): New decl.
103135         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
103136         Do not check for lchown decl.
103137         Set REPLACE_LCHOWN.
103138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
103139         REPLACE_LCHOWN.
103140         * modules/chown: Make it clear it follows symlinks.
103141         * modules/lchown: Make it clear it doesn't follow symlinks.
103142         (Files): Remove lib/lchown.h
103143         (Depends-on): Add unistd.
103144         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
103145         (Include): Include <unistd.h>, not "lchown.h".
103146         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
103147         REPLACE_LCHOWN.
103149 2007-06-15  Jim Meyering  <jim@meyering.net>
103151         Change license (GPL to LGPL) of fsusage and dependents.
103152         * modules/fsusage (License): Change to LGPL.
103153         * modules/full-read (License): Likewise.
103154         * modules/full-write (License): Likewise.
103155         * modules/safe-read (License): Likewise.
103156         * modules/safe-write (License): Likewise.
103158 2007-06-14  Ben Pfaff  <blp@gnu.org>
103160         Missing part of allocsa -> malloca transition.
103161         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
103162         gl_MALLOCA.
103164 2007-06-12  Bruno Haible  <bruno@clisp.org>
103166         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
103167         to ia64, x86_64, i386.
103168         Reported by Eric Blake.
103170 2007-06-12  Bruno Haible  <bruno@clisp.org>
103172         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
103173         cross-compiling to x86_64.
103175 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
103177         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
103178         glitch reported by Ralf Wildenhues in
103179         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
103181         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
103182         Vin Shelton.
103184 2007-06-11  Bruno Haible  <bruno@clisp.org>
103186         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
103187         replacement string.
103188         Reported by Eric Blake.
103190 2007-06-10  Bruno Haible  <bruno@clisp.org>
103192         Prepare vasnprintf code for use with Unicode strings.
103193         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103194         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103195         TYPE_U32_STRING.
103196         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
103197         a_u32_string variants.
103198         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103199         * lib/printf-args.c: Don't include config.h and the specification
103200         header if PRINTF_FETCHARGS is already defined.
103201         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103202         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
103203         TYPE_U16_STRING, TYPE_U32_STRING.
103204         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
103205         u16_directive, u16_directives, u32_directive, u32_directives): New
103206         types.
103207         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
103208         New declarations.
103209         * lib/printf-parse.c: Don't include config.h and the specification
103210         header if PRINTF_PARSE is already defined. Eliminate the set of
103211         parameters for WIDE_CHAR_VERSION; the user of this file must provide
103212         them now. Include c-ctype.h.
103213         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
103214         directive and CHAR_T_ONLY_ASCII.
103215         * lib/vasnprintf.c: Don't include config.h and the specification header
103216         if VASNPRINTF is already defined.
103217         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
103218         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
103219         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
103220         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
103221         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
103222         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
103223         code accordingly.
103224         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
103225         pad_ourselves also in this case, with the 'c' and 's' directives, and
103226         with a different notion of "width".
103227         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
103229 2007-06-10  Bruno Haible  <bruno@clisp.org>
103231         * modules/unistr/u32-mbsnlen: New file.
103232         * lib/unistr/u32-mbsnlen.c: New file.
103234         * modules/unistr/u16-mbsnlen: New file.
103235         * lib/unistr/u16-mbsnlen.c: New file.
103237         * modules/unistr/u8-mbsnlen: New file.
103238         * lib/unistr/u8-mbsnlen.c: New file.
103240         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
103241         declarations.
103243 2007-06-10  Bruno Haible  <bruno@clisp.org>
103245         * lib/string_.h (mbsnlen): New declaration.
103246         * lib/mbsnlen.c: New file.
103247         * m4/mbsnlen.m4: New file.
103248         * modules/mbsnlen: New file.
103249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
103250         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
103251         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
103253 2007-06-10  Bruno Haible  <bruno@clisp.org>
103255         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
103257 2007-06-10  Bruno Haible  <bruno@clisp.org>
103259         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
103260         * lib/mbuiter.h: Likewise.
103262 2007-06-10  Bruno Haible  <bruno@clisp.org>
103264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
103265         declaration.
103267 2007-06-10  Karl Berry  <karl@gnu.org>
103269         * config/srclist.txt: remove gettext entries, Bruno prefers
103270         to update individually.
103272 2007-06-10  Bruno Haible  <bruno@clisp.org>
103274         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
103275         'maxlen'. Ensure only length + width bytes are allocated, not
103276         length + 1 + width.
103278 2007-06-09  Bruno Haible  <bruno@clisp.org>
103280         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103281         (CHAR_T): Remove macro.
103282         (VASNPRINTF): Update.
103284 2007-06-09  Bruno Haible  <bruno@clisp.org>
103286         * MODULES.html.sh (Unicode string functions): Add the new modules.
103288         * modules/uniconv/u32-conv-to-enc: New file.
103289         * lib/uniconv/u32-conv-to-enc.c: New file.
103290         * modules/uniconv/u32-conv-to-enc-tests: New file.
103291         * tests/uniconv/test-u32-conv-to-enc.c: New file.
103293         * modules/uniconv/u16-conv-to-enc: New file.
103294         * lib/uniconv/u16-conv-to-enc.c: New file.
103295         * lib/uniconv/u-conv-to-enc.h: New file.
103296         * modules/uniconv/u16-conv-to-enc-tests: New file.
103297         * tests/uniconv/test-u16-conv-to-enc.c: New file.
103299         * modules/uniconv/u8-conv-to-enc: New file.
103300         * lib/uniconv/u8-conv-to-enc.c: New file.
103301         * modules/uniconv/u8-conv-to-enc-tests: New file.
103302         * tests/uniconv/test-u8-conv-to-enc.c: New file.
103304         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
103305         u32_conv_to_encoding): New declarations.
103307 2007-06-09  Bruno Haible  <bruno@clisp.org>
103309         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
103311 2007-06-09  Bruno Haible  <bruno@clisp.org>
103313         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
103314         * modules/malloca: Renamed from modules/allocsa, updated.
103315         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
103316         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
103317         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
103318         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
103319         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
103320         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
103321         * modules/xmalloca: Renamed from modules/xallocsa, updated.
103322         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
103323         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
103324         * modules/c-strcasestr (Depends-on): Update.
103325         * lib/c-strcasestr.c: Update.
103326         * modules/c-strstr (Depends-on): Update.
103327         * lib/c-strstr.c: Update.
103328         * modules/canonicalize-lgpl (Depends-on): Update.
103329         * lib/canonicalize-lgpl.c: Update.
103330         * modules/clean-temp (Depends-on): Update.
103331         * lib/clean-temp.c: Update.
103332         * modules/csharpcomp (Depends-on): Update.
103333         * lib/csharpcomp.c: Update.
103334         * modules/csharpexec (Depends-on): Update.
103335         * lib/csharpexec.c: Update.
103336         * modules/javacomp (Depends-on): Update.
103337         * lib/javacomp.c: Update.
103338         * modules/javaexec (Depends-on): Update.
103339         * lib/javaexec.c: Update.
103340         * modules/mbscasestr (Depends-on): Update.
103341         * lib/mbscasestr.c: Update.
103342         * modules/mbsstr (Depends-on): Update.
103343         * lib/mbsstr.c: Update.
103344         * modules/setenv (Depends-on): Update.
103345         * lib/setenv.c: Update.
103346         * modules/strcasestr (Depends-on): Update.
103347         * lib/strcasestr.c: Update.
103348         * modules/striconveha (Depends-on): Update.
103349         * lib/striconveha.c: Update.
103350         * modules/relocatable-prog-wrapper (Files): Update.
103351         * lib/relocwrapper.c: Update.
103352         * build-aux/install-reloc: Update.
103353         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
103355 2007-06-08  Bruno Haible  <bruno@clisp.org>
103357         Port to uClibc.
103358         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
103359         * lib/fpurge.c (fpurge): Likewise.
103360         * lib/freading.c (freading): Likewise.
103361         * lib/fseeko.c (rpl_fseeko): Likewise.
103362         * lib/fseterr.c (fseterr): Likewise.
103363         * lib/fwriting.c (fwriting): Likewise.
103364         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103366 2007-06-08  Bruno Haible  <bruno@clisp.org>
103368         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103369         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103370         * modules/gettext (Files): Add m4/intlmacosx.m4.
103372 2007-06-07  Bruno Haible  <bruno@clisp.org>
103374         * modules/localename-tests: New file.
103375         * tests/test-localename.c: New file.
103377         New module 'localename'.
103378         * lib/localename.h: New file.
103379         * lib/localename.c: New file, from GNU gettext.
103380         * m4/localename.m4: New file.
103381         * modules/localename: New file.
103383 2007-06-07  Bruno Haible  <bruno@clisp.org>
103385         Work around the lack of <wchar.h> on some builds of uClibc.
103386         * doc/headers/wchar.texi: Update.
103387         * lib/wchar_.h: Include <wchar.h> only if it exists.
103388         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103389         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103390         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103391         doesn't exist.
103392         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103393         * modules/mbfile (Depends-on): Add wchar.
103394         * modules/mbiter (Depends-on): Likewise.
103395         * modules/mbuiter (Depends-on): Likewise.
103396         Reported by Simon Josefsson.
103398 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103400         Work around problem reported by Steven M. Schweda in
103401         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103402         Tru64 5.1B with the Compaq compiler environment installed declares
103403         an 'isblank' function but does not define it in the C library.
103404         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103405         * lib/regex_internal.h (isblank): Likewise.
103406         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103407         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103409 2007-06-05  Bruno Haible  <bruno@clisp.org>
103411         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103412         ia64.
103413         * modules/printf-safe: New file.
103414         * modules/fprintf-posix (Depends-on): Add printf-safe.
103415         * modules/printf-posix (Depends-on): Likewise.
103416         * modules/snprintf-posix (Depends-on): Likewise.
103417         * modules/sprintf-posix (Depends-on): Likewise.
103418         * modules/vasnprintf-posix (Depends-on): Likewise.
103419         * modules/vasprintf-posix (Depends-on): Likewise.
103420         * modules/vfprintf-posix (Depends-on): Likewise.
103421         * modules/vprintf-posix (Depends-on): Likewise.
103422         * modules/vsnprintf-posix (Depends-on): Likewise.
103423         * modules/vsprintf-posix (Depends-on): Likewise.
103424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103425         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103426         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103427         "no" on i386, x86_64, ia64.
103428         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
103429         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103430         on i386, x86_64, ia64.
103431         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
103432         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103433         on i386, x86_64, ia64.
103434         * tests/test-vasnprintf-posix.c: Include float.h.
103435         (LDBL80_WORDS): New macro.
103436         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103437         on i386, x86_64, ia64.
103438         * tests/test-vasprintf-posix.c: Include float.h.
103439         (LDBL80_WORDS): New macro.
103440         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103441         on i386, x86_64, ia64.
103442         * tests/test-snprintf-posix.c: Include float.h.
103443         * tests/test-sprintf-posix.c: Likewise.
103444         * tests/test-vsnprintf-posix.c: Likewise.
103445         * tests/test-vsprintf-posix.c: Likewise.
103447 2007-06-05  Bruno Haible  <bruno@clisp.org>
103449         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103450         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103451         non-IEEE numbers on i386, x86_64, ia64.
103452         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103453         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103454         * tests/test-isnanl.h: Include float.h.
103455         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103457 2007-06-05  Bruno Haible  <bruno@clisp.org>
103459         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103460         also the %a / %A. Handle the %a / %A code before this extra handling.
103462 2007-06-05  Bruno Haible  <bruno@clisp.org>
103464         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103465         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103467 2007-06-05  Bruno Haible  <bruno@clisp.org>
103469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103470         typo in variable name.
103472 2007-06-05  Eric Blake  <ebb9@byu.net>
103474         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
103475         Reported by Simon Josefsson.
103477 2007-06-04  Bruno Haible  <bruno@clisp.org>
103479         Avoid test failures on some PowerPC platforms.
103480         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
103481         Define differently for PowerPC.
103482         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
103483         Reported by Gary V. Vaughan <gary@gnu.org>.
103485 2007-06-02  Bruno Haible  <bruno@clisp.org>
103487         Fix test-stdint failure on FreeBSD/ia64.
103488         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
103489         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
103490         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
103491         * doc/headers/stdint.texi: Update.
103493 2007-06-01  Bruno Haible  <bruno@clisp.org>
103495         * tests/test-binary-io.c (main): Pass a third argument to open().
103496         Reported by Gary V. Vaughan <gary@gnu.org>.
103498 2007-06-01  Bruno Haible  <bruno@clisp.org>
103500         * doc/functions/frexpl.texi: Update for mingw.
103502 2007-06-01  Bruno Haible  <bruno@clisp.org>
103504         * tests/test-lseek.c (main): Disable test of errno for invalid third
103505         argument.
103506         * doc/functions/lseek.texi: Update.
103507         Reported by Gary V. Vaughan <gary@gnu.org>.
103509 2007-05-28  Bruno Haible  <bruno@clisp.org>
103511         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
103513 2007-05-31  Eric Blake  <ebb9@byu.net>
103515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
103516         cross compiling.
103518 2007-05-30  Eric Blake  <ebb9@byu.net>
103519         and Bruno Haible  <bruno@clisp.org>
103521         Work around mingw test failures exposed by m4-1.4.9b.
103522         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
103523         * tests/test-unistd.c: Disable uid_t and git_t tests for the
103524         moment.
103526 2007-05-30  Bruno Haible  <bruno@clisp.org>
103528         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
103529         assuming that they are closed. Needed on HP-UX 11.
103531 2007-05-29  Bruno Haible  <bruno@clisp.org>
103533         Fix a problem with #include_next.
103534         * lib/dirent_.h: Split the double-inclusion guard.
103535         * lib/fcntl_.h: Likewise.
103536         * lib/float_.h: Likewise.
103537         * lib/iconv_.h: Likewise.
103538         * lib/inttypes_.h: Likewise.
103539         * lib/locale_.h: Likewise.
103540         * lib/math_.h: Likewise.
103541         * lib/netinet_in_.h: Likewise.
103542         * lib/search_.h: Likewise.
103543         * lib/signal_.h: Likewise.
103544         * lib/stdint_.h: Likewise.
103545         * lib/stdio_.h: Likewise.
103546         * lib/stdlib_.h: Likewise.
103547         * lib/string_.h: Likewise.
103548         * lib/sys_select_.h: Likewise.
103549         * lib/sys_socket_.h: Likewise.
103550         * lib/sys_stat_.h: Likewise.
103551         * lib/sys_time_.h: Likewise.
103552         * lib/sysexits_.h: Likewise.
103553         * lib/time_.h: Likewise.
103554         * lib/unistd_.h: Likewise.
103555         * lib/wchar_.h: Likewise.
103556         * lib/wctype_.h: Likewise.
103558 2007-05-29  Bruno Haible  <bruno@clisp.org>
103560         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
103561         for the moment.
103563 2007-05-29  Bruno Haible  <bruno@clisp.org>
103565         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
103566         invocation.
103567         Reported by Eric Blake.
103569 2007-05-29  Bruno Haible  <bruno@clisp.org>
103571         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
103572         compiling case.
103574 2007-05-29  Eric Blake  <ebb9@byu.net>
103575             Bruno Haible  <bruno@clisp.org>
103577         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
103578         cross compiles.
103580 2007-05-28  Eric Blake  <ebb9@byu.net>
103582         * modules/closein-tests (test_closein_LDADD): Support test on
103583         cygwin with libtool.
103585 2007-05-28  Bruno Haible  <bruno@clisp.org>
103587         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
103588         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
103589         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
103590         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
103591         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
103592         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
103593         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
103594         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
103595         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
103597 2007-05-28  Eric Blake  <ebb9@byu.net>
103599         Unconditionally include <config.h> in unit tests.
103600         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
103601         * tests/test-allocsa.c, tests/test-arcfour.c,
103602         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
103603         tests/test-array_list.c, tests/test-array_oset.c,
103604         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
103605         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
103606         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
103607         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
103608         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103609         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103610         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103611         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103612         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103613         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103614         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103615         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103616         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
103617         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
103618         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
103619         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
103620         test-md5.c, test-memmem.c, test-printf-posix.c,
103621         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
103622         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
103623         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
103624         test-strcasestr.c, test-striconv.c, test-striconveh.c,
103625         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
103626         test-vasnprintf-posix2.c, test-vasnprintf.c,
103627         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
103628         test-vfprintf-posix.c, test-vprintf-posix.c,
103629         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
103630         test-xvasprintf.c: Likewise.
103632 2007-05-28  Bruno Haible  <bruno@clisp.org>
103634         * gnulib-tool (func_import): Remember the --with-tests command-line
103635         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
103636         Reported by Eric Blake.
103638 2007-05-28  Bruno Haible  <bruno@clisp.org>
103640         * modules/ftell-tests: New file.
103641         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
103642         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
103644         * lib/ftell.c: New file.
103645         * modules/ftell: New file.
103646         * m4/ftell.m4: New file.
103647         * doc/functions/ftell.texi: Update.
103648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
103649         REPLACE_FTELL.
103650         * lib/stdio_.h (rpl_ftell): New declaration.
103651         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
103652         REPLACE_FTELL.
103654 2007-05-28  Eric Blake  <ebb9@byu.net>
103656         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
103658 2007-05-28  Bruno Haible  <bruno@clisp.org>
103660         * modules/fseek-tests: New file.
103661         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
103662         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
103664         * lib/fseek.c: New file.
103665         * modules/fseek: New file.
103666         * m4/fseek.m4: New file.
103667         * doc/functions/fseek.texi: Update.
103668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
103669         REPLACE_FSEEK.
103670         * lib/stdio_.h (rpl_fseek): New declaration.
103671         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
103672         REPLACE_FSEEK.
103674 2007-05-28  Bruno Haible  <bruno@clisp.org>
103676         * lib/stdio_.h (fflush): More comments.
103678 2007-05-28  Bruno Haible  <bruno@clisp.org>
103680         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103681         runtime test.
103683 2007-05-28  Eric Blake  <ebb9@byu.net>
103685         Improve lseek module.
103686         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103687         * lib/unistd_.h (lseek): Scale back link warning message.
103688         * tests/test-lseek.c: Beef up test.
103689         * tests/test-lseek.sh: Exercise more facets of lseek.
103690         Reported by Bruno Haible.
103692 2007-05-28  Bruno Haible  <bruno@clisp.org>
103694         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103695         to define.
103697 2007-05-27  Bruno Haible  <bruno@clisp.org>
103699         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103701 2007-05-27  Bruno Haible  <bruno@clisp.org>
103703         * modules/openmp: New file.
103704         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103705         Noah Misch.
103707 2007-05-26  Bruno Haible  <bruno@clisp.org>
103709         * modules/chdir-long (Depends-on): Add fchdir.
103710         * modules/chdir-safer (Depends-on): Likewise.
103711         * modules/fts (Depends-on): Likewise.
103712         * modules/fts-lgpl (Depends-on): Likewise.
103713         * modules/openat (Depends-on): Likewise.
103714         * modules/savewd (Depends-on): Likewise.
103716 2007-05-24  Eric Blake  <ebb9@byu.net>
103718         Fix lseek on mingw.
103719         * modules/lseek: New module.
103720         * m4/lseek.m4: New file.
103721         * lib/lseek.c: New file.
103722         * modules/lseek-tests: New file.
103723         * tests/test-lseek.c: New file.
103724         * tests/test-lseek.sh: New file.
103725         * MODULES.html.sh: Document lseek module.
103726         * modules/fflush (Depends-on): Add lseek, fseeko.
103727         * modules/fseeko (Depends-on): Likewise.
103728         * modules/ftello (Depends-on): Likewise.
103729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103730         broken.
103731         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103732         broken.
103733         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103734         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103735         * lib/ftello.c (rpl_ftello): Likewise.
103736         * tests/test-fseeko.c (main): Test this.
103737         * tests/test-fseeko.sh: Likewise.
103738         * tests/test-ftello.c (main): Likewise.
103739         * tests/test-ftello.sh: Likewise.
103740         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103741         implies replacing fseek.
103742         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103743         HAVE_FTELLO.
103744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103745         * modules/unistd (Makefile.am): Likewise.
103746         * lib/unistd_.h (lseek): Declare a replacement.
103747         * doc/functions/lseek.texi (lseek): Document this fix.
103748         * doc/functions/fseek.texi (fseek): Likewise.
103749         * doc/functions/ftell.texi (ftell): Likewise.
103751 2007-05-24  Bruno Haible  <bruno@clisp.org>
103753         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103754         in the printed representation of a NaN.
103755         * tests/test-vasprintf-posix.c (test_function): Likewise.
103756         * tests/test-snprintf-posix.h (test_function): Likewise.
103757         * tests/test-sprintf-posix.h (test_function): Likewise.
103758         Reported by Eric Blake.
103760 2007-05-23  Eric Blake  <ebb9@byu.net>
103762         Fix fseeko/ftello on cygwin 1.5.24.
103763         * doc/functions/fseeko.texi (fseeko): Document the fix.
103764         * doc/functions/ftello.texi (ftello): Document the fix.
103765         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103766         * doc/functions/stdout.text (stdout): New file.
103767         * doc/functions/stderr.text (stderr): New file.
103768         * doc/gnulib.texi (Function Substitutes): Use new files.
103769         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103770         prior to 1.7.0.
103771         * tests/test-ftello.c (main): Likewise for ftello.
103772         * tests/test-fseeko.sh: New file.
103773         * tests/test-ftello.sh: New file.
103774         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103775         with seekable stdin.
103776         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103777         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103778         (gl_REPLACE_FSEEKO): New macro.
103779         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103780         * modules/fseeko (Files): Distribute fseeko.c.
103781         * modules/ftello (Files): Distribute ftello.c.
103782         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103783         mode.
103784         * lib/ftello.c (rpl_ftello): New file.
103785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103786         fseeko, ftello.
103787         (gl_STDIN_LARGE_OFFSET): New macro.
103788         * modules/stdio (Makefile.am): Perform the replacement.
103789         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103791 2007-05-23  Bruno Haible  <bruno@clisp.org>
103793         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103794         GNULIB_POSIXCHECK is defined.
103796 2007-05-21  Bruno Haible  <bruno@clisp.org>
103798         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103799         Check also the output for NaN arguments. When cross-compiling, guess
103800         no on IRIX.
103801         * lib/vasnprintf.c: Update comments.
103802         * tests/test-vasnprintf-posix.c (strisnan): New function.
103803         (test_function): Use it.
103804         * tests/test-vasprintf-posix.c (strisnan): New function.
103805         (test_function): Use it.
103806         * tests/test-snprintf-posix.h (strisnan): New function.
103807         (test_function): Use it.
103808         * tests/test-sprintf-posix.h (strisnan): New function.
103809         (test_function): Use it.
103810         Reported by Eric Blake.
103812 2007-05-20  Bruno Haible  <bruno@clisp.org>
103814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103815         numbers that fails on BeOS.
103816         * doc/functions/frexpl.texi: Update.
103818 2007-05-20  Jim Meyering  <jim@meyering.net>
103820         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103821         forced upon us by glibc-2.6.
103823 2007-05-20  Bruno Haible  <bruno@clisp.org>
103825         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103826         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103827         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103828         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103829         NEED_PRINTF_INFINITE.
103830         (is_infinitel): New function.
103831         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103833         gl_PREREQ_VASNPRINTF_INFINITE.
103834         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103836         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103837         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103838         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103839         gl_PREREQ_VASNPRINTF_INFINITE.
103840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103847         * doc/functions/fprintf.texi: Update.
103848         * doc/functions/printf.texi: Update.
103849         * doc/functions/snprintf.texi: Update.
103850         * doc/functions/sprintf.texi: Update.
103851         * doc/functions/vfprintf.texi: Update.
103852         * doc/functions/vprintf.texi: Update.
103853         * doc/functions/vsnprintf.texi: Update.
103854         * doc/functions/vsprintf.texi: Update.
103856 2007-05-20  Bruno Haible  <bruno@clisp.org>
103858         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103859         was not found in libc.
103860         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103862 2007-05-20  Bruno Haible  <bruno@clisp.org>
103864         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103865         printed as "-nan" instead of "nan".
103866         * tests/test-vasprintf-posix.c (test_function): Likewise.
103867         * tests/test-snprintf-posix.h (test_function): Likewise.
103868         * tests/test-sprintf-posix.h (test_function): Likewise.
103869         Needed for HP-UX 11.
103871 2007-05-20  Jim Meyering  <jim@meyering.net>
103873         Fix buggy test for the fchownat-deref bug.
103874         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103875         symlink required for the run-test.  Without it, this test would
103876         always declare that fchownat doesn't work, and client code would
103877         unnecessarily use the replacement function with fixed libc.
103878         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103879         Reported by Greg Schafer.
103881 2007-05-19  Bruno Haible  <bruno@clisp.org>
103883         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103884         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103885         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103886         Needed for IRIX 6.5 and Solaris 2.5.1.
103888 2007-05-19  Bruno Haible  <bruno@clisp.org>
103890         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103891         (test_function): Skip tests involving -0.0 on platforms where
103892         -0.0 = 0.0.
103893         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103894         (test_function): Skip tests involving -0.0 on platforms where
103895         -0.0 = 0.0.
103896         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103897         (test_function): Skip tests involving -0.0 on platforms where
103898         -0.0 = 0.0.
103899         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103900         (test_function): Skip tests involving -0.0 on platforms where
103901         -0.0 = 0.0.
103902         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103903         tests.
103904         * tests/test-printf-posix.h (test_function): Likewise.
103905         * tests/test-printf-posix.output: Remove all -0.0 related results.
103906         Needed for IRIX 6.5.
103908 2007-05-19  Bruno Haible  <bruno@clisp.org>
103910         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103911         printed as "nan0x7fffffff" instead of "nan".
103912         * tests/test-vasprintf-posix.c (test_function): Likewise.
103913         * tests/test-snprintf-posix.h (test_function): Likewise.
103914         * tests/test-sprintf-posix.h (test_function): Likewise.
103915         * tests/test-fprintf-posix.h (NaN): Remove macro.
103916         (test_function): Remove all NaN related tests.
103917         * tests/test-printf-posix.h (NaN): Remove macro.
103918         (test_function): Remove all NaN related tests.
103919         * tests/test-printf-posix.output: Remove all NaN related results.
103920         Needed for IRIX 6.5.
103922 2007-05-19  Bruno Haible  <bruno@clisp.org>
103924         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103927 2007-05-19  Bruno Haible  <bruno@clisp.org>
103929         * lib/float_.h: New file.
103930         * m4/float_h.m4: New file.
103931         * modules/float: New file.
103932         * modules/isnanl (Dependencies): Add float.
103933         * modules/isnanl-nolibm (Dependencies): Likewise.
103934         * modules/mathl (Dependencies): Likewise.
103935         * modules/printf-frexpl (Dependencies): Likewise.
103936         * modules/signbit (Dependencies): Likewise.
103937         * modules/vasnprintf (Dependencies): Likewise.
103938         * doc/headers/float.texi: Update.
103940 2007-05-19  Jim Meyering  <jim@meyering.net>
103942         * lib/utimens.c (gl_futimens): Rename from futimens,
103943         now that glibc-2.6 declares futimens.
103944         * lib/utimens.h: Likewise.
103946 2007-05-19  Bruno Haible  <bruno@clisp.org>
103948         Avoid test failures on mingw.
103949         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103950         * tests/test-printf-posix.sh: Likewise.
103951         * tests/test-vfprintf-posix.sh: Likewise.
103952         * tests/test-vprintf-posix.sh: Likewise.
103954 2007-05-19  Bruno Haible  <bruno@clisp.org>
103956         Fix *printf result for NaN, Inf, -0.0 on mingw.
103957         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103958         * lib/vasnprintf.c: Include math.h and isnan.h.
103959         (is_infinite_or_zero): New function.
103960         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103961         values in the %f, %F, %e, %E, %g, %G directives.
103962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103964         gl_PRINTF_INFINITE and test its result. Invoke
103965         gl_PREREQ_VASNPRINTF_INFINITE.
103966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103972         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103973         * doc/functions/fprintf.texi: Update.
103974         * doc/functions/printf.texi: Update.
103975         * doc/functions/snprintf.texi: Update.
103976         * doc/functions/sprintf.texi: Update.
103977         * doc/functions/vfprintf.texi: Update.
103978         * doc/functions/vprintf.texi: Update.
103979         * doc/functions/vsnprintf.texi: Update.
103980         * doc/functions/vsprintf.texi: Update.
103982 2007-05-19  Bruno Haible  <bruno@clisp.org>
103984         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103985         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103986         Instead of multiplying with 10^k, set extra_zeroes to k.
103987         (scale10_round_long_double): Remove function.
103989 2007-05-18  Bruno Haible  <bruno@clisp.org>
103991         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103992         introduced on 2007-05-06.
103994 2007-05-18  Bruno Haible  <bruno@clisp.org>
103996         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103997         %g directives.
103998         * tests/test-vasprintf-posix.c (test_function): Likewise.
103999         * tests/test-snprintf-posix.h (test_function): Likewise.
104000         * tests/test-sprintf-posix.h (test_function): Likewise.
104002 2007-05-18  Bruno Haible  <bruno@clisp.org>
104004         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
104005         (strmatch): New function.
104006         (test_function): Test the %f directive on numbers of various exponents.
104007         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
104008         (strmatch): New function.
104009         (test_function): Test the %f directive on numbers of various exponents.
104010         * tests/test-snprintf-posix.h (strmatch): New function.
104011         (test_function): Test the %f directive on numbers of various exponents.
104012         * tests/test-sprintf-posix.h (strmatch): New function.
104013         (test_function): Test the %f directive on numbers of various exponents.
104014         * tests/test-snprintf-posix.c (SIZEOF): New macro.
104015         * tests/test-sprintf-posix.c (SIZEOF): New macro.
104016         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
104017         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
104019 2007-05-18  Bruno Haible  <bruno@clisp.org>
104021         Add support for 'long double' number output.
104022         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
104023         * lib/vasnprintf.c: Include math.h and float+.h.
104024         (mp_limb_t): New type.
104025         (GMP_LIMB_BITS): New macro.
104026         (mp_twolimb_t): New type.
104027         (GMP_TWOLIMB_BITS): New macro.
104028         (mpn_t): New type.
104029         (multiply, divide, convert_to_decimal, decode_long_double,
104030         scale10_round_long_double, scale10_round_decimal_long_double,
104031         floorlog10l): New functions.
104032         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
104033         for the %f, %F, %e, %E, %g, %G directives.
104034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
104035         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104036         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
104037         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
104038         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104044         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104045         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
104046         * modules/snprintf-posix (Depends-on): Likewise.
104047         * modules/sprintf-posix (Depends-on): Likewise.
104048         * modules/vasnprintf-posix (Depends-on): Likewise.
104049         * modules/vasprintf-posix (Depends-on): Likewise.
104050         * modules/vfprintf-posix (Depends-on): Likewise.
104051         * modules/vsnprintf-posix (Depends-on): Likewise.
104052         * modules/vsprintf-posix (Depends-on): Likewise.
104053         * modules/vasnprintf (Files): Add lib/float+.h.
104054         * doc/functions/fprintf.texi: Update.
104055         * doc/functions/printf.texi: Update.
104056         * doc/functions/snprintf.texi: Update.
104057         * doc/functions/sprintf.texi: Update.
104058         * doc/functions/vfprintf.texi: Update.
104059         * doc/functions/vprintf.texi: Update.
104060         * doc/functions/vsnprintf.texi: Update.
104061         * doc/functions/vsprintf.texi: Update.
104063 2007-05-18  Bruno Haible  <bruno@clisp.org>
104065         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
104067 2007-05-18  Bruno Haible  <bruno@clisp.org>
104069         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
104070         for printing 64-bit integers. Needed for mingw.
104072 2007-05-18  Bruno Haible  <bruno@clisp.org>
104074         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104075         gl_FUNC_FREXPL_WORKS.
104076         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
104078 2007-05-18  Bruno Haible  <bruno@clisp.org>
104080         * modules/frexpl-nolibm-tests: New file.
104082         * modules/frexpl-nolibm: New file.
104083         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
104085 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104087         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
104088         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104089         GCC 4.2, which otherwise issues a lot of warnings.
104090         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
104091         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
104092         Likewise.
104093         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
104094         * modules/iconv_open (iconv.h): Likewise.
104095         * modules/locale (locale.h): Likewise.
104096         * modules/netinet_in (netinet/in.h): Likewise.
104097         * modules/sys_select (sys_select.h): Likewise.
104098         * modules/sys_socket (sys/socket.h): Likewise.
104099         * modules/sys_stat (sys/stat.h): Likewise.
104100         * modules/sysexits (sysexits.h): Likewise.
104101         * modules/unistd (unistd.h): Likewise.
104103 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104105         * modules/closein-tests (Makefile.am): Distribute
104106         `test-closein.sh'.
104108 2007-05-17  Bruno Haible  <bruno@clisp.org>
104110         * tests/test-printf-posix.output: Renamed from
104111         tests/test-fprintf-posix.out.
104112         * modules/fprintf-posix-tests: Update.
104113         * modules/printf-posix-tests: Update.
104114         * modules/vfprintf-posix-tests: Update.
104115         * modules/vprintf-posix-tests: Update.
104116         * tests/test-fprintf-posix.sh: Update.
104117         * tests/test-printf-posix.sh: Update.
104118         * tests/test-vfprintf-posix.sh: Update.
104119         * tests/test-vprintf-posix.sh: Update.
104120         Reported by Ralf Wildenhues.
104122 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104124         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
104125         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104126         GCC 4.2, which otherwise issues a lot of warnings.
104127         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
104128         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
104129         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
104130         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
104131         it should no longer be needed.
104132         * lib/string_.h: Likewise.
104133         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
104134         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
104135         * modules/inttypes (inttypes.h): Likewise.
104136         * modules/math (math.h): Likewise.
104137         * modules/search (search.h): Likewise.
104138         * modules/signal (signal.h): Likewise.
104139         * modules/stdint (stdint.h): Likewise.
104140         * modules/stdio (stdio.h): Likewise.
104141         * modules/stdlib (stdlib.h): Likewise.
104142         * modules/string (string.h): Likewise.
104143         * modules/sys_time (sys/time.h): Likewise.
104144         * modules/time (time.h): Likewise.
104145         * modules/wchar (wchar.h): Likewise.
104146         * modules/wctype (wtype.h): Likewise.
104148 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
104150         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
104152 2007-05-13  Bruno Haible  <bruno@clisp.org>
104154         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
104155         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104156         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
104157         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104158         (gl_PREREQ_STRTOK_R): Don't require it here.
104160 2007-05-13  Bruno Haible  <bruno@clisp.org>
104162         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
104163         when used in C++ mode.
104165 2007-05-12  Bruno Haible  <bruno@clisp.org>
104167         * lib/linebuffer.h: Tweak doc.
104168         * lib/linebuffer.c: Likewise.
104170 2007-05-12  James Youngman  <jay@gnu.org>
104172         * lib/linebuffer.c (readlinebuffer_delim): New function,
104173         like readlinebuffer, but use a caller-specified delimiter.
104174         (readlinebuffer): Just call readlinebuffer_delim with '\n'
104175         as the delimiter.
104176         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
104178 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104180         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
104181         * modules/openat (Files): Remove openat-die.c.
104182         (Depends-on): Add openat-die.
104183         * modules/openat-die: New module.
104185 2007-05-06  Bruno Haible  <bruno@clisp.org>
104187         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
104188         Update with info about Cygwin.
104189         * doc/functions/fprintf.texi: Update.
104190         * doc/functions/printf.texi: Update.
104191         * doc/functions/snprintf.texi: Update.
104192         * doc/functions/sprintf.texi: Update.
104193         * doc/functions/vfprintf.texi: Update.
104194         * doc/functions/vprintf.texi: Update.
104195         * doc/functions/vsnprintf.texi: Update.
104196         * doc/functions/vsprintf.texi: Update.
104197         Reported by Eric Blake.
104199 2007-05-06  Bruno Haible  <bruno@clisp.org>
104201         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
104202         padding ourselves for the floating-point directives.
104203         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
104204         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
104205         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104206         gl_PRINTF_FLAG_ZERO and test its result. Invoke
104207         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
104208         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104210         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104211         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104212         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104213         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104214         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104215         * tests/test-snprintf-posix.h (test_function): Also check the width
104216         and some flags in the %f directive.
104217         * tests/test-sprintf-posix.h (test_function): Likewise.
104218         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104219         * tests/test-vasprintf-posix.c (test_function): Likewise.
104220         * doc/functions/fprintf.texi: Update.
104221         * doc/functions/printf.texi: Update.
104222         * doc/functions/snprintf.texi: Update.
104223         * doc/functions/sprintf.texi: Update.
104224         * doc/functions/vfprintf.texi: Update.
104225         * doc/functions/vprintf.texi: Update.
104226         * doc/functions/vsnprintf.texi: Update.
104227         * doc/functions/vsprintf.texi: Update.
104229 2007-05-06  Bruno Haible  <bruno@clisp.org>
104231         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
104232         pass the ' flag character to sprintf or snprintf.
104233         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
104234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
104235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104236         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
104237         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
104238         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104239         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104240         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104241         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104242         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104243         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104244         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104245         * tests/test-snprintf-posix.h (test_function): Also check the grouping
104246         flag.
104247         * tests/test-sprintf-posix.h (test_function): Likewise.
104248         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104249         * tests/test-vasprintf-posix.c (test_function): Likewise.
104250         * doc/functions/fprintf.texi: Update.
104251         * doc/functions/printf.texi: Update.
104252         * doc/functions/snprintf.texi: Update.
104253         * doc/functions/sprintf.texi: Update.
104254         * doc/functions/vfprintf.texi: Update.
104255         * doc/functions/vprintf.texi: Update.
104256         * doc/functions/vsnprintf.texi: Update.
104257         * doc/functions/vsprintf.texi: Update.
104259 2007-05-01  Bruno Haible  <bruno@clisp.org>
104261         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
104263 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
104265         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
104266         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
104268 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
104270         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
104271         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
104272         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
104274 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
104276         * lib/argp-help.c (struct hol_entry): New member `ord'.
104277         (HOL_ENTRY_PTRCMP): Use ord for comparison
104278         (hol_sort): Initialize ord.
104280 2007-05-01  Bruno Haible  <bruno@clisp.org>
104282         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
104283         Reported by Eric Blake.
104284         * doc/gnulib.texi (Function Substitutes): Update.
104286 2007-05-01  Bruno Haible  <bruno@clisp.org>
104288         * doc/functions.texi: Remove file, now redundant through
104289         doc/functions/*.texi.
104291 2007-05-01  Bruno Haible  <bruno@clisp.org>
104293         * modules/argp (Depends-on): Add sleep.
104295 2007-05-01  Bruno Haible  <bruno@clisp.org>
104297         * modules/sleep-tests: New file.
104298         * tests/test-sleep.c: New file.
104300         * modules/sleep: New file.
104301         * lib/sleep.c: New file.
104302         * m4/sleep.m4: New file.
104303         * lib/unistd_.h (sleep): New declaration.
104304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
104305         HAVE_SLEEP.
104306         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
104307         * doc/functions/sleep.texi: Document the sleep module.
104309 2007-05-01  Bruno Haible  <bruno@clisp.org>
104311         * lib/sigprocmask.h: Remove file.
104312         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
104313         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
104314         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
104315         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
104316         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
104317         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
104318         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
104319         HAVE_SIGSET_T as a shell variable.
104320         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
104321         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
104322         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
104323         (Depends-on): Add signal. Remove verify.
104324         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
104325         (Include): Mention <signal.h> instead of sigprocmask.h.
104326         * NEWS: Mention the change.
104327         * lib/fatal-signal.c: Don't include sigprocmask.h.
104329 2007-05-01  Bruno Haible  <bruno@clisp.org>
104331         * modules/signal: New file.
104332         * lib/signal_.h: New file.
104333         * m4/signal_h.m4: New file.
104335 2007-05-01  Bruno Haible  <bruno@clisp.org>
104337         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
104338         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
104339         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
104340         HAVE_WCTYPE_CTMP_BUG into wctype.h.
104342 2007-05-01  Bruno Haible  <bruno@clisp.org>
104344         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
104345         configure time.
104346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
104347         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
104348         * modules/sys_stat (Makefile.am): Substitute their values into
104349         sys/stat.h.
104351 2007-05-01  Bruno Haible  <bruno@clisp.org>
104353         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
104354         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
104355         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
104357 2007-05-01  Bruno Haible  <bruno@clisp.org>
104359         * doc/header/assert.texi: Undo last change: don't mention the gnulib
104360         'assert' module here.
104362 2007-05-01  Bruno Haible  <bruno@clisp.org>
104364         * doc/functions/*.texi: New files.
104365         * doc/functions/google-ranking.txt: New file.
104366         * doc/gnulib.texi (Function Substitutes): New chapter.
104367         (ctime, inet_ntoa): Remove sections.
104368         * doc/ctime.texi: Remove file.
104369         * doc/inet_ntoa.texi: Remove file.
104370         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104371         dependencies.
104372         (%.info): New rule, specifying a --reference-limit.
104374 2007-05-01  Bruno Haible  <bruno@clisp.org>
104376         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104378 2007-05-01  Bruno Haible  <bruno@clisp.org>
104380         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104381         the portability of 'mkdir' to mingw systems.
104383 2007-05-01  Bruno Haible  <bruno@clisp.org>
104385         * doc/headers/google-ranking.txt: New file.
104387 2007-04-30  Eric Blake  <ebb9@byu.net>
104389         Prefer fseeko to fseek.
104390         * modules/getpass (Depends-on): Add fseeko.
104391         * lib/getpass.c (getpass): Use fseeko, not fseek.
104393 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104395         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104396         assumes the sorting is stable, while most qsort implementations
104397         are not.  Use argument addresses to ensure they never compare as
104398         equal.
104400         * tests/test-argp-2.sh (usage-indent test): Fix output
104401         (func_compare): Restore diff options
104402         * tests/test-argp.c: Restore #include "progname.h"
104404 2007-04-29  Bruno Haible  <bruno@clisp.org>
104406         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104408         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104409         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104410         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104411         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104412         (TESTS, check_PROGRAMS): Add test-snprintf.
104413         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104414         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104415         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104416         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104417         assertions that fail on HP-UX, OSF/1, or IRIX.
104418         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104420 2007-04-29  Bruno Haible  <bruno@clisp.org>
104422         * MODULES.html.sh (posix_functions): Remove 'contents'.
104424 2007-04-29  Karl Berry  <karl@gnu.org>
104426         * config/srclist.txt (gendocs_template_min): new entry.
104428 2007-04-29  Bruno Haible  <bruno@clisp.org>
104430         Work around fpurge bug on BSD systems.
104431         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104432         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104433         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104434         fpurge to rpl_fpurge if the system already has this function.
104435         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104436         the case where the system already has this function. Correct invariants
104437         on BSD systems.
104438         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104439         BSD systems.
104441 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104443         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104444         proposed by Sven Verdoolaege.
104446         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104447         options.
104448         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104449         (usage and help tests): Update
104451 2007-04-29  Bruno Haible  <bruno@clisp.org>
104453         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104454         Print more information in case of failure. Disable a test on BeOS.
104456 2007-04-29  Bruno Haible  <bruno@clisp.org>
104458         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104459         This helps debugging on systems on which no gdb is available.
104461 2007-04-29  Bruno Haible  <bruno@clisp.org>
104463         * lib/freading.h: Improve comments.
104464         * lib/fwriting.h: Likewise.
104465         * tests/test-freading.c (main): Don't check freading immediately after
104466         repositioning. Needed for glibc.
104468 2007-04-29  Bruno Haible  <bruno@clisp.org>
104470         * lib/freading.c (freading): Trivial simplification.
104472 2007-04-28  Bruno Haible  <bruno@clisp.org>
104474         * tests/test-fwriting.c (main): Also test the interaction between
104475         fflush and fwriting.
104476         * modules/fwriting-tests (Depends-on): Add fflush.
104478         * tests/test-freading.c (main): Also test the interaction between
104479         fflush and freading.
104480         * modules/freading-tests (Depends-on): Add fflush.
104482 2007-04-28  Bruno Haible  <bruno@clisp.org>
104484         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
104485         fseeko and ftello.
104486         Suggested by Eric Blake.
104488 2007-04-28  Jim Meyering  <jim@meyering.net>
104490         Avoid false-negative in gl_STDINT_H's C99 conformance test.
104491         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
104492         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
104494 2007-04-27  Eric Blake  <ebb9@byu.net>
104496         * doc/headers/assert.texi (assert.h): Document assert module use.
104498 2007-04-27  Bruno Haible  <bruno@clisp.org>
104500         * doc/headers/*.texi: New files.
104501         * doc/gnulib.texi (Header File Substitutes): New chapter.
104502         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
104503         dependencies.
104504         (standards.info ,standards.html, standards.dvi): Update dependencies.
104505         (mostlyclean, clean): New targets.
104507 2007-04-27  Bruno Haible  <bruno@clisp.org>
104509         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
104510         * modules/sysexits (Files, Makefile.am): Update.
104512         * lib/sys_socket_.h: Renamed from lib/socket_.h.
104513         * modules/sys_socket (Files, Makefile.am): Update.
104515         * lib/sys_stat_.h: Renamed from lib/stat_.h.
104516         * modules/sys_stat (Files, Makefile.am): Update.
104518 2007-04-27  Eric Blake  <ebb9@byu.net>
104520         * lib/freading.h: Improve comments.
104521         * lib/fwriting.h: Likewise.
104522         * lib/fflush.c: Likewise.
104524         Fix closein for mingw.
104525         * modules/closein-tests: Add tests for closein.
104526         * tests/test-closein.c: New file.
104527         * tests/test-closein.sh: Likewise.
104528         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
104529         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
104531 2007-04-27  Bruno Haible  <bruno@clisp.org>
104533         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
104534         version is < 6.
104535         * lib/math_.h [__DECC]: Likewise.
104536         * lib/stdio_.h [__DECC]: Likewise.
104537         * lib/stdlib_.h [__DECC]: Likewise.
104538         * lib/string_.h [__DECC]: Likewise.
104539         * lib/time_.h [__DECC]: Likewise.
104540         * lib/wchar_.h [__DECC]: Likewise.
104541         * lib/wctype_.h [__DECC]: Likewise.
104543 2007-04-27  Bruno Haible  <bruno@clisp.org>
104545         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
104547 2007-04-27  Bruno Haible  <bruno@clisp.org>
104549         * lib/fflush.c: Add comments.
104550         * modules/fpurge-tests (Depends-on): Add fflush.
104551         * modules/freadable-tests (Depends-on): Likewise.
104552         * modules/fwritable-tests (Depends-on): Likewise.
104554 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
104556         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
104557         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
104558         Report by Bruno Haible <bruno@clisp.org>.
104560 2007-04-26  Eric Blake  <ebb9@byu.net>
104562         Fix fflush on mingw.
104563         * modules/fflush (Depends-on): Add freading.
104564         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
104565         but unread data.
104567 2007-04-26  Eric Blake  <ebb9@byu.net>
104568         and Bruno Haible  <bruno@clisp.org>
104570         Implement freading and fwriting.
104571         * lib/freading.c: New file.
104572         * lib/freading.h: Likewise.
104573         * m4/freading.m4: Likewise.
104574         * modules/freading: Likewise.
104575         * modules/freading-tests: Likewise.
104576         * tests/test-freading.c: Likewise.
104577         * lib/fwriting.c: New file.
104578         * lib/fwriting.h: Likewise.
104579         * m4/fwriting.m4: Likewise.
104580         * modules/fwriting: Likewise.
104581         * modules/fwriting-tests: Likewise.
104582         * tests/test-fwriting.c: Likewise.
104583         * MODULES.html.sh (File stream based Input/Output): Mention them.
104585 2007-04-26  Bruno Haible  <bruno@clisp.org>
104587         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
104588         'long' when we assume it.
104589         Suggested by Eric Blake.
104591 2007-04-26  Bruno Haible  <bruno@clisp.org>
104593         Ensure fseeko, ftello are declared on glibc systems.
104594         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
104595         * modules/fseeko (configure.ac-early): Likewise.
104596         * modules/ftello (configure.ac-early): Likewise.
104597         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
104598         AC_FUNC_FSEEKO for this.
104599         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
104600         (gl_CHECK_FSEEKO): Remove macro.
104602 2007-04-26  Bruno Haible  <bruno@clisp.org>
104604         * tests/test-fflush.c (main): Also check the ftell result after
104605         fflush and fseek/fseeko.
104606         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
104607         file descriptor position cache in the stream.
104608         * lib/fseeko.c (rpl_fseeko): Likewise.
104610 2007-04-26  Bruno Haible  <bruno@clisp.org>
104612         * modules/fflush-tests (Depends-on): Add fseeko.
104614 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104615             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104617         * lib/argz_.h: ensure error_t definition is obtained in same
104618         mechanism system argz.h would have.
104619         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
104620         argz facilities are known bad.  Err on the side of caution if
104621         cross-compiling.
104623 2007-04-25  Eric Blake  <ebb9@byu.net>
104625         * lib/fpurge.c (includes): Use stdlib.h for free.
104626         * tests/test-fflush.c (main): Also test fflush-fseeko.
104628 2007-04-25  Bruno Haible  <bruno@clisp.org>
104630         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
104631         * lib/fseeko.c: New file.
104632         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
104633         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
104634         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
104635         gl_FUNC_FSEEKO.
104636         (gl_FUNC_FSEEKO): Invoke it.
104637         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
104638         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
104639         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
104641 2007-04-25  Bruno Haible  <bruno@clisp.org>
104643         * modules/fflush (Depends-on): Add ftello.
104645 2007-04-25  Bruno Haible  <bruno@clisp.org>
104647         * modules/ftello-tests: New file.
104648         * tests/test-ftello.c: New file.
104650         * modules/ftello: New file.
104651         * m4/ftello.m4: New file.
104652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
104653         HAVE_FTELLO.
104654         * lib/stdio_.h (ftello): New declaration.
104655         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
104656         HAVE_FTELLO.
104658 2007-04-25  Bruno Haible  <bruno@clisp.org>
104660         * modules/fseeko-tests: New file.
104661         * tests/test-fseeko.c: New file.
104663         * modules/fseeko: New file.
104664         * m4/fseeko.m4: New file.
104665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
104666         HAVE_FSEEKO.
104667         * lib/stdio_.h (fseeko): New declaration.
104668         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
104669         HAVE_FSEEKO.
104671 2007-04-25  Bruno Haible  <bruno@clisp.org>
104673         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
104675 2007-04-25  Bruno Haible  <bruno@clisp.org>
104677         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
104678         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
104679         * tests/test-unistd.c: Likewise.
104680         * tests/test-fcntl.c: Likewise.
104682 2007-04-23  Eric Blake  <ebb9@byu.net>
104684         * lib/fflush.c: Fix missing include.
104685         Reported by Bruno Haible.
104687 2007-04-23  Bruno Haible  <bruno@clisp.org>
104689         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104690         Reported by Eric Blake.
104692 2007-04-23  Bruno Haible  <bruno@clisp.org>
104694         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104696 2007-04-23  Bruno Haible  <bruno@clisp.org>
104698         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104700 2007-04-23  Bruno Haible  <bruno@clisp.org>
104702         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104703         Needed on HP-UX 11.
104705 2007-04-16  Eric Blake  <ebb9@byu.net>
104707         Make fflush rely on fpurge.
104708         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104709         open coding all variants.
104710         * modules/fflush (Depends-on): Add fpurge and unistd.
104711         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104712         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104714         Fix --with-tests compilation on cygwin.
104715         * modules/argmatch-tests (Makefile.am): List gnulib library first
104716         in LDADD.
104717         * modules/argp-tests (Makefile.am): Likewise.
104718         * modules/array-list-tests (Makefile.am): Likewise.
104719         * modules/array-oset-tests (Makefile.am): Likewise.
104720         * modules/avltree-list-tests (Makefile.am): Likewise.
104721         * modules/avltree-oset-tests (Makefile.am): Likewise.
104722         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104723         * modules/carray-list-tests (Makefile.am): Likewise.
104724         * modules/dirname-tests (Makefile.am): Likewise.
104725         * modules/frexp-tests (Makefile.am): Likewise.
104726         * modules/isnanl-tests (Makefile.am): Likewise.
104727         * modules/linked-list-tests (Makefile.am): Likewise.
104728         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104729         * modules/lock-tests (Makefile.am): Likewise.
104730         * modules/rbtree-list-tests (Makefile.am): Likewise.
104731         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104732         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104733         * modules/tls-tests (Makefile.am): Likewise.
104734         * modules/tsearch-tests (Makefile.am): Likewise.
104735         * modules/xvasprintf-tests (Makefile.am): Likewise.
104737         Fix fpurge for cygwin.
104738         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104739         value.
104740         * modules/fpurge-tests (Depends-on): Clean up trash.
104742 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104744         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104746         * m4/autobuild.m4: Re-indent.
104748 2007-04-13  Bruno Haible  <bruno@clisp.org>
104750         * modules/fpurge-tests: New file.
104751         * tests/test-fpurge.c: New file.
104753         * modules/fpurge: New file.
104754         * lib/fpurge.h: New file.
104755         * lib/fpurge.c: New file.
104756         * m4/fpurge.m4: New file.
104758 2007-04-13  Bruno Haible  <bruno@clisp.org>
104760         * modules/fbufmode-tests: New file.
104761         * tests/test-fbufmode.c: New file.
104763         * modules/fbufmode: New file.
104764         * lib/fbufmode.h: New file.
104765         * lib/fbufmode.c: New file.
104766         * m4/fbufmode.m4: New file.
104768 2007-04-13  Bruno Haible  <bruno@clisp.org>
104770         * modules/fwritable-tests: New file.
104771         * tests/test-fwritable.c: New file.
104773         * modules/fwritable: New file.
104774         * lib/fwritable.h: New file.
104775         * lib/fwritable.c: New file.
104776         * m4/fwritable.m4: New file.
104778 2007-04-13  Bruno Haible  <bruno@clisp.org>
104780         * modules/freadable-tests: New file.
104781         * tests/test-freadable.c: New file.
104783         * modules/freadable: New file.
104784         * lib/freadable.h: New file.
104785         * lib/freadable.c: New file.
104786         * m4/freadable.m4: New file.
104788 2007-04-13  Bruno Haible  <bruno@clisp.org>
104790         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104791         MOSTLYCLEANFILES.
104793 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104795         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104796         gzip bootstrap.conf to avoid dragging in i18n machinery.
104797         (gnulib_tool_option): Use it.
104799 2007-04-13  Bruno Haible  <bruno@clisp.org>
104801         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104802         %F directives.
104803         * tests/test-vasprintf-posix.c (test_function): Likewise.
104804         * tests/test-snprintf-posix.h (test_function): Likewise.
104805         * tests/test-sprintf-posix.h (test_function): Likewise.
104806         * tests/test-fprintf-posix.h (test_function): Likewise.
104807         * tests/test-printf-posix.h (test_function): Likewise.
104808         * tests/test-fprintf-posix.out: Likewise.
104810 2007-04-13  Bruno Haible  <bruno@clisp.org>
104812         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104813         * modules/tls-tests (configure.ac): Likewise.
104814         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104816 2007-04-13  Bruno Haible  <bruno@clisp.org>
104818         * lib/tls.c (glthread_tls_get): Fix return type.
104819         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104821 2007-04-12  Eric Blake  <ebb9@byu.net>
104823         * modules/gettime (Depends-on): Remove gettime.
104824         Reported by Dmitry V. Levin.
104826 2007-04-12  Bruno Haible  <bruno@clisp.org>
104828         * modules/fflush (Include): Mention <stdio.h>.
104829         * modules/strtoimax (Include): Mention <inttypes.h>.
104830         * modules/strtoumax (Include): Likewise.
104832 2007-04-12  Eric Blake  <ebb9@byu.net>
104834         * .cvsignore: New file.
104835         * .gitignore: Likewise.
104837 2007-04-12  Bruno Haible  <bruno@clisp.org>
104839         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104840         not before, since $(LDADD) often contains libgnu.a.
104841         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104842         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104843         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104844         Needed on Cygwin.
104846 2007-04-12  Eric Blake  <ebb9@byu.net>
104848         Work around glibc's failure to flush stdin on fclose.
104849         * lib/closein.c (close_stdin): Flush stdin before closing.
104851         Work around glibc's failure to reset seekable stdin on exit.
104852         * modules/closein: New module.
104853         * lib/closein.c: New file.
104854         * lib/closein.h: Likewise.
104855         * m4/closein.m4: Likewise.
104856         * MODULES.html.sh (File stream based Input/Output): Document it.
104858 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104860         * gnulib-tool: Rename generated 'autobuild' script to
104861         'do-autobuild' in --create-megatestdir output.
104863         * doc/gnulib.texi (Build robot for gnulib): Fix.
104865 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104867         * modules/sysexits (Depends-on): Add absolute-header.
104869 2007-04-12  Eric Blake  <ebb9@byu.net>
104871         No need to preserve errno on success.
104872         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104873         Reported by Bruno Haible.
104875 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104877         * MODULES.html.sh (Support for maintaining and releasing
104878         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104880 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104882         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104884 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104886         * modules/autobuild: New module.
104888         * m4/autobuild.m4: New file.
104890 2007-04-11  Bruno Haible  <bruno@clisp.org>
104892         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104893         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104896         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104897         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104898         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104899         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104900         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104901         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104902         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104903         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104904         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104906         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104907         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104909         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104910         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104912         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104913         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104915         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104916         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104918         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104919         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104920         Reported by Eric Blake.
104922 2007-04-11  Bruno Haible  <bruno@clisp.org>
104924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104926 2007-04-10  Bruno Haible  <bruno@clisp.org>
104928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104929         for NaN and Infinity. Needed on FreeBSD 6.1.
104930         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104931         regarding results for "%010a" of Infinity and NaN.
104932         * tests/test-vasprintf-posix.c (test_function): Likewise.
104933         * tests/test-snprintf-posix.h (test_function): Likewise.
104934         * tests/test-sprintf-posix.h (test_function): Likewise.
104935         * tests/test-fprintf-posix.h (test_function): Likewise.
104936         * tests/test-printf-posix.h (test_function): Likewise.
104937         * tests/test-fprintf-posix.out: Likewise.
104939 2007-04-10  Bruno Haible  <bruno@clisp.org>
104941         * modules/locale-tests: New file.
104942         * tests/test-locale.c: New file.
104944         * modules/locale: New file.
104945         * lib/locale_.h: New file.
104946         * m4/locale_h.m4: New file.
104948 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104949             Bruno Haible  <bruno@clisp.org>
104951         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104952         be determined, test for availability of the copysignf, copysign,
104953         copysignl functions.
104954         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104955         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104956         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104958 2007-04-09  Eric Blake  <ebb9@byu.net>
104960         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104961         * modules/stdio (Makefile.am): Support fflush.
104962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104963         * modules/fflush: New file.
104964         * lib/fflush.c: Likewise.
104965         * m4/fflush.m4: Likewise.
104966         * modules/fflush-tests: New test.
104967         * tests/test-fflush.c: Likewise.
104968         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104970 2007-04-06  Bruno Haible  <bruno@clisp.org>
104972         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104973         (VASNPRINTF): Use signbit for faster determination whether to print a
104974         minus sign.
104975         * modules/vasnprintf (Files): Remove lib/float+.h.
104976         * modules/fprintf-posix (Depends-on): Add signbit.
104977         * modules/snprintf-posix (Depends-on): Likewise.
104978         * modules/sprintf-posix (Depends-on): Likewise.
104979         * modules/vasnprintf-posix (Depends-on): Likewise.
104980         * modules/vasprintf-posix (Depends-on): Likewise.
104981         * modules/vfprintf-posix (Depends-on): Likewise.
104982         * modules/vsnprintf-posix (Depends-on): Likewise.
104983         * modules/vsprintf-posix (Depends-on): Likewise.
104985 2007-04-06  Bruno Haible  <bruno@clisp.org>
104987         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104988         * tests/test-frexpl.c (main): Likewise.
104989         * tests/test-ldexpl.c (main): Likewise.
104990         * modules/frexp-tests (Depends-on): Add signbit.
104991         * modules/frexpl-tests (Depdends-on): Likewise.
104992         * modules/ldexpl-tests (Depdends-on): Likewise.
104994 2007-04-06  Bruno Haible  <bruno@clisp.org>
104996         * modules/signbit-tests: New file.
104997         * tests/test-signbit.c: New file.
104999         * modules/signbit: New file.
105000         * lib/signbitf.c: New file.
105001         * lib/signbitd.c: New file.
105002         * lib/signbitl.c: New file.
105003         * m4/signbit.m4: New file.
105004         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
105005         (signbit): New macro.
105006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
105007         REPLACE_SIGNBIT.
105008         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
105009         REPLACE_FREXPL into math.h.
105011 2007-04-06  Bruno Haible  <bruno@clisp.org>
105013         * modules/isnanf-nolibm-tests: New file.
105014         * tests/test-isnanf.c: New file.
105016         * modules/isnanf-nolibm: New file.
105017         * lib/isnanf.h: New file.
105018         * lib/isnanf.c: New file.
105019         * lib/isnan.c: Consider the USE_FLOAT macro.
105020         * m4/isnanf.m4: New file.
105022 2007-04-06  Bruno Haible  <bruno@clisp.org>
105024         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
105025         (Link): New section.
105027         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
105029 2007-04-06  Bruno Haible  <bruno@clisp.org>
105031         Assume the 'long double' type.
105032         * m4/longdouble.m4: Remove file.
105033         * config/srclist.txt: Don't mention longdouble.m4.
105034         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
105035         * lib/float+.h: Likewise.
105036         * lib/frexp.c: Likewise.
105037         * lib/printf-args.h: Likewise.
105038         * lib/printf-args.c: Likewise.
105039         * lib/printf-frexp.c: Likewise.
105040         * lib/printf-parse.c: Likewise.
105041         * lib/vasnprintf.c: Likewise.
105042         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
105043         * m4/intl.m4: Likewise.
105044         * m4/isnanl.m4: Likewise.
105045         * m4/printf.m4: Likewise.
105046         * m4/printf-frexpl.m4: Likewise.
105047         * m4/vasnprintf.m4: Likewise.
105048         * modules/allocsa (Files): Remove m4/longdouble.m4.
105049         * modules/gettext (Files): Likewise.
105050         * modules/relocatable-prog-wrapper (Files): Likewise.
105051         * modules/vasnprintf (Files): Likewise.
105052         * modules/isnanl (Files): Likewise.
105053         (Include): Simplify.
105054         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
105055         (Include): Simplify.
105056         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
105057         (Include): Simplify.
105058         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
105059         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105060         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
105061         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105062         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105063         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105064         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
105065         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105066         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105067         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105068         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
105069         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105070         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
105071         * tests/test-isnanl.c: Likewise.
105072         * tests/test-snprintf-posix.h: Likewise.
105073         * tests/test-sprintf-posix.h: Likewise.
105074         * tests/test-vasnprintf-posix.c: Likewise.
105075         * tests/test-vasnprintf-posix2.c: Likewise.
105076         * tests/test-vasprintf-posix.c: Likewise.
105078 2007-04-06  Bruno Haible  <bruno@clisp.org>
105080         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
105081         * lib/math_.h [__DECC]: Include the overridden include file through
105082         #include_next, outside the double-inclusion guard.
105083         * lib/stdio_.h [__DECC]: Likewise.
105084         * lib/stdlib_.h [__DECC]: Likewise.
105085         * lib/string_.h [__DECC]: Likewise.
105086         * lib/time_.h [__DECC]: Likewise.
105087         * lib/wchar_.h [__DECC]: Likewise.
105088         * lib/wctype_.h [__DECC]: Likewise.
105089         * lib/inttypes_.h [__DECC]: Likewise.
105090         Reported by Albert Chin <china@thewrittenword.com> in
105091         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
105093 2007-04-04  Eric Blake  <ebb9@byu.net>
105095         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
105096         1.5.x.
105098 2007-04-04  Bruno Haible  <bruno@clisp.org>
105100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
105101         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
105103 2007-04-04  Bruno Haible  <bruno@clisp.org>
105105         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
105106         results for "%010a" of Infinity and NaN.
105107         * tests/test-vasprintf-posix.c (test_function): Likewise.
105108         * tests/test-snprintf-posix.h (test_function): Likewise.
105109         * tests/test-sprintf-posix.h (test_function): Likewise.
105110         * tests/test-fprintf-posix.h (test_function): Remove these tests.
105111         * tests/test-printf-posix.h (test_function): Likewise.
105112         * tests/test-fprintf-posix.out: Update.
105113         Needed for FreeBSD 6.1.
105115 2007-04-04  Bruno Haible  <bruno@clisp.org>
105117         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
105118         directly used by the gnulib modules nor by gnulib-tool.
105120 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105122         * DEPENDENCIES: Give overall description of version dependency
105123         desirability.  Use more-typical names for apps.
105124         Add shell, coreutils, diffutils, grep, tar, gzip.
105126 2007-04-04  Simon Josefsson  <simon@josefsson.org>
105128         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
105130 2007-04-04  Karl Berry  <karl@gnu.org>
105132         * MODULES.html.sh (func_module): missing '.
105134 2007-04-03  Bruno Haible  <bruno@clisp.org>
105136         * modules/argmatch-tests (Makefile.am): New variable
105137         test_argmatch_LDADD.
105138         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
105139         * modules/array-list-tests (Makefile.am): New variable
105140         test_array_list_LDADD.
105141         * modules/array-oset-tests (Makefile.am): New variable
105142         test_array_oset_LDADD.
105143         * modules/avltree-list-tests (Makefile.am): New variable
105144         test_avltree_list_LDADD.
105145         * modules/avltree-oset-tests (Makefile.am): New variable
105146         test_avltree_oset_LDADD.
105147         * modules/avltreehash-list-tests (Makefile.am): New variable
105148         test_avltreehash_list_LDADD.
105149         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
105150         test_canonicalize_lgpl_LDADD.
105151         * modules/carray-list-tests (Makefile.am): New variable
105152         test_carray_list_LDADD.
105153         * modules/dirname-tests (Makefile.am): New variable
105154         test_dirname_LDADD.
105155         * modules/linked-list-tests (Makefile.am): New variable
105156         test_linked_list_LDADD.
105157         * modules/linkedhash-list-tests (Makefile.am): New variable
105158         test_linkedhash_list_LDADD.
105159         * modules/rbtree-list-tests (Makefile.am): New variable
105160         test_rbtree_list_LDADD.
105161         * modules/rbtree-oset-tests (Makefile.am): New variable
105162         test_rbtree_oset_LDADD.
105163         * modules/rbtreehash-list-tests (Makefile.am): New variable
105164         test_rbtreehash_list_LDADD.
105165         * modules/xvasprintf-tests (Makefile.am): New variable
105166         test_xvasprintf_LDADD.
105167         Reported by Eric Blake.
105169 2007-04-03  Eric Blake  <ebb9@byu.net>
105171         * DEPENDENCIES: Weaken m4 requirements.
105173 2007-04-03  Bruno Haible  <bruno@clisp.org>
105175         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
105176         * modules/isnanl-tests (configure.ac): Likewise.
105178 2007-04-03  Ben Pfaff  <blp@gnu.org>
105180         * modules/iconv_open: Add $(srcdir)/ to source directory
105181         references in Makefile fragments that call gperf, to fix VPATH
105182         builds.
105184 2007-04-03  Bruno Haible  <bruno@clisp.org>
105186         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
105187         * lib/ldexpl.c: Undo last change.
105189 2007-04-03  Bruno Haible  <bruno@clisp.org>
105191         * modules/printf-frexpl (Depends-on): Undo last change.
105192         (Files): Add m4/ldexpl.m4.
105194 2007-04-03  Bruno Haible  <bruno@clisp.org>
105196         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
105197         * modules/isnanl (Link): New section.
105199         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
105200         * modules/frexp (Link): New section.
105202         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
105203         * modules/frexpl (Link): New section.
105205         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
105206         * modules/ldexpl (Link): New section.
105208 2007-04-03  Bruno Haible  <bruno@clisp.org>
105210         * modules/TEMPLATE-EXTENDED: New file.
105211         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
105213 2007-04-03  Bruno Haible  <bruno@clisp.org>
105215         * DEPENDENCIES: New file.
105216         Suggested by Simon Josefsson.
105218 2007-04-03  Bruno Haible  <bruno@clisp.org>
105220         * doc/gnulib.texi: Escape @.
105222 2007-04-03  James Youngman  <jay@gnu.org>
105223         and Paul Eggert  <eggert@cs.ucla.edu>
105225         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
105226         birthtime on all systems that have birthtime, not just those which
105227         use st_birthtimensec rather than st_birthtim.  Putting zero in
105228         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
105229         that the birth time is not available for files on an NFS mount.
105231 2007-04-03  Simon Josefsson  <simon@josefsson.org>
105233         * modules/memxor: Move back from crypto/, suggested by Bruno.
105234         * modules/crypto/hmac-sha1: Fix memxor dependency.
105236         * modules/crypto/gc: Moved from ../.
105238 2007-04-02  Eric Blake  <ebb9@byu.net>
105240         * lib/ldexpl.c (includes): Avoid libm.
105242         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
105244 2007-04-02  Bruno Haible  <bruno@clisp.org>
105246         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
105247         on IRIX.
105249 2007-04-02  Bruno Haible  <bruno@clisp.org>
105251         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
105252         x86 or x86_64 platforms running MacOS X.
105253         Reported by Ryan Schmidt <@ryandesign.com>.
105255 2007-04-02  Bruno Haible  <bruno@clisp.org>
105257         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
105258         i386.
105260 2007-04-01  Simon Josefsson  <simon@josefsson.org>
105262         * modules/crypto/arcfour: Moved from ../.
105263         * modules/crypto/arcfour-tests: Moved from ../.
105264         * modules/crypto/arctwo: Moved from ../.
105265         * modules/crypto/arctwo-tests: Moved from ../.
105266         * modules/crypto/des: Moved from ../.
105267         * modules/crypto/des-tests: Moved from ../.
105268         * modules/crypto/gc-arcfour: Moved from ../.
105269         * modules/crypto/gc-arcfour-tests: Moved from ../.
105270         * modules/crypto/gc-arctwo: Moved from ../.
105271         * modules/crypto/gc-arctwo-tests: Moved from ../.
105272         * modules/crypto/gc-des: Moved from ../.
105273         * modules/crypto/gc-des-tests: Moved from ../.
105274         * modules/crypto/gc-hmac-md5: Moved from ../.
105275         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
105276         * modules/crypto/gc-hmac-sha1: Moved from ../.
105277         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
105278         * modules/crypto/gc-md2: Moved from ../.
105279         * modules/crypto/gc-md2-tests: Moved from ../.
105280         * modules/crypto/gc-md4: Moved from ../.
105281         * modules/crypto/gc-md4-tests: Moved from ../.
105282         * modules/crypto/gc-md5: Moved from ../.
105283         * modules/crypto/gc-md5-tests: Moved from ../.
105284         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
105285         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
105286         * modules/crypto/gc-random: Moved from ../.
105287         * modules/crypto/gc-rijndael: Moved from ../.
105288         * modules/crypto/gc-rijndael-tests: Moved from ../.
105289         * modules/crypto/gc-sha1: Moved from ../.
105290         * modules/crypto/gc-sha1-tests: Moved from ../.
105291         * modules/crypto/gc-tests: Moved from ../.
105292         * modules/crypto/hmac-md5: Moved from ../.
105293         * modules/crypto/hmac-md5-tests: Moved from ../.
105294         * modules/crypto/hmac-sha1: Moved from ../.
105295         * modules/crypto/hmac-sha1-tests: Moved from ../.
105296         * modules/crypto/md2: Moved from ../.
105297         * modules/crypto/md2-tests: Moved from ../.
105298         * modules/crypto/md4: Moved from ../.
105299         * modules/crypto/md4-tests: Moved from ../.
105300         * modules/crypto/md5: Moved from ../.
105301         * modules/crypto/md5-tests: Moved from ../.
105302         * modules/crypto/memxor: Moved from ../.
105303         * modules/crypto/rijndael: Moved from ../.
105304         * modules/crypto/rijndael-tests: Moved from ../.
105305         * modules/crypto/sha1: Moved from ../.
105307 2007-03-30  James Youngman  <jay@gnu.org>
105309         * tests/test-stat-time.c (prepare_test): use chmod() rather than
105310         rename() to change the ctime of a file (because ctime is unaffected
105311         by rename on jfs2 on AIX 5.1).
105312         (main): Start by doing cleanup, in case a previous run failed leaving
105313         test files behind.
105315 2007-03-31  Bruno Haible  <bruno@clisp.org>
105317         Support old proprietary implementations of iconv.
105318         * modules/iconv_open: New file.
105319         * lib/iconv_.h: New file.
105320         * m4/iconv_h.m4: New file.
105321         * lib/iconv_open.c: New file.
105322         * lib/iconv_open-aix.gperf: New file.
105323         * lib/iconv_open-hpux.gperf: New file.
105324         * lib/iconv_open-irix.gperf: New file.
105325         * lib/iconv_open-osf.gperf: New file.
105326         * m4/iconv_open.m4: New file.
105327         * modules/linebreak (Depends-on): Add iconv_open.
105328         * modules/striconv (Depends-on): Likewise.
105329         * modules/striconveh (Depends-on): Likewise.
105330         * modules/unicodeio (Depends-on): Likewise.
105331         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
105332         (iconv_t)(-1).
105333         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
105334         conversion if cd is (iconv_t)(-1).
105335         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
105336         is not possible.
105338 2007-03-31  Bruno Haible  <bruno@clisp.org>
105340         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105341         work on Solaris either. Protect also second use of "autodetect_jp".
105343 2007-03-31  Bruno Haible  <bruno@clisp.org>
105345         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
105346         the function is not present.
105348 2007-03-31  Bruno Haible  <bruno@clisp.org>
105350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
105351         the function is not present.
105353 2007-03-31  Bruno Haible  <bruno@clisp.org>
105355         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
105356         a bug in HP-UX iconv_open().
105358 2007-03-31  Bruno Haible  <bruno@clisp.org>
105360         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
105361         (Mathematics <math.h>): New section, add fpieee.
105362         (Input/output <stdio.h>): Add fseterr.
105363         (Mathematics <math.h>): New section, add printf-frexp.
105364         (Container data structures): Add sublist.
105365         (Core language properties): Add fpucw, inline.
105366         (Functions for greatest-width integer types <inttypes.h>): Add
105367         imaxabs, imaxdiv, inttypes.
105368         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105369         isnanl-nolibm, ldexp.
105370         (Mathematics <math.h>): New section, add printf-frexpl.
105371         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105372         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105373         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105374         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105375         (Unicode string functions): Add unistr/u*-mbtoucr.
105376         (Java): Add javacomp-script, javaexec-script.
105377         (C#): Add csharpcomp-script, csharpexec-script.
105378         (Support for building libraries and executables): Add havelib,
105379         relocatable-*.
105380         (Support for maintaining and releasing projects): Renamed from
105381         'Support for maintaining and release projects'. Add announce-gen.
105383 2007-03-31  Bruno Haible  <bruno@clisp.org>
105385         * README: Talk primarily about git.
105386         (git and CVS): Renamed from CVS.
105387         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105388         gnulib is available through git.
105389         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105391 2007-03-30  Bruno Haible  <bruno@clisp.org>
105393         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105394         * lib/poll_.h: Likewise.
105395         * lib/stat_.h: Likewise.
105396         * lib/sys_time_.h: Likewise.
105397         * lib/sysexit_.h: Likewise.
105398         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105399         * lib/stdbool_.h: Likewise.
105400         * lib/byteswap_.h: Add double-inclusion guard.
105402 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105404         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105406 2007-03-30  Karl Berry  <karl@gnu.org>
105408         * config/srclist-update: double space after USA in the license
105409         substitution, since that's how it's usually (?) written.
105411 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105413         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105414         reported by Bruno Haible.
105416 2007-03-29  Bruno Haible  <bruno@clisp.org>
105418         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105419         a bug in AIX iconv().
105421 2007-03-29  Bruno Haible  <bruno@clisp.org>
105423         * modules/ldexpl-tests: New file.
105424         * tests/test-ldexpl.c: New file.
105426 2007-03-29  Bruno Haible  <bruno@clisp.org>
105428         * lib/ldexpl.c: Include fpucw.h.
105429         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105430         multiplication.
105431         * modules/ldexpl (Depends-on): Add fpucw.
105433 2007-03-29  Bruno Haible  <bruno@clisp.org>
105435         * modules/ldexpl: New file.
105436         * m4/ldexpl.m4: New file.
105437         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105438         set.
105439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105440         REPLACE_LDEXPL.
105441         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105442         REPLACE_LDEXPL.
105443         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105444         gl_FUNC_LDEXPL_WORKS.
105445         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105446         * modules/mathl (Files): Remove lib/ldexpl.c.
105447         (Depends-on): Add ldexpl.
105449 2007-03-29  Bruno Haible  <bruno@clisp.org>
105451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105453 2007-03-29  Bruno Haible  <bruno@clisp.org>
105455         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105456         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105457         and possibly also HP-UX.
105458         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105459         work on AIX, IRIX, HP-UX, OSF/1.
105460         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105461         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105462         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105463         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105464         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105465         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105467 2007-03-29  Bruno Haible  <bruno@clisp.org>
105469         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105471 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105473         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
105474         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
105476 2007-03-29  Eric Blake  <ebb9@byu.net>
105478         * lib/acl-internal.h: Remove redundant include.
105479         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
105480         Cygwin when a file is locked.
105482 2007-03-29  Bruno Haible  <bruno@clisp.org>
105484         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
105485         file.
105486         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
105488 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
105491         try to remove a parent directory if the child couldn't be removed
105492         (except for the first rmdir, which could fail because the child
105493         doesn't exist).  Problem reported by Jeff Blaine in
105494         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
105496 2007-03-28  Bruno Haible  <bruno@clisp.org>
105498         * lib/striconveh.c (utf8conv_carefully): New function.
105499         (mem_cd_iconveh_internal): Invoke it.
105501 2007-03-28  Bruno Haible  <bruno@clisp.org>
105503         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
105504         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
105505         input.
105506         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
105507         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
105508         unistr/u8-uctomb.
105510 2007-03-28  Bruno Haible  <bruno@clisp.org>
105512         * modules/unistr/u8-mbtoucr: New file.
105513         * lib/unistr/u8-mbtoucr.c: New file.
105514         * modules/unistr/u16-mbtoucr: New file.
105515         * lib/unistr/u16-mbtoucr.c: New file.
105516         * modules/unistr/u16-mbtoucr: New file.
105517         * lib/unistr/u16-mbtoucr.c: New file.
105518         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
105520 2007-03-27  Simon Josefsson  <simon@josefsson.org>
105521             Bruno Haible  <bruno@clisp.org>
105523         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
105524         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
105525         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
105527         * m4/stdio_h.m4: Add stubs for vasprintf too.
105529         * modules/stdio: Support vasprintf in sed command.
105531         * modules/vasprintf: Depend on stdio for prototypes.  Remove
105532         vasprintf.h.  Add stdio module indicator.
105534         * lib/stdio_.h: Declare asprintf and vasprintf, based on
105535         vasprintf.h.
105537         * lib/vasprintf.h: File removed.
105539         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
105540         * lib/vasprintf.c: Ditto.
105541         * lib/xvasprintf.c: Ditto.
105542         * tests/test-vasprintf-posix.c: Ditto.
105543         * tests/test-vasprintf.c: Ditto.
105545 2007-03-27  Bruno Haible  <bruno@clisp.org>
105547         Make vasnprintf multithread-safe.
105548         * lib/vasnprintf.c (decimal_point_char): New function.
105549         (VASNPRINTF): Use it.
105550         Suggested by Simon Josefsson.
105552 2007-03-27  Eric Blake  <ebb9@byu.net>
105554         Support sub-second birthtime on cygwin.
105555         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
105556         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
105557         (get_stat_birthtime): Also work with st_birthtim.
105559 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
105561         * lib/stat-time.h (USE_BIRTHTIME): Remove.
105562         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
105563         (get_stat_birthtime_ns): Do not try to use "spare" fields.
105564         (get_stat_birthtime_ns): Simplify compile-time tests.
105565         (get_stat_birthtime): Change the API to look like
105566         get_stat_mtime etc., except return a negative tv_nsec on error.
105567         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
105568         Don't check for "spare" fields.
105569         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
105570         or for struct stat.st_birthtime, as these tests aren't used.
105571         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
105573 2007-03-27  Bruno Haible  <bruno@clisp.org>
105575         * lib/stat-time.h: Include <sys/stat.h>.
105577 2007-03-27  James Youngman  <jay@gnu.org>
105579         * lib/stat-time.h (get_stat_birthtime): New function for
105580           retrieving st_birthtime as provided by UFS2 (hence *BSD).
105581         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
105582           and its variants.
105583         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
105584         * modules/stat-time-test: New file.
105585         * tests/test-stat-time.c: New test, devised by Bruno Haible.
105587 2007-03-26  Bruno Haible  <bruno@clisp.org>
105589         Better support of signalling NaNs.
105590         * lib/atanl.c: Include isnanl.h.
105591         (atanl): Perform test for NaN at the beginning of the function and
105592         through a call to isnanl.
105593         * lib/cosl.c: Include isnanl.h.
105594         (cosl): Perform test for NaN at the beginning of the function and
105595         through a call to isnanl.
105596         * lib/ldexpl.c: Include isnanl.h.
105597         (ldexpl): Perform test for NaN through a call to isnanl.
105598         * lib/logl.c: Include isnanl.h.
105599         (logl): Perform test for NaN at the beginning of the function and
105600         through a call to isnanl.
105601         * lib/sinl.c: Include isnanl.h.
105602         (sinl): Perform test for NaN at the beginning of the function and
105603         through a call to isnanl.
105604         * lib/sqrtl.c: Include isnanl.h.
105605         (sqrtl): Perform test for NaN at the beginning of the function and
105606         through a call to isnanl.
105607         * lib/tanl.c: Include isnanl.h.
105608         (tanl): Perform test for NaN at the beginning of the function and
105609         through a call to isnanl.
105610         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105611         * modules/mathl (Depends-on): Add isnanl.
105613 2007-03-26  Eric Blake  <ebb9@byu.net>
105615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105616         regression in logic sense of previous patch.
105618 2007-03-26  Bruno Haible  <bruno@clisp.org>
105620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
105621         unportable shell command "if ! ...".
105622         Reported by Ralf Wildenhues.
105624 2007-03-25  Bruno Haible  <bruno@clisp.org>
105626         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
105627         <sysexits.h> file, and only add EX_CONFIG.
105628         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
105629         absolute file name and whether it is sufficient. Substitute also
105630         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
105631         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
105632         ABSOLUTE_SYSEXITS_H into sysexits.h.
105634 2007-03-25  Bruno Haible  <bruno@clisp.org>
105636         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
105637         hints is NULL.
105639 2007-03-25  Bruno Haible  <bruno@clisp.org>
105641         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
105642         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
105644 2007-03-25  Bruno Haible  <bruno@clisp.org>
105646         * lib/vasnprintf.c: Include langinfo.h.
105647         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
105648         multithread-safe.
105649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
105650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
105651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105652         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105653         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105655         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
105657         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105658         Reported by Simon Josefsson.
105660 2007-03-25  Bruno Haible  <bruno@clisp.org>
105662         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
105663         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
105664         * modules/vasnprintf (Depends-on): Add stdint.
105666 2007-03-25  Bruno Haible  <bruno@clisp.org>
105668         * modules/fpieee: New file.
105669         * m4/fpieee.m4: New file.
105670         * modules/isnan-nolibm (Depends-on): Add fpieee.
105671         * modules/isnanl-nolibm (Depends-on): Add fpieee.
105672         * modules/isnanl (Depends-on): Add fpieee.
105674 2007-03-25  Bruno Haible  <bruno@clisp.org>
105676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
105678 2007-03-25  Bruno Haible  <bruno@clisp.org>
105680         Avoid test failures on IRIX 6.5.
105681         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105682         (main): Use it.
105683         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105684         macros.
105685         (main): Use them.
105687 2007-03-25  Bruno Haible  <bruno@clisp.org>
105689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105690         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105691         exists but doesn't work.
105692         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105693         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105695         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105696         math.h.
105698 2007-03-25  Bruno Haible  <bruno@clisp.org>
105700         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105701         returns inf. Needed on IRIX 6.5.
105703 2007-03-25  Bruno Haible  <bruno@clisp.org>
105705         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105706         (main): Use isnanl instead of x != x idiom.
105707         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105709         * tests/test-frexp.c: Include isnan.h.
105710         (main): Use isnan instead of x != x idiom.
105711         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105713 2007-03-25  Bruno Haible  <bruno@clisp.org>
105715         * tests/test-frexp.c (NaN): New function/macro.
105716         (main): Use it instead of 0.0 / 0.0.
105717         * tests/test-isnan.c (NaN): New function/macro.
105718         (main): Use it instead of 0.0 / 0.0.
105719         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105720         (test_function): Use it instead of 0.0 / 0.0.
105721         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105722         (test_function): Use it instead of 0.0 / 0.0.
105723         * tests/test-snprintf-posix.h (NaN): New function/macro.
105724         (test_function): Use it instead of 0.0 / 0.0.
105725         * tests/test-sprintf-posix.h (NaN): New function/macro.
105726         (test_function): Use it instead of 0.0 / 0.0.
105727         * tests/test-fprintf-posix.h (NaN): New function/macro.
105728         (test_function): Use it instead of 0.0 / 0.0.
105729         * tests/test-printf-posix.h (NaN): New function/macro.
105730         (test_function): Use it instead of 0.0 / 0.0.
105732         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105734 2007-03-25  Bruno Haible  <bruno@clisp.org>
105736         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105738 2007-03-25  Bruno Haible  <bruno@clisp.org>
105740         * lib/regexec.c (merge_state_with_log): Make static.
105742 2007-03-25  Bruno Haible  <bruno@clisp.org>
105744         * lib/trigl.c (kernel_rem_pio2): Make static.
105746 2007-03-25  Bruno Haible  <bruno@clisp.org>
105748         * lib/sincosl.c (sincosl_table): Make static.
105750 2007-03-25  Bruno Haible  <bruno@clisp.org>
105752         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105753         if the compiler does not support C99.
105755 2007-03-25  Bruno Haible  <bruno@clisp.org>
105757         * modules/time (Makefile.am): Ensure all rule action lines start with a
105758         tab.
105760 2007-03-24  Bruno Haible  <bruno@clisp.org>
105762         * modules/tsearch-tests: New file.
105763         * tests/test-tsearch.sh: New file.
105764         * tests/test-tsearch.c: New file, mostly copied from glibc.
105766         * modules/search-tests: New file.
105767         * tests/test-search.c: New file.
105769         * modules/search: New file.
105770         * lib/search_.h: New file, incorporating lib/tsearch.h.
105771         * m4/search_h.m4: New file.
105772         * lib/tsearch.h: Remove file.
105773         * lib/tsearch.c: Include search.h instead of tsearch.h.
105774         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105775         HAVE_TSEARCH.
105776         * modules/tsearch (Files): Remove lib/tsearch.h.
105777         (Depends-on): Add search.
105778         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105779         (Include): Change tsearch.h into search.h.
105781 2007-03-24  Bruno Haible  <bruno@clisp.org>
105783         * modules/fpucw: New file.
105784         * lib/fpucw.h: New file.
105785         * lib/frexp.c: Include fpucw.h.
105786         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105787         (FUNC): Use them.
105788         * lib/printf-frexp.c: Include fpucw.h.
105789         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105790         (FUNC): Use them.
105791         * lib/vasnprintf.c: Include fpucw.h.
105792         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105793         'long double' calculations.
105794         * tests/test-frexpl.c: Include fpucw.h.
105795         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105796         * tests/test-printf-frexpl.c: Include fpucw.h.
105797         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105798         * modules/frexpl (Depends-on): Add fpucw.
105799         * modules/printf-frexpl (Depends-on): Likewise.
105800         * modules/fprintf-posix (Depends-on): Likewise.
105801         * modules/snprintf-posix (Depends-on): Likewise.
105802         * modules/sprintf-posix (Depends-on): Likewise.
105803         * modules/vasnprintf-posix (Depends-on): Likewise.
105804         * modules/vasprintf-posix (Depends-on): Likewise.
105805         * modules/vfprintf-posix (Depends-on): Likewise.
105806         * modules/vsnprintf-posix (Depends-on): Likewise.
105807         * modules/vsprintf-posix (Depends-on): Likewise.
105808         * modules/frexpl-tests (Depends-on): Likewise.
105809         * modules/printf-frexpl-tests (Depends-on): Likewise.
105811 2007-03-24  Bruno Haible  <bruno@clisp.org>
105813         * lib/float+.h: New file.
105814         * lib/isnan.c: Include float+.h.
105815         (SIZE): New macro.
105816         (FUNC): Compare only SIZE bytes of the value.
105817         * lib/vasnprintf.c: Include float+.h.
105818         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105819         SIZEOF_LDBL or SIZEOF_DBL bytes.
105820         * modules/isnan-nolibm (Files): Add lib/float+.h.
105821         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105822         * modules/isnanl (Files): Add lib/float+.h.
105823         * modules/vasnprintf (Files): Add lib/float+.h.
105825 2007-03-24  Bruno Haible  <bruno@clisp.org>
105827         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105828         include isnanl-nolibm.h.
105830 2007-03-24  Bruno Haible  <bruno@clisp.org>
105832         * tests/test-read-file.c (main): Don't produce spurious output for
105833         expected situations. Make the test fail if it encountered unexpected
105834         results.
105836 2007-03-24  Bruno Haible  <bruno@clisp.org>
105838         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105839         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105841 2007-03-24  Bruno Haible  <bruno@clisp.org>
105843         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105845 2007-03-24  Bruno Haible  <bruno@clisp.org>
105847         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105848         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105850         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105851         * modules/utf8-ucs4: Turn into a symbolic link to module
105852         unistr/u8-mbtouc.
105854         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105855         utf8-ucs4-unsafe.
105856         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105857         unistr/u8-mbtouc-unsafe.
105859         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105860         * modules/utf16-ucs4: Turn into a symbolic link to module
105861         unistr/u16-mbtouc.
105863         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105864         utf16-ucs4-unsafe.
105865         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105866         unistr/u16-mbtouc-unsafe.
105868         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105869         * modules/ucs4-utf8: Turn into a symbolic link to module
105870         unistr/u8-ubtomb.
105872         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105873         * modules/ucs4-utf16: Turn into a symbolic link to module
105874         unistr/u16-ubtomb.
105876 2007-03-24  Bruno Haible  <bruno@clisp.org>
105878         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105879         Enable the function only if HAVE_INLINE.
105880         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105881         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105882         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105883         Enable the function only if HAVE_INLINE.
105884         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105885         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105886         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105887         Enable the function only if HAVE_INLINE.
105888         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105889         Enable the function only if HAVE_INLINE.
105890         * modules/utf8-ucs4: Update.
105891         * modules/utf8-ucs4-unsafe: Update.
105892         * modules/utf16-ucs4: Update.
105893         * modules/utf16-ucs4-unsafe: Update.
105894         * modules/ucs4-utf8: Update.
105895         * modules/ucs4-utf16: Update.
105897 2007-03-24  Bruno Haible  <bruno@clisp.org>
105899         * lib/utf8-ucs4.h: Remove file.
105900         * lib/utf8-ucs4-unsafe.h: Remove file.
105901         * lib/utf16-ucs4.h: Remove file.
105902         * lib/utf16-ucs4-unsafe.h: Remove file.
105903         * lib/ucs4-utf8.h: Remove file.
105904         * lib/ucs4-utf16.h: Remove file.
105905         * lib/unistr.h: Include their previous contents.
105906         * m4/utf-ucs4.m4: Remove file.
105907         * m4/ucs4-utf.m4: Remove file.
105908         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105909         (Depends-on): Add unistr/base.
105910         (configure.ac): Remove gl_UTF_UCS4.
105911         (Makefile.am): Update.
105912         (Include): Change to unistr.h.
105913         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105914         (Depends-on): Add unistr/base.
105915         (configure.ac): Remove gl_UTF_UCS4.
105916         (Makefile.am): Update.
105917         (Include): Change to unistr.h.
105918         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105919         (Depends-on): Add unistr/base.
105920         (configure.ac): Remove gl_UTF_UCS4.
105921         (Makefile.am): Update.
105922         (Include): Change to unistr.h.
105923         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105924         (Depends-on): Add unistr/base.
105925         (configure.ac): Remove gl_UTF_UCS4.
105926         (Makefile.am): Update.
105927         (Include): Change to unistr.h.
105928         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105929         (Depends-on): Add unistr/base.
105930         (configure.ac): Remove gl_UCS4_UTF.
105931         (Makefile.am): Update.
105932         (Include): Change to unistr.h.
105933         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105934         (Depends-on): Add unistr/base.
105935         (configure.ac): Remove gl_UCS4_UTF.
105936         (Makefile.am): Update.
105937         (Include): Change to unistr.h.
105938         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105939         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105940         utf8-ucs4-unsafe.h.
105941         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105942         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105943         utf16-ucs4-unsafe.h.
105944         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105945         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105946         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105947         * lib/unistr/u8-strchr.c: Likewise.
105948         * lib/unistr/u8-strrchr.c: Likewise.
105949         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105950         * lib/unistr/u16-strchr.c: Likewise.
105951         * lib/unistr/u16-strrchr.c: Likewise.
105952         * lib/striconveh.c: Update.
105953         * lib/linebreak.c: Update.
105955 2007-03-24  Bruno Haible  <bruno@clisp.org>
105957         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105958         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105960 2007-03-22  Bruno Haible  <bruno@clisp.org>
105962         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105964 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105966         * MODULES.html.sh (File system functions): New module write-any-file.
105967         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105968         * m4/write-any-file.m4: New files.
105970 2007-03-23  Eric Blake  <ebb9@byu.net>
105972         * gnulib-tool: Rearrange space-tab sequences, since some editors
105973         like to eat them.
105975 2007-03-23  Eric Blake  <ebb9@byu.net>
105977         * lib/version-etc.c (version_etc_va): Update license wording to
105978         be more concise.  Recommended by Richard Stallman.
105980 2007-03-22  Bruno Haible  <bruno@clisp.org>
105982         * lib/poll.c (MSG_PEEK): New fallback definition.
105984 2007-03-22  Bruno Haible  <bruno@clisp.org>
105986         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105987         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105988         (main): Update.
105989         Fixes a compilation error on BeOS.
105991 2007-03-22  Bruno Haible  <bruno@clisp.org>
105993         * modules/frexpl-tests: New file.
105994         * tests/test-frexpl.c: New file.
105996         * modules/frexpl: New file.
105997         * m4/frexpl.m4: New file.
105998         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105999         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
106000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
106001         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
106002         (Depends-on): Add frexpl. Remove isnanl-nolibm.
106003         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
106005 2007-03-22  Bruno Haible  <bruno@clisp.org>
106007         * lib/frexpl.c: Share code with lib/frexp.c.
106008         * modules/mathl (Files): Add lib/frexp.c.
106009         (Depends-on): Add isnanl-nolibm.
106011 2007-03-22  Bruno Haible  <bruno@clisp.org>
106013         * modules/printf-frexp (Files): Add m4/frexp.m4.
106014         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
106015         only if the found frexp function actually works.
106017 2007-03-22  Bruno Haible  <bruno@clisp.org>
106019         * lib/frexp.c: Remove older implementation that uses divisions.
106021 2007-03-21  Bruno Haible  <bruno@clisp.org>
106023         * modules/frexp-tests: New file.
106024         * tests/test-frexp.c: New file.
106026         * modules/frexp: New file.
106027         * lib/frexp.c: New file.
106028         * m4/frexp.m4: New file.
106029         * lib/math_.h (frexp): New declaration.
106030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
106031         REPLACE_FREXP.
106032         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
106034 2007-03-21  Bruno Haible  <bruno@clisp.org>
106036         * modules/isnanl-tests: New file.
106037         * tests/test-isnanl.c: New file.
106039         * modules/isnanl: New file.
106040         * lib/isnanl.h: New file.
106041         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
106042         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
106043         gl_FUNC_ISNANL_WORKS.
106044         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
106045         New macros.
106047 2007-03-21  Bruno Haible  <bruno@clisp.org>
106049         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
106050         lib/isnanl.h.
106051         (Include): Update.
106052         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
106053         * lib/vasnprintf.c: Update.
106054         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
106055         tests/test-isnanl.h, remove tests/test-isnanl.c.
106056         (Makefile.am): Update.
106057         * tests/test-isnanl-nolibm.c: New file.
106058         * tests/test-isnanl.h: New file.
106059         * tests/test-isnanl.c: Remove file.
106061 2007-03-21  Jim Meyering  <jim@meyering.net>
106063         When trying to open ".", treat ESTALE like EACCES.
106064         * lib/savewd.c (savewd_save): Resort to forking not just upon
106065         failure with EACCES, but also when errno is ESTALE.
106067 2007-03-20  Bruno Haible  <bruno@clisp.org>
106069         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
106070         Needed on AIX 5.1. Reported by Matthew Woehlke.
106072 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106074         Suggestions by Bruno Haible:
106075         * lib/acl-internal.h: Include "gettext.h" rather than rolling
106076         our own.
106077         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
106078         * modules/acl (Depends-on): Add gettext.
106080 2007-03-19  Bruno Haible  <bruno@clisp.org>
106082         * modules/iconvme: Remove file.
106083         * lib/iconvme.h: Remove file.
106084         * lib/iconvme.c: Remove file.
106085         * m4/iconvme.m4: Remove file.
106087 2007-03-19  Bruno Haible  <bruno@clisp.org>
106089         * doc/relocatable-maint.texi: Break long shell script line.
106090         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106092 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106094         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
106095         handle file_has_acl.
106096         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
106097         * lib/acl.c: Move header inclusions and related macro defns into
106098         lib/acl-internal.h.
106099         (S_ISLNK): Remove defn, since that's now done for us.
106100         (file_has_acl): Move to lib/file-has-acl.c.
106101         Call acl_trivial if available.  This is the crucial part of the fix.
106102         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
106103         shared within the library.  Rewrite a bit, partly to make it compatible
106104         with the GNU coding style.
106105         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
106106         Remove unnecessary double-quotes.
106107         Don't test for acl_to_text; the build will catch that.
106108         Replace acl_entries if it doesn't exist and it is needed.
106109         Check for -lsec and acl_trivial (as used on Solaris 10).
106110         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
106111         lib/file-has-acl.c.
106112         (Depends-on): Add sys_stat, for S_ISLNK.
106114 2007-03-19  Ben Pfaff  <blp@gnu.org>
106116         * doc/gnulib.texi: Fix typos.
106117         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106119 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106121         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
106122         If size is zero here, buf must be zero.
106124 2007-03-19  Simon Josefsson  <simon@josefsson.org>
106126         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
106127         <bruno@clisp.org>.
106129 2007-03-18  Bruno Haible  <bruno@clisp.org>
106131         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
106132         Suggested by Eric Blake.
106134 2007-03-18  Ben Pfaff  <blp@gnu.org>
106136         * doc/relocatable.texi: Recommend using as prefix a directory
106137         that does not exist and will never be created.  Based on
106138         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
106139         and others.
106141 2007-03-17  Bruno Haible  <bruno@clisp.org>
106143         * lib/fchownat.c: Include lchown.h.
106145 2007-03-17  Bruno Haible  <bruno@clisp.org>
106147         Fix endless loop when the given allocated size was > INT_MAX.
106148         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
106149         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
106150         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
106151         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
106152         * lib/sprintf.c (sprintf): Likewise.
106154 2007-03-17  Bruno Haible  <bruno@clisp.org>
106156         * tests/test-argp-2.sh (func_compare): Output a context diff.
106158 2007-03-17  Bruno Haible  <bruno@clisp.org>
106160         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
106161         locale's decimal-point character.
106163 2007-03-17  Bruno Haible  <bruno@clisp.org>
106165         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
106166         before comparing it. Needed because on some platforms (e.g. x86) a
106167         'long double' occupies less bytes than sizeof (long double).
106169 2007-03-17  Bruno Haible  <bruno@clisp.org>
106171         * tests/test-crc.c (main): Make printf statements 64-bit clean.
106172         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
106173         * tests/test-getaddrinfo.c (simple): Likewise.
106174         * tests/test-read-file.c (main): Likewise.
106176 2007-03-17  Bruno Haible  <bruno@clisp.org>
106178         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
106180 2007-03-17  Bruno Haible  <bruno@clisp.org>
106182         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
106183         unused variable.
106185 2007-03-17  Bruno Haible  <bruno@clisp.org>
106187         * tests/test-c-strcasecmp.c: Include c-strcase.h.
106188         * tests/test-c-strncasecmp.c: Likewise.
106190 2007-03-17  Bruno Haible  <bruno@clisp.org>
106192         * modules/stdlib (Depends-on): Add unistd.
106193         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106194         Needed for MacOS X 10.3.
106196 2007-03-17  Bruno Haible  <bruno@clisp.org>
106198         * lib/unistr/u-strdup.h: Include <stdlib.h>.
106200 2007-03-17  Bruno Haible  <bruno@clisp.org>
106202         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
106204 2007-03-17  Bruno Haible  <bruno@clisp.org>
106206         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
106207         to reflect files copied from gnulib (with or without modifications).
106208         Suggested by Jim Meyering.
106210 2007-03-17  Eric Blake  <ebb9@byu.net>
106212         * NEWS: Document stdlib change from 2007-02-18.
106214 2007-03-17  Jim Meyering  <jim@meyering.net>
106216         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
106217         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
106218         someone uses a name containing shell meta-characters.
106219         Reported by Alfred M. Szmidt.
106221         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
106223 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106225         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
106226         and copy gettext configuration files only if configure.ac contains
106227         a use of AM_GNU_GETTEXT_VERSION.
106229 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106231         * build-aux/bootstrap (gnulib_name): New variable.
106232         (gnulib_tool_options): Use it.
106234 2007-03-13  Simon Josefsson  <simon@josefsson.org>
106236         * tests/test-des.c: Use new namespace.
106238 2007-03-15  Bruno Haible  <bruno@clisp.org>
106240         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
106241         Reported by James Youngman <jay@gnu.org>.
106243 2007-03-15  Bruno Haible  <bruno@clisp.org>
106245         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
106246         declared prototype. Needed with cc on OSF/1 5.1.
106248 2007-03-15  Bruno Haible  <bruno@clisp.org>
106250         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
106251         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
106252         (struct gl_list_implementation): Add dispose_fn argument to the
106253         'create_empty', 'create' methods.
106254         (struct gl_list_impl_base): Add field 'dispose_fn'.
106255         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
106256         argument.
106257         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
106258         dispose_fn argument.
106259         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
106260         dispose_fn on the dropped values.
106261         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106262         dispose_fn argument.
106263         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
106264         dropped values.
106265         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
106266         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106267         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
106268         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106269         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
106270         argument.
106271         (gl_tree_list_free): Call dispose_fn on the dropped values.
106272         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
106273         the dropped values.
106274         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106275         Add dispose_fn argument.
106276         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
106277         Call dispose_fn on the dropped values.
106278         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
106279         Add dispose_fn argument.
106280         (gl_sublist_create): Initialize the 'dispose_fn' field.
106281         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
106282         * tests/test-array_list.c (main): Update.
106283         * tests/test-carray_list.c (main): Update.
106284         * tests/test-avltree_list.c (main): Update.
106285         * tests/test-rbtree_list.c (main): Update.
106286         * tests/test-avltreehash_list.c (main): Update.
106287         * tests/test-rbtreehash_list.c (main): Update.
106288         * tests/test-linked_list.c (main): Update.
106289         * tests/test-linkedhash_list.c (main): Update.
106290         * tests/test-array_oset.c (main): Update.
106292 2007-03-15  Bruno Haible  <bruno@clisp.org>
106294         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
106295         (gl_oset_create_empty): Add dispose_fn argument.
106296         (struct gl_oset_implementation): Add dispose_fn argument to
106297         'create_empty' method.
106298         (struct gl_oset_impl_base): Add dispose_fn field.
106299         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
106300         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
106301         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
106302         values.
106303         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
106304         (gl_tree_oset_free): Call dispose_fn on the dropped values.
106305         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106306         dropped value.
106307         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106308         dropped value.
106309         * tests/test-array_oset.c (main): Update.
106310         * tests/test-avltree_oset.c (main): Update.
106311         * tests/test-rbtree_oset.c (main): Update.
106312         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
106314 2007-03-13  Bruno Haible  <bruno@clisp.org>
106316         * tests/test-stdbool.c (i): Update after last patch.
106318 2007-03-12  Bruno Haible  <bruno@clisp.org>
106320         * lib/quotearg.c: Include <wctype.h> early, before the definition of
106321         the iswprint macro. Needed on Solaris 2.5.1.
106323 2007-03-12  Bruno Haible  <bruno@clisp.org>
106325         * tests/test-printf-frexp.c (main): Declare x as volatile.
106327 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106329         * doc/gnulib.texi (Build robot for gnulib): New section.
106331 2007-03-12  Jim Meyering  <jim@meyering.net>
106333         * build-aux/bootstrap: New file.
106334         * build-aux/bootstrap.conf: New file, from coreutils.
106336 2007-03-11  Bruno Haible  <bruno@clisp.org>
106338         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
106340 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106342         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
106343         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
106344         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
106346 2007-03-11  Bruno Haible  <bruno@clisp.org>
106348         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
106349         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
106351 2007-03-11  Bruno Haible  <bruno@clisp.org>
106353         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
106354         formula. Needed for SunPRO C 5.0.
106356 2007-03-11  Bruno Haible  <bruno@clisp.org>
106358         * modules/long-options (Depends-on): Add getopt.
106360 2007-03-11  Bruno Haible  <bruno@clisp.org>
106362         * modules/modechange (Depends-on): Add stdbool.
106364 2007-03-11  Bruno Haible  <bruno@clisp.org>
106366         * modules/i-ring (Depends-on): Add stdbool.
106368 2007-03-11  Bruno Haible  <bruno@clisp.org>
106370         * modules/gc-des (Depends-on): Add stdbool.
106372 2007-03-11  Bruno Haible  <bruno@clisp.org>
106374         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106376 2007-03-11  Bruno Haible  <bruno@clisp.org>
106378         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106380 2007-03-11  Bruno Haible  <bruno@clisp.org>
106382         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106384 2007-03-11  Bruno Haible  <bruno@clisp.org>
106386         * lib/vasnprintf.c (sprintf): Undefine.
106388 2007-03-11  Bruno Haible  <bruno@clisp.org>
106390         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106391         initializers in SunPRO C and Compaq C compilers.
106393 2007-03-11  Bruno Haible  <bruno@clisp.org>
106395         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106396         decrementing code ANSI C compliant.
106398 2007-03-11  Bruno Haible  <bruno@clisp.org>
106400         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106401         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106403 2007-03-11  Bruno Haible  <bruno@clisp.org>
106405         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106406         <stdbool.h> substitute doesn't pass.
106408 2007-03-11  Bruno Haible  <bruno@clisp.org>
106410         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106412 2007-03-11  Bruno Haible  <bruno@clisp.org>
106414         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106415         script, for submission to autobuild.josefsson.org.
106417 2007-03-10  Bruno Haible  <bruno@clisp.org>
106419         * modules/canonicalize-lgpl-tests: New file.
106420         * tests/test-canonicalize-lgpl.sh: New file.
106421         * tests/test-canonicalize-lgpl.c: New file.
106423         * modules/c-strcase-tests: New file.
106424         * tests/test-c-strcase.sh: New file.
106425         * tests/test-c-strcasecmp.c: New file.
106426         * tests/test-c-strncasecmp.c: New file.
106428         * modules/atexit-tests: New file.
106429         * tests/test-atexit.sh: New file.
106430         * tests/test-atexit.c: New file.
106432 2007-03-10  Bruno Haible  <bruno@clisp.org>
106434         * tests/test-binary-io.sh: Use temporary filenames that are not so
106435         likely to clash with those of other tests (in a parallel make).
106436         * tests/test-binary-io.c: Likewise.
106438 2007-03-10  Bruno Haible  <bruno@clisp.org>
106440         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106441         fallback; use #error instead.
106442         Suggested by Simon Josefsson.
106444 2007-03-10  Bruno Haible  <bruno@clisp.org>
106446         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106447         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106448         first and the last.
106450 2007-03-10  Bruno Haible  <bruno@clisp.org>
106452         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106454 2007-03-10  Bruno Haible  <bruno@clisp.org>
106456         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106457         "make distcheck".
106458         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106459         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106460         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106462 2007-03-10  Bruno Haible  <bruno@clisp.org>
106464         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106465         variable.
106466         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106467         variable.
106469 2007-03-09  Eric Blake  <ebb9@byu.net>
106470         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106472         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
106473         types are not being provided by gnulib.
106474         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
106475         types are supported.
106477 2007-03-10  Bruno Haible  <bruno@clisp.org>
106479         * lib/stdio_.h (__attribute__): New macro.
106480         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
106481         vsprintf): Specify __attribute__ __format__ for GCC.
106482         Suggested by Eric Blake.
106484 2007-03-09  Bruno Haible  <bruno@clisp.org>
106486         * modules/printf-posix-tests: New file.
106487         * tests/test-printf-posix.sh: New file.
106488         * tests/test-printf-posix.c: New file.
106490         * modules/printf-posix: New file.
106491         * lib/printf.c: New file.
106492         * m4/printf-posix-rpl.m4: New file.
106493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
106494         REPLACE_PRINTF.
106495         * lib/stdio_.h (printf): New declaration.
106496         (format, __format__, ____printf____, ____scanf____, ____strftime____,
106497         ____strfmon____): New macros.
106498         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
106499         REPLACE_PRINTF.
106501 2007-03-09  Bruno Haible  <bruno@clisp.org>
106503         * tests/test-vasnprintf-posix2.sh: New file.
106504         * tests/test-vasnprintf-posix2.c: New file.
106505         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
106506         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
106507         (Makefile.am): Activate test-vasnprintf-posix2.sh.
106509         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
106510         a locale dependent decimal point, rather than always '.'.
106512 2007-03-09  Eric Blake  <ebb9@byu.net>
106514         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
106515         spite of platforms like Tandem/NSK that define it to -1.
106517 2007-03-08  Bruno Haible  <bruno@clisp.org>
106519         * modules/vprintf-posix-tests: New file.
106520         * tests/test-vprintf-posix.sh: New file.
106521         * tests/test-vprintf-posix.c: New file.
106522         * tests/test-printf-posix.h: New file.
106524         * modules/vprintf-posix: New file.
106525         * lib/vprintf.c: New file.
106526         * m4/vprintf-posix.m4: New file.
106527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
106528         REPLACE_VPRINTF.
106529         * lib/stdio_.h (vprintf): New declaration.
106530         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
106531         REPLACE_VPRINTF.
106533 2007-03-08  Bruno Haible  <bruno@clisp.org>
106535         * modules/fprintf-posix-tests: New file.
106536         * tests/test-fprintf-posix.sh: New file.
106537         * tests/test-fprintf-posix.c: New file.
106539         * modules/fprintf-posix: New file.
106540         * lib/fprintf.c: New file.
106541         * m4/fprintf-posix.m4: New file.
106542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
106543         REPLACE_FPRINTF.
106544         * lib/stdio_.h (fprintf): New declaration.
106545         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
106546         REPLACE_FPRINTF.
106548 2007-03-08  Bruno Haible  <bruno@clisp.org>
106550         * modules/vfprintf-posix-tests: New file.
106551         * tests/test-vfprintf-posix.sh: New file.
106552         * tests/test-vfprintf-posix.c: New file.
106553         * tests/test-fprintf-posix.h: New file.
106554         * tests/test-fprintf-posix.out: New file.
106556         * modules/vfprintf-posix: New file.
106557         * lib/vfprintf.c: New file.
106558         * m4/vfprintf-posix.m4: New file.
106559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
106560         REPLACE_VFPRINTF.
106561         * lib/stdio_.h (vfprintf): New declaration.
106562         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
106563         REPLACE_VFPRINTF.
106565 2007-03-08  Bruno Haible  <bruno@clisp.org>
106567         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
106569 2007-03-08  Bruno Haible  <bruno@clisp.org>
106571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
106572         instead of 'expr' invocations.
106573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
106577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106578         Suggested by Paul Eggert.
106580 2007-03-08  Bruno Haible  <bruno@clisp.org>
106582         * modules/fseterr-tests: New file.
106583         * tests/test-fseterr.c: New file.
106585         * modules/fseterr: New file.
106586         * lib/fseterr.h: New file.
106587         * lib/fseterr.c: New file.
106589 2007-03-08  Bruno Haible  <bruno@clisp.org>
106591         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
106592         * lib/getopt_.h: Likewise.
106593         * lib/mbswidth.h: Likewise.
106594         * lib/setenv.h: Likewise.
106595         * lib/vasnprintf.h: Likewise.
106596         * lib/vasprintf.h: Likewise.
106597         * lib/verror.h: Likewise.
106598         * lib/xsetenv.h: Likewise.
106599         * lib/xvasprintf.h: Likewise.
106601 2007-03-08  Jim Meyering  <jim@meyering.net>
106603         * users.txt: Add parted.
106605         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
106607 2007-03-07  Bruno Haible  <bruno@clisp.org>
106609         * m4/printf.m4: Make the shell script snippets copy&pastable.
106611 2007-03-02  Bruno Haible  <bruno@clisp.org>
106613         * lib/netinet_in_.h: New file.
106614         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106615         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106616         * modules/netinet_in (Files): Add lib/netinet_in_.h.
106617         (Depends-on): Add absolute-header.
106618         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
106619         into netinet/in.h.
106621 2007-03-03  Bruno Haible  <bruno@clisp.org>
106623         * lib/sys_select_.h: New file.
106624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
106625         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
106626         * modules/sys_select (Files): Add lib/sys_select_.h.
106627         (Depends-on): Add absolute-header.
106628         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
106629         into sys/select.h.
106631 2007-03-02  Bruno Haible  <bruno@clisp.org>
106633         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
106634         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
106635         values.
106636         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
106637         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
106638         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
106639         * modules/sys_socket (Depends-on): Add absolute-header.
106640         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
106641         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
106642         (Include): Remove requirement of inclusion of <sys/types.h>.
106644 2007-03-02  Bruno Haible  <bruno@clisp.org>
106646         * lib/byteswap_.h (bswap_32): Fix formula.
106648 2007-03-06  Bruno Haible  <bruno@clisp.org>
106650         * modules/sprintf-posix-tests: New file.
106651         * tests/test-sprintf-posix.c: New file.
106653         * modules/sprintf-posix: New file.
106654         * lib/sprintf.c: New file.
106655         * m4/sprintf-posix.m4: New file.
106656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
106657         REPLACE_SPRINTF.
106658         * lib/stdio_.h (sprintf): New declaration.
106659         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
106660         REPLACE_SPRINTF.
106662 2007-03-06  Bruno Haible  <bruno@clisp.org>
106664         * modules/vsprintf-posix-tests: New file.
106665         * tests/test-vsprintf-posix.c: New file.
106666         * tests/test-sprintf-posix.h: New file.
106668         * modules/vsprintf-posix: New file.
106669         * lib/vsprintf.c: New file.
106670         * m4/vsprintf-posix.m4: New file.
106671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
106672         REPLACE_VSPRINTF.
106673         * lib/stdio_.h (vsprintf): New declaration.
106674         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
106675         REPLACE_VSPRINTF.
106677 2007-03-06  Bruno Haible  <bruno@clisp.org>
106679         * modules/vsnprintf (Depend-on): Remove minmax.
106681 2007-03-06  Bruno Haible  <bruno@clisp.org>
106683         * modules/snprintf-posix-tests: New file.
106684         * tests/test-snprintf-posix.c: New file.
106686         * modules/snprintf-posix: New file.
106687         * m4/snprintf-posix.m4: New file.
106688         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106689         gl_FUNC_SNPRINTF.
106690         (gl_FUNC_SNPRINTF): Invoke it.
106691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106692         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106693         is set.
106694         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106696 2007-03-06  Bruno Haible  <bruno@clisp.org>
106698         * modules/vsnprintf-posix-tests: New file.
106699         * tests/test-vsnprintf-posix.c: New file.
106700         * tests/test-snprintf-posix.h: New file.
106702         * modules/vsnprintf-posix: New file.
106703         * m4/vsnprintf-posix.m4: New file.
106704         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106705         gl_FUNC_VSNPRINTF.
106706         (gl_FUNC_VSNPRINTF): Invoke it.
106707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106708         * lib/stdio_.h (vsnprintf): Define as a replacement if
106709         REPLACE_VSNPRINTF is set.
106710         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106712 2007-03-06  Bruno Haible  <bruno@clisp.org>
106714         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106715         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106717 2007-03-06  Bruno Haible  <bruno@clisp.org>
106719         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106720         (asinl): Declare also if HAVE_DECL_ASINL is set.
106721         (atanl): Declare also if HAVE_DECL_ATANL is set.
106722         (ceill): Declare also if HAVE_DECL_CEILL is set.
106723         (cosl): Declare also if HAVE_DECL_COSL is set.
106724         (expl): Declare also if HAVE_DECL_EXPL is set.
106725         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106726         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106727         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106728         (logl): Declare also if HAVE_DECL_LOGL is set.
106729         (sinl): Declare also if HAVE_DECL_SINL is set.
106730         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106731         (tanl): Declare also if HAVE_DECL_TANL is set.
106732         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106734         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106735         declaration of frexpl, ldexpl.
106736         * modules/printf-frexpl (Depends-on): Add math.
106737         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106739 2007-03-05  Bruno Haible  <bruno@clisp.org>
106741         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106742         frexpl and ldexpl are declared.
106743         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106745 2007-03-05  Bruno Haible  <bruno@clisp.org>
106747         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106748         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106750 2007-03-05  Bruno Haible  <bruno@clisp.org>
106752         * lib/stdio_.h: Include <stddef.h>.
106754 2007-03-05  Bruno Haible  <bruno@clisp.org>
106756         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106758 2007-03-05  Bruno Haible  <bruno@clisp.org>
106760         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106761         NetBSD 4, from Ralf Wildenhues.
106763 2007-03-04  Bruno Haible  <bruno@clisp.org>
106765         * lib/vasprintf.h: Update #if logic for the case when the functions
106766         exist but are overridden.
106768 2007-03-04  Bruno Haible  <bruno@clisp.org>
106770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106771         implementations: glibc-2.4 and MacOS X 10.3.
106772         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106773         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106774         * tests/test-vasprintf-posix.c (test_function): Likewise.
106776 2007-03-04  Bruno Haible  <bruno@clisp.org>
106778         * modules/vasprintf-posix-tests: New file.
106779         * tests/test-vasprintf-posix.c: New file.
106781         * modules/vasprintf-posix: New file.
106782         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106783         defined.
106784         * m4/vasprintf-posix.m4: New file.
106785         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106786         gl_FUNC_VASPRINTF.
106787         (gl_FUNC_VASPRINTF): Invoke it.
106788         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106789         here.
106790         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106792 2007-03-04  Bruno Haible  <bruno@clisp.org>
106794         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106795         REPLACE_GETTIMEOFDAY.
106796         * modules/sys_time (Makefile.am): Likewise.
106797         * m4/sys_time_h.m4: Likewise.
106798         * m4/gettimeofday.m4: Likewise.
106800 2007-03-04  Bruno Haible  <bruno@clisp.org>
106802         * modules/vasnprintf-posix-tests: New file.
106803         * tests/test-vasnprintf-posix.c: New file.
106805         * modules/vasnprintf-posix: New file.
106806         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106807         printf-frexpl.h.
106808         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106809         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106810         REPLACE_VASNPRINTF is defined.
106811         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106812         gl_FUNC_VASNPRINTF.
106813         (gl_FUNC_VASNPRINTF): Invoke it.
106814         * m4/vasnprintf-posix.m4: New file.
106815         * m4/printf.m4: New file.
106817 2007-03-04  Bruno Haible  <bruno@clisp.org>
106819         Compile progreloc.c only if --enable-relocatable is specified.
106820         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106821         if --enable-relocatable was specified.
106822         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106823         lib_SOURCES.
106825 2007-03-04  Jim Meyering  <jim@meyering.net>
106827         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106828         Use it consistently, rather than enumerating errno constants.
106830 2007-03-04  Bruno Haible  <bruno@clisp.org>
106832         * modules/xvasprintf-tests: New file.
106833         * tests/test-xvasprintf.c: New file.
106835         * modules/vasprintf-tests: New file.
106836         * tests/test-vasprintf.c: New file.
106838         * modules/vasnprintf-tests: New file.
106839         * tests/test-vasnprintf.c: New file.
106841         * modules/vsnprintf-tests: New file.
106842         * tests/test-vsnprintf.c: New file.
106844         * modules/snprintf-tests: New file.
106845         * tests/test-snprintf.c: New file.
106847 2007-03-04  Bruno Haible  <bruno@clisp.org>
106849         Compile relocatable.c only if --enable-relocatable is specified.
106850         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106851         gl_RELOCATABLE_LIBRARY.
106852         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106853         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106854         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106855         gl_RELOCATABLE_LIBRARY.
106856         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106857         (Makefile.am): Remove lib_SOURCES.
106858         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106859         gl_RELOCATABLE_LIBRARY.
106860         (Makefile.am): Remove lib_SOURCES.
106861         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106862         always.
106863         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106864         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106866 2007-03-04  Bruno Haible  <bruno@clisp.org>
106868         * modules/argmatch-tests: New file.
106869         * tests/test-argmatch.c: New file.
106871         * tests/test-allocsa.c (main): Halve the number of loop runs.
106873         * modules/alloca-opt-tests: New file.
106874         * tests/test-alloca-opt.c: New file.
106876 2007-03-04  Jim Meyering  <jim@meyering.net>
106878         Work around difference between Linux ACLs and Solaris 10 ZFS.
106879         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106880         for EINVAL.
106882 2007-03-03  Bruno Haible  <bruno@clisp.org>
106884         * modules/relocatable-prog (Depends-on): Add back progreloc's
106885         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106887 2007-03-03  Bruno Haible  <bruno@clisp.org>
106889         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106890         * modules/relocatable-lib: New file.
106892 2007-03-03  Bruno Haible  <bruno@clisp.org>
106894         * modules/relocatable-prog: Renamed from modules/relocatable.
106895         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106897 2007-03-03  Bruno Haible  <bruno@clisp.org>
106899         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106900         m4/relocatable-lib.m4.
106901         (Depends-on): Remove 'relocatable'.
106902         (configure.ac): Add gl_RELOCATABLE_NOP.
106904 2007-03-03  Bruno Haible  <bruno@clisp.org>
106906         * modules/relocatable-prog-wrapper: New file.
106907         * modules/relocatable (Depends-on): Add it. Remove all other
106908         dependencies except progname.
106909         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106911         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106912         (gl_FUNC_STRERROR): Nop.
106913         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106915         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106916         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106918         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106919         (gl_FUNC_READLINK): Update.
106921         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106923 2007-03-03  Bruno Haible  <bruno@clisp.org>
106925         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106926         * modules/xreadlink (Depends-on): Add unistd.
106927         * modules/xreadlink-with-size (Depends-on): Likewise.
106929 2007-03-03  Bruno Haible  <bruno@clisp.org>
106931         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106932         extracted from gt_FUNC_SETENV.
106933         (gt_FUNC_SETENV): Remove macro.
106934         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106935         remove gt_FUNC_SETENV.
106937 2007-03-03  Bruno Haible  <bruno@clisp.org>
106939         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106940         ENABLE_RELOCATABLE here.
106941         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106943 2007-03-03  Bruno Haible  <bruno@clisp.org>
106945         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106946         * tests/test-rbtreehash_list.c: Include progname.h.
106947         (main): Call set_program_name.
106949         * modules/rbtree-oset-tests (Depends-on): Add progname.
106950         * tests/test-rbtree_oset.c: Include progname.h.
106951         (main): Call set_program_name.
106953         * modules/rbtree-list-tests (Depends-on): Add progname.
106954         * tests/test-rbtree_list.c: Include progname.h.
106955         (main): Call set_program_name.
106957         * modules/linked-list-tests (Depends-on): Add progname.
106958         * tests/test-linked_list.c: Include progname.h.
106959         (main): Call set_program_name.
106961 2007-03-03  Bruno Haible  <bruno@clisp.org>
106963         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106964         All uses of __restrict changed to _Restrict_.
106965         * lib/glob_.h (__restrict): Remove macro.
106967 2007-03-02  Bruno Haible  <bruno@clisp.org>
106969         * modules/gettext (configure.ac): Require gettext infrastructure
106970         from version 0.16.1.
106972 2007-03-02  Bruno Haible  <bruno@clisp.org>
106974         * modules/linkedhash-list-tests (Depends-on): Add progname.
106975         * tests/test-linkedhash_list.c: Include progname.h.
106976         (main): Call set_program_name.
106978         * modules/carray-list-tests (Depends-on): Add progname.
106979         * tests/test-carray_list.c: Include progname.h.
106980         (main): Call set_program_name.
106982         * modules/avltreehash-list-tests (Depends-on): Add progname.
106983         * tests/test-avltreehash_list.c: Include progname.h.
106984         (main): Call set_program_name.
106986         * modules/avltree-oset-tests (Depends-on): Add progname.
106987         * tests/test-avltree_oset.c: Include progname.h.
106988         (main): Call set_program_name.
106990         * modules/avltree-list-tests (Depends-on): Add progname.
106991         * tests/test-avltree_list.c: Include progname.h.
106992         (main): Call set_program_name.
106994         * modules/array-oset-tests (Depends-on): Add progname.
106995         * tests/test-array_oset.c: Include progname.h.
106996         (main): Call set_program_name.
106998         * modules/array-list-tests (Depends-on): Add progname.
106999         * tests/test-array_list.c: Include progname.h.
107000         (main): Call set_program_name.
107002         * modules/argp-tests (Depends-on): Add progname.
107003         * tests/test-argp.c: Include argp.h first. Include progname.h.
107004         (main): Call set_program_name.
107006 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
107008         * doc/gnulib-tool.texi (Initial import): Reword description of
107009         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
107010         limited effect even if defined after the first system include.
107012 2007-03-01  Bruno Haible  <bruno@clisp.org>
107014         * build-aux/config.libpath: Update to libtool-1.5.22.
107015         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
107017 2007-03-01  Bruno Haible  <bruno@clisp.org>
107019         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
107020         foo_CFLAGS.
107021         Reported by Ralf Wildenhues.
107023 2007-03-01  Bruno Haible  <bruno@clisp.org>
107025         * build-aux/install-reloc: Remove object files left over by some
107026         compilers.
107027         Reported by Ralf Wildenhues.
107029 2007-03-01  Bruno Haible  <bruno@clisp.org>
107031         * build-aux/install-reloc: Break long lines.
107033 2007-03-01  Bruno Haible  <bruno@clisp.org>
107035         * doc/relocatable.texi: Document that it may not work on OpenBSD.
107036         Reported by Ralf Wildenhues.
107038 2007-03-01  Bruno Haible  <bruno@clisp.org>
107040         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
107041         include ordering constraints.
107043 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107045         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
107046         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
107047         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
107048         as another example.
107049         * lib/time_.h: Fix misspelling.
107050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107051         Require gl_HEADER_TIME_H_DEFAULTS.
107052         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
107053         * m4/time_r.m4 (gl_TIME_R): Likewise.
107054         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
107056 2007-03-01  Bruno Haible  <bruno@clisp.org>
107058         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
107059         * m4/utimens.m4 (gl_UTIMENS): Likewise.
107061 2007-03-01  Jim Meyering  <jim@meyering.net>
107063         * modules/xreadlink (Maintainer): Add my name.
107064         * modules/xreadlink-with-size (Depends-on): Alphabetize.
107066 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
107067             Bruno Haible  <bruno@clisp.org>
107069         * build-aux/install-reloc: Compile also c-ctype.c.
107070         * build-aux/relocatable.sh.in: New file.
107071         * doc/relocatable.texi: New file.
107072         * doc/relocatable-maint.texi: New file.
107073         * doc/gnulib.texi: Include relocatable-maint.texi.
107074         * lib/progreloc.c: Include unistd.h unconditionally.
107075         * lib/relocwrapper.c: Include unistd.h unconditionally.
107076         Include c-ctype.h.
107077         (add_dotbin): Use c_tolower.
107078         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
107079         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
107080         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
107081         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
107082         to m4/relocatable-lib.m4.
107083         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
107084         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
107085         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
107086         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
107087         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
107088         * modules/relocatable: New file.
107089         * modules/relocatable-lib: New file.
107090         * modules/relocatable-script: New file.
107092 2007-02-28  Bruno Haible  <bruno@clisp.org>
107094         Import --enable-relocatable infrastructure.
107095         * build-aux/config.libpath: New file, from GNU gettext.
107096         * build-aux/install-reloc: New file, from GNU gettext.
107097         * build-aux/reloc-ldflags: New file, from GNU gettext.
107098         * lib/relocatable.h: New file, from GNU gettext.
107099         * lib/relocatable.c: New file, from GNU gettext.
107100         * lib/relocwrapper.c: New file, from GNU gettext.
107101         * m4/relocatable.m4: New file, from GNU gettext.
107103 2007-02-28  Bruno Haible  <bruno@clisp.org>
107105         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
107107         * modules/xreadlink: New file, from GNU gettext with modifications.
107108         * lib/xreadlink.c: New file, from GNU gettext.
107109         * lib/xreadlink.h: Add comments.
107110         (xreadlink): New declaration.
107112         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
107113         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
107114         lib/xreadlink-with-size.c.
107115         (configure.ac): Remove gl_XREADLINK invocation.
107116         (Makefile.am): Augment lib_SOURCES.
107117         * m4/xreadlink.m4: Remove file.
107118         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
107119         (xreadlink_with_size): Renamed from xreadink.
107120         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
107121         * modules/canonicalize (Depends-on): Replace xreadlink with
107122         xreadlink-with-size.
107123         * lib/canonicalize.c (canonicalize_filename_mode): Update.
107125 2007-02-25  Jim Meyering  <jim@meyering.net>
107127         * build-aux/announce-gen: When complaining about excess arguments,
107128         list them.
107130 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107132         * README: Document signed integer overflow situation more
107133         accurately.
107135 2007-02-25  Bruno Haible  <bruno@clisp.org>
107137         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
107138         'a' or 'A' conversion.
107140 2007-02-25  Bruno Haible  <bruno@clisp.org>
107142         * modules/filename: Renamed from modules/pathname.
107143         (Files): Replace lib/pathname.h with lib/filename.h. Replace
107144         lib/concatpath.c with lib/concat-filename.c.
107145         (Makefile.am): Update.
107146         (Include): Replace pathname.h with filename.h.
107147         * lib/filename.h: Renamed from lib/pathname.h.
107148         (concatenated_filename): Renamed from concatenated_pathname.
107149         * lib/concat-filename.c: Renamed from lib/concatpath.c.
107150         (concatenated_filename): Renamed from concatenated_pathname.
107151         * lib/findprog.c: Include filename.h instead of pathname.h.
107152         (find_in_path): Update.
107153         * lib/javacomp.c: Include filename.h instead of pathname.h.
107154         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
107155         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
107156         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
107157         is_oldgcj_14_13_usable, is_javac_usable): Update.
107158         * lib/javaexec.c: Include filename.h instead of pathname.h.
107159         (execute_java_class): Update.
107160         * modules/findprog: Update.
107161         * modules/javacomp: Update.
107162         * modules/javaexec: Update.
107163         * MODULES.html.sh (File system functions): Add 'filename', remove
107164         'pathname'.
107166 2007-02-25  Bruno Haible  <bruno@clisp.org>
107168         * modules/printf-frexpl-tests: New file.
107169         * tests/test-printf-frexpl.c: New file.
107171         * modules/printf-frexpl: New file.
107172         * lib/printf-frexpl.h: New file.
107173         * lib/printf-frexpl.c: New file.
107174         * m4/printf-frexpl.m4: New file.
107176 2007-02-25  Bruno Haible  <bruno@clisp.org>
107178         * modules/printf-frexp-tests: New file.
107179         * tests/test-printf-frexp.c: New file.
107181         * modules/printf-frexp: New file.
107182         * lib/printf-frexp.h: New file.
107183         * lib/printf-frexp.c: New file.
107184         * m4/printf-frexp.m4: New file.
107186 2007-02-25  Bruno Haible  <bruno@clisp.org>
107188         Assume automake >= 1.10 for the tests.
107189         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
107190         * modules/arctwo-tests: Likewise.
107191         * modules/argp-tests: Likewise.
107192         * modules/avltree-list-tests: Likewise.
107193         * modules/avltree-oset-tests: Likewise.
107194         * modules/avltreehash-list-tests: Likewise.
107195         * modules/carray-list-tests: Likewise.
107196         * modules/crc-tests: Likewise.
107197         * modules/des-tests: Likewise.
107198         * modules/gc-arcfour-tests: Likewise.
107199         * modules/gc-arctwo-tests: Likewise.
107200         * modules/gc-des-tests: Likewise.
107201         * modules/gc-hmac-md5-tests: Likewise.
107202         * modules/gc-hmac-sha1-tests: Likewise.
107203         * modules/gc-md2-tests: Likewise.
107204         * modules/gc-md4-tests: Likewise.
107205         * modules/gc-md5-tests: Likewise.
107206         * modules/gc-pbkdf2-sha1-tests: Likewise.
107207         * modules/gc-rijndael-tests: Likewise.
107208         * modules/gc-sha1-tests: Likewise.
107209         * modules/gc-tests: Likewise.
107210         * modules/getaddrinfo-tests: Likewise.
107211         * modules/hmac-md5-tests: Likewise.
107212         * modules/hmac-sha1-tests: Likewise.
107213         * modules/linked-list-tests: Likewise.
107214         * modules/linkedhash-list-tests: Likewise.
107215         * modules/lock-tests: Likewise.
107216         * modules/md2-tests: Likewise.
107217         * modules/md4-tests: Likewise.
107218         * modules/md5-tests: Likewise.
107219         * modules/rbtree-list-tests: Likewise.
107220         * modules/rbtree-oset-tests: Likewise.
107221         * modules/rbtreehash-list-tests: Likewise.
107222         * modules/read-file-tests: Likewise.
107223         * modules/rijndael-tests: Likewise.
107224         * modules/stdint-tests: Likewise.
107225         * modules/tls-tests: Likewise.
107227 2007-02-24  Bruno Haible  <bruno@clisp.org>
107229         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
107230         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
107231         function; instead check whether isnan with a double argument links.
107232         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
107233         function; instead check whether isnan with a 'long double' argument
107234         links.
107235         Reported by Eric Blake <ebb9@byu.net>.
107237 2007-02-24  Bruno Haible  <bruno@clisp.org>
107239         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
107240         defined.
107241         * lib/isnanl.c: Remove all code. Just include isnan.c.
107242         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
107244 2007-02-25  Jim Meyering  <jim@meyering.net>
107246         Avoid conflicting types for 'unsetenv' on FreeBSD.
107247         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
107248         conflicting with FreeBSD's (5.0 and 6.1) function declaration
107249         in stdlib.h.
107251 2007-02-24  Bruno Haible  <bruno@clisp.org>
107253         * modules/isnanl-nolibm-tests: New file.
107254         * tests/test-isnanl.c: New file.
107256         * modules/isnanl-nolibm: New file.
107257         * lib/isnanl.h: New file.
107258         * lib/isnanl.c: New file.
107259         * m4/isnanl.m4: New file.
107261 2007-02-24  Bruno Haible  <bruno@clisp.org>
107263         * modules/isnan-nolibm-tests: New file.
107264         * tests/test-isnan.c: New file.
107266         * modules/isnan-nolibm: New file.
107267         * lib/isnan.h: New file.
107268         * lib/isnan.c: New file.
107269         * m4/isnan.m4: New file.
107271 2007-02-24  Bruno Haible  <bruno@clisp.org>
107273         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
107274         assume that an exponent fits in 20 bits.
107276 2007-02-24  Jim Meyering  <jim@meyering.net>
107278         * m4/regex.m4: Update the description of the configure-time option,
107279         --without-included-regex, to state accurately what the defaults are,
107280         and perhaps to give people an idea why using this option is risky.
107282 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
107285         loops on small arguments.  This attempts to avoid the problem
107286         Bruno Haible reported for AIX 4.3.2 in
107287         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
107289 2007-02-23  Bruno Haible  <bruno@clisp.org>
107291         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
107292         Needed for help2man.
107294 2007-02-23  Karl Berry  <karl@gnu.org>
107296         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
107297         exists, foo.h should be cvs-ignored, not committed.
107299 2007-02-23  Eric Blake  <ebb9@byu.net>
107301         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
107302         * lib/stat-time.h (includes): Likewise.
107303         * lib/utimecmp.c (includes): Likewise.
107304         * lib/utimens.h (includes): Likewise.
107305         * lib/getdate.y (includes): Also include "timespec.h" for use
107306         internal to the module.
107307         * modules/utimens (Depends-on): Revert yesterday's patch.
107308         * modules/nanosleep (Depends-on): Add missing dependency.
107310 2007-02-22  Bruno Haible  <bruno@clisp.org>
107312         * lib/glob.c: Don't include getlogin_r.h.
107314 2007-02-22  Jim Meyering  <jim@meyering.net>
107316         * modules/utimens (Depends-on): Add timespec, required for
107317         utimens.h's inclusion of timespec.h.
107319 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
107321         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
107322         long unreadable paths in GNU/Linux.  Problem reported by Andreas
107323         Schwab in
107324         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
107325         I'll try to think of a better way to fix the Solaris problem.
107327         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
107328         like glibc; on Solaris 10, it fails with errno == EINVAL.
107329         POSIX says the behavior is unspecified if the first argument is NULL,
107330         so play it safe and never pass NULL to the system getcwd.
107332 2007-02-21  Jim Meyering  <jim@meyering.net>
107334         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
107335         of gettimeofday.  It would conflict with the one now always
107336         provided via sys_time_.h.  Reported by Matthew Woehlke, as
107337         an IRIX 6.5 build failure.
107339 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107341         Minor fixups to port to Solaris 10 with Sun C 5.8.
107342         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
107343         * modules/getcwd (Depends-on): Add dirfd.
107344         * lib/putenv.c (putenv): #undef it.
107345         (rpl_putenv): New decl.
107346         (malloc, free): Include <stdlib.h> rather than prototyping separately.
107348 2007-02-20  Bruno Haible  <bruno@clisp.org>
107350         * modules/stdio-tests: New file.
107351         * tests/test-stdio.c: New file.
107353         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
107354         (Depends-on): Add stdio.
107355         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107356         (Include): Use <stdio.h> instead of vsnprintf.h.
107357         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107358         HAVE_DECL_VSNPRINTF.
107359         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
107361         * modules/snprintf (Files): Remove lib/snprintf.h.
107362         (Depends-on): Add stdio.
107363         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107364         (Include): Use <stdio.h> instead of snprintf.h.
107365         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107366         HAVE_DECL_SNPRINTF.
107367         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107368         * lib/getaddrinfo.c: Likewise.
107370         * modules/stdio: New file.
107371         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107372         * lib/snprintf.h: Remove file.
107373         * lib/vsnprintf.h: Remove file.
107374         * lib/.cppi-disable: Remove snprintf.h.
107375         * m4/stdio_h.m4: New file.
107376         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107378 2007-02-20  Jim Meyering  <jim@meyering.net>
107380         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107381         used by e.g., mingw.  From Bruno Haible.
107383 2007-02-19  Bruno Haible  <bruno@clisp.org>
107385         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107386         warnings.
107387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107389 2007-02-19  Bruno Haible  <bruno@clisp.org>
107391         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107392         from mingw users.
107394 2007-02-19  Bruno Haible  <bruno@clisp.org>
107396         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107397         warnings.
107398         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107400 2007-02-19  Jim Meyering  <jim@meyering.net>
107402         Don't use FD after a successful "fdopendir (fd)".
107403         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107404         Reset it by calling dirfd on the just-obtained DIR*.
107406         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107407         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107409 2007-02-18  Bruno Haible  <bruno@clisp.org>
107411         * lib/readlink.c: Include <unistd.h>.
107412         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107413         HAVE_READLINK.
107414         * modules/readlink (Depends-on): Add unistd.
107415         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107416         (Include): Add <unistd.h>.
107418         * lib/getlogin_r.h: Remove file.
107419         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107420         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107421         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107422         HAVE_DECL_GETLOGIN_R.
107423         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107425         (Include): Use <unistd.h> instead of getlogin_r.h.
107427         * lib/getcwd.h: Remove file.
107428         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107429         * lib/xgetcwd.c: Likewise.
107430         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107431         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107432         * modules/getcwd (Files): Remove lib/getcwd.h.
107433         (Depends-on): Add unistd.
107434         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107435         (Include): Use <unistd.h> instad of getcwd.h.
107437         * lib/ftruncate.c: Include <unistd.h> first.
107438         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107439         Set HAVE_FTRUNCATE.
107440         * modules/ftruncate (Depends-on): Add unistd.
107441         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107443         * lib/fchdir.c: Include <unistd.h> first.
107444         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107446         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107447         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107448         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107450         * lib/dup2.c: Include <unistd.h> first.
107451         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107452         HAVE_DUP2.
107453         * modules/dup2 (Depends-on): Add unistd.
107454         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107456         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107457         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107458         REPLACE_CHOWN. Don't define chown as a macro here.
107459         * modules/chown (Depends-on): Add unistd.
107460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107462         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107463         Add definition for GL_LINK_WARNING.
107464         (chown, dup2): New declarations.
107465         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107466         link warning.
107467         (ftruncate): New declaration.
107468         (getcwd): New declaration, taken from old getcwd.h.
107469         (getlogin_r): New declaration, taken from old getlogin_r.h.
107470         (readlink): New declaration.
107471         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107472         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
107473         (gl_PREREQ_UNISTD): Remove macro.
107474         (gl_UNISTD_MODULE_INDICATOR): New macro.
107475         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
107476         many new variables. Don't set UNISTD_H.
107477         * modules/unistd (Description): Change.
107478         (Depends-on): Add link-warning.
107479         (configure.ac): Update.
107480         (Makefile.am): Create unistd.h always. Substitute many new variables
107481         into it.
107483 2007-02-18  Bruno Haible  <bruno@clisp.org>
107485         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
107486         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
107487         HAVE_GETSUBOPT.
107488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
107489         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
107490         * lib/getsubopt.h: Remove file.
107491         * modules/getsubopt (Files): Remove lib/getsubopt.h.
107492         (Depends-on): Add stdlib.
107493         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107494         (Includes): Use <stdlib.h> instead of getsubopt.h.
107495         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
107496         Set HAVE_GETSUBOPT.
107497         * lib/getsubopt.c: Don't include getsubopt.h.
107499 2007-02-18  Bruno Haible  <bruno@clisp.org>
107501         * modules/fchdir (Depends-on): Add dup2.
107503 2007-02-18  Bruno Haible  <bruno@clisp.org>
107505         * lib/stdlib_.h: Handle glibc's special invocation convention
107506         specially.
107508 2007-02-18  Bruno Haible  <bruno@clisp.org>
107510         * modules/stdlib-tests: New file.
107511         * tests/test-stdlib.c: New file.
107513         * modules/mkstemp (Files): Remove lib/mkstemp.h.
107514         (Depends-on): Add stdlib.
107515         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107516         (Includes): Use <stdlib.h> instead of mkstemp.h.
107517         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107518         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
107519         * lib/mkstemp.c: Don't include mkstemp.h.
107520         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
107521         * lib/stdlib--.h: Don't include mkstemp.h.
107523         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
107524         (Depends-on): Add stdlib.
107525         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107526         (Includes): Use <stdlib.h> instead of mkdtemp.h.
107527         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107528         HAVE_MKDTEMP.
107529         * lib/mkdtemp.c: Don't include mkdtemp.h.
107530         * lib/clean-temp.c: Don't include mkdtemp.h.
107532         * modules/exit (Files): Remove lib/exit.h.
107533         (Depends-on): Add stdlib.
107534         (Makefile.am): Remove lib_SOURCES.
107535         (Include): Use <stdlib.h> instead of exit.h.
107536         * lib/argmatch.c: Don't include exit.h.
107537         * lib/execute.c: Likewise.
107538         * lib/pagealign_alloc.c: Likewise.
107539         * lib/pipe.c: Likewise.
107540         * lib/wait-process.c: Likewise.
107541         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
107542         * lib/exitfail.c: Likewise.
107543         * lib/savewd.c: Likewise.
107544         * lib/xsetenv.c: Likewise.
107546         * modules/stdlib: New file.
107547         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
107548         and extra comments about mkstemp().
107549         * lib/exit.h: Remove file.
107550         * lib/mkdtemp.h: Remove file.
107551         * lib/mkstemp.h: Remove file.
107552         * m4/stdlib_h.m4: New file.
107553         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
107555 2007-02-18  Bruno Haible  <bruno@clisp.org>
107557         * modules/math-tests: New file.
107558         * tests/test-math.c: New file.
107560         * modules/math: New file.
107561         * modules/mathl (Files): Remove lib/mathl.h.
107562         (Depends-on): Add math.
107563         (Makefile.am): Don't mention mathl.h.
107564         (Include): Use <math.h> instead of mathl.h.
107565         * lib/math_.h: New file.
107566         * lib/mathl.h: Remove file.
107567         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
107568         mathl.h.
107569         * lib/asinl.c: Likewise.
107570         * lib/atanl.c: Likewise.
107571         * lib/ceill.c: Likewise.
107572         * lib/cosl.c: Likewise.
107573         * lib/expl.c: Likewise.
107574         * lib/floorl.c: Likewise.
107575         * lib/frexpl.c: Likewise.
107576         * lib/ldexpl.c: Likewise.
107577         * lib/logl.c: Likewise.
107578         * lib/sincosl.c: Likewise.
107579         * lib/sinl.c: Likewise.
107580         * lib/sqrtl.c: Likewise.
107581         * lib/tanl.c: Likewise.
107582         * lib/trigl.c: Likewise.
107583         * m4/math_h.m4: New file.
107584         * MODULES.html.sh (Mathematics): Add math.
107586 2007-02-17  Bruno Haible  <bruno@clisp.org>
107588         * modules/wctype-tests: New file.
107589         * tests/test-wctype.c: New file.
107591         * modules/wchar-tests: New file.
107592         * tests/test-wchar.c: New file.
107594         * modules/unistd-tests: New file.
107595         * tests/test-unistd.c: New file.
107597         * modules/time-tests: New file.
107598         * tests/test-time.c: New file.
107600         * modules/sysexits-tests: New file.
107601         * tests/test-sysexits.c: New file.
107603         * modules/sys_time-tests: New file.
107604         * tests/test-sys_time.c: New file.
107606         * modules/sys_stat-tests: New file.
107607         * tests/test-sys_stat.c: New file.
107609         * modules/sys_socket-tests: New file.
107610         * tests/test-sys_socket.c: New file.
107612         * modules/sys_select-tests: New file.
107613         * tests/test-sys_select.c: New file.
107615         * modules/string-tests: New file.
107616         * tests/test-string.c: New file.
107618         * modules/stdbool-tests: New file.
107619         * tests/test-stdbool.c: New file.
107621         * modules/netinet_in-tests: New file.
107622         * tests/test-netinet_in.c: New file.
107624         * modules/inttypes-tests: New file.
107625         * tests/test-inttypes.c: New file.
107627         * modules/fcntl-tests: New file.
107628         * tests/test-fcntl.c: New file.
107630         * modules/byteswap-tests: New file.
107631         * tests/test-byteswap.c: New file.
107633         * modules/arpa_inet-tests: New file.
107634         * tests/test-arpa_inet.c: New file.
107636 2007-02-17  Bruno Haible  <bruno@clisp.org>
107638         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
107639         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
107640         if the corresponding module is not enabled. Emit link warnings if
107641         the function is used nevertheless.
107642         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
107643         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
107644         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
107645         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
107646         * modules/inttypes (Depends-on): Add link-warning.
107647         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107648         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
107649         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
107650         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
107651         * modules/imaxdiv (configure.ac): Likewise.
107652         * modules/strtoimax (configure.ac): Likewise.
107653         * modules/strtoumax (configure.ac): Likewise.
107655 2007-02-17  Bruno Haible  <bruno@clisp.org>
107657         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
107658         gl_STRING_MODULE_INDICATOR_DEFAULTS.
107659         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
107660         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
107662 2007-02-17  Bruno Haible  <bruno@clisp.org>
107664         * modules/link-warning: New file.
107665         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
107666         * lib/string_.h (GL_LINK_WARNING): Remove definition.
107667         * modules/string (Depends-on): Add link-warning.
107668         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107669         string.h.
107670         * MODULES.html.sh (Support for building libraries and executables): Add
107671         link-warning.
107673 2007-02-17  Bruno Haible  <bruno@clisp.org>
107675         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
107676         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
107677         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
107678         long lines.
107680 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107681             Bruno Haible  <bruno@clisp.org>
107683         * modules/tmpfile: New file.
107684         * lib/tmpfile.c: New file.
107685         * m4/tmpfile.m4: New file.
107686         * MODULES.html.sh (func_all_modules): New section "Input/output".
107688 2007-02-15  Bruno Haible  <bruno@clisp.org>
107690         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107691         (supports_delete_on_close): New function.
107692         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107694 2007-02-14  Bruno Haible  <bruno@clisp.org>
107696         * modules/mbspcasecmp-tests: New file.
107697         * tests/test-mbspcasecmp.sh: New file.
107698         * tests/test-mbspcasecmp.c: New file.
107700         New module mbspcasecmp.
107701         * modules/mbspcasecmp: New file.
107702         * lib/mbspcasecmp.c: New file.
107703         * lib/string_.h (strncasecmp): Change warning message.
107704         (mbspcasecmp): New declaration.
107705         * m4/mbspcasecmp.m4: New file.
107706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107707         GNULIB_MBSPCASECMP.
107708         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107709         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107711 2007-02-14  Bruno Haible  <bruno@clisp.org>
107713         * modules/mbsncasecmp-tests: New file.
107714         * tests/test-mbsncasecmp.sh: New file.
107715         * tests/test-mbsncasecmp.c: New file.
107717         New module mbsncasecmp.
107718         * modules/mbsncasecmp: New file.
107719         * lib/mbsncasecmp.c: New file.
107720         * lib/string_.h (mbsncasecmp): New declaration.
107721         * m4/mbsncasecmp.m4: New file.
107722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107723         GNULIB_MBSNCASECMP.
107724         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107725         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107727 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107729         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107730         Verify that it doesn't overlap with our flags.
107731         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107732         do not have the desired effect in multibyte locales; instead, use
107733         mbscasecmp.
107734         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107735         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107736         we don't require GNU fnmatch ourselves (if our users require it, they
107737         should do so explicitly).
107739         Fix regex code so it doesn't rely on strcasecmp.
107740         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107741         Otherwise, include gnulib's langinfo.h.
107742         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107743         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107744         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107745         * modules/regex (FILES): Remove m4/codeset.m4.
107746         (Depends-on): Add localcharset.  Remove strcase.
107748 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107750         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107751         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107753 2007-02-13  Bruno Haible  <bruno@clisp.org>
107755         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107758 2007-02-12  Bruno Haible  <bruno@clisp.org>
107760         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107761         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107762         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107763         time warning rather than a link error.
107765 2007-02-12  Bruno Haible  <bruno@clisp.org>
107767         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107768         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107771 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107773         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107774         args, not 2.
107776 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107778         New module 'time', so that apps can include <time.h> as per
107779         POSIX and GNU instead of separate include files like time_r.h
107780         and timegm.h.  This implementation tries out a simpler approach
107781         for replacing decls in standard include files (as compared to
107782         the string module), somewhat as an experiment.
107784         * config/srclist.txt: Comment out mktime.c for now.
107785         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107786         since it doesn't apply any more.  Use generic wording instead.
107787         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107788         'time'.
107789         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107790         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107791         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107792         Don't include <sys/types.h>; no longer needed since we assume C89.
107793         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107794         * lib/strftime.c: Likewise.
107795         * lib/time_r.c: Likewise.
107796         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107797         * lib/nanosleep.c: Include <time.h> first, to check interface.
107798         * lib/strptime.c: Likewise.
107799         * lib/time_r.c: Likewise.
107800         * lib/timegm.c: Likewise.
107801         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107802         needed.
107803         * lib/timegm.c: Don't include timegm.h; no longer needed.
107804         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107805         time.h now handles any problems in that area.
107806         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107807         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107808         that time.h defines struct timespec.
107809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107810         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107811         handles that.
107812         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107813         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107814         needed.  Set REPLACE_LOCALTIME.
107815         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107816         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107817         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107818         nanosleep; time_h.m4 now does that.  Don't require
107819         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107820         module handles this now.
107821         * modules/getdate (Depends-on): Remove timespec.  Add time.
107822         * modules/nanosleep (Depends-on): Likewise.
107823         * modules/stat-time (Depends-on): Likewise.
107824         * modules/nanosleep (Include): Include time.h, not timespec.h.
107825         * modules/strptime (Files): Remove lib/strptime.h.
107826         (Depends-on): Add extensions, time.
107827         (Include): Include time.h, not strptime.h.
107828         * modules/time_r (Files): Remove lib/time_r.h.
107829         (Depends-on): Add time.
107830         (Include): Include time.h, not time_r.h.
107831         * modules/timegm: Likewise.
107832         * modules/timespec (Description): Now does timespec-related decls
107833         of our own, instead of struct timespec itself.
107834         (Depends-on): Add time; remove extensions.
107835         (Maintainer): Add self.
107836         * modules/utimecmp (Depends-on): Add time; remove timespec.
107837         * modules/utimens (Depends-on): Likewise.
107838         * modules/xnanosleep (Depends-on): Likewise.
107840 2007-02-11  Bruno Haible  <bruno@clisp.org>
107842         * lib/c-strstr.c: Include allocsa.h.
107843         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107844         * lib/c-strcasestr.c: Include allocsa.h.
107845         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107846         * lib/strcasestr.c: Include allocsa.h.
107847         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107848         * lib/mbsstr.c: Include allocsa.h.
107849         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107850         allocsa/freesa instead of malloc/free.
107851         * lib/mbscasestr.c: Include allocsa.h.
107852         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107853         allocsa/freesa instead of malloc/free.
107854         * modules/c-strstr (Depends-on): Add allocsa.
107855         * modules/c-strcasestr (Depends-on): Likewise.
107856         * modules/strcasestr (Depends-on): Likewise.
107857         * modules/mbsstr (Depends-on): Likewise.
107858         * modules/mbscasestr (Depends-on): Likewise.
107860 2007-02-11  Bruno Haible  <bruno@clisp.org>
107862         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107864         * modules/mbsspn-tests: New file.
107865         * tests/test-mbsspn.sh: New file.
107866         * tests/test-mbsspn.c: New file.
107868 2007-02-11  Bruno Haible  <bruno@clisp.org>
107870         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107872         * modules/mbspbrk-tests: New file.
107873         * tests/test-mbspbrk.sh: New file.
107874         * tests/test-mbspbrk.c: New file.
107876 2007-02-11  Bruno Haible  <bruno@clisp.org>
107878         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107879         unneeded cast.
107881         * modules/mbscspn-tests: New file.
107882         * tests/test-mbscspn.sh: New file.
107883         * tests/test-mbscspn.c: New file.
107885 2007-02-11  Bruno Haible  <bruno@clisp.org>
107887         * modules/mbscasecmp-tests: New file.
107888         * tests/test-mbscasecmp.sh: New file.
107889         * tests/test-mbscasecmp.c: New file.
107891 2007-02-11  Bruno Haible  <bruno@clisp.org>
107893         Ensure O(n) worst-case complexity of mbscasestr.
107894         * lib/mbscasestr.c: Include stdbool.h.
107895         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107896         functions.
107897         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107898         the bookkeeping indicates that it's worth it.
107899         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107901         * modules/mbscasestr-tests: New file.
107902         * tests/test-mbscasestr1.c: New file.
107903         * tests/test-mbscasestr2.sh: New file.
107904         * tests/test-mbscasestr2.c: New file.
107905         * tests/test-mbscasestr3.sh: New file.
107906         * tests/test-mbscasestr3.c: New file.
107907         * tests/test-mbscasestr4.sh: New file.
107908         * tests/test-mbscasestr4.c: New file.
107909         * m4/locale-tr.m4: New file.
107911 2007-02-11  Bruno Haible  <bruno@clisp.org>
107913         Ensure O(n) worst-case complexity of mbsstr.
107914         * lib/mbsstr.c: Include stdbool.h.
107915         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107916         functions.
107917         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107918         bookkeeping indicates that it's worth it.
107919         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107921         * modules/mbsstr-tests: New file.
107922         * tests/test-mbsstr1.c: New file.
107923         * tests/test-mbsstr2.sh: New file.
107924         * tests/test-mbsstr2.c: New file.
107925         * tests/test-mbsstr3.sh: New file.
107926         * tests/test-mbsstr3.c: New file.
107927         * m4/locale-fr.m4: New file.
107929 2007-02-11  Bruno Haible  <bruno@clisp.org>
107931         * lib/mbsrchr.c (mbsrchr): Fix bug.
107933         * modules/mbsrchr-tests: New file.
107934         * tests/test-mbsrchr.sh: New file.
107935         * tests/test-mbsrchr.c: New file.
107937 2007-02-11  Bruno Haible  <bruno@clisp.org>
107939         * lib/mbschr.c (mbschr): Fix bug.
107941         * modules/mbschr-tests: New file.
107942         * tests/test-mbschr.sh: New file.
107943         * tests/test-mbschr.c: New file.
107944         * m4/locale-zh.m4: New file.
107946 2007-02-11  Bruno Haible  <bruno@clisp.org>
107948         Support for copying multibyte string iterators.
107949         * lib/mbiter.h: Include <string.h>.
107950         (mbiter_multi_copy): New function.
107951         (mbi_copy): New macro.
107952         * lib/mbuiter.h: Include <string.h>.
107953         (mbuiter_multi_copy): New function.
107954         (mbui_copy): New macro.
107956 2007-02-11  Bruno Haible  <bruno@clisp.org>
107958         New module mbslen.
107959         * modules/mbslen: New file.
107960         * lib/mbslen.c: New file.
107961         * lib/string_.h (mbslen): New declaration.
107962         * m4/mbslen.m4: New file.
107963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107964         GNULIB_MBSLEN.
107965         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107966         * MODULES.html.sh (Internationalization functions): Add mbslen.
107968 2007-02-11  Bruno Haible  <bruno@clisp.org>
107970         Ensure O(n) worst-case complexity of strcasestr substitute.
107971         * lib/strcasestr.c: Include stdbool.h.
107972         (knuth_morris_pratt): New function.
107973         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107974         bookkeeping indicates that it's worth it.
107975         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107977         * modules/strcasestr-tests: New file.
107978         * tests/test-strcasestr.c: New file.
107980 2007-02-11  Bruno Haible  <bruno@clisp.org>
107982         Ensure O(n) worst-case complexity of c_strcasestr.
107983         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107984         (knuth_morris_pratt): New function.
107985         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107986         the bookkeeping indicates that it's worth it.
107987         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107989         * modules/c-strcasestr-tests: New file.
107990         * tests/test-c-strcasestr.c: New file.
107992 2007-02-11  Bruno Haible  <bruno@clisp.org>
107994         Ensure O(n) worst-case complexity of c_strstr.
107995         * lib/c-strstr.c: Include stdbool.h, string.h.
107996         (knuth_morris_pratt): New function.
107997         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107998         bookkeeping indicates that it's worth it.
107999         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
108001         * lib/c-strstr.c: Complete rewrite for maintainability.
108003         * modules/c-strstr-tests: New file.
108004         * tests/test-c-strstr.c: New file.
108006 2007-02-11  Bruno Haible  <bruno@clisp.org>
108008         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
108009         5.2.1 and earlier, whereby \055 was treated just like the range
108010         delimiter '-'.
108011         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
108013 2007-02-08  Bruno Haible  <bruno@clisp.org>
108015         * modules/regex (Depends-on): Add stdbool.
108016         Reported by Dalibor Topic <robilad@kaffe.org>.
108018 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
108020         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
108021         Prefer returning from main to exiting from it.
108022         Remove unnecessary parens after sizeof.
108024 2007-02-05  Bruno Haible  <bruno@clisp.org>
108026         New module mbssep.
108027         * modules/mbssep: New file.
108028         * lib/mbssep.c: New file.
108029         * lib/string_.h (strsep): Add a conditional link warning.
108030         (mbssep): New declaration.
108031         * m4/mbssep.m4: New file.
108032         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108033         GNULIB_MBSSEP.
108034         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
108035         * MODULES.html.sh (Internationalization functions): Add mbssep.
108037 2007-02-05  Bruno Haible  <bruno@clisp.org>
108039         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
108040         Optimize search in case of 1 delimiter.
108042 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108044         * lib/acl.h: Include sys/types.h before sys/acl.h.
108046 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108048         Merge upstream fix for glibc bugzilla #3957:
108050         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
108052         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
108053         bit for RE_HAT_LISTS_NOT_NEWLINE.
108054         (build_charclass_op): Remove bogus comment.
108056 2007-02-05  Simon Josefsson  <simon@josefsson.org>
108058         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
108060 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108062         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
108063         * lib/memmem.c [!defined _LIBC]: Include config.h.
108065 2007-02-04  Bruno Haible  <bruno@clisp.org>
108067         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
108068         warning message.
108070 2007-02-04  Bruno Haible  <bruno@clisp.org>
108072         New module mbstok_r.
108073         * modules/mbstok_r: New file.
108074         * lib/mbstok_r.c: New file.
108075         * lib/string_.h (strtok_r): Change argument names to match the
108076         comments. Add a conditional link warning.
108077         (mbstok_r): New declaration.
108078         * m4/mbstok_r.m4: New file.
108079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108080         GNULIB_MBSTOK_R.
108081         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
108082         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
108084 2007-02-04  Bruno Haible  <bruno@clisp.org>
108086         New module mbsspn.
108087         * modules/mbsspn: New file.
108088         * lib/mbsspn.c: New file.
108089         * lib/string_.h (strspn): Add a conditional link warning.
108090         (mbsspn): New declaration.
108091         * m4/mbsspn.m4: New file.
108092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108093         GNULIB_MBSSPN.
108094         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
108095         * MODULES.html.sh (Internationalization functions): Add mbsspn.
108097 2007-02-04  Bruno Haible  <bruno@clisp.org>
108099         New module mbspbrk.
108100         * modules/mbspbrk: New file.
108101         * lib/mbspbrk.c: New file.
108102         * lib/string_.h (strpbrk): Add a conditional link warning.
108103         (mbspbrk): New declaration.
108104         * m4/mbspbrk.m4: New file.
108105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108106         GNULIB_MBSPBRK.
108107         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
108108         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
108110 2007-02-04  Bruno Haible  <bruno@clisp.org>
108112         New module mbscspn.
108113         * modules/mbscspn: New file.
108114         * lib/mbscspn.c: New file.
108115         * lib/string_.h (strcspn): Add a conditional link warning.
108116         (mbscspn): New declaration.
108117         * m4/mbscspn.m4: New file.
108118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108119         GNULIB_MBSCSPN.
108120         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
108121         * MODULES.html.sh (Internationalization functions): Add mbscspn.
108123 2007-02-04  Bruno Haible  <bruno@clisp.org>
108125         New module mbscasestr, reduced goal of strcasestr.
108126         * modules/mbscasestr: New file.
108127         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
108128         (mbscasestr): Renamed from strcasestr.
108129         * lib/strcasestr.c: Don't include mbuiter.h.
108130         (strcasestr): Remove support for multibyte locales.
108131         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
108132         Change the conditional link warning.
108133         (mbscasestr): New declaration.
108134         * m4/mbscasestr.m4: New file.
108135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
108136         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
108137         REPLACE_STRCASESTR.
108138         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
108139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108140         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108141         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
108142         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
108143         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108144         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
108145         (Depends-on): Remove mbuiter.
108146         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
108148 2007-02-04  Bruno Haible  <bruno@clisp.org>
108150         Simplify handling of strncasecmp.
108151         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
108152         the conditional link warning.
108153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108154         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
108155         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
108156         * modules/strcase (configure.ac): Don't invoke
108157         gl_STRING_MODULE_INDICATOR.
108158         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
108160 2007-02-04  Bruno Haible  <bruno@clisp.org>
108162         New module mbscasecmp, reduced goal of strcasecmp.
108163         * modules/mbscasecmp: New file.
108164         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
108165         (mbscasecmp): Renamed from strcasecmp.
108166         * lib/strcasecmp.c: Don't include mbuiter.h.
108167         (strcasecmp): Remove support for multibyte locales.
108168         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
108169         Change the conditional link warning.
108170         (mbscasecmp): New declaration.
108171         * m4/mbscasecmp.m4: New file.
108172         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
108173         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
108174         REPLACE_STRCASECMP.
108175         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
108176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108177         GNULIB_MBSCASECMP.
108178         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
108179         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
108180         * modules/strcase (Files): Remove m4/mbrtowc.m4.
108181         (Depends-on): Remove mbuiter.
108182         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
108184 2007-02-04  Bruno Haible  <bruno@clisp.org>
108186         New module mbsstr. Remove module strstr.
108187         * modules/mbsstr: New file.
108188         * modules/strstr: Remove file.
108189         * lib/mbsstr.c: Renamed from lib/strstr.c.
108190         (mbsstr): Renamed from strstr.
108191         * lib/string_.h (strstr): Remove declaration. Change the conditional
108192         link warning.
108193         (mbsstr): New declaration.
108194         * m4/mbsstr.m4: New file.
108195         * m4/strstr.m4: Remove file.
108196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
108197         REPLACE_STRSTR.
108198         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
108199         Don't initialize GNULIB_STRSTR.
108200         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
108201         substitute GNULIB_STRSTR and REPLACE_STRSTR.
108202         * MODULES.html.sh (Internationalization functions): Add mbsstr.
108203         (Support for systems lacking ANSI C 89): Remove strstr.
108205 2007-02-04  Bruno Haible  <bruno@clisp.org>
108207         New module mbsrchr.
108208         * modules/mbsrchr: New file.
108209         * lib/mbsrchr.c: New file.
108210         * lib/string_.h (strrchr): Add a conditional link warning.
108211         (mbsrchr): New declaration.
108212         * m4/mbsrchr.m4: New file.
108213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108214         GNULIB_MBSRCHR.
108215         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
108216         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
108218 2007-02-04  Bruno Haible  <bruno@clisp.org>
108220         New module mbschr.
108221         * modules/mbschr: New file.
108222         * lib/mbschr.c: New file.
108223         * lib/string_.h (strchr): Add a conditional link warning.
108224         (mbschr): New declaration.
108225         * m4/mbschr.m4: New file.
108226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108227         GNULIB_MBSCHR.
108228         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
108229         * MODULES.html.sh (Internationalization functions): Add mbschr.
108231 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108233         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
108235         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108237 2007-02-04  Bruno Haible  <bruno@clisp.org>
108239         New module description section 'configure.ac-early'.
108240         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
108241         (func_get_autoconf_early_snippet): New function.
108242         (func_import, func_create_testdir): Use it. Remove special cases for
108243         modules 'extensions' and 'lock'.
108244         * modules/extensions (configure.ac-early): Require
108245         gl_USE_SYSTEM_EXTENSIONS.
108246         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
108248 2007-02-04  Bruno Haible  <bruno@clisp.org>
108250         Make use of gcj-4.3's -fsource and -ftarget option.
108251         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
108252         and if so try the options -fsource and -ftarget.
108253         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
108254         source_version, ftarget_option, target_version arguments.
108255         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
108256         (is_envjavac_oldgcj_14_14_usable): Renamed from
108257         is_envjavac_gcj_14_14_usable.
108258         (is_envjavac_oldgcj_14_13_usable): Renamed from
108259         is_envjavac_gcj_14_13_usable.
108260         (is_gcj_present): Update.
108261         (is_gcj_43, is_gcj43_usable): New functions.
108262         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
108263         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
108264         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
108265         try the options -fsource and -ftarget.
108267 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
108269         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
108270         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
108271         larger value.
108273 2007-02-03  Jim Meyering  <jim@meyering.net>
108275         Give tools a better chance to allocate space for very large buffers.
108276         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
108278         Make pwd and readlink work also when run with an unreadable parent dir
108279         on systems with openat support.
108280         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
108281         provided getcwd function, even when we have openat support.
108282         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
108284 2007-02-02  Bruno Haible  <bruno@clisp.org>
108286         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108287         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
108288         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
108289         portability problems if one of these functions is only used on specific
108290         platforms.
108291         Reported by Paul Eggert.
108293 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
108295         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
108296         is causing more trouble than it's curing.
108297         * lib/regex_internal.h (__mempcpy): Remove.
108298         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
108299         (and make the code a tad smaller to boot).
108300         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
108302 2007-02-02  Jim Meyering  <jim@meyering.net>
108304         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
108305         section, not in the Makefile.am: one.
108307 2007-02-02  Eric Blake  <ebb9@byu.net>
108309         * lib/strchrnul.c: Always include config.h first.
108311         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
108312         gnulib strstr is not necessary here.
108314 2007-02-02  Simon Josefsson  <simon@josefsson.org>
108316         * m4/socklen.m4: Fix typo.
108318 2007-02-02  Eric Blake  <ebb9@byu.net>
108320         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
108321         * modules/netinet_in (Makefile.am): Likewise.
108323 2007-02-01  Bruno Haible  <bruno@clisp.org>
108325         * lib/string_.h (GL_LINK_WARNING): New macro.
108326         (strcasecmp, strstr, strcasestr): If provided by the system,
108327         conditionally define as a macro that leads to a warning instead of to
108328         an error.
108329         (strncasecmp): Conditionally define as a macro that leads to a warning.
108331 2007-02-01  Karl Berry  <karl@gnu.org>
108333         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
108335 2007-02-01  Bruno Haible  <bruno@clisp.org>
108337         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
108338         renamings.
108340 2007-02-01  Eric Blake  <ebb9@byu.net>
108342         * modules/regex (Depends-on): Revert dependence on mempcpy.
108343         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
108344         module's definition of mempcpy.
108345         Reported by Paul Eggert.
108347 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
108349         * lib/string_.h: If the gnulib module XYZ is not present, undefine
108350         the symbol XYZ before redefining it.  This fixes a problem with
108351         programs that don't use XYZ, when compiled on systems that define
108352         XYZ to something else.
108354 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
108356         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
108357         occurs when "mkdir -m foo" creates a setgid directory that is (1)
108358         writeable to group or other and (2) is intended to have a special
108359         mode bit that is set or cleared.  In such a case, the directory
108360         should be neither group- nor other-writeable until the special
108361         mode bits are right.
108363 2007-01-31  Eric Blake  <ebb9@byu.net>
108365         * modules/mountlist (Depends-on): Add strstr.
108367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108368         bug.
108369         * modules/string (Makefile.am): Remove redundant replacement.
108370         * modules/regex (Depends-on): Add mempcpy.
108372 2007-01-31  Bruno Haible  <bruno@clisp.org>
108374         New module description field 'Link'.
108375         * gnulib-tool (func_usage): Document --extract-link-directive.
108376         (sed_extract_prog): Recognize 'Link' directive.
108377         (func_get_link_directive): New function.
108378         (func_import): Show summary of link directives.
108379         Handle --extract-link-directive option.
108380         * modules/acl (Link): New section.
108381         * modules/clock-time (Link): New section.
108382         * modules/euidaccess (Link): New section.
108383         * modules/gettext (Link): New section.
108384         * modules/iconv (Link): New section.
108385         * modules/lock (Link): New section.
108386         * modules/nanosleep (Link): New section.
108387         * modules/readline (Link): New section.
108389 2007-01-27  Bruno Haible  <bruno@clisp.org>
108391         Enforce the use of gnulib modules for unportable <string.h> functions.
108392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108393         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108394         (gl_HEADER_STRING_H_BODY): Require it.
108395         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108396         the symbol XYZ to one that gives a link error.
108397         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108398         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108399         * modules/mempcpy (configure.ac): Likewise.
108400         * modules/memrchr (configure.ac): Likewise.
108401         * modules/stpcpy (configure.ac): Likewise.
108402         * modules/stpncpy (configure.ac): Likewise.
108403         * modules/strcase (configure.ac): Likewise.
108404         * modules/strcasestr (configure.ac): Likewise.
108405         * modules/strchrnul (configure.ac): Likewise.
108406         * modules/strdup (configure.ac): Likewise.
108407         * modules/strndup (configure.ac): Likewise.
108408         * modules/strnlen (configure.ac): Likewise.
108409         * modules/strpbrk (configure.ac): Likewise.
108410         * modules/strsep (configure.ac): Likewise.
108411         * modules/strstr (configure.ac): Likewise.
108412         * modules/strtok_r (configure.ac): Likewise.
108414 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108416         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108418 2007-01-30  Jim Meyering  <jim@meyering.net>
108420         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108422 2007-01-29  Bruno Haible  <bruno@clisp.org>
108424         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108425         * lib/execute.c: Likewise.
108426         * lib/pipe.c: Likewise.
108427         * lib/printf-args.h: Likewise.
108428         * lib/printf-args.c: Likewise.
108429         * lib/printf-parse.c: Likewise.
108430         * lib/vasnprintf.c: Likewise.
108432 2007-01-29  Eric Blake  <ebb9@byu.net>
108434         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108435         declaration.
108437 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108439         * lib/strptime.h (strptime): Use 'restrict' for args where
108440         POSIX requires this.
108441         * lib/strptime.c (strptime): Likewise.
108442         Change license notice from LGPL to GPL, since gnulib-tool will
108443         change this as needed.
108444         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108445         defined.
108446         Include "strptime.h" first, to check interface.
108447         Do not #undef _LIBC and _NL_CURRENT.
108448         Do not include <stdlib.h>; no longer needed.
108449         Include "time_r.h" and declare ptime_locale_status
108450         only if _LIBC is not defined.
108451         (__P): Remove unused macro.
108452         (match_string): Bring back glibc version, but use it only if _LIBC
108453         is defined.
108454         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108455         Remove unnecessary assertion and abort() call.
108456         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108457         * m4/strptime.m4: Fix serial number comment.
108458         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108459         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108460         (Depends-on): Add time_r.
108462 2007-01-29  Bruno Haible  <bruno@clisp.org>
108464         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108465         strptime.
108466         * modules/strptime (Depends-on): Add stdbool.
108467         * lib/strptime.h: Include <time.h> always. Add comments.
108469 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108471         * modules/strptime: New file.
108472         * lib/strptime.h: New file.
108473         * lib/strptime.c: New file.
108474         * m4/strptime.m4: New file.
108476 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
108478         * MODULES.html.sh: New module mpsort.
108479         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
108481         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
108482         a circularity problem with HP-UX ia64 reported by Bob Proulx in
108483         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
108484         All uses changed.
108485         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
108486         All uses changed.
108487         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
108488         to _Restrict_.
108489         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
108490         the parameter matches the prototype.
108492 2007-01-28  Jim Meyering  <jim@meyering.net>
108494         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
108495         sys/time.h here, reverting that part of the previous patch:
108496         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
108498 2007-01-28  Bruno Haible  <bruno@clisp.org>
108500         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
108501         value of $(SYS_TIME_H).
108502         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
108503         remove it conditionally, too. [added by Jim Meyering]
108504         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
108505         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108506         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
108507         GETTIMEOFDAY_REPLACEMENT to 1.
108509 2007-01-28  Bruno Haible  <bruno@clisp.org>
108511         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
108512         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
108513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
108514         Set UNISTD_H instead of UNISTD_H2.
108515         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
108517 2007-01-28  Bruno Haible  <bruno@clisp.org>
108519         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
108520         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
108522 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108524         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
108525         (func_create_testdir): Ensure C locale for `grep' and `tr'
108526         character ranges.
108527         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
108528         ACLOCAL_AMFLAGS parsing state machine.
108530 2007-01-27  Bruno Haible  <bruno@clisp.org>
108532         * modules/unistr/base: Update.
108534 2007-01-27  Bruno Haible  <bruno@clisp.org>
108536         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
108537         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
108538         * modules/unistr/u32-mbtouc-unsafe: Renamed from
108539         modules/unistr/u32-mbtouc.
108540         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
108541         * lib/unistr.h: Update.
108542         * lib/linebreak.c: Update.
108543         * modules/unistr/u32-mbtouc: Renamed from
108544         modules/unistr/u32-mbtouc-safe.
108545         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
108546         * lib/unistr.h: Update.
108547         * lib/unistr/u32-to-u8.c: Update.
108548         * lib/unistr/u32-to-u16.c: Update.
108550 2007-01-27  Bruno Haible  <bruno@clisp.org>
108552         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
108553         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
108554         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
108555         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
108556         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
108557         * modules/unistr/u16-mbtouc-unsafe: Renamed from
108558         modules/unistr/u16-mbtouc.
108559         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
108560         * lib/unistr.h: Update.
108561         * lib/linebreak.c: Update.
108562         * modules/linebreak: Update.
108563         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
108564         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
108565         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
108566         * modules/unistr/u16-mbtouc: Renamed from
108567         modules/unistr/u16-mbtouc-safe.
108568         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
108569         * lib/unistr.h: Update.
108570         * lib/unistr/u16-to-u8.c: Update.
108571         * modules/unistr/u16-to-u8: Update.
108572         * lib/unistr/u16-to-u32.c: Update.
108573         * modules/unistr/u16-to-u32: Update.
108575 2007-01-27  Bruno Haible  <bruno@clisp.org>
108577         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
108578         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
108579         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
108580         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
108581         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
108582         * modules/unistr/u8-mbtouc-unsafe: Renamed from
108583         modules/unistr/u8-mbtouc.
108584         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
108585         * lib/unistr.h: Update.
108586         * lib/striconveh.c: Update.
108587         * modules/striconveh: Update.
108588         * lib/linebreak.c: Update.
108589         * modules/linebreak: Update.
108590         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
108591         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
108592         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
108593         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
108594         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
108595         * lib/unistr.h: Update.
108596         * lib/striconveh.c: Update.
108597         * modules/striconveh: Update.
108598         * lib/unistr/u8-to-u16.c: Update.
108599         * modules/unistr/u8-to-u16: Update.
108600         * lib/unistr/u8-to-u32.c: Update.
108601         * modules/unistr/u8-to-u32: Update.
108603 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108605         Sync from Libtool.
108606         * lib/argz.c: Do not include strings.h nor memory.h, include
108607         string.h unconditionally.  Patch by Simon Josefsson.
108609 2007-01-27  Bruno Haible  <bruno@clisp.org>
108611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108612         from gl_HEADER_STRING_H_BODY.
108613         (gl_HEADER_STRING_H_BODY): Require it.
108614         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108615         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108616         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
108617         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
108618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
108619         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
108620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
108621         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
108622         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
108623         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
108624         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
108625         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
108626         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
108627         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
108628         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108630 2007-01-27  Bruno Haible  <bruno@clisp.org>
108632         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
108633         check_PROGRAMS into noinst_PROGRAMS.
108634         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
108635         check_PROGRAMS in this case.
108636         (func_import): Set for_test to false.
108637         (func_create_testdir): Set for_test to true.
108639 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108640             Bruno Haible  <bruno@clisp.org>
108642         * modules/strcasestr (Files): Remove lib/strcasestr.h.
108643         (Depends-on): Add string.
108644         (Includes): Use <string.h> instead of strcasestr.h.
108645         * modules/string (Makefile.am): Also substitute the value of
108646         REPLACE_STRCASESTR.
108647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
108648         assume strcasestr is declared in <string.h> not <strings.h>. Also
108649         set REPLACE_STRCASESTR.
108650         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
108651         REPLACE_STRCASESTR.
108652         * lib/strcasestr.h: Remove file.
108653         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
108654         * lib/string_.h (strcasestr): New declaration.
108656 2007-01-27  Bruno Haible  <bruno@clisp.org>
108658         * lib/string_.h: Use 'extern'.
108660 2007-01-27  Jim Meyering  <jim@meyering.net>
108662         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
108663         of set-but-not-used local, "q".
108665         * lib/mempcpy.c: Include <config.h> before <string.h>.
108666         This fixes a compilation error on HP-UX, due to the system's
108667         "restrict"-using mempcpy prototype.
108669 2007-01-26  Bruno Haible  <bruno@clisp.org>
108671         Small optimization.
108672         * lib/javacomp.c: Include c-strstr.h.
108673          (is_envjavac_gcj): Use c_strstr instead of strstr.
108674         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
108676 2007-01-26  Bruno Haible  <bruno@clisp.org>
108678         * MODULES.html.sh (Unicode string functions): Add the new modules.
108680         * modules/uniconv/u32-strconv-to-locale: New file.
108681         * lib/uniconv/u32-strconv-to-locale.c: New file.
108683         * modules/uniconv/u16-strconv-to-locale: New file.
108684         * lib/uniconv/u16-strconv-to-locale.c: New file.
108686         * modules/uniconv/u8-strconv-to-locale: New file.
108687         * lib/uniconv/u8-strconv-to-locale.c: New file.
108689         * modules/uniconv/u32-strconv-from-locale: New file.
108690         * lib/uniconv/u32-strconv-from-locale.c: New file.
108692         * modules/uniconv/u16-strconv-from-locale: New file.
108693         * lib/uniconv/u16-strconv-from-locale.c: New file.
108695         * modules/uniconv/u8-strconv-from-locale: New file.
108696         * lib/uniconv/u8-strconv-from-locale.c: New file.
108698         * modules/uniconv/u32-strconv-to-enc: New file.
108699         * lib/uniconv/u32-strconv-to-enc.c: New file.
108700         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108701         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108703         * modules/uniconv/u16-strconv-to-enc: New file.
108704         * lib/uniconv/u16-strconv-to-enc.c: New file.
108705         * lib/uniconv/u-strconv-to-enc.h: New file.
108706         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108707         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108709         * modules/uniconv/u8-strconv-to-enc: New file.
108710         * lib/uniconv/u8-strconv-to-enc.c: New file.
108711         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108712         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108714         * modules/uniconv/u32-strconv-from-enc: New file.
108715         * lib/uniconv/u32-strconv-from-enc.c: New file.
108716         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108717         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108719         * modules/uniconv/u16-strconv-from-enc: New file.
108720         * lib/uniconv/u16-strconv-from-enc.c: New file.
108721         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108722         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108724         * modules/uniconv/u8-strconv-from-enc: New file.
108725         * lib/uniconv/u8-strconv-from-enc.c: New file.
108726         * lib/uniconv/u-strconv-from-enc.h: New file.
108727         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108728         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108730         * modules/uniconv/u32-conv-from-enc: New file.
108731         * lib/uniconv/u32-conv-from-enc.c: New file.
108732         * modules/uniconv/u32-conv-from-enc-tests: New file.
108733         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108735         * modules/uniconv/u16-conv-from-enc: New file.
108736         * lib/uniconv/u16-conv-from-enc.c: New file.
108737         * lib/uniconv/u-conv-from-enc.h: New file.
108738         * modules/uniconv/u16-conv-from-enc-tests: New file.
108739         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108741         * modules/uniconv/u8-conv-from-enc: New file.
108742         * lib/uniconv/u8-conv-from-enc.c: New file.
108743         * modules/uniconv/u8-conv-from-enc-tests: New file.
108744         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108746         * modules/uniconv/base: New file.
108747         * lib/uniconv.h: New file.
108749 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108751         * doc/gnulib-tool.texi (Initial import): Update to match current
108752         behavior with strdup module.
108753         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108754         * lib/memmem.h: Remove; all uses removed.  This is now done
108755         by <string.h>.
108756         * lib/mempcpy.h: Likewise.
108757         * lib/memrchr.h: Likewise.
108758         * lib/stpcpy.h: Likewise.
108759         * lib/stpncpy.h: Likewise.
108760         * lib/strcase.h: Likewise.
108761         * lib/strchrnul.h: Likewise.
108762         * lib/strdup.h: Likewise.
108763         * lib/strndup.h: Likewise.
108764         * lib/strnlen.h: Likewise.
108765         * lib/strpbrk.h: Likewise.
108766         * lib/strsep.h: Likewise.
108767         * lib/strstr.h: Likewise.
108768         * lib/strtok_r.h: Likewise.
108769         * lib/string_.h: New file.
108770         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108771         Rely on <string.h> instead.
108772         * lib/canon-host.c: Likewise.
108773         * lib/chdir-long.c: Likewise.
108774         * lib/concatpath.c: Likewise.
108775         * lib/exclude.c: Likewise.
108776         * lib/fchdir.c: Likewise.
108777         * lib/getaddrinfo.c: Likewise.
108778         * lib/getcwd.c: Likewise.
108779         * lib/getsubopt.c: Likewise.
108780         * lib/glob.c: Likewise.
108781         * lib/hard-locale.c: Likewise.
108782         * lib/iconvme.c: Likewise.
108783         * lib/javacomp.c: Likewise.
108784         * lib/mempcpy.c: Likewise.
108785         * lib/memrchr.c: Likewise.
108786         * lib/regex_internal.h: Likewise.
108787         * lib/stpncpy.c: Likewise.
108788         * lib/strcasecmp.c: Likewise.
108789         * lib/strchrnul.c: Likewise.
108790         * lib/strdup.c: Likewise.
108791         * lib/striconv.c: Likewise.
108792         * lib/striconveh.c: Likewise.
108793         * lib/striconveha.c: Likewise.
108794         * lib/strncasecmp.c: Likewise.
108795         * lib/strndup.c: Likewise.
108796         * lib/strnlen.c: Likewise.
108797         * lib/strsep.c: Likewise.
108798         * lib/strstr.c: Likewise.
108799         * lib/strtok_r.c: Likewise.
108800         * lib/userspec.c: Likewise.
108801         * lib/w32spawn.h: Likewise.
108802         * lib/xstrndup.c: Likewise.
108803         * lib/mountlist.c (strstr): Remove decl.
108804         * m4/string_h.m4: New file.
108805         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108806         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108807         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108808         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108809         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108810         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108811         Set REPLACE_STRCASECMP if necessary.
108812         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108813         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108814         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108815         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108816         HAVE_DECL_STRDUP if necessary.
108817         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108818         since gl_FUNC_STRNDUP does that now.
108819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108820         Check for decl here...
108821         (gl_PREREQ_STRNLEN): ... not here.
108822         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108823         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108824         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108825         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108826         necessary.
108827         * modules/string: New file.
108828         * modules/memmem (Files): Remove special-purpose include file.
108829         (Depends-on): Add string.
108830         (Include): Include <string.h>, not the removed file.
108831         * modules/mempcpy: Likewise.
108832         * modules/memrchr: Likewise.
108833         * modules/stpcpy: Likewise.
108834         * modules/stpncpy: Likewise.
108835         * modules/strcase: Likewise.
108836         * modules/strchrnul: Likewise.
108837         * modules/strdup: Likewise.
108838         * modules/strndup: Likewise.
108839         * modules/strnlen: Likewise.
108840         * modules/strpbrk: Likewise.
108841         * modules/strsep: Likewise.
108842         * modules/strstr: Likewise.
108843         * modules/strtok_r: Likewise.
108844         * tests/test-dirname.c: Don't include "strdup.h", since
108845         <string.h> now suffices.
108846         * tests/test-memmem.c: Don't include "memmem.h", since
108847         <string.h> now suffices.
108849 2007-01-25  Bruno Haible  <bruno@clisp.org>
108851         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108852         *resultp is 0.
108854         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108855         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108856         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108857         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108859         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108860         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108861         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108862         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108863         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108864         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108866 2007-01-24  Bruno Haible  <bruno@clisp.org>
108868         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108869         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108870         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108871         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108872         gl_FUNC_FTS_CORE.
108873         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108874         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108875         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108876         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108877         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108878         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108879         gl_FUNC_FCHOWNAT.
108880         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108881         gl_FUNC_STRFTIME.
108882         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108883         Reported by Ralf Wildenhues.
108885 2007-01-24  Bruno Haible  <bruno@clisp.org>
108887         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108888         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108889         gl_GETADDRINFO.
108890         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108891         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108892         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108894 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108896         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108897         Don't use 'exit'; just return from 'main'.
108898         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108900         * lib/fnmatch_.h: Readjust white space and comments to match
108901         glibc, to avoid spurious diffs.
108903 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108905         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108906         2004-12-01 change by Jakub Jelinek, since this code won't compile
108907         if !LIBC.  Problem reported by Bob Proulx.
108909 2007-01-23  Bruno Haible  <bruno@clisp.org>
108911         * lib/striconveh.c: Include c-strcaseeq.h.
108912         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108913         * modules/striconveh (Depends-on): Add c-strcaseeq.
108915 2007-01-23  Bruno Haible  <bruno@clisp.org>
108917         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108919         * modules/c-strcaseeq: New file.
108920         * lib/c-strcaseeq.h: New file.
108922         * modules/streq: New file.
108923         * lib/streq.h: New file.
108925 2007-01-23  Bruno Haible  <bruno@clisp.org>
108927         * modules/striconveha-tests: New file.
108928         * tests/test-striconveha.c: New file.
108930         * lib/striconveha.h: Include <stdbool.h>.
108931         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108932         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108933         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108934         (mem_iconveha): New function.
108935         (str_iconveha_notranslit): Renamed from str_iconveha.
108936         (str_iconveha): New function.
108937         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108938         c-strcase.
108940 2007-01-23  Bruno Haible  <bruno@clisp.org>
108942         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108943         encodings without forgiving before trying any encoding with handler.
108944         (str_iconveha): Try all encodings without forgiving before trying any
108945         encoding with handler.
108947 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108949         Import the following changes from libc.
108951         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108953         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108955         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108957         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108958         normal_bracket label.
108960         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108962         [BZ #361]
108963         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108964         to normal_bracket after fetching the next character.
108966 2007-01-22  Bruno Haible  <bruno@clisp.org>
108968         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108969         argument.
108970         * lib/striconveh.c (iconv_carefully_1): New function.
108971         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108972         argument.
108973         (str_cd_iconveh): Update.
108974         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108975         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108976         * tests/test-striconveh.c (MAGIC): New macro.
108977         (new_offsets): New function.
108978         (main): Test call with and without offsets.
108980 2007-01-22  Bruno Haible  <bruno@clisp.org>
108982         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108983         * modules/sys_select (Makefile.am): Likewise.
108984         * modules/sys_socket (Makefile.am): Likewise.
108985         * modules/sys_time (Makefile.am): Likewise.
108987 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108989         * modules/gettimeofday (License): Change from GPL to LGPL, since
108990         gettimeofday is a library function.
108992 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108994         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108996 2007-01-21  Bruno Haible  <bruno@clisp.org>
108998         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
109000 2007-01-21  Bruno Haible  <bruno@clisp.org>
109002         * modules/striconveha: New file.
109003         * lib/striconveha.h: New file.
109004         * lib/striconveha.c: New file.
109005         * MODULES.html.sh (Internationalization functions): Add striconveha.
109006         * lib/striconv.c (str_iconv): Optimize the case of an empty input
109007         string.
109008         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
109010 2007-01-21  Bruno Haible  <bruno@clisp.org>
109012         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
109013         * lib/striconveh.c (str_iconveh): Likewise.
109015 2007-01-21  Bruno Haible  <bruno@clisp.org>
109017         * lib/striconveh.h (mem_iconveh): New declaration.
109018         * lib/striconveh.c (mem_iconveh): New function.
109019         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
109021 2007-01-21  Bruno Haible  <bruno@clisp.org>
109023         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
109025         * lib/striconveh.h (mem_cd_iconveh): Change specification.
109026         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
109027         original result buffer.
109028         (str_cd_iconveh): Update.
109029         * tests/test-striconveh.c (main): Update.
109031         * lib/striconv.h (mem_cd_iconv): Change specification.
109032         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
109033         result buffer.
109034         (str_cd_iconv): Update.
109035         * tests/test-striconv.c (main): Update.
109037 2007-01-21  Bruno Haible  <bruno@clisp.org>
109039         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
109041 2007-01-20  Jim Meyering  <jim@meyering.net>
109043         * lib/userspec.c (parse_with_separator): If a user or group string
109044         starts with "+", skip the corresponding name-to-ID look-up, since
109045         such a look-up must fail: user and group names may not include "+".
109047 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
109049         * lib/poll.c: Include sys/time.h and time.h unconditionally,
109050         since we now assume the sys_time module.
109051         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
109052         check for sys/time.h; no longer needed.
109053         * modules/poll (Depends-on): Depend on sys_time.
109055 2007-01-18  Bruno Haible  <bruno@clisp.org>
109057         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
109058         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109060         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
109061         gettimeofday.
109063         * tests/test-gettimeofday.c: Include <time.h>.
109064         (dummy): Remove variable.
109066         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
109067         gl_HEADER_SYS_TIME_H.
109068         (gl_HEADER_SYS_TIME_H): New macro.
109070         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
109071         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109072         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
109073         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
109074         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
109076         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
109077         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109078         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
109079         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
109080         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109082         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
109083         last change; it caused a compilation error when cross-compiling to
109084         Cygwin.
109086 2007-01-18  Jim Meyering  <jim@meyering.net>
109088         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
109089         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
109090         than the race-prone "test -d sys || mkdir sys".
109091         (configure.ac): Use AC_PROG_MKDIR_P.
109092         * modules/sys_select: Likewise.
109093         * modules/sys_socket: Likewise.
109094         * modules/sys_time: Likewise.
109096 2007-01-18  Eric Blake  <ebb9@byu.net>
109098         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
109099         replace gettimeofday.
109100         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
109101         name, to avoid infinite recursion.
109103 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
109105         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
109106         module sys_time.
109107         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
109108         assume timespec.h defines struct timeval.
109109         * lib/settime.c: Likewise.
109110         * lib/utimens.c: Likewise.
109111         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
109112         since we now assume the gettimeofday module.
109113         * lib/tempname.c (__gen_tempname): Likewise.
109114         * lib/gettimeofday.h: Remove.
109115         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
109116         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
109117         Include <time.h>, for 'time()'.
109118         (localtime_buffer_addr): Also use this workaround if
109119         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
109120         to simplify the uses.  All uses changed.
109121         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
109122         that #undef is inside {}, and 'const' follows type name consistently.
109123         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
109124         (gettimeofday): Do not use the maximum possible value for
109125         tv->tv_usec, since that might break usages other than ls.c.
109126         Instead, we'll leave ls.c alone.  This undoes today's patch
109127         by Bruno.  Add a compile-time warning for 1s-clock resolution;
109128         we've never observed the problem but might as well keep the
109129         canary.
109130         * lib/nanosleep.c: Include timespec.h first, for interface check.
109131         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
109132         now assume the sys_time module.
109133         * lib/tempname.c: Likewise.
109134         * lib/timespec.h: Likewise.
109135         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
109136         needed.
109137         * lib/strftime.c: Likewise.
109138         * lib/timespec.h: Likewise.
109139         * lib/posixtm.c: Include posixtm.h first, for interface check.
109140         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
109141         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
109142         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
109143         * lib/sys_time_.h: New file.
109144         * lib/timespec.h (struct timespec): Use long int, not long.
109145         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109146         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
109147         Remove obsolescent call to AC_HEADER_TIME.
109148         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
109149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109150         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109151         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
109152         Likewise.
109153         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
109154         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
109155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
109156         into the sys_time module.  Check for gettimeofday just once.
109157         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
109158         for gettimeofday signature to just check the signature.  Merely
109159         compile it, since linking doesn't test signature.  Improve test for
109160         whether gettimeofday.o is actually needed.
109161         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
109162         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109163         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
109164         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109165         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
109166         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
109167         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
109168         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
109169         than worrying about sys/time.h.
109170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109171         Don't bother worrying about TIME_WITH_SYS_TIME.
109172         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
109173         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
109174         * m4/sys_time_h.m4: New file.
109175         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
109176         Don't include sys/time.h.  Return from main rather than exiting.
109177         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
109178         all uses changed.
109179         * modules/gethrxtime (Depends-on): Add sys_time.
109180         * modules/gettime (Depends-on): Likewise.
109181         * modules/gettimeofday (Depends-on): Likewise.
109182         * modules/nanosleep (Depends-on): Likewise.
109183         * modules/settime (Depends-on): Likewise.
109184         * modules/tempname (Depends-on): Likewise.
109185         * modules/utimens (Depends-on): Likewise.
109186         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
109187         (Include): Change back to <sys/time.h>.
109188         (Maintainer): Add self.
109189         * modules/sys_time: New file.
109190         * modules/tempname (Depends-on): Add gettimeofday.
109191         * tests/test-gettimeofday.c: Include <sys/time.h>
109192         rather than gettimeofday.h.
109194 2007-01-17  Bruno Haible  <bruno@clisp.org>
109196         * gnulib-tool (func_get_license): Revert last patch. Instead, let
109197         the license default to GPL.
109198         (func_create_testdir): Don't complain if a module is LGPL and its
109199         tests module depends on GPLed modules.
109201 2007-01-17  Bruno Haible  <bruno@clisp.org>
109203         * lib/gettimeofday.c (gettimeofday): Add code for the case
109204         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
109205         maximum possible value for tv->tv_usec, rather than the minimum one.
109207 2005-10-08  Martin Lambers  <marlam@marlam.de>
109208 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109209 2007-01-16  Bruno Haible  <bruno@clisp.org>
109211         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
109212         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
109213         gl_FUNC_GETTIMEOFDAY.
109214         (Include): Add gettimeofday.h.
109215         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
109216         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
109217         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
109218         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
109219         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
109220         * lib/gettimeofday.h: New file.
109221         * lib/gettimeofday.c: Include <sys/timeb.h>.
109222         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
109223         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109224         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
109225         fall back on time().
109227         * tests/test-gettimeofday.c: New file.
109228         * modules/gettimeofday-tests: New file.
109230 2007-01-16  Eric Blake  <ebb9@byu.net>
109232         * modules/fnmatch (Depends-on): Depend on wchar.
109233         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
109234         * m4/fnmatch.m4: Likewise.
109235         * modules/mbchar (Makefile.am): Assume <wchar.h>.
109236         * m4/mbchar.m4: Likewise.
109237         * modules/mbswidth (Depends-on): Depend on wchar.
109238         * lib/mbswidth.c: Assume <wchar.h>.
109239         * m4/mbswidth.m4: Likewise.
109240         * modules/quotearg (Depends-on): Depend on wchar.
109241         * lib/quotearg.c: Assume <wchar.h>.
109242         * m4/quotearg.m4: Likewise.
109243         * modules/regex (Depends-on): Depend on wchar.
109244         * lib/regex_internal.h: Assume <wchar.h>.
109245         * m4/regex.m4: Likewise.
109246         * modules/stdint (Depends-on): Depend on wchar.
109247         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
109248         * m4/stdint.m4: Likewise.
109249         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
109250         * modules/strftime (Depends-on): Depend on wchar.
109251         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
109252         * modules/strtol (Depends-on): Depend on wchar.
109253         * lib/strtol.c: Assume <wchar.h>.
109254         * modules/wcwidth (Depends-on): Depend on wchar.
109255         * lib/wcwidth.h: Assume <wchar.h>.
109256         * m4/wcwidth.m4: Likewise.
109258 2007-01-16  Bruno Haible  <bruno@clisp.org>
109260         * modules/csharpexec-script: New, created from...
109261         * modules/csharpexec: ... this.
109263 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
109265         * modules/javaexec-script: New, created from...
109266         * modules/javaexec: ... this.
109268 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109270         * modules/poll (Dependencies): Add sys_select.
109272 2007-01-15  Jim Meyering  <jim@meyering.net>
109274         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
109275         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
109276         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
109277         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
109279 2007-01-15  Bruno Haible  <bruno@clisp.org>
109281         * modules/striconveh: New file.
109282         * lib/striconveh.h: New file.
109283         * lib/striconveh.c: New file.
109284         * MODULES.html.sh (Internationalization functions): Add striconveh.
109286         * modules/striconveh-tests: New file.
109287         * tests/test-striconveh.c: New file.
109289 2007-01-15  Bruno Haible  <bruno@clisp.org>
109291         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
109292         not from GNU libiconv or GNU libc.
109294 2007-01-15  Bruno Haible  <bruno@clisp.org>
109296         * doc/gnulib-intro.texi (Copyright): Explain the different license
109297         terms for module descriptions, autoconf macros, tests, documentation.
109299 2007-01-14  Bruno Haible  <bruno@clisp.org>
109301         * modules/striconv-tests: New file.
109302         * tests/test-striconv.c: New file.
109304 2007-01-14  Bruno Haible  <bruno@clisp.org>
109306         * modules/iconv-tests: New file.
109307         * tests/test-iconv.c: New file.
109309 2007-01-14  Bruno Haible  <bruno@clisp.org>
109311         * gnulib-tool (func_get_license): For test modules, use the license of
109312         the main module.
109314 2007-01-14  Bruno Haible  <bruno@clisp.org>
109316         * modules/iconv (Include): Clarify that <iconv.h> can only be included
109317         if iconv is found to exist.
109319 2007-01-14  Bruno Haible  <bruno@clisp.org>
109321         * modules/c-ctype-tests: New file.
109322         * tests/test-c-ctype.c: New file.
109324 2007-01-14  Bruno Haible  <bruno@clisp.org>
109326         * modules/binary-io-tests: New file.
109327         * tests/test-binary-io.sh: New file.
109328         * tests/test-binary-io.c: New file.
109330 2007-01-14  Bruno Haible  <bruno@clisp.org>
109332         * modules/array-oset-tests: New file.
109333         * tests/test-array_oset.c: New file.
109335 2007-01-14  Bruno Haible  <bruno@clisp.org>
109337         * modules/array-list-tests: New file.
109338         * tests/test-array_list.c: New file.
109340 2007-01-14  Bruno Haible  <bruno@clisp.org>
109342         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
109343         and make.
109344         Reported by Simon Josefsson in
109345         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
109347 2007-01-14  Bruno Haible  <bruno@clisp.org>
109349         * modules/allocsa-tests: New file.
109350         * tests/test-allocsa.c: New file.
109352 2007-01-14  Bruno Haible  <bruno@clisp.org>
109354         * modules/fchdir (Depends-on): Add absolute-header.
109355         * modules/unistd (Depends-on): Likewise.
109357 2006-12-30  Bruno Haible  <bruno@clisp.org>
109359         * modules/fchdir: New file.
109360         * modules/unistd (Files): Add lib/unistd_.h.
109361         (Makefile.am): Generate unistd.h from unistd_.h.
109362         * lib/fchdir.c: New file.
109363         * lib/dirent_.h: New file.
109364         * lib/unistd_.h: New file.
109365         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109366         * m4/fchdir.m4: New file.
109367         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109368         (gl_HEADER_UNISTD): Invoke it.
109369         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109370         function.
109371         * lib/backupfile.c (opendir, closedir): Undefine.
109372         * lib/chown.c (open, close): Undefine.
109373         * lib/clean-temp.c (open, close): Undefine.
109374         * lib/copy-file.c (open, close): Undefine.
109375         * lib/execute.c (open, close): Undefine.
109376         * lib/fsusage.c (open, close): Undefine.
109377         * lib/gc-gnulib.c (open, close): Undefine.
109378         * lib/getcwd.c (opendir, closedir): Undefine.
109379         * lib/glob.c (opendir, closedir): Undefine.
109380         * lib/javacomp.c (open, close): Undefine.
109381         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109382         * lib/openat-proc.c (open, close): Undefine.
109383         * lib/pagealign_alloc.c (open, close): Undefine.
109384         * lib/pipe.c (open, close): Undefine.
109385         * lib/progreloc.c (open, close): Undefine.
109386         * lib/savedir.c (opendir, closedir): Undefine.
109387         * lib/utime.c (open, close): Undefine.
109388         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109390 2007-01-10  Bruno Haible  <bruno@clisp.org>
109392         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109394 2007-01-12  Eric Blake  <ebb9@byu.net>
109396         Provide a robust <wchar.h>.  Further simplifications are now
109397         possible in other modules, but not included here.
109398         * modules/wchar: New module.
109399         * m4/wchar.m4: New file.
109400         * lib/wchar_.h: Likewise.
109401         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109402         of the new module.
109403         * MODULES.html.sh (Extended multibyte and wide character utilities):
109404         New section.
109406 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109408         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109409         to a reasonable default for memory allocation.
109410         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109411         file system that reports garbage st_size values for symlinks.
109412         Problem reported by Liyang Hu.
109414 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109416         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109417         Emacs .#* auto-save files).
109419 2007-01-11  Bruno Haible  <bruno@clisp.org>
109421         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109422         directory.
109424 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109426         Use @...@ consistently in lib/wctype_.h.
109427         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109428         on it being set to 1 or 0.
109429         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109430         go back to AC_SUBSTing it.
109431         * modules/wctype (Makefile.am): Undo previous change.
109433 2007-01-10  Eric Blake  <ebb9@byu.net>
109435         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109436         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109437         * modules/wctype (Makefile.am): Likewise.
109438         Reported by Chris McGuire.
109440 2007-01-10  Jim Meyering  <jim@meyering.net>
109442         fts.c: a small readability/maintainability improvement
109443         * lib/fts.c (fts_read): Make this code slightly more readable and
109444         maintainable by hoisting the "sp->fts_cur = p" assignments to
109445         immediately follow the statements that set P.  Derived from
109446         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109448 2007-01-10  Eric Blake  <ebb9@byu.net>
109450         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109451         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109453         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109454         Reported by Chris McGuire.
109456 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109458         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109459         in sed script.
109461 2007-01-09  Bruno Haible  <bruno@clisp.org>
109463         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109464         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109465         variables.
109466         (func_module): Use them.
109468 2007-01-09  Bruno Haible  <bruno@clisp.org>
109470         * modules/unistr/base: New file.
109471         * lib/unistr.h: New file.
109473         * modules/unistr/u8-to-u16: New file.
109474         * lib/unistr/u8-to-u16.c: New file.
109476         * modules/unistr/u8-to-u32: New file.
109477         * lib/unistr/u8-to-u32.c: New file.
109479         * modules/unistr/u16-to-u8: New file.
109480         * lib/unistr/u16-to-u8.c: New file.
109482         * modules/unistr/u16-to-u32: New file.
109483         * lib/unistr/u16-to-u32.c: New file.
109485         * modules/unistr/u32-to-u8: New file.
109486         * lib/unistr/u32-to-u8.c: New file.
109488         * modules/unistr/u32-to-u16: New file.
109489         * lib/unistr/u32-to-u16.c: New file.
109491         * modules/unistr/u8-check: New file.
109492         * modules/unistr/u16-check: New file.
109493         * modules/unistr/u32-check: New file.
109494         * lib/unistr/u8-check.c: New file.
109495         * lib/unistr/u16-check.c: New file.
109496         * lib/unistr/u32-check.c: New file.
109498         * modules/unistr/u8-chr: New file.
109499         * modules/unistr/u16-chr: New file.
109500         * modules/unistr/u32-chr: New file.
109501         * lib/unistr/u8-chr.c: New file.
109502         * lib/unistr/u16-chr.c: New file.
109503         * lib/unistr/u32-chr.c: New file.
109505         * modules/unistr/u8-cmp: New file.
109506         * modules/unistr/u16-cmp: New file.
109507         * modules/unistr/u32-cmp: New file.
109508         * lib/unistr/u8-cmp.c: New file.
109509         * lib/unistr/u16-cmp.c: New file.
109510         * lib/unistr/u32-cmp.c: New file.
109512         * modules/unistr/u8-cpy: New file.
109513         * modules/unistr/u16-cpy: New file.
109514         * modules/unistr/u32-cpy: New file.
109515         * lib/unistr/u8-cpy.c: New file.
109516         * lib/unistr/u16-cpy.c: New file.
109517         * lib/unistr/u32-cpy.c: New file.
109518         * lib/unistr/u-cpy.h: New file.
109520         * modules/unistr/u8-cpy-alloc: New file.
109521         * modules/unistr/u16-cpy-alloc: New file.
109522         * modules/unistr/u32-cpy-alloc: New file.
109523         * lib/unistr/u8-cpy-alloc.c: New file.
109524         * lib/unistr/u16-cpy-alloc.c: New file.
109525         * lib/unistr/u32-cpy-alloc.c: New file.
109526         * lib/unistr/u-cpy-alloc.h: New file.
109528         * modules/unistr/u8-endswith: New file.
109529         * modules/unistr/u16-endswith: New file.
109530         * modules/unistr/u32-endswith: New file.
109531         * lib/unistr/u8-endswith.c: New file.
109532         * lib/unistr/u16-endswith.c: New file.
109533         * lib/unistr/u32-endswith.c: New file.
109534         * lib/unistr/u-endswith.h: New file.
109536         * modules/unistr/u8-mblen: New file.
109537         * modules/unistr/u16-mblen: New file.
109538         * modules/unistr/u32-mblen: New file.
109539         * lib/unistr/u8-mblen.c: New file.
109540         * lib/unistr/u16-mblen.c: New file.
109541         * lib/unistr/u32-mblen.c: New file.
109543         * modules/unistr/u8-mbtouc: New file.
109544         * modules/unistr/u16-mbtouc: New file.
109545         * modules/unistr/u32-mbtouc: New file.
109546         * lib/unistr/u8-mbtouc.c: New file.
109547         * lib/unistr/u16-mbtouc.c: New file.
109548         * lib/unistr/u32-mbtouc.c: New file.
109550         * modules/unistr/u8-mbtouc-safe: New file.
109551         * modules/unistr/u16-mbtouc-safe: New file.
109552         * modules/unistr/u32-mbtouc-safe: New file.
109553         * lib/unistr/u8-mbtouc-safe.c: New file.
109554         * lib/unistr/u16-mbtouc-safe.c: New file.
109555         * lib/unistr/u32-mbtouc-safe.c: New file.
109557         * modules/unistr/u8-move: New file.
109558         * modules/unistr/u16-move: New file.
109559         * modules/unistr/u32-move: New file.
109560         * lib/unistr/u8-move.c: New file.
109561         * lib/unistr/u16-move.c: New file.
109562         * lib/unistr/u32-move.c: New file.
109563         * lib/unistr/u-move.h: New file.
109565         * modules/unistr/u8-next: New file.
109566         * modules/unistr/u16-next: New file.
109567         * modules/unistr/u32-next: New file.
109568         * lib/unistr/u8-next.c: New file.
109569         * lib/unistr/u16-next.c: New file.
109570         * lib/unistr/u32-next.c: New file.
109572         * modules/unistr/u8-prev: New file.
109573         * modules/unistr/u16-prev: New file.
109574         * modules/unistr/u32-prev: New file.
109575         * lib/unistr/u8-prev.c: New file.
109576         * lib/unistr/u16-prev.c: New file.
109577         * lib/unistr/u32-prev.c: New file.
109579         * modules/unistr/u8-set: New file.
109580         * modules/unistr/u16-set: New file.
109581         * modules/unistr/u32-set: New file.
109582         * lib/unistr/u8-set.c: New file.
109583         * lib/unistr/u16-set.c: New file.
109584         * lib/unistr/u32-set.c: New file.
109585         * lib/unistr/u-set.h: New file.
109587         * modules/unistr/u8-startswith: New file.
109588         * modules/unistr/u16-startswith: New file.
109589         * modules/unistr/u32-startswith: New file.
109590         * lib/unistr/u8-startswith.c: New file.
109591         * lib/unistr/u16-startswith.c: New file.
109592         * lib/unistr/u32-startswith.c: New file.
109593         * lib/unistr/u-startswith.h: New file.
109595         * modules/unistr/u8-stpcpy: New file.
109596         * modules/unistr/u16-stpcpy: New file.
109597         * modules/unistr/u32-stpcpy: New file.
109598         * lib/unistr/u8-stpcpy.c: New file.
109599         * lib/unistr/u16-stpcpy.c: New file.
109600         * lib/unistr/u32-stpcpy.c: New file.
109601         * lib/unistr/u-stpcpy.h: New file.
109603         * modules/unistr/u8-stpncpy: New file.
109604         * modules/unistr/u16-stpncpy: New file.
109605         * modules/unistr/u32-stpncpy: New file.
109606         * lib/unistr/u8-stpncpy.c: New file.
109607         * lib/unistr/u16-stpncpy.c: New file.
109608         * lib/unistr/u32-stpncpy.c: New file.
109609         * lib/unistr/u-stpncpy.h: New file.
109611         * modules/unistr/u8-strcat: New file.
109612         * modules/unistr/u16-strcat: New file.
109613         * modules/unistr/u32-strcat: New file.
109614         * lib/unistr/u8-strcat.c: New file.
109615         * lib/unistr/u16-strcat.c: New file.
109616         * lib/unistr/u32-strcat.c: New file.
109617         * lib/unistr/u-strcat.h: New file.
109619         * modules/unistr/u8-strchr: New file.
109620         * modules/unistr/u16-strchr: New file.
109621         * modules/unistr/u32-strchr: New file.
109622         * lib/unistr/u8-strchr.c: New file.
109623         * lib/unistr/u16-strchr.c: New file.
109624         * lib/unistr/u32-strchr.c: New file.
109626         * modules/unistr/u8-strcmp: New file.
109627         * modules/unistr/u16-strcmp: New file.
109628         * modules/unistr/u32-strcmp: New file.
109629         * lib/unistr/u8-strcmp.c: New file.
109630         * lib/unistr/u16-strcmp.c: New file.
109631         * lib/unistr/u32-strcmp.c: New file.
109633         * modules/unistr/u8-strcpy: New file.
109634         * modules/unistr/u16-strcpy: New file.
109635         * modules/unistr/u32-strcpy: New file.
109636         * lib/unistr/u8-strcpy.c: New file.
109637         * lib/unistr/u16-strcpy.c: New file.
109638         * lib/unistr/u32-strcpy.c: New file.
109639         * lib/unistr/u-strcpy.h: New file.
109641         * modules/unistr/u8-strcspn: New file.
109642         * modules/unistr/u16-strcspn: New file.
109643         * modules/unistr/u32-strcspn: New file.
109644         * lib/unistr/u8-strcspn.c: New file.
109645         * lib/unistr/u16-strcspn.c: New file.
109646         * lib/unistr/u32-strcspn.c: New file.
109647         * lib/unistr/u-strcspn.h: New file.
109649         * modules/unistr/u8-strdup: New file.
109650         * modules/unistr/u16-strdup: New file.
109651         * modules/unistr/u32-strdup: New file.
109652         * lib/unistr/u8-strdup.c: New file.
109653         * lib/unistr/u16-strdup.c: New file.
109654         * lib/unistr/u32-strdup.c: New file.
109655         * lib/unistr/u-strdup.h: New file.
109657         * modules/unistr/u8-strlen: New file.
109658         * modules/unistr/u16-strlen: New file.
109659         * modules/unistr/u32-strlen: New file.
109660         * lib/unistr/u8-strlen.c: New file.
109661         * lib/unistr/u16-strlen.c: New file.
109662         * lib/unistr/u32-strlen.c: New file.
109663         * lib/unistr/u-strlen.h: New file.
109665         * modules/unistr/u8-strmblen: New file.
109666         * modules/unistr/u16-strmblen: New file.
109667         * modules/unistr/u32-strmblen: New file.
109668         * lib/unistr/u8-strmblen.c: New file.
109669         * lib/unistr/u16-strmblen.c: New file.
109670         * lib/unistr/u32-strmblen.c: New file.
109672         * modules/unistr/u8-strmbtouc: New file.
109673         * modules/unistr/u16-strmbtouc: New file.
109674         * modules/unistr/u32-strmbtouc: New file.
109675         * lib/unistr/u8-strmbtouc.c: New file.
109676         * lib/unistr/u16-strmbtouc.c: New file.
109677         * lib/unistr/u32-strmbtouc.c: New file.
109679         * modules/unistr/u8-strncat: New file.
109680         * modules/unistr/u16-strncat: New file.
109681         * modules/unistr/u32-strncat: New file.
109682         * lib/unistr/u8-strncat.c: New file.
109683         * lib/unistr/u16-strncat.c: New file.
109684         * lib/unistr/u32-strncat.c: New file.
109685         * lib/unistr/u-strncat.h: New file.
109687         * modules/unistr/u8-strncmp: New file.
109688         * modules/unistr/u16-strncmp: New file.
109689         * modules/unistr/u32-strncmp: New file.
109690         * lib/unistr/u8-strncmp.c: New file.
109691         * lib/unistr/u16-strncmp.c: New file.
109692         * lib/unistr/u32-strncmp.c: New file.
109694         * modules/unistr/u8-strncpy: New file.
109695         * modules/unistr/u16-strncpy: New file.
109696         * modules/unistr/u32-strncpy: New file.
109697         * lib/unistr/u8-strncpy.c: New file.
109698         * lib/unistr/u16-strncpy.c: New file.
109699         * lib/unistr/u32-strncpy.c: New file.
109700         * lib/unistr/u-strncpy.h: New file.
109702         * modules/unistr/u8-strnlen: New file.
109703         * modules/unistr/u16-strnlen: New file.
109704         * modules/unistr/u32-strnlen: New file.
109705         * lib/unistr/u8-strnlen.c: New file.
109706         * lib/unistr/u16-strnlen.c: New file.
109707         * lib/unistr/u32-strnlen.c: New file.
109708         * lib/unistr/u-strnlen.h: New file.
109710         * modules/unistr/u8-strpbrk: New file.
109711         * modules/unistr/u16-strpbrk: New file.
109712         * modules/unistr/u32-strpbrk: New file.
109713         * lib/unistr/u8-strpbrk.c: New file.
109714         * lib/unistr/u16-strpbrk.c: New file.
109715         * lib/unistr/u32-strpbrk.c: New file.
109716         * lib/unistr/u-strpbrk.h: New file.
109718         * modules/unistr/u8-strrchr: New file.
109719         * modules/unistr/u16-strrchr: New file.
109720         * modules/unistr/u32-strrchr: New file.
109721         * lib/unistr/u8-strrchr.c: New file.
109722         * lib/unistr/u16-strrchr.c: New file.
109723         * lib/unistr/u32-strrchr.c: New file.
109725         * modules/unistr/u8-strspn: New file.
109726         * modules/unistr/u16-strspn: New file.
109727         * modules/unistr/u32-strspn: New file.
109728         * lib/unistr/u8-strspn.c: New file.
109729         * lib/unistr/u16-strspn.c: New file.
109730         * lib/unistr/u32-strspn.c: New file.
109731         * lib/unistr/u-strspn.h: New file.
109733         * modules/unistr/u8-strstr: New file.
109734         * modules/unistr/u16-strstr: New file.
109735         * modules/unistr/u32-strstr: New file.
109736         * lib/unistr/u8-strstr.c: New file.
109737         * lib/unistr/u16-strstr.c: New file.
109738         * lib/unistr/u32-strstr.c: New file.
109739         * lib/unistr/u-strstr.h: New file.
109741         * modules/unistr/u8-strtok: New file.
109742         * modules/unistr/u16-strtok: New file.
109743         * modules/unistr/u32-strtok: New file.
109744         * lib/unistr/u8-strtok.c: New file.
109745         * lib/unistr/u16-strtok.c: New file.
109746         * lib/unistr/u32-strtok.c: New file.
109747         * lib/unistr/u-strtok.h: New file.
109749         * modules/unistr/u8-uctomb: New file.
109750         * modules/unistr/u16-uctomb: New file.
109751         * modules/unistr/u32-uctomb: New file.
109752         * lib/unistr/u8-uctomb.c: New file.
109753         * lib/unistr/u16-uctomb.c: New file.
109754         * lib/unistr/u32-uctomb.c: New file.
109756         * MODULES.html.sh (Unicode string functions): Add the new modules.
109758 2007-01-08  Bruno Haible  <bruno@clisp.org>
109760         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109761         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109762         subdirectories.
109764 2007-01-08  Karl Berry  <karl@gnu.org>
109766         * doc/error.texi: mention that main() fns must set program_name
109767         when progname is used.
109769 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109771         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109772         WCTYPE_H is empty, for the benefit of builds from non-distclean
109773         directories.  Problem reported by Eric Blake in
109774         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109776 2007-01-08  Bruno Haible  <bruno@clisp.org>
109778         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109779         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109780         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109781         PROVIDE_CANONICALIZE_FILENAME_MODE.
109782         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109784 2007-01-08  Bruno Haible  <bruno@clisp.org>
109786         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109787         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109788         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109789         * lib/fts.c: Likewise.
109790         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109792 2006-12-25  Bruno Haible  <bruno@clisp.org>
109794         * modules/utf8-ucs4-safe: New file.
109795         * lib/utf8-ucs4-safe.h: New file.
109796         * lib/unistr/utf8-ucs4-safe.c: New file.
109798         * modules/utf16-ucs4-safe: New file.
109799         * lib/utf16-ucs4-safe.h: New file.
109800         * lib/unistr/utf16-ucs4-safe.c: New file.
109802         * MODULES.html.sh (Unicode string functions): Add the new modules.
109804 2007-01-08  Bruno Haible  <bruno@clisp.org>
109806         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109807         (Depends-on): Add unitypes.
109808         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109809         (u8_mbtouc_aux): Move out to separate file.
109810         (u8_mbtouc): Use ucs4_t, uint8_t types.
109811         * lib/unistr/utf8-ucs4.c: New file.
109813         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109814         (Depends-on): Add unitypes.
109815         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109816         (u16_mbtouc_aux): Move out to separate file.
109817         (u16_mbtouc): Use ucs4_t, uint16_t types.
109818         * lib/unistr/utf16-ucs4.c: New file.
109820         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109821         (Depends-on): Add unitypes.
109822         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109823         (u8_uctomb_aux): Move out to separate file.
109824         (u8_uctomb): Use ucs4_t, uint8_t types.
109825         * lib/unistr/ucs4-utf8.c: New file.
109827         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109828         (Depends-on): Add unitypes.
109829         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109830         (u16_uctomb_aux): Move out to separate file.
109831         (u16_uctomb): Use ucs4_t, uint16_t types.
109832         * lib/unistr/ucs4-utf16.c: New file.
109834 2006-12-25  Bruno Haible  <bruno@clisp.org>
109836         * modules/unitypes: New file.
109837         * lib/unitypes.h: New file.
109838         * MODULES.html.sh (func_all_modules): New section "Unicode string
109839         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109840         this section. Add unitypes.
109842 2007-01-08  Bruno Haible  <bruno@clisp.org>
109844         Avoid variable names that conflict with those from libtool.
109845         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109846         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109847         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109848         library_names_spec to acl_library_names_spec, hardcode_* to
109849         acl_hardcode_*.
109850         Reported by Ralf Wildenhues.
109852 2007-01-08  Bruno Haible  <bruno@clisp.org>
109854         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109855         definition.
109856         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109857         definition.
109858         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109859         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109860         definition.
109861         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109862         definition.
109863         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109864         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109865         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109866         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109867         definition.
109868         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109869         definition.
109870         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109871         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109872         GC_USE_<algorithm>.
109873         * lib/gc-libgcrypt.c: Likewise.
109874         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109875         * modules/gc-arctwo (configure.ac): Likewise.
109876         * modules/gc-des (configure.ac): Likewise.
109877         * modules/gc-hmac-md5 (configure.ac): Likewise.
109878         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109879         * modules/gc-md2 (configure.ac): Likewise.
109880         * modules/gc-md4 (configure.ac): Likewise.
109881         * modules/gc-md5 (configure.ac): Likewise.
109882         * modules/gc-random (configure.ac): Likewise.
109883         * modules/gc-rijndael (configure.ac): Likewise.
109884         * modules/gc-sha1 (configure.ac): Likewise.
109886 2007-01-08  Bruno Haible  <bruno@clisp.org>
109888         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109889         macro definition.
109890         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109891         definition.
109892         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109893         definition.
109894         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109895         * modules/fcntl-safer (configure.ac): Likewise.
109896         * modules/fopen-safer (configure.ac): Likewise.
109897         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109898         GNULIB_FWRITEERROR macro definition.
109900 2007-01-08  Bruno Haible  <bruno@clisp.org>
109902         * m4/gnulib-common.m4: New file.
109903         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109904         (func_get_filelist): Add m4/gnulib-common.m4.
109906 2007-01-08  Bruno Haible  <bruno@clisp.org>
109908         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109909         command.
109911 2007-01-08  Jim Meyering  <jim@meyering.net>
109913         Use a more robust test for a "can't happen" condition.
109914         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109915         narrowed the st_size value.  Presuming the "can't happen" condition
109916         is true, that narrowing could conceivably convert an invalid st_size
109917         value into a valid one.  Instead, use a change based on Matthew
109918         Woehlke's original patch.
109920         Slight readability improvement: use an assert-like macro
109921         in place of literal "abort ()" uses.
109922         * lib/fts.c (fts_assert): Define.
109923         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109924         Use this macro instead of a bare 'abort'.
109926 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109928         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109929         simply work around them.
109930         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109931         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109932         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109933         declaring.
109934         Don't bother to define as macros, since the standard doesn't require it.
109935         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109936         longer worry about IRIX 5.3.
109937         (HAVE_WCTYPE_CTMP_BUG): Remove.
109939 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109941         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109942         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109943         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109944         Problems reported by Georg Schwarz for IRIX 5.3.
109946         * gnulib-tool (autoconf_minversion): Take the maximum version number
109947         found, not the minimum.  Problem reported by James Youngman.
109949 2007-01-03  Karl Berry  <karl@gnu.org>
109951         * doc/error.texi: new file, explaining interaction with progname.
109952         * doc/gnulib.texi: include it.  Update copyright.
109954 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109956         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109957         AC_CANONICAL_HOST, to improve autobuild outputs.
109959 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109960             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109962         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109963         sockets, server sockets, and other file descriptors.  Count errors
109964         to compute the return value.  Reorder the code a bit to be easier
109965         to follow.  Don't set event bits that were not requested (except
109966         POLLERR and POLLHUP).
109968 2007-01-01  Bruno Haible  <bruno@clisp.org>
109970         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109972 2007-01-03  Jim Meyering  <jim@meyering.net>
109974         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109976 2007-01-02  Bruno Haible  <bruno@clisp.org>
109978         * modules/settime (Include): Require timespec.h.
109979         * modules/nanosleep (Include): Likewise.
109981 2007-01-01  Bruno Haible  <bruno@clisp.org>
109983         * gnulib-tool (func_emit_copyright_notice): Bump year.
109984         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109986 2007-01-01  Bruno Haible  <bruno@clisp.org>
109988         Improve support for OpenBSD.
109989         * build-aux/config.rpath (libname_spec): Export.
109990         (library_names_spec): New variable. Export.
109991         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109992         library_names_spec from the config.rpath output. Locate shared library
109993         through the name pattern in library_names_spec.
109995 2007-01-01  Eric Blake  <ebb9@byu.net>
109997         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109999 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
110001         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
110002         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
110003         assume the C locale, and avoid an "eval" that could cause trouble.
110004         Problem with SORT reported by Bob Proulx.
110006         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
110007         Define.  Trivial patch from Henning Nielsen Lund, originally
110008         sent to bug-grep@gnu.org today.
110010 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
110012         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
110013         struct stat.  Problem reported by Henning Nielsen Lund.
110014         * lib/acl.c: Include acl.h first, to check interface.  Don't
110015         bother to include sys/types.h and sys/stat.h again.
110017 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
110019         Import the following change from libc; problem reported by
110020         Sven Verdoolaege.
110022         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
110024         [BZ #1373]
110025         * lib/argp.h: Remove __NTH for __argp_usage inline function.
110027 2006-12-28  Jim Meyering  <jim@meyering.net>
110029         * build-aux/announce-gen: Do not assume that the package
110030         builds any of tar.gz, tar.bz2, and .xdelta files.
110031         Suggestion from Simon Josefsson.
110033 2006-12-28  Simon Josefsson  <simon@josefsson.org>
110035         * modules/announce-gen: New file.
110037 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110039         * lib/mbchar.h: Just include <wctype.h>; the wctype module
110040         handles its gotchas now.
110041         * lib/mbswidth.c: Likewise.
110042         * lib/wcwidth.h: Likewise.
110043         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
110044         and iswcntrl; the wctype module does this stuff now.
110045         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110047         * modules/mbchar (Depends-on): Add wctype.
110048         * modules/mbswidth (Depends-on): Likewise.
110049         * modules/wcwidth (Depends-on): Likewise.
110051 2006-12-27  Eric Blake  <ebb9@byu.net>
110053         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
110054         module uses more than what <wctype.h> is required to provide.
110056 2006-12-26  Eric Blake  <ebb9@byu.net>
110058         * gnulib-tool (sed_extract_prog): Avoid space-tab.
110060 2006-12-26  Eric Blake  <ebb9@byu.net>
110062         * modules/absolute-header: New module.
110063         * modules/fcntl (Depends-on): Depend on it.
110064         * modules/inttypes (Depends-on): Likewise.
110065         * modules/stdint (Depends-on): Likewise.
110066         * modules/sys_stat (Depends-on): Likewise.
110067         * modules/wctype (Depends-on): Likewise.
110068         * MODULES.html.sh (Support for building libraries and
110069         executables): Document it.
110071 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
110073         * gnulib-tool (SED): Remove, undoing previous change.
110074         The problem was that it broke coreutils on Solaris, because
110075         "sed --posix" leaked into a makefile.
110076         (sed): New alias, if 'alias' and GNU sed.
110078 2006-12-24  Jim Meyering  <jim@meyering.net>
110080         Work around an fchownat bug in glibc-2.4:
110081         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
110082         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
110083         in spite of the -P option.
110084         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
110085         New macros.
110086         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
110087         * modules/openat (Files): Add lib/fchownat.c.
110088         * lib/openat.c (fchownat): Don't define here.  Move to...
110089         * lib/fchownat.c: ...this new file.
110091 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
110093         Fix bug reported by Bruno Haible in
110094         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
110095         where quotearg.c didn't compile on Mac OS X 10.2 because it
110096         lacks <wchar.h> and wint_t.
110097         * lib/wctype_.h (__wctype_wint_t): New type.
110098         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
110099         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
110100         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
110101         Arg is now of type __wctype_wint_t, not wint_t.
110102         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
110103         substitute HAVE_WINT_T.
110104         * modules/wctype (Files): Add m4/wint_t.m4.
110105         (wctype.h): Substitute HAVE_WINT_T.
110107 2006-12-23  Bruno Haible  <bruno@clisp.org>
110109         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
110111 2006-12-23  Bruno Haible  <bruno@clisp.org>
110113         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
110114         S_ISLNK.
110115         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
110116         mingw.
110118 2006-12-22  Bruno Haible  <bruno@clisp.org>
110120         * lib/copy-file.c: Include acl.h.
110121         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
110122         Close the file descriptors only after being done with copy_acl.
110123         * modules/copy-file (Depends-on): Add acl.
110125 2006-12-22  Bruno Haible  <bruno@clisp.org>
110127         * gnulib-tool (SED): New variable.
110128         Use $SED instead of sed everywhere.
110130 2006-12-22  Bruno Haible  <bruno@clisp.org>
110132         * modules/no-c++: New file.
110133         * m4/no-c++.m4: New file.
110134         * MODULES.html.sh (Support for building libraries and executables):
110135         Add no-c++.
110137 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
110139         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110140         Include <limits.h>, and use its INT_MAX to rewrite the
110141         j loop so that it does not overflow 'int'.  Problem reported by
110142         Ralf Wildenhues in
110143         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
110144         Play it safe by shifting left by 1 rather than multiplying by 2,
110145         as GCC is less likely to optimize this away when the value
110146         is signed (when it assumes overflow leads to undefined behavior).
110147         Also, don't assume time_t uses two's complement.
110149 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
110151         * MODULES.html.sh: New module wctype.
110152         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
110153         * lib/fnmatch.c: Don't bother to include <wchar.h> before
110154         <wctype.h>, since the new wctype module should fix this.
110155         * lib/quotearg.c: Include <wctype.h> unconditionally, since
110156         the wctype module should arrange for it.
110157         * lib/regex_internal.h: Likewise.
110158         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
110159         since the wctype module should handle this now.
110160         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
110161         * modules/fnmatch (Depends-on): Add wctype.
110162         * modules/quotearg (Depends-on): Likewise.
110163         * modules/regex (Depends-on): Likewise.
110165 2006-12-19  Bruno Haible  <bruno@clisp.org>
110167         * lib/strdup.h [C++]: Wrap definitions in extern "C".
110168         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
110170 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110172         * modules/savewd (Depends-on): Fix dependency on fcntl.
110174 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110176         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
110177         conforms to C99, rather than relying on the user's environment
110178         setting of STDINT_H.
110180 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110181         and Eric Blake  <ebb9@byu.net>
110183         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
110184         This is more consistent with the other defines here.
110185         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
110186         Port to z/OS.  Problem reported by Paul Gilmartin.
110187         Change local vars to use gl_ prefix rather than ac_.
110188         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
110189         with other defines.
110190         * modules/double-slash-root: New module.
110191         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110192         (Depends-on): Add double-slash-root.
110193         * MODULES.html.sh (File system functions): Mention new module.
110195 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
110197         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
110198         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
110199         This is for the benefit of gzip, which doesn't do i18n.
110201 2006-12-12  Jim Meyering  <jim@meyering.net>
110203         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
110204         Reported by Andreas Schwab <schwab@suse.de>.
110206 2006-12-12  Bruno Haible  <bruno@clisp.org>
110208         Merge these changes.
110209         2006-09-05  Bruno Haible  <bruno@clisp.org>
110210         * lib/iconvme.c (iconv_string): No need to save and restore errno when
110211         iconv_alloc succeeded.
110212         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
110213         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
110214         test for " && dest " at the end - dest is always != NULL there. Call
110215         iconv with 4xNULL arguments initially, to reset the state. Call iconv
110216         with 2xNULL arguments, also to flush the state storage. Handle the
110217         IRIX iconv behaviour. Realloc the final result, to throw away unused
110218         memory.
110220 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
110222         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
110223         and fchmodat unconditionally, since glibc 2.4 has them.
110224         Problem reported by Arkadiusz Miskiewicz.
110226 2006-12-10  Bruno Haible  <bruno@clisp.org>
110228         * gnulib-tool (func_import): Show the include files only for those
110229         modules that are copied and specified.
110230         Reported by Karl Berry.
110232 2006-12-08  Jim Meyering  <jim@meyering.net>
110234         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
110235         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
110237         * build-aux/announce-gen: Add two new options, both optional:
110238         --bootstrap-tools=TOOL_LIST
110239               a comma-separated list of tools, e.g.,
110240               autoconf,automake,bison,gnulib
110241         --gnulib-snapshot-date=DATE
110242               if gnulib is in the bootstrap tool list,
110243               then report this as the snapshot date.
110244               If not specified, use the current date/time.
110245               If you specify a date here, be sure it's UTC.
110247 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110249         * tests/test-argp-2.sh: Fix test to match actual output.
110250         (func_compare): Fix sed script to be portable.
110252 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
110254         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
110255         workaround for this case.  It is not autoconfigured now; offhand
110256         it's hard to see how to autoconfigure it.
110258 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
110260         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
110261         a directory that is about to be chowned.  Such a directory's
110262         initial file permissions should permit the owner only and this
110263         should not be changed until after the chown, since the group and
110264         other bits would be incorrect if they granted permission before
110265         the chown.
110267         Fix porting problem for iswctype reported by Georg Schwarz in:
110268         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
110269         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
110270         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
110271         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
110272         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
110274 2006-12-03  Jim Meyering  <jim@meyering.net>
110276         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
110277         p->fts_statp may not yet be defined.
110278         (fts_read): Instead, set it in the caller, once p->fts_statp is
110279         sure to be defined, and corresponds to a top-level directory.
110280         This bug made du -x fail.  Here's the coreutils test case:
110281         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
110282         Reported by Mike Frysinger.
110284 2006-12-01  Jim Meyering  <jim@meyering.net>
110286         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
110287         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
110288         Reported by Simon Josefsson.
110290 2006-11-30  Jim Meyering  <jim@meyering.net>
110292         * m4/warning.m4: Use the all-permissive copyright notice
110293         recommended by RMS (rather than LGPL).
110294         * m4/vararrays.m4: Likewise.
110295         * m4/flexmember.m4: Likewise.
110297 2006-11-29  Bruno Haible  <bruno@clisp.org>
110299         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110300         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
110301         using +=.
110302         Reported by Simon Josefsson <simon@josefsson.org>.
110304 2006-11-28  James Youngman  <jay@gnu.org>
110306         * README: Advise users that they might find the bug-gnulib@gnu.org
110307         and autotools-announce@gnu.org mailing lists useful.
110309 2006-11-28  Bruno Haible  <bruno@clisp.org>
110311         * m4/ptrdiff_max.m4: Remove file.
110313 2006-11-21  Bruno Haible  <bruno@clisp.org>
110315         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
110316         _AC_COMPUTE_INT.
110317         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110318         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
110319         _AC_COMPUTE_INT.
110320         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110321         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
110322         _AC_COMPUTE_INT.
110323         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110325 2006-11-28  Jim Meyering  <jim@meyering.net>
110327         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
110328         warning from "gcc -Wshadow" about shadowing the builtin.
110330 2006-11-27  Bruno Haible  <bruno@clisp.org>
110332         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
110333         _AC_COMPUTE_INT.
110334         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110336 2006-11-27  Bruno Haible  <bruno@clisp.org>
110337             Paul Eggert  <eggert@cs.ucla.edu>
110339         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
110341 2006-11-26  Bruno Haible  <bruno@clisp.org>
110343         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110344         noinst_LTLIBRARIES.
110346 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
110347             Bruno Haible  <bruno@clisp.org>
110349         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
110350         if compiling with "gcc -ansi".
110352 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
110354         Fix some incompatibilities with gcc -ansi -pedantic.
110355         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
110356         if compiling pedantically with GCC, unless it's C99 or later.
110357         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
110358         it mishandles gcc -ansi -pedantic as well.
110359         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
110360         if gcc -pedantic.
110361         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110362         initializers for struct if -pedantic, unless it's C99 or later.
110364 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110366         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110367         Don't close an fd more than once. Identical atimes indicate
110368         success, not failure.
110370 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110372         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110374 2006-11-23  Jim Meyering  <jim@meyering.net>
110376         * build-aux/announce-gen: New file.  From coreutils.
110378 2006-11-22  Jim Meyering  <jim@meyering.net>
110380         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110381         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110382         (fts_read): Use a temporary to narrow the overused st_size member
110383         before using it in a switch statement.  Reported by Matthew Woehlke.
110385         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110386         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110388 2006-11-20  Bruno Haible  <bruno@clisp.org>
110390         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110391         changequote instead of pairs of brackets.
110392         Reported by Andreas Schwab <schwab@suse.de>.
110394 2006-11-21  Jim Meyering  <jim@meyering.net>
110396         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110397         so as to remain compatible with older compilers.
110398         Patch from Michael Deutschmann.
110400 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110402         * MODULES.html.sh (File system functions): Add openat.
110404         * lib/openat.h (rpl_fstatat): New macro, if
110405         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110406         (fstatat): Define to rpl_fstatat under the same conditions,
110407         unless COMPILING_FSTATAT.
110408         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110409         seems to have the bug.
110410         * lib/fstatat.c: New file.
110411         * modules/openat (Files): Add it.
110413 2006-11-20  Bruno Haible  <bruno@clisp.org>
110415         * Makefile: New file.
110417 2006-11-20  Jim Meyering  <jim@meyering.net>
110419         The beginnings of syntax-related checks for gnulib.
110420         * lib/Makefile: New file.
110421         * lib/t-idcache: New script.  Ensure that the two halves of
110422         idcache.c stay in sync.
110424         * lib/idcache.c: Adjust comments in user- and group- portions to
110425         be more accurate, and to be consistent with one another.
110427 2006-11-20  Jim Meyering  <jim@meyering.net>
110429         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110430         continue using the flexible array member (thus, this module performs
110431         half as many malloc calls), with the addition that...
110432         (getgroup, getuser): Consistently record a non-match via an empty
110433         "name" string, and map an empty string match to a NULL return value.
110434         * modules/idcache (Depends-on): Re-add flexmember.
110436         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110437         (getuidbyname, getgroup, getgidbyname): Likewise.
110439         Use cleaner syntax: NULL rather than 0.
110440         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110442 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110444         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110445         It mishandled the case where the group was missing.
110446         Problem reported by Greg Schafer.
110447         * modules/idcache: Likewise.
110449 2006-11-18  Jim Meyering  <jim@meyering.net>
110451         * check-module (%exempt_header): Add exception for some
110452         conditionally-included headers.
110454         * modules/i-ring (Depends-on): Add verify.
110455         (License): Change to LGPL.
110457 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110459         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110460         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110461         and inttostr.h.  Use snprintf rather than uinttostr, so that
110462         LGPLed code doesn't depend on GPLed.
110464 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110466         * modules/inline (License): Change from GPL to LGPL.
110468 2006-11-17  Jim Meyering  <jim@meyering.net>
110470         * modules/d-type (License): Switch to LGPL.
110472 2006-11-15  Bruno Haible  <bruno@clisp.org>
110474         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
110476 2006-11-15  Eric Blake  <ebb9@byu.net>
110478         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
110479         the module dependency.
110481 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110482             Bruno Haible  <bruno@clisp.org>
110484         * gnulib-tool (func_create_testdir): Add license consistency check.
110486 2006-11-15  Eric Blake  <ebb9@byu.net>
110488         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
110489         random "(cached)" in configure output.
110491 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110493         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
110494         test for conforming inttypes.h is both announced and cached.
110496         * MODULES.html.sh (seen_modules, seen_files): New variables.
110497         (func_module): Rewrite to use a few less gnulib-tool and sed
110498         invocations.  Avoid a couple of quadratic algorithms for ...
110499         (missed_modules, missed_files): ... these, with ...
110500         (func_append, func_tmpdir): ... these new functions, from
110501         gnulib-tool.  Analogously, install traps for cleanup.
110503         * tests/test-gc.c (main): Remove unused variables.
110504         * tests/test-read-file.c: Include stdlib.h, for 'free'.
110506 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
110508         * modules/inttostr (License): Change to LGPL.
110510 2006-11-14  Eric Blake  <ebb9@byu.net>
110512         * modules/tempname (License): Change to LGPL.
110514 2006-11-14  Eric Blake  <ebb9@byu.net>
110516         * doc/functions.texi (Function Portability): *printf functions on
110517         Cygwin now understand all POSIX size specifiers.
110519 2006-11-14  Bruno Haible  <bruno@clisp.org>
110521         * modules/c-ctype (License): Change to LGPL.
110523 2006-11-12  Bruno Haible  <bruno@clisp.org>
110525         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
110526         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
110527         for GNOME libraries, for which the include files are installed in
110528         subdirectories of $prefix/include.
110530 2006-11-12  Bruno Haible  <bruno@clisp.org>
110532         * m4/lib-link.m4: Require at least autoconf-2.54.
110533         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
110534         name to underscores for the --with option.
110536 2006-11-13  Bruno Haible  <bruno@clisp.org>
110538         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
110539         the tests directory.
110540         Reported by Ralf Wildenhues.
110542 2006-11-13  Bruno Haible  <bruno@clisp.org>
110544         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
110545         (func_emit_initmacro_end): Undo the override here.
110546         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
110547         Works around the famous automake error in coreutils.
110549 2006-11-13  Eric Blake  <ebb9@byu.net>
110551         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
110552         element, not its node.
110554 2006-11-12  Bruno Haible  <bruno@clisp.org>
110556         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
110557         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
110559 2006-11-12  Bruno Haible  <bruno@clisp.org>
110561         * gnulib-tool: New option --local-symlink.
110562         (func_usage): Document it.
110563         (lsymbolic): New variable.
110564         (func_import, func_create_testdir): If --symlink was not specified,
110565         test whether --local-symlink was specified and the file comes from
110566         the local_gnulib_dir.
110568 2006-11-12  Bruno Haible  <bruno@clisp.org>
110570         * gnulib-tool (func_ln): New function.
110571         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
110573 2006-11-12  Bruno Haible  <bruno@clisp.org>
110575         Finish support for source files in subdirectories.
110576         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
110577         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
110578         AUTOMAKE_OPTIONS.
110579         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
110581 2006-11-12  Bruno Haible  <bruno@clisp.org>
110583         * gnulib-tool (func_get_automake_snippet): Synthesize also an
110584         EXTRA_lib_SOURCES augmentation.
110585         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
110587 2006-11-12  Jim Meyering  <jim@meyering.net>
110589         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
110590         file descriptors.  This also averts a failure on systems with
110591         native openat support when a traversed directory lacks "x" access.
110592         * lib/fts_.h: Include "i-ring.h"
110593         (struct FTS) [fts_fd_ring]: New member.
110594         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
110595         (FCHDIR): Add parentheses.
110596         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
110597         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
110598         When descending, rather than simply closing the previous
110599         fts_cwd_fd value, push that file descriptor onto the ring.
110600         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
110601         (fts_open): Initialize the new fd_ring member.
110602         (fts_close): Clear the ring.
110603         (fts_safe_changedir): When possible, use our new fd_ring to skip
110604         the diropen and fstat and dev/ino comparison that would normally
110605         accompany a virtual `chdir ("..")'.
110607         * modules/fts (Depends-on): Add i-ring.
110608         * modules/i-ring: New module.
110609         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110610         * m4/i-ring.m4: New file.
110612 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110614         * gnulib-tool (func_create_testdir): Fix replacement of
110615         `build-aux' in configure.ac.  Run autotools in gltests
110616         subdirectory.
110617         (func_create_testdir, func_create_megatestdir, test): There is
110618         no need for '--force' in most autotool invocations in a new
110619         tree.  Actually fail the whole test if any of the tools, or the
110620         configure or make stages fail.
110622         Sync from Automake.
110623         * build-aux/gnupload: Revert last change.  Add pointer to upload
110624         instructions of the GNU Maintenance Instructions.
110625         Suggestion by Karl Berry.
110627 2006-11-10  Jim Meyering  <jim@meyering.net>
110629         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
110631 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110633         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
110634         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
110635         (bind_textdomain_codeset) [! ENABLE_NLS]:
110636         Evaluate all the arguments.  That way, callers get compatible behavior
110637         if the arguments have side effects.  Also, it avoids some GCC
110638         diagnostics in some cases; Joel E. Denny reported problems when Bison
110639         was configured with --enable-gcc-warnigs.
110641 2006-11-10  Jim Meyering  <jim@meyering.net>
110643         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
110644         relevant options in CFLAGS (like -O, -fno-inline) are taken into
110645         account.
110647 2006-11-10  Jim Meyering  <jim@meyering.net>
110649         * modules/inline: New file/module.
110650         * modules/xalloc (Files): Remove m4/inline.m4.
110651         (Depends-on): Add inline, instead.
110652         * modules/oset: Likewise.
110653         * modules/list: Likewise.
110655 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110657         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
110658         Problem reported by Matthew Woehlke.
110660 2006-11-09  Bruno Haible  <bruno@clisp.org>
110662         * lib/tempname.c (gen_tempname): Remove variant that invokes
110663         __gen_tempname.
110664         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
110665         __gen_tempname.
110667 2006-11-08  Bruno Haible  <bruno@clisp.org>
110669         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
110670         to 'yes' instead of 'cross-compiling'.
110672 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
110674         * lib/quotearg.h (quotearg_free): New decl.
110675         * lib/quotearg.c (quotearg_free): New function.
110676         (slot0, nslots, slotvec0, slotvec):
110677         Now file-scope so that quotearg_free can get at them.
110679 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110681         Sync from Automake.
110682         * build-aux/gnupload: Add missing 'gnu' to example URL.
110683         Report by Karl Berry.
110685 2006-11-08  Bruno Haible  <bruno@clisp.org>
110687         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110688         Suggested by Paul Eggert.
110690 2006-11-08  Jim Meyering  <jim@meyering.net>
110692         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110693         It's already included if !_LIBC.
110694         (fts_safe_changedir): Add a comment.
110696 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110699         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110700         Matthew Woehlke.
110702         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110703         definitions up, to avoid colliding with change below.
110704         (static_inline) [HAVE_INLINE]: New macro.
110705         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110706         Provide extern decls when !HAVE_INLINE.  Do not define unless
110707         static_inline is defined, either by us or by xmalloc.c.  Use
110708         static_inline rather than static inline.
110709         (XCALLOC): Optimize sizeof(T) = 1 case.
110710         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110712 2006-11-07  Bruno Haible  <bruno@clisp.org>
110714         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110715         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110716         AC_C_INLINE.
110717         * modules/xalloc (Files): Add m4/inline.m4.
110719 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110721         * README: Fix typo.
110722         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110723         (Miscellanous Notes): ...from this.
110725 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110727         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110728         Mention that offsetof should be used instead of sizeof.
110729         From Bruno Haible.
110731 2006-11-07  Bruno Haible  <bruno@clisp.org>
110733         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110735 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110737         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110738         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110739         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110740         (gl_tree_add_before, gl_tree_add_after):
110741         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110742         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110743         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110744         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110745         (gl_linked_add_after, gl_linked_add_at): Likewise.
110746         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110747         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110748         (gl_tree_add_before, gl_tree_add_after): Likewise.
110749         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110750         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110751         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110753 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110755         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110757 2006-11-06  Bruno Haible  <bruno@clisp.org>
110759         * m4/inline.m4: New file.
110760         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110761         * modules/list (Files): Add m4/inline.m4.
110762         * modules/oset (Files): Likewise.
110764 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110766         * lib/idcache.c: Include <stddef.h>, for offsetof.
110767         (struct userid.name): Change from char * to a flexible array member.
110768         All uses changed.
110769         * modules/idcache (Depends-on): Add flexmember.
110771         * MODULES.html.sh (Core language properties): New module flexmember.
110772         * modules/flexmember, m4/flexmember.m4: New files.
110774         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110775         inline functions that are identical with the old xnmalloc_inline,
110776         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110777         that we can avoid some unnecessary integer multiplications and
110778         divisions in the common case where the element size is known at
110779         compile time.
110780         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110781         needed.
110782         (xnboundedmalloc): Remove.
110783         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110784         arguments, for consistency with rest of this header.
110785         (xcharalloc): Rewrite using XNMALLOC.
110786         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110787         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110788         versions have been moved to lib/xalloc.h and renamed to be the
110789         non-*_inline versions.
110790         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110791         and xnrealloc functions, since those functions are now inline and
110792         now call us.
110793         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110794         renaming described above.
110795         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110796         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110797         captures the dependency in AC_C_INLINE.
110799         New module canonicalize-lgpl, proposed by Charles Wilson in
110800         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110801         with a few small changes afterwards.
110802         * MODULES.html.sh (File system functions): New module
110803         canonicalize-lgpl.
110804         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110805         and canonicalize_file_name.
110806         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110807         * modules/canonicalize-lgpl: New files.
110809 2006-11-05  Bruno Haible  <bruno@clisp.org>
110811         * gnulib-tool (func_import, func_create_testdir): Create directories
110812         also for files in subdirectories of lib/.
110814 2006-11-05  Bruno Haible  <bruno@clisp.org>
110816         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110817         ANSI C compliant.
110819 2006-11-03  Bruno Haible  <bruno@clisp.org>
110821         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110822         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110823         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110824         (xnboundedmalloc): New inline function.
110825         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110826         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110827         xmalloc.
110828         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110829         xmalloc.
110830         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110831         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110832         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110833         xmalloc.
110834         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110835         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110836         xmalloc.
110837         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110838         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110839         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110840         xmalloc.
110841         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110842         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110843         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110844         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110845         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110846         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110847         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110849 2006-11-03  Bruno Haible  <bruno@clisp.org>
110851         * lib/c-ctype.h [C++]: Define functions without name mangling.
110852         * lib/fwriteerror.h [C++]: Likewise.
110853         * lib/gcd.h [C++]: Likewise.
110854         * lib/linebreak.h [C++]: Likewise.
110856 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110858         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110859         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110860         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110861         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110862         Check for functions and headers just once.
110863         Check for declaration of canonicalize_file_name.
110864         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110866 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110868         * gnulib-tool (func_import): Fix typo in actioncmd.
110870 2006-11-02  Bruno Haible  <bruno@clisp.org>
110872         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110873         newline sequence in the Makefile.am snippet as a space, like "make"
110874         does.
110875         Reported by Roger Persson <perrog@gmail.com>.
110877 2006-11-01  Bruno Haible  <bruno@clisp.org>
110879         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110880         already declared in <string.h>.
110881         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110883 2006-11-01  Bruno Haible  <bruno@clisp.org>
110885         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110886         * lib/strcase.h: Include <string.h>.
110887         (strcasecmp): Define to rpl_strcasecmp here.
110889 2006-11-01  Bruno Haible  <bruno@clisp.org>
110891         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110893 2006-11-01  Eric Blake  <ebb9@byu.net>
110895         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110899 2006-10-29  Bruno Haible  <bruno@clisp.org>
110901         Make it compile in C++ mode.
110902         * lib/full-write.c (full_rw): Add a cast.
110904 2006-11-01  Bruno Haible  <bruno@clisp.org>
110906         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110907         be POSIX compliant.
110908         Reported by Roger Persson <perrog@gmail.com>.
110910 2006-11-01  Eric Blake  <ebb9@byu.net>
110912         * lib/getopt_.h: Fix comments.
110914 2006-10-31  Eric Blake  <ebb9@byu.net>
110916         * modules/tmpdir (Depends-on): Add sys_stat.
110917         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110918         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110919         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110920         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110921         tempname.
110923 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110925         Avoid some C++ diagnostics reported by Bruno Haible.
110926         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110927         xmalloc.
110928         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110929         (struct slotvec): Move to top level.
110930         (quotearg_n_options): Rewrite to avoid xmalloc.
110931         * lib/xalloc.h (xcharalloc): New function.
110932         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110933         [defined __cplusplus]: Add function template that provides result
110934         type propagation.  This part of the change is from Bruno Haible.
110936 2006-10-29  Bruno Haible  <bruno@clisp.org>
110938         Make it compile in C++ mode.
110939         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110940         * lib/strnlen1.c (strnlen1): Cast memchr result.
110941         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110942         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110943         (create_temp_dir): Rename local variable 'template'.
110944         (compile_csharp_using_sscli): Add cast.
110945         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110946         * lib/findprog.c (find_in_path): Likewise.
110947         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110948         * lib/wait-process.c (register_slave_subprocess): Likewise.
110950 2006-10-22  Bruno Haible  <bruno@clisp.org>
110952         * modules/tsearch: New file.
110953         * lib/tsearch.h: New file.
110954         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110955         * m4/tsearch.m4: New file.
110956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110958 2006-10-29  Eric Blake  <ebb9@byu.net>
110960         * lib/arcfour.c: Assume config.h.
110961         * lib/arctwo.c: Likewise.
110962         * lib/base64.c: Likewise.
110963         * lib/check-version.c: Likewise.
110964         * lib/crc.c: Likewise.
110965         * lib/des.c: Likewise.
110966         * lib/gc-gnulib.c: Likewise.
110967         * lib/gc-libgcrypt.c: Likewise.
110968         * lib/gc-pbkdf2-sha1.c: Likewise.
110969         * lib/getaddrinfo.c: Likewise.
110970         * lib/getdelim.c: Likewise.
110971         * lib/getline.c: Likewise.
110972         * lib/hmac-md5.c: Likewise.
110973         * lib/hmac-sha1.c: Likewise.
110974         * lib/iconvme.c: Likewise.
110975         * lib/md2.c: Likewise.
110976         * lib/md4.c: Likewise.
110977         * lib/memxor.c: Likewise.
110978         * lib/read-file.c: Likewise.
110979         * lib/readline.c: Likewise.
110980         * lib/rijndael-alg-fst.c: Likewise.
110981         * lib/rijndael-api-fst.c: Likewise.
110982         * lib/xgetdomainname.c: Likewise.
110984 2006-10-28  Eric Blake  <ebb9@byu.net>
110986         * lib/xstrndup.c: Assume config.h.
110988 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110990         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110991         stat-macros.h is now for our own macros, whereas stat_h is for
110992         macros in the <sys/stat.h> name space.
110993         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110994         (STAT_MACROS_H): Remove.
110995         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110996         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110997         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110998         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110999         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
111000         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
111001         Move these macros to ...
111002         * lib/stat_.h: here.  Don't include stat-macros.h.
111003         * lib/canonicalize.c: Don't include stat-macros.h.
111004         * lib/chown.c: Likewise.
111005         * lib/euidaccess.c: Likewise.
111006         * lib/file-type.c: Likewise.
111007         * lib/filemode.c: Likewise.
111008         * lib/glob.c: Likewise.
111009         * lib/isapipe.c: Likewise.
111010         * lib/lchown.c: Likewise.
111011         * lib/lstat.c: Likewise.
111012         * lib/mkdir-p.c: Likewise.
111013         * lib/rmdir.c: Likewise.
111014         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
111015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
111016         unless mkdir isn't declared, to speed up 'configure'.
111017         Always create sys/stat.h, since it's unlikely any real sys/stat.h
111018         would define all the S_* symbols.
111019         * modules/canonicalize (Depends-on):
111020         Depend on sys_stat, not stat-macros.
111021         * modules/chown: Likewise.
111022         * modules/euidaccess: Likewise.
111023         * modules/filemode: Likewise.
111024         * modules/file-type: Likewise.
111025         * modules/glob: Likewise.
111026         * modules/isapipe: Likewise.
111027         * modules/lchown: Likewise.
111028         * modules/lstat: Likewise.
111029         * modules/mkancesdirs: Likewise.
111030         * modules/rmdir: Likewise.
111031         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
111032         * modules/modechange: Likewise.
111033         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
111034         (configure.ac): Remove gl_STAT_MACROS.
111035         * modules/sys_stat (Depends-on): Remove stat-macros.
111037 2006-10-27  Bruno Haible  <bruno@clisp.org>
111039         * m4/signed.m4: Remove file.
111040         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
111041         invocation.
111042         * modules/vasnprintf (Files): Remove m4/signed.m4.
111044 2006-10-27  Bruno Haible  <bruno@clisp.org>
111046         Update to GNU gettext 0.16.
111047         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
111048         m4/inttypes-h.m4, m4/signed.m4.
111049         * m4/gettext.m4: Update to GNU gettext 0.16.
111050         * m4/intl.m4: New file, from GNU gettext.
111051         * m4/intldir.m4: New file, from GNU gettext.
111052         * config/srclist.txt: Update
111054 2006-10-27  Eric Blake  <ebb9@byu.net>
111056         * MODULES.html.sh: Document tempname.
111057         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
111058         dependencies.
111059         (Files): Move lib/tempname.c...
111060         * modules/tempname: ...to this new module.
111061         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
111062         (gl_PREREQ_TEMPNAME): Move...
111063         * m4/tempname.m4: ...to this new file.
111064         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
111065         * modules/sys_stat (Depends-on): Add stat-macros.
111066         * lib/stat_.h (includes): Pick up stat macros.
111067         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
111068         if stat macros are broken.
111069         * lib/tempname.c (includes): No need to include "stat-macros.h".
111070         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
111071         (direxists, __path_search) [!_LIBC]: Don't compile these in
111072         gnulib; the tmpdir module covers that.
111073         * lib/tempname.h: New file.
111075 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
111077         * COPYING: Explain how gnulib-tool converts licence headers.
111078         Almost all wording by Eric Blake.
111080 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
111082         * lib/mbchar.h (is_basic_table): Make read-only.
111083         * lib/mbchar.c (is_basic_table): Likewise.
111084         Reported by John Darrington.
111086 2006-10-25  Bruno Haible  <bruno@clisp.org>
111088         * lib/progname.h (set_program_name): Undefine before defining.
111090 2006-10-25  Bruno Haible  <bruno@clisp.org>
111092         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
111093         false for non-gcc C++ compilers.
111094         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
111096 2006-10-24  Bruno Haible  <bruno@clisp.org>
111098         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
111099         iconv implementations like Irix iconv.
111101 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111103         * modules/vararrays: New file.
111104         * m4/vararrays.m4: New file, taken from diffutils.
111105         * MODULES.html.sh: New module vararrays.
111107 2006-10-24  Karl Berry  <karl@gnu.org>
111109         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
111110         Don't call GNU Unix.
111112 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111114         * users.txt: Add Libtool.
111116         Sync from Libtool:
111118         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111120         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
111121         to gnulib's policy of including config.h unconditionally.
111123 2006-10-24  Bruno Haible  <bruno@clisp.org>
111125         * modules/wcwidth (Files): Add m4/wint_t.m4.
111126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
111127         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
111129 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111131         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
111132         to pacify GCC with some -W flags enabled.  Problem reported by
111133         Bruno Haible.
111135 2006-10-24  Jim Meyering  <jim@meyering.net>
111137         * MODULES.html.sh: Remove uinttostr.  It's not a module.
111138         Reported by Karl Berry.
111140 2006-10-23  Bruno Haible  <bruno@clisp.org>
111142         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
111144 2006-10-24  Bruno Haible  <bruno@clisp.org>
111146         * lib/gl_list.h: Use C comment style, not C++ comment style.
111148 2006-10-23  Eric Blake  <ebb9@byu.net>
111150         * lib/getaddrinfo.c (includes): Add missing include.
111152 2006-10-23  Bruno Haible  <bruno@clisp.org>
111153             Paul Eggert  <eggert@cs.ucla.edu>
111155         Ability to rename obstack_free.
111156         * lib/obstack.h (__obstack_free): New macro. Declare instead of
111157         obstack_free.
111158         (obstack_free): Invoke the __obstack_free macro.
111159         * lib/obstack.c (obstack_free): Use __obstack_free macro.
111161 2006-10-23  Bruno Haible  <bruno@clisp.org>
111162             Paul Eggert  <eggert@cs.ucla.edu>
111164         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
111165         __argc, __argv from the declaration. (They are defined as macros on
111166         mingw.)
111168 2006-10-22  Bruno Haible  <bruno@clisp.org>
111170         * doc/gnulib-intro.texi: New file.
111171         * doc/gnulib.texi: Include it.
111173 2006-10-21  Bruno Haible  <bruno@clisp.org>
111175         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
111176         "Introduction", "Miscellanous Notes", "Particular Modules".
111178 2006-10-21  Bruno Haible  <bruno@clisp.org>
111180         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111181         Change mostlyclean-local rule to avoid sh syntax error from bash
111182         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
111184 2006-10-23  Jim Meyering  <jim@meyering.net>
111186         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
111187         in place of snprintf.
111189         * modules/inttostr (Files): Add lib/uinttostr.c.
111190         * lib/uinttostr.c (inttostr): New file/function.
111191         * lib/inttostr.h (uinttostr): Declare.
111192         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111193         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111194         Add uinttostr.
111195         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
111197 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111199         * lib/canonicalize.c (ELOOP): Define if not already defined.
111200         Problem reported by Bruno Haible in
111201         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
111203 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111205         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
111206         Problem reported by Perry Smith and Ville Laurikari.
111208         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
111209         uses.
111211 2006-10-19  Bruno Haible  <bruno@clisp.org>
111213         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
111214         for mingw.
111216 2006-10-19  Bruno Haible  <bruno@clisp.org>
111218         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
111219         Needed for mingw.
111221 2006-10-19  Bruno Haible  <bruno@clisp.org>
111223         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
111225 2006-10-19  Bruno Haible  <bruno@clisp.org>
111227         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
111228         it.
111230 2006-10-19  Bruno Haible  <bruno@clisp.org>
111232         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
111233         invocation.
111235 2006-10-19  Bruno Haible  <bruno@clisp.org>
111237         * gnulib-tool (func_create_testdir): Don't include ftruncate and
111238         mountlist by default.
111240 2006-10-16  Bruno Haible  <bruno@clisp.org>
111242         * lib/c-strstr.c: Include c-strstr.h.
111244 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111246         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
111247         in a slash.
111249 2006-10-18  Bruno Haible  <bruno@clisp.org>
111251         * lib/lock.h [C++]: Wrap definitions in extern "C".
111253 2006-10-18  Bruno Haible  <bruno@clisp.org>
111255         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
111256         gl_LIBOBJS list.
111258 2006-10-18  Bruno Haible  <bruno@clisp.org>
111260         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
111262 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
111264         * lib/xstrtol.h: Include gettext.h.
111265         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
111266         Problem reported by Eric Blake.
111267         * modules/xstrtol (Depends-on): Add gettext-h.
111269 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
111271         * lib/strftime.c (advance): New macro.
111272         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
111273         incomplete type, so you can't add 0 to it.  Problem and patch
111274         reported by Eelco Dolstra for dietlibc.
111276 2006-10-18  Jim Meyering  <jim@meyering.net>
111278         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
111279         type for a local, and rename it: s/up/user_proc/.
111281 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
111283         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
111284         READ_UTMP_USER_PROCESS.
111285         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
111287 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
111289         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
111290         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
111292 2006-10-17  Eric Blake  <ebb9@byu.net>
111294         * lib/sigprocmask.c (sigprocmask): Fix typo.
111296         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
111298         * modules/clean-temp (Makefile.am): Don't add to make output...
111299         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
111300         config.h.
111302 2006-10-17  Bruno Haible  <bruno@clisp.org>
111304         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
111305         differently if DEFAULT_TEXT_DOMAIN is set.
111307 2006-10-16  Bruno Haible  <bruno@clisp.org>
111309         * lib/clean-temp.c: Include fwriteerror.h.
111311 2006-10-16  Bruno Haible  <bruno@clisp.org>
111313         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
111315 2006-10-16  Bruno Haible  <bruno@clisp.org>
111317         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
111318         * lib/sigprocmask.h: Include <sys/types.h>.
111319         (sigset_t): Use the system's definition if present.
111321 2006-10-17  Eric Blake  <ebb9@byu.net>
111323         * lib/xvasprintf.c (includes): Assume config.h.
111324         * lib/xasprintf.c (includes): Likewise.
111326 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
111328         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
111329         at least as wide as intmax_t.
111331 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
111333         (Imported from Automake.)
111334         * build-aux/gnupload: Update to version 1.1 of directive file.
111336 2006-10-16  Eric Blake  <ebb9@byu.net>
111338         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
111339         match Automake 1.10a.
111341 2006-10-14  Bruno Haible  <bruno@clisp.org>
111343         * modules/sigprocmask: New file.
111344         * lib/sigprocmask.h: New file.
111345         * lib/sigprocmask.c: New file.
111346         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
111347         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
111348         request sigprocmask.o.
111349         (gl_PREREQ_SIGPROCMASK): New macro.
111350         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
111351         (Depends-on): Add sigprocmask.
111352         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
111353         gt_SIGNALBLOCKING. Test for 'raise' only once.
111354         * lib/fatal-signal.c: Include sigprocmask.h.
111355         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
111356         unblock_fatal_signals): Define always.
111357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111358         sigprocmask.
111360 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111362         Sync from Automake.
111363         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111364         which incorrectly sets the mode of an existing destination
111365         directory.  In some cases the unpatched install-sh could do the
111366         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111367         system.  We hope this is rare in practice, but it's clearly worth
111368         fixing.  Problem reported by Alex Unleashed in
111369         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111370         Also, don't bother to check for -m bugs unless we're using -m;
111371         suggested by Stepan Kasal.
111373 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111375         Sync from Automake.
111376         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111377         `-c' flag, so they appear at the same position as in %FASTDEP%
111378         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111379         which ignores unknown options only after the first non-option.
111380         Bug report against M4 by Nelson H. F. Beebe.
111382 2006-10-13  Jim Meyering  <jim@meyering.net>
111384         Fix a bug in yesterday's change.
111385         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111386         p->fts_statp->st_dev would be used uninitialized.
111387         Ensures that we always call fts_stat on the very first entry.
111388         Miklos Szeredi reported that find -xdev stopped working.
111390 2006-10-12  Bruno Haible  <bruno@clisp.org>
111392         * gnulib-tool (func_get_automake_snippet): Append an automatically
111393         computed EXTRA_DIST augmentation.
111394         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111395         * modules/alloca-opt (Makefile.am): Likewise.
111396         * modules/allocsa (Makefile.am): Likewise.
111397         * modules/arcfour (Makefile.am): Likewise.
111398         * modules/arctwo (Makefile.am): Likewise.
111399         * modules/argmatch (Makefile.am): Likewise.
111400         * modules/argz (Makefile.am): Likewise.
111401         * modules/atexit (Makefile.am): Likewise.
111402         * modules/backupfile (Makefile.am): Likewise.
111403         * modules/byteswap (Makefile.am): Likewise.
111404         * modules/c-strtod (Makefile.am): Likewise.
111405         * modules/c-strtold (Makefile.am): Likewise.
111406         * modules/calloc (Makefile.am): Likewise.
111407         * modules/canon-host (Makefile.am): Likewise.
111408         * modules/canonicalize (Makefile.am): Likewise.
111409         * modules/chdir-long (Makefile.am): Likewise.
111410         * modules/chdir-safer (Makefile.am): Likewise.
111411         * modules/check-version (Makefile.am): Likewise.
111412         * modules/chown (Makefile.am): Likewise.
111413         * modules/cloexec (Makefile.am): Likewise.
111414         * modules/close-stream (Makefile.am): Likewise.
111415         * modules/closeout (Makefile.am): Likewise.
111416         * modules/crc (Makefile.am): Likewise.
111417         * modules/csharpexec (Makefile.am): Likewise.
111418         * modules/cycle-check (Makefile.am): Likewise.
111419         * modules/des (Makefile.am): Likewise.
111420         * modules/dev-ino (Makefile.am): Likewise.
111421         * modules/dirfd (Makefile.am): Likewise.
111422         * modules/dirname (Makefile.am): Likewise.
111423         * modules/dup2 (Makefile.am): Likewise.
111424         * modules/eealloc (Makefile.am): Likewise.
111425         * modules/error (Makefile.am): Likewise.
111426         * modules/euidaccess (Makefile.am): Likewise.
111427         * modules/exclude (Makefile.am): Likewise.
111428         * modules/exitfail (Makefile.am): Likewise.
111429         * modules/fcntl-safer (Makefile.am): Likewise.
111430         * modules/fcntl (Makefile.am): Likewise.
111431         * modules/file-type (Makefile.am): Likewise.
111432         * modules/fileblocks (Makefile.am): Likewise.
111433         * modules/filemode (Makefile.am): Likewise.
111434         * modules/filenamecat (Makefile.am): Likewise.
111435         * modules/fnmatch (Makefile.am): Likewise.
111436         * modules/fopen-safer (Makefile.am): Likewise.
111437         * modules/fpending (Makefile.am): Likewise.
111438         * modules/fprintftime (Makefile.am): Likewise.
111439         * modules/free (Makefile.am): Likewise.
111440         * modules/fsusage (Makefile.am): Likewise.
111441         * modules/ftruncate (Makefile.am): Likewise.
111442         * modules/fts (Makefile.am): Likewise.
111443         * modules/gc-arcfour (Makefile.am): Likewise.
111444         * modules/gc-des (Makefile.am): Likewise.
111445         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111446         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111447         * modules/gc-md4 (Makefile.am): Likewise.
111448         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111449         * modules/gc-sha1 (Makefile.am): Likewise.
111450         * modules/gc (Makefile.am): Likewise.
111451         * modules/getaddrinfo (Makefile.am): Likewise.
111452         * modules/getcwd (Makefile.am): Likewise.
111453         * modules/getdelim (Makefile.am): Likewise.
111454         * modules/getdomainname (Makefile.am): Likewise.
111455         * modules/getgroups (Makefile.am): Likewise.
111456         * modules/gethostname (Makefile.am): Likewise.
111457         * modules/gethrxtime (Makefile.am): Likewise.
111458         * modules/getline (Makefile.am): Likewise.
111459         * modules/getloadavg (Makefile.am): Likewise.
111460         * modules/getlogin_r (Makefile.am): Likewise.
111461         * modules/getndelim2 (Makefile.am): Likewise.
111462         * modules/getopt (Makefile.am): Likewise.
111463         * modules/getpagesize (Makefile.am): Likewise.
111464         * modules/getpass-gnu (Makefile.am): Likewise.
111465         * modules/getpass (Makefile.am): Likewise.
111466         * modules/getsubopt (Makefile.am): Likewise.
111467         * modules/gettime (Makefile.am): Likewise.
111468         * modules/gettimeofday (Makefile.am): Likewise.
111469         * modules/getugroups (Makefile.am): Likewise.
111470         * modules/getusershell (Makefile.am): Likewise.
111471         * modules/glob (Makefile.am): Likewise.
111472         * modules/group-member (Makefile.am): Likewise.
111473         * modules/hard-locale (Makefile.am): Likewise.
111474         * modules/hash (Makefile.am): Likewise.
111475         * modules/hmac-md5 (Makefile.am): Likewise.
111476         * modules/hmac-sha1 (Makefile.am): Likewise.
111477         * modules/human (Makefile.am): Likewise.
111478         * modules/idcache (Makefile.am): Likewise.
111479         * modules/imaxabs (Makefile.am): Likewise.
111480         * modules/imaxdiv (Makefile.am): Likewise.
111481         * modules/inet_ntop (Makefile.am): Likewise.
111482         * modules/inet_pton (Makefile.am): Likewise.
111483         * modules/intprops (Makefile.am): Likewise.
111484         * modules/inttostr (Makefile.am): Likewise.
111485         * modules/inttypes (Makefile.am): Likewise.
111486         * modules/isapipe (Makefile.am): Likewise.
111487         * modules/javaversion (Makefile.am): Likewise.
111488         * modules/lchmod (Makefile.am): Likewise.
111489         * modules/lchown (Makefile.am): Likewise.
111490         * modules/localcharset (Makefile.am): Likewise.
111491         * modules/long-options (Makefile.am): Likewise.
111492         * modules/lstat (Makefile.am): Likewise.
111493         * modules/malloc (Makefile.am): Likewise.
111494         * modules/mathl (Makefile.am): Likewise.
111495         * modules/mbchar (Makefile.am): Likewise.
111496         * modules/md2 (Makefile.am): Likewise.
111497         * modules/md4 (Makefile.am): Likewise.
111498         * modules/md5 (Makefile.am): Likewise.
111499         * modules/memcasecmp (Makefile.am): Likewise.
111500         * modules/memchr (Makefile.am): Likewise.
111501         * modules/memcmp (Makefile.am): Likewise.
111502         * modules/memcoll (Makefile.am): Likewise.
111503         * modules/memcpy (Makefile.am): Likewise.
111504         * modules/memmem (Makefile.am): Likewise.
111505         * modules/memmove (Makefile.am): Likewise.
111506         * modules/mempcpy (Makefile.am): Likewise.
111507         * modules/memrchr (Makefile.am): Likewise.
111508         * modules/memset (Makefile.am): Likewise.
111509         * modules/memxor (Makefile.am): Likewise.
111510         * modules/mkancesdirs (Makefile.am): Likewise.
111511         * modules/mkdir-p (Makefile.am): Likewise.
111512         * modules/mkdir (Makefile.am): Likewise.
111513         * modules/mkdtemp (Makefile.am): Likewise.
111514         * modules/mkstemp (Makefile.am): Likewise.
111515         * modules/mktime (Makefile.am): Likewise.
111516         * modules/modechange (Makefile.am): Likewise.
111517         * modules/mountlist (Makefile.am): Likewise.
111518         * modules/nanosleep (Makefile.am): Likewise.
111519         * modules/obstack (Makefile.am): Likewise.
111520         * modules/openat (Makefile.am): Likewise.
111521         * modules/pagealign_alloc (Makefile.am): Likewise.
111522         * modules/pathmax (Makefile.am): Likewise.
111523         * modules/physmem (Makefile.am): Likewise.
111524         * modules/poll (Makefile.am): Likewise.
111525         * modules/posixtm (Makefile.am): Likewise.
111526         * modules/posixver (Makefile.am): Likewise.
111527         * modules/putenv (Makefile.am): Likewise.
111528         * modules/quote (Makefile.am): Likewise.
111529         * modules/quotearg (Makefile.am): Likewise.
111530         * modules/raise (Makefile.am): Likewise.
111531         * modules/read-file (Makefile.am): Likewise.
111532         * modules/readline (Makefile.am): Likewise.
111533         * modules/readlink (Makefile.am): Likewise.
111534         * modules/readtokens (Makefile.am): Likewise.
111535         * modules/readutmp (Makefile.am): Likewise.
111536         * modules/realloc (Makefile.am): Likewise.
111537         * modules/regex (Makefile.am): Likewise.
111538         * modules/rename-dest-slash (Makefile.am): Likewise.
111539         * modules/rename (Makefile.am): Likewise.
111540         * modules/rijndael (Makefile.am): Likewise.
111541         * modules/rmdir (Makefile.am): Likewise.
111542         * modules/rpmatch (Makefile.am): Likewise.
111543         * modules/safe-read (Makefile.am): Likewise.
111544         * modules/safe-write (Makefile.am): Likewise.
111545         * modules/same-inode (Makefile.am): Likewise.
111546         * modules/same (Makefile.am): Likewise.
111547         * modules/save-cwd (Makefile.am): Likewise.
111548         * modules/savedir (Makefile.am): Likewise.
111549         * modules/setenv (Makefile.am): Likewise.
111550         * modules/settime (Makefile.am): Likewise.
111551         * modules/sha1 (Makefile.am): Likewise.
111552         * modules/sig2str (Makefile.am): Likewise.
111553         * modules/snprintf (Makefile.am): Likewise.
111554         * modules/stat-macros (Makefile.am): Likewise.
111555         * modules/stat-time (Makefile.am): Likewise.
111556         * modules/stdbool (Makefile.am): Likewise.
111557         * modules/stdint (Makefile.am): Likewise.
111558         * modules/stdlib-safer (Makefile.am): Likewise.
111559         * modules/stpcpy (Makefile.am): Likewise.
111560         * modules/stpncpy (Makefile.am): Likewise.
111561         * modules/strcase (Makefile.am): Likewise.
111562         * modules/strcasestr (Makefile.am): Likewise.
111563         * modules/strchrnul (Makefile.am): Likewise.
111564         * modules/strcspn (Makefile.am): Likewise.
111565         * modules/strdup (Makefile.am): Likewise.
111566         * modules/strerror (Makefile.am): Likewise.
111567         * modules/strftime (Makefile.am): Likewise.
111568         * modules/strndup (Makefile.am): Likewise.
111569         * modules/strnlen (Makefile.am): Likewise.
111570         * modules/strpbrk (Makefile.am): Likewise.
111571         * modules/strsep (Makefile.am): Likewise.
111572         * modules/strstr (Makefile.am): Likewise.
111573         * modules/strtod (Makefile.am): Likewise.
111574         * modules/strtoimax (Makefile.am): Likewise.
111575         * modules/strtok_r (Makefile.am): Likewise.
111576         * modules/strtol (Makefile.am): Likewise.
111577         * modules/strtoll (Makefile.am): Likewise.
111578         * modules/strtoul (Makefile.am): Likewise.
111579         * modules/strtoull (Makefile.am): Likewise.
111580         * modules/strtoumax (Makefile.am): Likewise.
111581         * modules/strverscmp (Makefile.am): Likewise.
111582         * modules/sys_socket (Makefile.am): Likewise.
111583         * modules/sys_stat (Makefile.am): Likewise.
111584         * modules/sysexits (Makefile.am): Likewise.
111585         * modules/time_r (Makefile.am): Likewise.
111586         * modules/timegm (Makefile.am): Likewise.
111587         * modules/timespec (Makefile.am): Likewise.
111588         * modules/tmpfile-safer (Makefile.am): Likewise.
111589         * modules/trim (Makefile.am): Likewise.
111590         * modules/unistd-safer (Makefile.am): Likewise.
111591         * modules/unlinkdir (Makefile.am): Likewise.
111592         * modules/unlocked-io (Makefile.am): Likewise.
111593         * modules/userspec (Makefile.am): Likewise.
111594         * modules/utime (Makefile.am): Likewise.
111595         * modules/utimecmp (Makefile.am): Likewise.
111596         * modules/utimens (Makefile.am): Likewise.
111597         * modules/vasnprintf (Makefile.am): Likewise.
111598         * modules/vasprintf (Makefile.am): Likewise.
111599         * modules/vsnprintf (Makefile.am): Likewise.
111600         * modules/xalloc (Makefile.am): Likewise.
111601         * modules/xgetcwd (Makefile.am): Likewise.
111602         * modules/xnanosleep (Makefile.am): Likewise.
111603         * modules/xreadlink (Makefile.am): Likewise.
111604         * modules/xstrtod (Makefile.am): Likewise.
111605         * modules/xstrtol (Makefile.am): Likewise.
111606         * modules/xstrtold (Makefile.am): Likewise.
111607         * modules/yesno (Makefile.am): Likewise.
111608         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111610 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111612         * modules/error (Makefile.am): Distribute files through
111613         EXTRA_DIST, not lib_SOURCES.
111615 2006-10-12  Eric Blake  <ebb9@byu.net>
111617         * modules/error (Makefile.am): Distribute files in /lib.
111618         * modules/obstack (Makefile.am): Likewise.
111620 2006-10-12  Bruno Haible  <bruno@clisp.org>
111622         * modules/acl (Makefile.am): Distribute all files in lib/ through
111623         EXTRA_DIST.
111624         * modules/arcfour (Makefile.am): Likewise.
111625         * modules/arctwo (Makefile.am): Likewise.
111626         * modules/argmatch (Makefile.am): Likewise.
111627         * modules/argz (Makefile.am): Likewise.
111628         * modules/atexit (Makefile.am): Likewise.
111629         * modules/backupfile (Makefile.am): Likewise.
111630         * modules/c-strtod (Makefile.am): Likewise.
111631         * modules/c-strtold (Makefile.am): Likewise.
111632         * modules/calloc (Makefile.am): Likewise.
111633         * modules/canon-host (Makefile.am): Likewise.
111634         * modules/canonicalize (Makefile.am): Likewise.
111635         * modules/chdir-long (Makefile.am): Likewise.
111636         * modules/chdir-safer (Makefile.am): Likewise.
111637         * modules/check-version (Makefile.am): Likewise.
111638         * modules/chown (Makefile.am): Likewise.
111639         * modules/cloexec (Makefile.am): Likewise.
111640         * modules/close-stream (Makefile.am): Likewise.
111641         * modules/closeout (Makefile.am): Likewise.
111642         * modules/crc (Makefile.am): Likewise.
111643         * modules/cycle-check (Makefile.am): Likewise.
111644         * modules/des (Makefile.am): Likewise.
111645         * modules/dirfd (Makefile.am): Likewise.
111646         * modules/dirname (Makefile.am): Likewise.
111647         * modules/dup2 (Makefile.am): Likewise.
111648         * modules/euidaccess (Makefile.am): Likewise.
111649         * modules/exclude (Makefile.am): Likewise.
111650         * modules/exitfail (Makefile.am): Likewise.
111651         * modules/fcntl-safer (Makefile.am): Likewise.
111652         * modules/file-type (Makefile.am): Likewise.
111653         * modules/fileblocks (Makefile.am): Likewise.
111654         * modules/filemode (Makefile.am): Likewise.
111655         * modules/filenamecat (Makefile.am): Likewise.
111656         * modules/fnmatch (Makefile.am): Likewise.
111657         * modules/fopen-safer (Makefile.am): Likewise.
111658         * modules/fpending (Makefile.am): Likewise.
111659         * modules/fprintftime (Makefile.am): Likewise.
111660         * modules/free (Makefile.am): Likewise.
111661         * modules/fsusage (Makefile.am): Likewise.
111662         * modules/ftruncate (Makefile.am): Likewise.
111663         * modules/fts (Makefile.am): Likewise.
111664         * modules/gc (Makefile.am): Likewise.
111665         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111666         * modules/getaddrinfo (Makefile.am): Likewise.
111667         * modules/getcwd (Makefile.am): Likewise.
111668         * modules/getdelim (Makefile.am): Likewise.
111669         * modules/getdomainname (Makefile.am): Likewise.
111670         * modules/getgroups (Makefile.am): Likewise.
111671         * modules/gethostname (Makefile.am): Likewise.
111672         * modules/gethrxtime (Makefile.am): Likewise.
111673         * modules/getline (Makefile.am): Likewise.
111674         * modules/getloadavg (Makefile.am): Likewise.
111675         * modules/getlogin_r (Makefile.am): Likewise.
111676         * modules/getopt (Makefile.am): Likewise.
111677         * modules/getpass (Makefile.am): Likewise.
111678         * modules/getpass-gnu (Makefile.am): Likewise.
111679         * modules/getsubopt (Makefile.am): Likewise.
111680         * modules/gettime (Makefile.am): Likewise.
111681         * modules/gettimeofday (Makefile.am): Likewise.
111682         * modules/getugroups (Makefile.am): Likewise.
111683         * modules/getusershell (Makefile.am): Likewise.
111684         * modules/glob (Makefile.am): Likewise.
111685         * modules/group-member (Makefile.am): Likewise.
111686         * modules/hard-locale (Makefile.am): Likewise.
111687         * modules/hash (Makefile.am): Likewise.
111688         * modules/hmac-md5 (Makefile.am): Likewise.
111689         * modules/hmac-sha1 (Makefile.am): Likewise.
111690         * modules/human (Makefile.am): Likewise.
111691         * modules/idcache (Makefile.am): Likewise.
111692         * modules/imaxabs (Makefile.am): Likewise.
111693         * modules/imaxdiv (Makefile.am): Likewise.
111694         * modules/inet_ntop (Makefile.am): Likewise.
111695         * modules/inet_pton (Makefile.am): Likewise.
111696         * modules/inttostr (Makefile.am): Likewise.
111697         * modules/isapipe (Makefile.am): Likewise.
111698         * modules/lchown (Makefile.am): Likewise.
111699         * modules/long-options (Makefile.am): Likewise.
111700         * modules/lstat (Makefile.am): Likewise.
111701         * modules/malloc (Makefile.am): Likewise.
111702         * modules/mathl (Makefile.am): Likewise.
111703         * modules/mbchar (Makefile.am): Likewise.
111704         * modules/md2 (Makefile.am): Likewise.
111705         * modules/md4 (Makefile.am): Likewise.
111706         * modules/md5 (Makefile.am): Likewise.
111707         * modules/memcasecmp (Makefile.am): Likewise.
111708         * modules/memchr (Makefile.am): Likewise.
111709         * modules/memcmp (Makefile.am): Likewise.
111710         * modules/memcoll (Makefile.am): Likewise.
111711         * modules/memcpy (Makefile.am): Likewise.
111712         * modules/memmem (Makefile.am): Likewise.
111713         * modules/memmove (Makefile.am): Likewise.
111714         * modules/mempcpy (Makefile.am): Likewise.
111715         * modules/memrchr (Makefile.am): Likewise.
111716         * modules/memset (Makefile.am): Likewise.
111717         * modules/memxor (Makefile.am): Likewise.
111718         * modules/mkancesdirs (Makefile.am): Likewise.
111719         * modules/mkdir (Makefile.am): Likewise.
111720         * modules/mkdir-p (Makefile.am): Likewise.
111721         * modules/mkdtemp (Makefile.am): Likewise.
111722         * modules/mkstemp (Makefile.am): Likewise.
111723         * modules/mktime (Makefile.am): Likewise.
111724         * modules/modechange (Makefile.am): Likewise.
111725         * modules/mountlist (Makefile.am): Likewise.
111726         * modules/nanosleep (Makefile.am): Likewise.
111727         * modules/openat (Makefile.am): Likewise.
111728         * modules/pagealign_alloc (Makefile.am): Likewise.
111729         * modules/physmem (Makefile.am): Likewise.
111730         * modules/poll (Makefile.am): Likewise.
111731         * modules/posixtm (Makefile.am): Likewise.
111732         * modules/posixver (Makefile.am): Likewise.
111733         * modules/putenv (Makefile.am): Likewise.
111734         * modules/quote (Makefile.am): Likewise.
111735         * modules/quotearg (Makefile.am): Likewise.
111736         * modules/raise (Makefile.am): Likewise.
111737         * modules/read-file (Makefile.am): Likewise.
111738         * modules/readline (Makefile.am): Likewise.
111739         * modules/readlink (Makefile.am): Likewise.
111740         * modules/readtokens (Makefile.am): Likewise.
111741         * modules/readutmp (Makefile.am): Likewise.
111742         * modules/realloc (Makefile.am): Likewise.
111743         * modules/regex (Makefile.am): Likewise.
111744         * modules/rename (Makefile.am): Likewise.
111745         * modules/rename-dest-slash (Makefile.am): Likewise.
111746         * modules/rijndael (Makefile.am): Likewise.
111747         * modules/rmdir (Makefile.am): Likewise.
111748         * modules/rpmatch (Makefile.am): Likewise.
111749         * modules/safe-read (Makefile.am): Likewise.
111750         * modules/safe-write (Makefile.am): Likewise.
111751         * modules/same (Makefile.am): Likewise.
111752         * modules/save-cwd (Makefile.am): Likewise.
111753         * modules/savedir (Makefile.am): Likewise.
111754         * modules/setenv (Makefile.am): Likewise.
111755         * modules/settime (Makefile.am): Likewise.
111756         * modules/sha1 (Makefile.am): Likewise.
111757         * modules/sig2str (Makefile.am): Likewise.
111758         * modules/snprintf (Makefile.am): Likewise.
111759         * modules/stdlib-safer (Makefile.am): Likewise.
111760         * modules/stpcpy (Makefile.am): Likewise.
111761         * modules/stpncpy (Makefile.am): Likewise.
111762         * modules/strcase (Makefile.am): Likewise.
111763         * modules/strcasestr (Makefile.am): Likewise.
111764         * modules/strchrnul (Makefile.am): Likewise.
111765         * modules/strcspn (Makefile.am): Likewise.
111766         * modules/strdup (Makefile.am): Likewise.
111767         * modules/strerror (Makefile.am): Likewise.
111768         * modules/strftime (Makefile.am): Likewise.
111769         * modules/strndup (Makefile.am): Likewise.
111770         * modules/strnlen (Makefile.am): Likewise.
111771         * modules/strpbrk (Makefile.am): Likewise.
111772         * modules/strsep (Makefile.am): Likewise.
111773         * modules/strstr (Makefile.am): Likewise.
111774         * modules/strtod (Makefile.am): Likewise.
111775         * modules/strtoimax (Makefile.am): Likewise.
111776         * modules/strtok_r (Makefile.am): Likewise.
111777         * modules/strtol (Makefile.am): Likewise.
111778         * modules/strtoll (Makefile.am): Likewise.
111779         * modules/strtoul (Makefile.am): Likewise.
111780         * modules/strtoull (Makefile.am): Likewise.
111781         * modules/strtoumax (Makefile.am): Likewise.
111782         * modules/strverscmp (Makefile.am): Likewise.
111783         * modules/time_r (Makefile.am): Likewise.
111784         * modules/timegm (Makefile.am): Likewise.
111785         * modules/tmpfile-safer (Makefile.am): Likewise.
111786         * modules/unistd-safer (Makefile.am): Likewise.
111787         * modules/unlinkdir (Makefile.am): Likewise.
111788         * modules/userspec (Makefile.am): Likewise.
111789         * modules/utime (Makefile.am): Likewise.
111790         * modules/utimecmp (Makefile.am): Likewise.
111791         * modules/utimens (Makefile.am): Likewise.
111792         * modules/vasnprintf (Makefile.am): Likewise.
111793         * modules/vasprintf (Makefile.am): Likewise.
111794         * modules/vsnprintf (Makefile.am): Likewise.
111795         * modules/xalloc (Makefile.am): Likewise.
111796         * modules/xgetcwd (Makefile.am): Likewise.
111797         * modules/xnanosleep (Makefile.am): Likewise.
111798         * modules/xreadlink (Makefile.am): Likewise.
111799         * modules/xstrtod (Makefile.am): Likewise.
111800         * modules/xstrtol (Makefile.am): Likewise.
111801         * modules/xstrtold (Makefile.am): Likewise.
111802         * modules/yesno (Makefile.am): Likewise.
111804 2006-10-12  Jim Meyering  <jim@meyering.net>
111806         * m4/getloadavg.m4: Revert the change below.
111808         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111809         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111810         fail with a symlink, which is what coreutils' ./bootstrap now
111811         creates by default.
111813 2006-10-12  Bruno Haible  <bruno@clisp.org>
111815         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111816         mingw.
111817         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111818         MSVC and mingw explicitly.
111820 2006-10-11  Simon Josefsson  <jas@extundo.com>
111821             Bruno Haible  <bruno@clisp.org>
111823         Add support for multiple gnulib-tool invocations in the scope of a
111824         single configure.ac file.
111825         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111826         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111827         with the same contents as the _LIBADD variable.
111828         (func_emit_initmacro_start, func_emit_initmacro_end,
111829         func_emit_initmacro_done): New functions.
111830         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111831         gl_LIBOBJS and gl_LTLIBOBJS.
111833 2006-10-11  Bruno Haible  <bruno@clisp.org>
111835         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111836         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111837         autoreconf. Instead, invoke autopoint explicitly but move back the
111838         *.m4 files from gnulib.
111840 2006-10-11  Bruno Haible  <bruno@clisp.org>
111842         * gnulib-tool (func_usage): Make module names after --create-testdir
111843         optional.
111844         (func_create_testdir): If no module was specified, use nearly all
111845         modules.
111847 2006-10-12  Jim Meyering  <jim@meyering.net>
111849         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111850         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111851         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111852         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111853         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111854         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111855         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111856         (fts_set_stat_required): New function.
111857         (fts_open): Defer the calls to fts_stat, if possible or requested.
111858         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111859         into fts_stat itself.
111860         (fts_read): Perform any required (deferred) fts_stat call.
111861         (fts_build): Likewise, for the directory we're about to open and read.
111862         In the readdir loop, carefully decide whether each entry will require
111863         an eventual call to fts_stat, using dirent.d_type info if available.
111864         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111865         a command line argument into this function.  Update all callers.
111866         Map a return value of FTS_DOT to FTS_D for a command line argument.
111867         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111868         Thanks to Miklos Szeredi for his tenacity and for the initial
111869         bug report about "find" failing on a FUSE-based file system.
111871         * lib/fts.c (fts_open): Use consistent indentation.
111873 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111875         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111876         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111877         reported by Jim Meyering.  All uses of cache variables renamed
111878         to match Autoconf's.
111879         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111880         the other one.
111882         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111883         Fix misspelling in diagnostic.
111885 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111887         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111888         defined.  Problem reported by Matthew Woehlke.
111890         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111891         Add support for Tandem NonStop R series.
111892         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111893         Use new macro.
111895         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111896         (has_trailing_slash): Omit size arg; all callers changed.
111897         Omit 'inline', since it doesn't help performance and we'd
111898         need to configure it.
111899         Don't count //, ///, etc. as having a trailing slash.
111900         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111901         (rpl_rename_dest_slash): On failure, use rename's errno rather
111902         than (in some cases) an incorrect or junk errno.
111903         Simplify code by removing need to compute length; this does
111904         cause it to make two passes instead of one over the file name,
111905         but it's worth it.
111907         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111908         change, since Autoconf's version may no longer be appropriate now
111909         that we are using CVS Autoconf's version.  Add support for Tandem.
111911 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111912             Bruno Haible  <bruno@clisp.org>
111914         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111915         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111916         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111917         gl_AC_TYPE_LONG_LONG.
111919         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111920         instead of HAVE_LONG_LONG.
111921         * lib/printf-args.c (printf_fetchargs): Likewise.
111922         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111923         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111924         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111925         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111926         gl_AC_TYPE_LONG_LONG.
111928 2006-10-11  Bruno Haible  <bruno@clisp.org>
111930         * m4/longlong.m4: Add comments.
111931         * m4/ulonglong.m4: Likewise.
111933 2006-10-10  Bruno Haible  <bruno@clisp.org>
111935         Make it possible to #define stpcpy, strdup to aliases.
111936         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111937         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111939 2006-10-10  Bruno Haible  <bruno@clisp.org>
111941         Make it possible to #define gcd to an alias.
111942         * lib/gcd.c: Include config.h.
111944 2006-10-10  Bruno Haible  <bruno@clisp.org>
111946         Make it possible to #define c_isascii to an alias.
111947         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111948         defined. Undefine the macros before defining them, to avoid gcc
111949         warnings.
111950         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111951         define NO_C_CTYPE_MACROS early.
111953 2006-10-10  Bruno Haible  <bruno@clisp.org>
111955         Make it possible to #define set_program_name to an alias.
111956         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111957         ENABLE_RELOCATABLE early.
111959 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111961         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111962         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111963         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111964         More generally, don't assume that 64-bit signed int is available
111965         if unsigned int is, and vice versa.
111966         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111967         unsigned symbols, not on their signed counterparts.
111968         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111969         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111970         (UINT64_C, UINTMAX_C):
111971         Likewise.
111972         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111973         unsigned counterparts.
111974         (Have_long_long, Unsigned): New macros.
111975         (Int): Renamed from INT.
111976         (strtoimax): Use the new macros.
111977         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111978         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111979         * modules/inttypes (inttypes.h): Substitute
111980         HAVE_UNSIGNED_LONG_LONG_INT.
111981         * modules/stdint (stdint.h): Likewise.
111982         (Files): Add m4/ulonglong.m4.
111984 2006-10-10  Bruno Haible  <bruno@clisp.org>
111986         Fix a gcc -Wshadow warning.
111987         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111988         to 'bucket'.
111989         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111990         gl_linked_indexof_from_to): Likewise.
111991         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111992         Likewise.
111993         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111994         Likewise.
111995         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111996         Reported by Eric Blake.
111998 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
112000         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
112001         for NetBSD.  Problem reported by Bruno Haible.
112003 2006-10-09  Jim Meyering  <jim@meyering.net>
112005         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
112006         Patch from Bruno Haible.
112008 2006-10-09  Jim Meyering  <jim@meyering.net>
112010         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
112011         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
112012         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
112014 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
112016         Don't include <config.h> twice; this doesn't work in some cases,
112017         e.g., when config.h has "#define intmax_t long long int" and
112018         we include <config.h>, <inttypes.h>, <config.h> in that order.
112019         Problem reported by Matthew Woehlke in:
112020         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
112021         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
112022         * lib/fts-cycle.c: Don't include config.h.
112023         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
112024         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
112025         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
112026         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
112027         inttypes.h.
112028         * lib/xstrtoumax.c: Likewise.
112029         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
112030         __strtol and the like, so that this module is more like its siblings.
112031         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
112032         Remove; no longer needed now that we assume gnulib inttypes.h.
112034 2006-10-08  Bruno Haible  <bruno@clisp.org>
112036         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
112037         option.
112039 2006-10-07  Jim Meyering  <jim@meyering.net>
112041         * modules/inttypes (inttypes.h): Revert what seems to have been
112042         an inadvertent part of today's change: use "|", not "/" in the
112043         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
112045 2006-10-07  Bruno Haible  <bruno@clisp.org>
112047         * modules/sublist: New file.
112049 2006-10-07  Bruno Haible  <bruno@clisp.org>
112051         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
112052         * modules/argz (argz.h): Likewise.
112053         * modules/arpa_inet (arpa/inet.h): Likewise.
112054         * modules/byteswap (byteswap.h): Likewise.
112055         * modules/configmake (configmake.h): Likewise.
112056         * modules/fcntl (fcntl.h): Likewise.
112057         * modules/fnmatch (fnmatch.h): Likewise.
112058         * modules/getopt (getopt.h): Likewise.
112059         * modules/glob (glob.h): Likewise.
112060         * modules/inttypes (inttypes.h): Likewise.
112061         * modules/netinet_in (netinet/in.h): Likewise.
112062         * modules/poll (poll.h): Likewise.
112063         * modules/stdbool (stdbool.h): Likewise.
112064         * modules/stdint (stdint.h): Likewise.
112065         * modules/sys_select (sys/select.h): Likewise.
112066         * modules/sys_socket (sys/socket.h): Likewise.
112067         * modules/sys_stat (sys/stat.h): Likewise.
112068         * modules/sysexits (sysexits.h): Likewise.
112069         * modules/unistd (unistd.h): Likewise.
112070         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112071         Add a "DO NOT EDIT" comment to the generated file.
112072         (func_import): Likewise for gnulib-comp.m4.
112074 2006-10-07  Bruno Haible  <bruno@clisp.org>
112076         * lib/gl_sublist.h: New file.
112077         * lib/gl_sublist.c: New file.
112079 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
112081         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
112082         name (relative to the original working directory) and the file
112083         name component (relative to the temporary working directory).  All
112084         callers changed.
112085         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
112086         * lib/mkdir-p.c (make_dir_parents): Likewise.
112087         * lib/mkdir-p.h (make_dir_parents): Likewise.
112089 2006-10-06  Eric Blake  <ebb9@byu.net>
112091         Define several macros for use by the clean-temp module.
112092         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
112093         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
112094         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
112096         * lib/clean-temp.h (close_stream_temp): New declaration.
112097         * lib/clean-temp.c (includes): Pull in headers according to what
112098         other modules are in use.
112099         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
112101 2006-10-06  Bruno Haible  <bruno@clisp.org>
112103         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
112104         instead of fopen, fwriteerror.
112106 2006-10-06  Bruno Haible  <bruno@clisp.org>
112108         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
112109         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
112110         int.
112111         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
112112         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
112113         Return an error indicator.
112114         Suggested by Eric Blake.
112116 2006-10-06  Bruno Haible  <bruno@clisp.org>
112118         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
112119         Reported by Eric Blake.
112121 2006-10-06  Bruno Haible  <bruno@clisp.org>
112123         * modules/closeout (Description): Mention stderr too.
112125 2006-10-06  Bruno Haible  <bruno@clisp.org>
112126         and Paul Eggert  <eggert@cs.ucla.edu>
112128         * lib/closeout.c (close_stdout): Also close stderr.
112129         * lib/closeout.h: Update comment.
112131 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
112133         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
112134         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
112135         * lib/dirchownmod.c: Include lchown.h.
112136         * lib/lchown.c: Don't include files that lchown.h now includes.
112137         Don't declare chown, since lchown.h now does that.
112138         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
112139         (lchown): Define to rpl_chown if lchown is declared but
112140         does not exist.  Declare using a prototype if lchown is not
112141         declared.  Add a copyright notice.
112142         * lib/mkstemp.h: Include <unistd.h>.
112143         * lib/openat.c: Include lchown.h.
112145         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
112146         we now test for that separately.
112147         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
112148         rather than O_NOFOLLOW, when testing whether it's possible to
112149         avoid a race condition reliably.
112150         * lib/savewd.c (savewd_chdir): Likewise.
112152         Remove macros that are no longer needed now that stdint.h is
112153         reliable.
112154         * lib/fsusage.c (UINTMAX_MAX): Remove.
112155         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
112156         * lib/utimecmp.c (SIZE_MAX): Remove.
112158         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
112160         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
112161         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
112162         O_NOATIME works.
112164 2006-10-05  Bruno Haible  <bruno@clisp.org>
112166         * lib/gl_list.h (gl_sortedlist_search_from_to,
112167         gl_sortedlist_indexof_from_to): New declarations.
112168         (gl_list_implementation): New fields sortedlist_search_from_to,
112169         sortedlist_indexof_from_to.
112170         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
112171         inline functions.
112172         * lib/gl_list.c (gl_sortedlist_search_from_to,
112173         gl_sortedlist_indexof_from_to): New functions.
112174         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
112175         function.
112176         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
112177         (gl_array_sortedlist_search_from_to): New function.
112178         (gl_array_list_implementation): Update.
112179         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
112180         function.
112181         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
112182         (gl_carray_sortedlist_search_from_to): New function.
112183         (gl_carray_list_implementation): Update.
112184         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
112185         gl_linked_sortedlist_indexof_from_to): New functions.
112186         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112187         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112188         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
112189         gl_tree_sortedlist_indexof_from_to): New functions.
112190         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112191         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112192         Update.
112193         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112194         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112195         Update.
112197 2006-10-05  Bruno Haible  <bruno@clisp.org>
112199         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
112200         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
112201         (struct gl_list_implementation): Add fields search_from_to,
112202         indexof_from_to. Remove fields search, indexof.
112203         (gl_list_search): Use the search_from_to method.
112204         (gl_list_search_from, gl_list_search_from_to): New functions.
112205         (gl_list_indexof): Use the indexof_from_to method.
112206         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112207         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
112208         (gl_list_search_from, gl_list_search_from_to): New functions.
112209         (gl_list_indexof): Use the indexof_from_to method.
112210         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112211         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
112212         gl_array_indexof. Add start_index, end_index arguments.
112213         (gl_array_search_from_to): Renamed from gl_array_search. Add
112214         start_index, end_index arguments.
112215         (gl_array_remove, gl_array_list_implementation): Update.
112216         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
112217         gl_carray_indexof. Add start_index, end_index arguments.
112218         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
112219         start_index, end_index arguments.
112220         (gl_carray_remove, gl_carray_list_implementation): Update.
112221         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
112222         gl_linked_search. Add start_index, end_index arguments.
112223         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
112224         start_index, end_index arguments.
112225         (gl_linked_remove): Update.
112226         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112227         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112228         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
112229         field to 'size_t'.
112230         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
112231         gl_tree_search. Add start_index, end_index arguments.
112232         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112233         start_index, end_index arguments.
112234         (gl_tree_remove): Update.
112235         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112236         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112237         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
112238         function.
112239         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
112240         gl_tree_search. Add start_index, end_index arguments.
112241         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112242         start_index, end_index arguments.
112243         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112244         Update.
112245         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
112247 2006-10-05  Bruno Haible  <bruno@clisp.org>
112249         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
112251         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
112252         fwriteerror_temp): New declarations.
112253         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
112254         (descriptors): New variable.
112255         (cleanup): First, close the descriptors.
112256         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
112257         fclose_temp, fwriteerror_temp): New functions.
112259 2006-10-04  Jim Meyering  <jim@meyering.net>
112261         * lib/fts.c (fts_open): Tiny comment change.
112263 2006-10-04  Bruno Haible  <bruno@clisp.org>
112265         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
112266         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
112267         gl_LOCK_BODY.
112268         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
112269         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
112270         gl_LOCK_EARLY_BODY.
112271         (gl_LOCK): Require gl_LOCK_BODY.
112273 2006-10-04  Bruno Haible  <bruno@clisp.org>
112275         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
112276         (gl_oset_search_atleast): New declaration.
112277         (struct gl_oset_implementation): Add field 'search_atleast'.
112278         (gl_oset_search_atleast): New inline function.
112279         * lib/gl_oset.c (gl_oset_search_atleast): New function.
112280         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
112281         (gl_array_oset_implementation): Update.
112282         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
112283         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
112284         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
112286 2006-10-04  Bruno Haible  <bruno@clisp.org>
112288         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
112290 2006-10-03  Bruno Haible  <bruno@clisp.org>
112292         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
112293         from gl_avltreehash_list_implementation.
112295 2006-10-03  Bruno Haible  <bruno@clisp.org>
112297         * lib/gl_oset.c (gl_oset_add): Fix return type.
112299 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
112301         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
112303 2006-10-02  Eric Blake  <ebb9@byu.net>
112305         * modules/strnlen (Depends-on): Add extensions.
112307 2006-10-02  Eric Blake  <ebb9@byu.net>
112309         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
112310         definition in 2.60+.
112312 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
112314         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
112315         checks.
112317 2006-10-02  Bruno Haible  <bruno@clisp.org>
112319         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
112320         to the AUTOMAKE_OPTIONS.
112321         Reported by Jim Meyering.
112323 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
112325         Work around bug in Solaris 10 /proc file system:
112326         /proc/self/fd/NNN/.. isn't the parent directory of
112327         the directory whose file descriptor is NNN.  This needs to
112328         be worked around at run time, not compile time, since a
112329         program might be built on Solaris 8, where things work, and
112330         run on Solaris 10.
112331         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
112332         to use the following interface instead:
112333         (OPENAT_BUFFER_SIZE): New macro.
112334         (openat_proc_name): New function.
112335         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
112336         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
112337         Likewise.
112338         * lib/openat-proc.c: New file.
112339         * modules/openat (Files): Add lib/openat-proc.c.
112340         (Depends-on): Add same-inode, stdbool.
112341         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
112343 2006-09-29  Bruno Haible  <bruno@clisp.org>
112345         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
112346         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
112347         argument. Set stdout_closed before testing for ferror, not after.
112348         (fwriteerror, fwriteerror_no_ebadf): New functions.
112350 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112352         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
112354 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
112356         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
112357         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
112359 2006-09-28  Jim Meyering  <jim@meyering.net>
112361         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112362         Include <unistd.h>.
112364 2006-09-28  Bruno Haible  <bruno@clisp.org>
112366         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112367         * modules/linkedhash-list (Depends-on): Likewise.
112368         * modules/rbtreehash-list (Depends-on): Likewise.
112370 2006-09-28  Bruno Haible  <bruno@clisp.org>
112372         * lib/strndup.h: Simplify the redefinition of strndup.
112373         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112374         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112376 2006-09-28  Bruno Haible  <bruno@clisp.org>
112378         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112379         * lib/gl_linkedhash_list.c: Likewise.
112380         * lib/gl_rbtreehash_list.c: Likewise.
112382 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112384         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112385         getaddrinfo.
112387         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112388         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112389         it causes <stdio_ext.h> to cause a compile-time error.
112390         Problem reported by Nelson H. F. Beebe.
112391         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112392         of HAVE_DECL___PENDING.
112394         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112395         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112396         declaration.
112398 2006-09-27  Jim Meyering  <jim@meyering.net>
112400         This file could end up with a definition for a function
112401         named __strndup, rather than rpl_strndup on a system with
112402         incomplete weak_alias support.
112403         * lib/strndup.c (strndup): Rename from __strndup.
112404         Remove #defines that used to map __strndup to strndup.
112405         Don't use K&R prototypes.
112406         Remove LIBC-related code, since this file is not sync'd with glibc.
112407         * lib/strndup.h: Revamp, accordingly.
112408         * m4/strndup.m4: Modernize.
112410 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112412         * modules/savewd (Depends-on): Add 'raise'.
112413         * lib/savewd.c: Include <signal.h>, for 'raise'.
112415 2006-09-26  Jim Meyering  <jim@meyering.net>
112417         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112418         when we detect Darwin 8.7.0's acl_get_file bug.
112419         Rearrange to perform the new (below) run-test while $LIBS
112420         contains any acl-related library.  Set USE_ACL at the end.
112421         (gl_ACL_GET_FILE): New function.
112423 2006-09-26  Eric Blake  <ebb9@byu.net>
112425         * lib/verror.c: Include <config.h> unconditionally.
112427 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112429         * modules/clock-time (Maintainer): Add self.
112430         * modules/getlogin_r (Depends-on): Add extensions.
112432 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112434         * modules/clock-time: New module.
112435         * modules/nanosleep (Depends-on): Add clock-time.
112436         * modules/gethrxtime (Depends-on): Likewise.
112437         * modules/gettime (Depends-on): Likewise.
112438         * modules/settime (Depends-on): Likewise.
112440         * modules/fts-lgpl: Depend on openat.
112441         * modules/mkancesdirs: Depend on savewd.
112442         * modules/mkdir-p: Likewise.
112444 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112446         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112448         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112449         `gl_have_arbitrary_file_name_length_limit' to
112450         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112451         actually works between configure runs.
112453 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112454             Bruno Haible  <bruno@clisp.org>
112456         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112458 2006-09-25  Jim Meyering  <jim@meyering.net>
112460         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112461         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112463 2006-09-25  Eric Blake  <ebb9@byu.net>
112465         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112466         exec's in 2006-09-18 patch when shuffling fds.
112468 2006-09-25  Bruno Haible  <bruno@clisp.org>
112470         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112471         Reported by Jim Meyering.
112473 2006-09-24  Jim Meyering  <jim@meyering.net>
112475         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
112476         compare a pointer against a literal "0".  That caused failures with
112477         at least HP-UX's hpcc.
112479 2006-09-22  Simon Josefsson  <jas@extundo.com>
112481         * modules/gc-sha1:
112482         * modules/gc-md4:
112483         * modules/gc-hmac-sha1:
112484         * modules/gc-hmac-md5:
112485         * modules/gc-des:
112486         * modules/gc-arcfour: Distribute more files.
112488 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112490         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
112491         (gl_linked_iterator_from_to): Initialize struct completely.
112492         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
112493         (gl_tree_iterator_from_to): Likewise
112494         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
112495         * lib/gl_array_list.c [lint] (gl_array_iterator)
112496         (gl_array_iterator_from_to): Likewise.
112497         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
112498         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
112499         (gl_carray_iterator_from_to): Likewise.
112501         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
112502         * lib/md4.c (md4_process_block): Remove unused variable.
112503         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
112504         parentheses for clarity.
112506 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112508         * modules/bison-i18n (Depends-on): Add gettext.
112510 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112512         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
112513         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
112514         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
112515         also add missing comma that caused broken test.
112516         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
112517         stdlib.h, for `abort'.
112518         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
112519         variables.
112520         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
112521         include unistd.h if present, for `rmdir'.
112522         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
112523         variables.
112524         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
112525         in the process include standard headers for prototypes.
112526         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
112527         gets declared on GNU/Linux.
112528         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
112529         unistd.h, for `rmdir'.
112530         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
112532         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
112533         always true.
112534         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
112536         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
112538 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112540         * gnulib-tool (func_version): Create output all at once.  This
112541         may help avoid triggering unnecessary SIGPIPEs, and at any
112542         rate it doesn't hurt.
112544 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112545             Bruno Haible  <bruno@clisp.org>
112547         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
112548         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
112549         * m4/signed.m4 (bh_C_SIGNED): Likewise.
112551         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
112552         (gl_FUNC_VASPRINTF): Invoke it.
112554 2006-09-22  Bruno Haible  <bruno@clisp.org>
112556         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
112557         getloadavg.c as first argument.
112559 2006-09-22  Bruno Haible  <bruno@clisp.org>
112561         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
112562         at the beginning of the gl_INIT macro.
112563         * modules/getloadavg (configure.ac): Pass $gl_source_base to
112564         gl_GETLOADAVG.
112566 2006-09-22  Bruno Haible  <bruno@clisp.org>
112568         * gnulib-tool (func_create_megatestdir): Don't include the config-h
112569         module.
112570         Suggested by Ralf Wildenhues.
112572 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
112574         Import this patch from libc:
112576         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
112578         * lib/regex_internal.c (re_string_reconstruct): Handle
112579         offset < pstr->valid_raw_len && pstr->offsets_needed case.
112580         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
112581         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
112582         re_string_context_at.
112584         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
112585         now requires it.
112586         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
112587         gl_REGEX now does it for us.
112588         (gl_REGEX): Add test taken from
112589         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
112591         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
112592         Check that large offsets work.  Modernize Autoconf usages.
112593         Prefer "yes" to mean a good thing rather than a bad.
112594         Don't put "#define mkstemp" in config.h, as this might interfere
112595         with standard system headers that "#define mkstemp mkstemp64".
112597         * modules/mkstemp (Depends-on): Add extensions, so that
112598         mkstemp is visible on some platforms.
112599         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
112600         (Include): Change to "mkstemp.h" from <stdlib.h>.
112601         (Files): Add mkstemp.h.
112603         * lib/mkstemp.h: New file, since some standard headers
112604         #define mkstemp.
112605         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
112606         Include "mkstemp.h".
112607         Make the _LIBC code resemble glibc original more,
112608         e.g., use K&R style.
112609         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112610         (mkstemp): Remove, since mkstemp.h does this for us.
112611         * lib/stdlib--.h: Include mkstemp.h.
112613         Import this patch from libc:
112615         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112617         * lib/tempname.c (__gen_tempname): Change attempts_min
112618         into a macro.  Use preprocessor to decide how to initialize
112619         attempts [Coverity CID 67].
112621 2006-09-20  Bruno Haible  <bruno@clisp.org>
112623         * lib/mkdtemp.c: Import from libc.
112624         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112625                 * sysdeps/posix/tempname.c (__gen_tempname): Change
112626                 attempts_min into a macro.  Use preprocessor to decide how to
112627                 initialize attempts [Coverity CID 67].
112628         2001-11-27  Paul Eggert  <eggert@twinsun.com>
112629                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
112630                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
112632 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112634         * gnulib-tool (func_exit): New function, to allow to pass the
112635         exit status portably through the trap.  Use everywhere.
112636         (--help, --version): Signal a write error.
112637         (trap): catch SIGPIPE, for write errors.
112638         Exit at the end of the trap, with the correct exit status.
112640 2006-09-19  Karl Berry  <karl@gnu.org>
112642         * doc/gnulib.texi: note about the license texinfo files.
112644 2006-09-19  Eric Blake  <ebb9@byu.net>
112646         * gnulib-tool: Avoid space-tab.
112648 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112650         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
112651         that prevented coreutils 6.1 from building.  Problem reported
112652         by Petter Reinholdtsen.
112654 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112656         * gnulib-tool (avoidlist): Fix typo that broke options like
112657         --avoid=lock that are used by coreutils bootstrap.
112659 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
112661         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
112662         more systematically.
112664 2006-09-18  Jim Meyering  <jim@meyering.net>
112666         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
112668 2006-09-18  Bruno Haible  <bruno@clisp.org>
112670         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
112672 2006-09-18  Bruno Haible  <bruno@clisp.org>
112674         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
112675         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
112676         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
112677         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
112678         * m4/gettext.m4: Require autoconf >= 2.52.
112679         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
112680         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112681         of gl_cv_header_inttypes_h.
112683 2006-09-18  Bruno Haible  <bruno@clisp.org>
112685         * lib/javaversion.c: Include configmake.h.
112687 2006-09-18  Bruno Haible  <bruno@clisp.org>
112689         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112690         avoid that the while loops be executed in a subshell.
112692 2006-09-18  Bruno Haible  <bruno@clisp.org>
112694         * MODULES.html.sh (func_module): Break long lines.
112695         Suggested by Bruce Korb <bkorb@gnu.org>.
112697 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112699         Speed up by a factor of 1.12.
112700         * gnulib-tool (nl): New variable.
112701         (func_import): Rewrite include directive extraction to only read each
112702         directive once.
112704 2006-09-17  Bruno Haible  <bruno@clisp.org>
112706         * modules/javaversion (Makefile.am): Remove DEFS setting.
112707         (Depends-on): Add configmake, for PKGDATADIR definition.
112709 2006-09-17  Bruno Haible  <bruno@clisp.org>
112711         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112713 2006-09-17  Bruno Haible  <bruno@clisp.org>
112715         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112716         (func_modules_transitive_closure, func_modules_add_dummy,
112717         func_modules_to_filelist, func_import, func_create_testdir,
112718         func_create_megatestdir, ...): Use it wherever possible.
112719         Suggested by Ralf Wildenhues.
112721 2006-09-16  Karl Berry  <karl@gnu.org>
112723         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112724         to avoid sectioning errors.
112725         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112726         [ifinfo]: blank line after @center-ed titles.
112727         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112728         Spell FSF address consistently with others.
112729         (These changes approved by rms.)
112731 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112733         Speed up by a factor of 1.61.
112734         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112735         already checked module names again.
112737 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112739         Speed up by a factor of 1.13.
112740         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112741         for new_files, and the input to func_add_or_update.
112743 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112745         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112746         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112748 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112750         * modules/mkancesdirs (Depends-on): Add fcntl.
112751         * modules/savewd: New file.
112752         * MODULES.html.sh (File system functions): Add savewd.
112754         * modules/configmake (Makefile.am): Add support for the
112755         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112757 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112759         * m4/savewd.m4: New file.
112761 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112763         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112764         (dirchownmod): New arg FD.  All callers changed.
112765         Use FD rather than opening the directory ourself, as opening is
112766         now the caller's responsibility.
112767         * lib/dirchownmod.h: Likewise.
112768         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112769         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112770         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112771         (test_dir): Remove.
112772         (mkancesdirs): Return length of prefix of FILE that has already
112773         been made, or -2 if there is a child doing the work.  Redo
112774         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112775         ".", and treat ".." specially since it might stray back into
112776         already-created areas.  Use a subprocess if necessary.  New arg
112777         WD; all users changed.  MAKE_DIR function should now return 1
112778         if it creates a directory that is not readable.  Return -2 if
112779         a child process is spun off.
112780         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112781         Adjust signature to match code.
112782         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112783         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112784         all users changed.
112785         * lib/savewd.c, lib/savewd.h: New files.
112787 2006-09-15  Jim Meyering  <jim@meyering.net>
112789         * modules/rename-dest-slash: New module.
112790         * MODULES.html.sh (posix_compat): Add it here.
112792         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112794 2006-09-15  Jim Meyering  <jim@meyering.net>
112796         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112797         file.
112799         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112801 2006-09-15  Jim Meyering  <jim@meyering.net>
112803         * lib/rename-dest-slash.c (has_trailing_slash): Use
112804         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112805         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112806         test before testing whether SRC is a directory.
112807         Suggestions from Bruno Haible.
112809         Avoid a warning about an unused variable.
112810         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112811         into the #ifdef block where it's used.
112813         * lib/rename-dest-slash.c: New file.
112815 2006-09-14  Bruno Haible  <bruno@clisp.org>
112817         * lib/allocsa.c: Include <config.h> unconditionally.
112818         * lib/asnprintf.c: Likewise.
112819         * lib/asprintf.c: Likewise.
112820         * lib/c-strcasecmp.c: Likewise.
112821         * lib/c-strcasestr.c: Likewise.
112822         * lib/c-strncasecmp.c: Likewise.
112823         * lib/c-strstr.c: Likewise.
112824         * lib/classpath.c: Likewise.
112825         * lib/clean-temp.c: Likewise.
112826         * lib/concatpath.c: Likewise.
112827         * lib/copy-file.c: Likewise.
112828         * lib/csharpcomp.c: Likewise.
112829         * lib/csharpexec.c: Likewise.
112830         * lib/execute.c: Likewise.
112831         * lib/fatal-signal.c: Likewise.
112832         * lib/findprog.c: Likewise.
112833         * lib/fwriteerror.c: Likewise.
112834         * lib/gl_array_list.c: Likewise.
112835         * lib/gl_array_oset.c: Likewise.
112836         * lib/gl_avltree_list.c: Likewise.
112837         * lib/gl_avltree_oset.c: Likewise.
112838         * lib/gl_avltreehash_list.c: Likewise.
112839         * lib/gl_carray_list.c: Likewise.
112840         * lib/gl_linked_list.c: Likewise.
112841         * lib/gl_linkedhash_list.c: Likewise.
112842         * lib/gl_list.c: Likewise.
112843         * lib/gl_oset.c: Likewise.
112844         * lib/gl_rbtree_list.c: Likewise.
112845         * lib/gl_rbtree_oset.c: Likewise.
112846         * lib/gl_rbtreehash_list.c: Likewise.
112847         * lib/imaxabs.c: Likewise.
112848         * lib/imaxdiv.c: Likewise.
112849         * lib/javacomp.c: Likewise.
112850         * lib/javaexec.c: Likewise.
112851         * lib/javaversion.c: Likewise.
112852         * lib/linebreak.c: Likewise.
112853         * lib/localcharset.c: Likewise.
112854         * lib/lock.c: Likewise.
112855         * lib/mbchar.c: Likewise.
112856         * lib/mbswidth.c: Likewise.
112857         * lib/mkdtemp.c: Likewise.
112858         * lib/pipe.c: Likewise.
112859         * lib/printf-args.c: Likewise.
112860         * lib/printf-parse.c: Likewise.
112861         * lib/progname.c: Likewise.
112862         * lib/progreloc.c: Likewise.
112863         * lib/readlink.c: Likewise.
112864         * lib/sh-quote.c: Likewise.
112865         * lib/stpcpy.c: Likewise.
112866         * lib/stpncpy.c: Likewise.
112867         * lib/strcasecmp.c: Likewise.
112868         * lib/strcasestr.c: Likewise.
112869         * lib/strcspn.c: Likewise.
112870         * lib/striconv.c: Likewise.
112871         * lib/strncasecmp.c: Likewise.
112872         * lib/strnlen1.c: Likewise.
112873         * lib/strstr.c: Likewise.
112874         * lib/strtok_r.c: Likewise.
112875         * lib/tls.c: Likewise.
112876         * lib/tmpdir.c: Likewise.
112877         * lib/unicodeio.c: Likewise.
112878         * lib/unsetenv.c: Likewise.
112879         * lib/vasnprintf.c: Likewise.
112880         * lib/vasprintf.c: Likewise.
112881         * lib/wait-process.c: Likewise.
112882         * lib/xallocsa.c: Likewise.
112883         * lib/xsetenv.c: Likewise.
112884         * lib/xstriconv.c: Likewise.
112886 2006-09-13  Simon Josefsson  <jas@extundo.com>
112888         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112889         that internally, suggested by Ralf Wildenhues
112890         <Ralf.Wildenhues@gmx.de>.
112892 2006-09-13  Simon Josefsson  <jas@extundo.com>
112894         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112895         @LIBOBJS@.
112896         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112898 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112900         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112901         longer worry about uses that don't define HAVE_CONFIG_H.
112902         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112903         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112904         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112905         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112906         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112907         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112908         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112909         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112910         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112911         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112912         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112913         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112914         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112915         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112916         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112917         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112918         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112919         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112920         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112921         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112922         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112923         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112924         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112925         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112926         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112927         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112928         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112929         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112930         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112931         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112932         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112933         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112934         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112935         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112936         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112937         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112938         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112939         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112940         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112941         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112942         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112943         Likewise.
112945 2006-09-13  Eric Blake  <ebb9@byu.net>
112947         * lib/getopt.c: Fix typo in last commit.
112949 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112951         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112952         dgettext.
112954 2006-09-12  Jim Meyering  <jim@meyering.net>
112956         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112957         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112958         Reported by Nelson H. F. Beebe.
112960 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112962         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112963         program_invocation_name and program_invocation_short_name are
112964         initialized.
112965         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112966         and program_invocation_short_name to argp.h, so they are visible
112967         to user programs.
112968         * lib/argp.h: Likewise
112970 2006-09-10  Bruno Haible  <bruno@clisp.org>
112972         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112973         m4/inttypes_h.m4, m4/uintmax_t.m4.
112975 2006-09-10  Bruno Haible  <bruno@clisp.org>
112977         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112978         gl_AC_TYPE_UINTMAX_T.
112980 2006-09-10  Bruno Haible  <bruno@clisp.org>
112982         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112984 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112986         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112987         convention.  Text proposed by Bruno Haible.
112988         (struct argp_option): Document the use of N_() wrappers.
112990         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112991         '\v', and translate the two parts separately, instead of feeding
112992         the whole string to gettext.  This allows to exclude
112993         '\v' from the strings visible to the translator by writing doc
112994         strings as N_("..") "\v" N_("..").
112996 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112998         * config/srclist.txt: Undo latest change; the bug was fixed.
113000 2006-09-09  Bruno Haible  <bruno@clisp.org>
113002         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
113003         assignments if building a library without libtool.
113004         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
113005         in func_emit_lib_Makefile_am.
113006         (func_import): When building a static library libfoo.a, arrange to
113007         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
113008         (func_create_testdir): Likewise.
113009         * modules/gc (configure.ac, Makefile.am): If building statically,
113010         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
113011         * modules/iconvme (configure.ac, Makefile.am): Likewise.
113012         * modules/striconv (configure.ac, Makefile.am): Likewise.
113013         Based on a suggestion by Ralf Wildenhues.
113015 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113017         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
113018         Check for unistd.h too, since Autoconf doesn't assume POSIX.
113019         Also:
113021         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113022         Add year_2050_test to catch glibc bug 2821
113023         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113025         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113026         Prefer #ifdef to #if.
113028         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
113029         Return from 'main' instead of calling 'exit'.
113031 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113033         * lib/mktime.c (guess_time_tm): Fix bug where mktime
113034         returned the maximum time_t value rather than (time_t) -1.
113035         Problem originally reported by William Bardwell
113036         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113038         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113039         Moved to here ...
113040         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113041         ... from here.
113043 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113045         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
113046         2821 is fixed.
113048 2006-09-08  Jim Meyering  <jim@meyering.net>
113050         Don't make generated files read-only.  That would bother too many
113051         people.  However, do retain the ability to work when targets are
113052         read-only: remove the destination and temporary files before writing
113053         them (when generated via sed or echo), or by using the -f option for
113054         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
113055         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113056         * modules/byteswap, modules/configmake, modules/fcntl:
113057         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113058         * modules/localcharset, modules/netinet_in, modules/poll:
113059         * modules/stdbool, modules/stdint, modules/sys_select:
113060         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113062 2006-09-08  Jim Meyering  <jim@meyering.net>
113064         Avoid new build failure on FreeBSD 6.0.
113065         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
113066         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
113067         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
113069 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
113073 2006-09-07  Jim Meyering  <jim@meyering.net>
113075         Fix global typo in last change: use chmod u-w, not chmod u-x.
113076         Spotted by Paul Eggert and Bruce Korb.
113077         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113078         * modules/byteswap, modules/configmake, modules/fcntl:
113079         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113080         * modules/localcharset, modules/netinet_in, modules/poll:
113081         * modules/stdbool, modules/stdint, modules/sys_select:
113082         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113084 2006-09-06  Jim Meyering  <jim@meyering.net>
113086         Make generated files be read-only.
113087         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
113088         Ensure that each generated file is now read-only.
113089         * modules/argz: Likewise.
113090         * modules/arpa_inet: Likewise.
113091         * modules/byteswap: Likewise.
113092         * modules/configmake: Likewise.
113093         * modules/fcntl: Likewise.
113094         * modules/fnmatch: Likewise.
113095         * modules/getopt: Likewise.
113096         * modules/glob: Likewise.
113097         * modules/inttypes: Likewise.
113098         * modules/netinet_in: Likewise.
113099         * modules/poll: Likewise.
113100         * modules/stdbool: Likewise.
113101         * modules/stdint: Likewise.
113102         * modules/sys_select: Likewise.
113103         * modules/sys_socket: Likewise.
113104         * modules/sys_stat: Likewise.
113105         * modules/sysexits: Likewise.
113106         * modules/localcharset: Same as above, but continue using temporary
113107         file named "t-$@" (why different?) rather than the "$@-t" used
113108         everywhere else.
113110         * modules/sysexits (Makefile.am): Replace literal occurrences
113111         of "sysexit.h" more readable, and more consistent, "$@".
113113 2006-09-06  Bruno Haible  <bruno@clisp.org>
113115         * modules/striconv: New file.
113116         * modules/xstriconv: New file.
113117         * MODULES.html.sh (Internationalization functions): Add striconv,
113118         xstriconv.
113120 2006-09-06  Bruno Haible  <bruno@clisp.org>
113122         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
113123         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
113124         not using libtool correctly.
113126 2006-09-06  Bruno Haible  <bruno@clisp.org>
113128         * lib/striconv.h: New file.
113129         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
113130         iconvstring.c.
113131         * lib/xstriconv.h: New file.
113132         * lib/xstriconv.c: New file.
113134 2006-09-06  Bruno Haible  <bruno@clisp.org>
113136         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
113137         lib_..._LDFLAGS.
113139 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113141         * lib/argz_.h: Sync from Libtool.
113143         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
113144                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113146         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
113148 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113150         * modules/trim: New file.
113152 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113154         * lib/trim.h: New file.
113155         * lib/trim.c: New file.
113157 2006-09-05  Bruno Haible  <bruno@clisp.org>
113159         * MODULES.html.sh (String handling): Add trim.
113161 2006-09-04  Karl Berry  <karl@gnu.org>
113163         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
113164         until next release.
113166 2006-09-03  Bruno Haible  <bruno@clisp.org>
113168         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
113169         correctly.
113171 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113173         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
113174         not gl_GETLOADAVG.  Omit unneeded semicolons.
113175         Problems reported by Ralf Wildenhues in
113176         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113177         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
113178         at the end, which is the usual gnulib style.
113180         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
113181         of doing all the work ourselves.
113182         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
113183         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
113185 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113187         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
113188         Problem reported by Ralf Wildenhues in
113189         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113191         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113192         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113194 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113196         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
113197         yesterday's patch by changing test -n to test -z.
113199 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113201         * modules/getloadavg (Files): Add m4/getloadavg.m4.
113202         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
113203         the former is now obsolescent.
113205         * modules/chdir-long (Depends-on): Add fcntl.
113207 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113209         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
113210         obsolescent, and programs should use gnulib instead.
113211         * m4/getloadavg.m4: New file, with contents taken from Autoconf
113212         but with prefixes changed.
113214 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113216         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
113217         or stdbool.h, because they might not exist while configuring.
113219         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
113220         Don't include unistd.h or limits.h; not needed, since chdir-long.h
113221         does that for us.
113222         (O_DIRECTORY): Remove.
113224 2006-08-31  Eric Blake  <ebb9@byu.net>
113226         * gnulib-tool: Don't let emacs change spaces to TAB.
113228 2006-08-31  Bruno Haible  <bruno@clisp.org>
113230         * gnulib-tool: When calling func_import more than once, do it in a
113231         subshell.
113232         Reported by Eric Blake <ebb9@byu.net>.
113234 2006-08-31  Bruno Haible  <bruno@clisp.org>
113236         * gnulib-tool (nl): Remove variable.
113237         (sed_transform_lib_file): Use more robust test for config-h module.
113238         (func_import): Fix typo in 2006-08-25 patch.
113240 2006-08-31  Bruno Haible  <bruno@clisp.org>
113242         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
113243         specified, augment Makefile.am variables instead of assigning them.
113245 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113247         Work around a bug in both the Linux and SunOS 64-bit kernels:
113248         nanosleep mishandles sleeps for longer than 2**31 seconds.
113249         Problem reported by Frank v Waveren in
113250         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
113252         Check for nanosleep bug.
113253         (LIB_NANOSLEEP): Append clock_gettime library if needed.
113255 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113257         Work around a bug in both the Linux and SunOS 64-bit kernels:
113258         nanosleep mishandles sleeps for longer than 2**31 seconds.
113259         Problem reported by Frank v Waveren in
113260         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113261         * lib/nanosleep.c (BILLION): New constant.
113262         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
113263         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
113264         implementation.
113266 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113268         * modules/nanosleep (Depends-on): Add gettime.
113270 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113271         and Simon Josefsson  <jas@extundo.com>
113272         and Oskar Liljeblad  <oskar@osk.mine.nu>
113274         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
113275         * gnulib-tool (func_import): New license type 'unmodifiable license
113276         text'.
113277         * modules/fdl: Use it.  Longer description.
113278         * module/gpl, module/lgpl: New files.
113280 2006-08-30  Jim Meyering  <jim@meyering.net>
113282         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
113283         shadowing the parameter.
113285 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113287         Sync from Libtool:
113289         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113291         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
113292         sharing with gnulib.  Report by Eric Blake.
113294 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113296         * modules/isapipe: New file.
113297         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
113299 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113301         * modules/configmake (Makefile.am): Add a comment, and omit
113302         the CONFIGMAKE_ prefix from generated macro names.  Suggested
113303         by Bruno Haible.
113305 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113307         * m4/isapipe.m4: New file.
113309 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113311         * lib/isapipe.c, lib/isapipe.h: New files.
113313 2006-08-29  Jim Meyering  <jim@meyering.net>
113315         * modules/configmake (Makefile.am): Make configmake.h depend on
113316         Makefile.  Otherwise, a stale configmake.h could hang around.
113318 2006-08-29  Eric Blake  <ebb9@byu.net>
113320         * lib/error.c (error_at_line, print_errno_message): Match libc, after
113321         resolution of upstream bug 3044.
113323 2006-08-29  Bruno Haible  <bruno@clisp.org>
113325         * modules/localcharset (Depends-on): Add configmake.
113326         (Makefile.am): Remove setting of LIBDIR through DEFS.
113328 2006-08-29  Bruno Haible  <bruno@clisp.org>
113330         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
113331         defined.
113333 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113335         * modules/fcntl: New file.
113336         * modules/chdir-safer (Depends-on): Add fcntl.
113337         * modules/fts: Likewise.
113338         * modules/mkdir-p: Likewise.
113340         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
113341         This undoes the most recent change, since we're now addressing the
113342         problem in a different way.
113344         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
113345         into output, since the output might be called Makefile.am even
113346         if $makefile_name is something different.
113347         (func_import): Use $makefile_am rather than
113348         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
113349         empty.
113351         * modules/inttypes (Files): Add m4/inttypes-h.m4.
113353 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113355         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
113356         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
113357         recent change to stdint.m4, since we're now addressing the problem in a
113358         different way.
113360 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113362         * m4/fcntl_h.m4: New file.
113364 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113366         * lib/fcntl_.h: New file.
113367         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113368         the fcntl module.
113369         * lib/dirchownmod.c: Likewise.
113370         * lib/fts.c: Likewise.
113372         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113373         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113374         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113375         just before including <inttypes.h>, to avoid circular inclusion.
113377 2006-08-28  Jim Meyering  <jim@meyering.net>
113379         * doc/visibility.texi: Actually read and correct the grammar of the
113380         sentence affected by yesterday's change.
113382 2006-08-28  Eric Blake  <ebb9@byu.net>
113384         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113385         needs wrapper.
113387 2006-08-28  Eric Blake  <ebb9@byu.net>
113389         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113391 2006-08-28  Eric Blake  <ebb9@byu.net>
113393         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113395 2006-08-28  Bruno Haible  <bruno@clisp.org>
113397         * modules/c-strstr: New file, from GNU gettext.
113398         * MODULES.html.sh (String handling): Add c-strstr.
113400 2006-08-28  Bruno Haible  <bruno@clisp.org>
113402         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113403         macros.
113404         Reported by Eric Blake.
113406 2006-08-28  Bruno Haible  <bruno@clisp.org>
113408         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113409         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113410         * lib/vasprintf.c: Include errno.h, limits.h.
113411         (EOVERFLOW): New fallback definition.
113412         (vasprintf): Test here whether the string length is > INT_MAX.
113413         * lib/vsnprintf.c: Include errno.h, limits.h.
113414         (EOVERFLOW): New fallback definition.
113415         (vsnprintf): Fix bug when generated string was too long for the buffer.
113416         Test here whether the string length is > INT_MAX.
113418 2006-08-28  Bruno Haible  <bruno@clisp.org>
113420         * lib/inttypes_.h (SCNX*): Remove definitions.
113421         Reported by Eric Blake.
113423 2006-08-28  Bruno Haible  <bruno@clisp.org>
113425         * lib/c-strstr.h: New file, from GNU gettext.
113426         * lib/c-strstr.c: New file, from GNU gettext.
113428 2006-08-28  Bruno Haible  <bruno@clisp.org>
113430         * gnulib-tool: Reorder some statements.
113432 2006-08-28  Bruno Haible  <bruno@clisp.org>
113434         * gnulib-tool: New option --makefile-name.
113435         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113436         $makefile_name.
113437         (func_import): Write $makefile_name to the cache file, and read it from
113438         there unless explicitly specified. Use $makefile_name as file name
113439         instead of Makefile.am. Adjust the recommendations accordingly.
113441 2006-08-28  Bruno Haible  <bruno@clisp.org>
113443         * gnulib-tool (func_verify_module): Check against misapplying patch.
113445 2006-08-28  Bruno Haible  <bruno@clisp.org>
113447         * gnulib-tool (func_relativize, func_relconcat): New functions.
113448         Give an error if --local-dir is given with --update.
113449         Remove trailing slashes from $local_gnulib_dir.
113450         (func_import): Store the relativized $local_gnulib_dir in
113451         gnulib-cache.m4, and read it from there if not specified explicitly.
113453 2006-08-28  Bruno Haible  <bruno@clisp.org>
113455         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113456         is the current directory. Respect also $local_gnulib_dir.
113458 2006-08-28  Bruno Haible  <bruno@clisp.org>
113459             Simon Josefsson  <jas@extundo.com>
113461         BeOS portability.
113462         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113464 2006-08-27  Jim Meyering  <jim@meyering.net>
113466         * doc/visibility.texi: Remove duplicate word: "pointer".
113468 2006-08-26  Bruno Haible  <bruno@clisp.org>
113470         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113471         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113472         (Makefile.am): Create inttypes.h from inttypes_.h.
113473         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
113475         * modules/imaxabs: New file.
113477         * modules/imaxdiv: New file.
113479 2006-08-26  Bruno Haible  <bruno@clisp.org>
113481         * m4/inttypes.m4: New file.
113482         * m4/_inttypes_h.m4: Remove file.
113483         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
113484         PRI_MACROS_BROKEN.
113485         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
113487         * m4/imaxabs.m4: New file.
113489         * m4/imaxdiv.m4: New file.
113491 2006-08-26  Bruno Haible  <bruno@clisp.org>
113493         * lib/inttypes_.h: New file.
113494         * lib/inttypes.h: Remove file.
113495         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
113497         * lib/imaxabs.c: New file.
113499         * lib/imaxdiv.c: New file.
113501 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113503         New config-h module, so that "make" output needn't be cluttered
113504         by -DHAVE_CONFIG_H.
113505         * MODULES.html.sh (Support for building libraries and executables):
113506         Add config-h.
113507         * modules/config-h: New file.
113508         * gnulib-tool (nl, sed_transform_lib_file): New vars.
113509         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
113510         the config-h module is used.
113512         New configmake module, so that "make" output needn't be cluttered
113513         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
113514         * MODULES.html.sh (Support for building libraries and executables):
113515         Add configmake.
113516         * modules/configmake: New file.
113518 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113520         * m4/config-h.m4: New file.
113522 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113524         * config/srclist.txt: Add elisp-comp.
113526 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113528         * MODULES.html.sh (Support for building libraries and executables):
113529         Add elisp-comp.
113530         * build-aux/elisp-comp: New file.
113531         * modules/elisp-comp: New file.
113533 2006-08-24  Bruno Haible  <bruno@clisp.org>
113535         * gnulib-tool (func_create_testdir): Use non-default values of
113536         sourcebase and m4base.
113538 2006-08-24  Bruno Haible  <bruno@clisp.org>
113540         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
113541         HTML structure.
113543 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
113545         * modules/openat (Depends-on): Add lchown.
113547 2006-08-23  Bruno Haible  <bruno@clisp.org>
113549         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
113550         of gl_LOCK_EARLY instead of gl_LOCK.
113552 2006-08-23  Bruno Haible  <bruno@clisp.org>
113554         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
113555         on OSF/1 to no.
113556         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
113558 2006-08-23  Bruno Haible  <bruno@clisp.org>
113560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
113561         as unusable.
113563         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
113564         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
113565         (gl_LOCK): New macro.
113567 2006-08-22  Simon Josefsson  <jas@extundo.com>
113569         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
113570         to md5 module.
113572 2006-08-22  Simon Josefsson  <jas@extundo.com>
113574         * MODULES.html.sh: Add "Support for maintaining and release
113575         projects".
113577         * build-aux/gnupload: New file, from coreutils.
113579 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113581         Avoid the need for AC_LIBSOURCES in m4 macros.
113582         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
113583         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
113584         * modules/check-version (EXTRA_DIST): Add check-version.h.
113585         * modules/crc (EXTRA_DIST): Add crc.h.
113586         * modules/des (EXTRA_DIST): Add des.h.
113587         * modules/gc (EXTRA_DIST): Add gc.h.
113588         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
113589         * modules/getline (EXTRA_DIST): Add getline.h.
113590         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
113591         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
113592         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
113593         * modules/md2 (EXTRA_DIST): Add md2.h.
113594         * modules/md4 (EXTRA_DIST): Add md4.h.
113595         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
113596         * modules/read-file (EXTRA_DIST): Add read-file.h.
113597         * modules/readline (EXTRA_DIST): Add readline.h.
113598         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
113599         rijndael-api-fst.h.
113601 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113603         * m4/rijndael.m4 (gl_ARCFOUR):
113604         * m4/arctwo.m4 (gl_ARCTWO):
113605         * m4/check-version.m4 (gl_CHECK_VERSION):
113606         * m4/crc.m4 (gl_CRC):
113607         * m4/des.m4 (gl_DES):
113608         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113609         * m4/gc.m4 (gl_GC):
113610         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113611         * m4/getline.m4 (gl_FUNC_GETLINE):
113612         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113613         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113614         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113615         * m4/md2.m4 (gl_MD2):
113616         * m4/md4.m4 (gl_MD4):
113617         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
113618         * m4/read-file.m4 (gl_FUNC_READ_FILE):
113619         * m4/readline.m4 (gl_FUNC_READLINE):
113620         * m4/rijndael.m4 (gl_RIJNDAEL):
113621         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113622         to get the necessary .h files and whatnot.
113624 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113626         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
113627         gnulib rather than the other way around.
113628         * config/srclistvars.sh (COREUTILS): Remove.
113630 2006-08-22  Jim Meyering  <jim@meyering.net>
113632         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
113634         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
113636 2006-08-22  Eric Blake  <ebb9@byu.net>
113638         * modules/regexprops-generic: New file.
113639         * MODULES.html.sh (Support for building documentation): List it.
113641 2006-08-22  Eric Blake  <ebb9@byu.net>
113643         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
113644         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
113645         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
113646         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
113648 2006-08-22  Bruno Haible  <bruno@clisp.org>
113650         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
113651         and lib_LTLIBRARIES like the other lib_* variables.
113653 2006-08-22  Bruno Haible  <bruno@clisp.org>
113655         * build-aux/x-to-1.in: New file, from GNU gettext.
113657 2006-08-22  Bruno Haible  <bruno@clisp.org>
113659         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
113660         <utmpx.h> exists.
113662 2006-08-22  Bruno Haible  <bruno@clisp.org>
113664         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
113665         <utmpx.h> exists.
113667 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113669         BeOS portability.
113670         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
113671         exist.
113672         Problem reported by Bruno Haible.
113674 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113676         Avoid the need for AC_LIBSOURCES in m4 macros.
113677         * modules/acl (EXTRA_DIST): Add acl.h.
113678         * modules/argmatch (Files): Add m4/argmatch.m4.
113679         (configure.ac): Add gl_ARGMATCH.
113680         (EXTRA_DIST): Renamed from lib_SOURCES, for
113681         consistency with the other modules.  Remove argmatch.c.
113682         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113683         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113684         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113685         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113686         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113687         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113688         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113689         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113690         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113691         * modules/closeout (EXTRA_DIST): Add closeout.h.
113692         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113693         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113694         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113695         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113696         dirname.h; remove basename.c and stripslash.c.
113697         * modules/exclude (EXTRA_DIST): Add exclude.h.
113698         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113699         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113700         * modules/file-type (EXTRA_DIST): Add file-type.h.
113701         * modules/filemode (EXTRA_DIST): Add filemode.h.
113702         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113703         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113704         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113705         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113706         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113707         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113708         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113709         * modules/getdate (EXTRA_DIST): Add getdate.c.
113710         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113711         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113712         * modules/getpass (EXTRA_DIST): Add getpass.h.
113713         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113714         * modules/group-member (EXTRA_DIST): Add group-member.h.
113715         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113716         * modules/hash (EXTRA_DIST): Add hash.h.
113717         * modules/human (EXTRA_DIST): Add human.h.
113718         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113719         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113720         * modules/lchown (EXTRA_DIST): Add lchown.h.
113721         * modules/long-options (EXTRA_DIST): Add long-options.h.
113722         * modules/lstat (EXTRA_DIST): Add lstat.h.
113723         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113724         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113725         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113726         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113727         * modules/memxor (EXTRA_DIST): Add memxor.h.
113728         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113729         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113730         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113731         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113732         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113733         * modules/physmem (EXTRA_DIST): Add physmem.h.
113734         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113735         * modules/posixver (EXTRA_DIST): Add posixver.h.
113736         * modules/quote (EXTRA_DIST): Add quote.h.
113737         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113738         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113739         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113740         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113741         regex_internal.h regexec.c.
113742         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113743         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113744         * modules/same (EXTRA_DIST): Add same.h.
113745         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113746         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113747         * modules/savedir (EXTRA_DIST): Add savedir.h.
113748         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113749         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113750         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113751         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113752         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113753         * modules/strdup (EXTRA_DIST): Add strdup.h.
113754         * modules/strftime (EXTRA_DIST): Add strftime.h.
113755         * modules/strndup (EXTRA_DIST): Add strndup.h.
113756         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113757         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113758         * modules/time_r (EXTRA_DIST): Add time_r.h.
113759         * modules/timespec (EXTRA_DIST): Add timespec.h.
113760         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113761         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113762         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113763         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113764         * modules/userspec (EXTRA_DIST): Add userspec.h.
113765         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113766         * modules/utimens (EXTRA_DIST): Add utimens.h.
113767         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113768         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113769         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113770         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113771         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113772         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113773         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113774         * modules/yesno (EXTRA_DIST): Add yesno.h.
113776 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113778         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113780         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113781         * m4/dev-ino.m4, same-inode.m4: Remove.
113783         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113784         * m4/acl.m4 (AC_FUNC_ACL):
113785         * m4/backupfile.m4 (gl_BACKUPFILE):
113786         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113787         * m4/canon-host.m4 (gl_CANON_HOST):
113788         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113789         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113790         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113791         * m4/cloexec.m4 (gl_CLOEXEC):
113792         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113793         * m4/closeout.m4 (gl_CLOSEOUT):
113794         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113795         * m4/dirname.m4 (gl_DIRNAME):
113796         * m4/exclude.m4 (gl_EXCLUDE):
113797         * m4/exitfail.m4 (gl_EXITFAIL):
113798         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113799         * m4/file-type.m4 (gl_FILE_TYPE):
113800         * m4/filemode.m4 (gl_FILEMODE):
113801         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113802         * m4/fpending.m4 (gl_FUNC_FPENDING):
113803         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113804         * m4/fts.m4 (gl_FUNC_FTS):
113805         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113806         * m4/getdate.m4 (gl_GETDATE):
113807         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113808         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113809         * m4/getpass.m4 (gl_FUNC_GETPASS):
113810         * m4/gettime.m4 (gl_GETTIME):
113811         * m4/getugroups.m4 (gl_GETUGROUPS):
113812         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113813         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113814         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113815         * m4/hash.m4 (gl_HASH):
113816         * m4/idcache.m4 (gl_IDCACHE):
113817         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113818         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113819         * m4/long-options.m4 (gl_LONG_OPTIONS):
113820         * m4/lstat.m4 (gl_FUNC_LSTAT):
113821         * m4/md5.m4 (gl_MD5):
113822         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113823         * m4/memcoll.m4 (gl_MEMCOLL):
113824         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113825         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113826         * m4/memxor.m4 (gl_MEMXOR):
113827         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113828         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113829         * m4/modechange.m4 (gl_MODECHANGE):
113830         * m4/mountlist.m4 (gl_MOUNTLIST):
113831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113832         * m4/openat.m4 (gl_FUNC_OPENAT):
113833         * m4/pathmax.m4 (gl_PATHMAX):
113834         * m4/physmem.m4 (gl_PHYSMEM):
113835         * m4/posixtm.m4 (gl_POSIXTM):
113836         * m4/posixver.m4 (gl_POSIXVER):
113837         * m4/quote.m4 (gl_QUOTE):
113838         * m4/quotearg.m4 (gl_QUOTEARG):
113839         * m4/readtokens.m4 (gl_READTOKENS):
113840         * m4/readutmp.m4 (gl_READUTMP):
113841         * m4/regex.m4 (gl_REGEX):
113842         * m4/safe-read.m4 (gl_SAFE_READ):
113843         * m4/safe-write.m4 (gl_SAFE_WRITE):
113844         * m4/same.m4 (gl_SAME):
113845         * m4/save-cwd.m4 (gl_SAVE_CWD):
113846         * m4/savedir.m4 (gl_SAVEDIR):
113847         * m4/settime.m4 (gl_SETTIME):
113848         * m4/sha1.m4 (gl_SHA1):
113849         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113850         * m4/stat-macros.m4 (gl_STAT_MACROS):
113851         * m4/stat-time.m4 (gl_STAT_TIME):
113852         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113853         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113854         * m4/strdup.m4 (gl_FUNC_STRDUP):
113855         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113856         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113857         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113858         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113859         * m4/time_r.m4 (gl_TIME_R):
113860         * m4/timespec.m4 (gl_TIMESPEC):
113861         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113862         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113863         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113864         * m4/userspec.m4 (gl_USERSPEC):
113865         * m4/utimecmp.m4 (gl_UTIMECMP):
113866         * m4/utimens.m4 (gl_UTIMENS):
113867         * m4/xalloc.m4 (gl_XALLOC):
113868         * m4/xgetcwd.m4 (gl_XGETCWD):
113869         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113870         * m4/xreadlink.m4 (gl_XREADLINK):
113871         * m4/xstrtod.m4 (gl_XSTRTOD):
113872         * m4/yesno.m4 (gl_YESNO):
113873         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113874         to get the necessary .h files and whatnot.
113876 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113877             Bruno Haible  <bruno@clisp.org>
113879         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113880         /bin/sh understanding of '!' conditional negation.
113882 2006-08-21  Jim Meyering  <jim@meyering.net>
113884         * modules/openat (Depends-on): Really alphabetize.
113886         * modules/acl (Depends-on): Add error and quote.
113888         * check-module (find_included_lib_files): Add at-func.c to the
113889         ok-to-include-more-than-once white list.
113891         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113893 2006-08-21  Bruno Haible  <bruno@clisp.org>
113895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113896         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113897         Reported by Martin Lambers <marlam@marlam.de>.
113899 2006-08-21  Bruno Haible  <bruno@clisp.org>
113901         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113902         specify an installation location, don't emit a noinst_LIBRARIES or
113903         noinst_LTLIBRARIES assignment.
113905 2006-08-21  Bruno Haible  <bruno@clisp.org>
113907         BeOS portability.
113908         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113909         BeOS has mbrtowc() but no <wctype.h>.
113911 2006-08-21  Bruno Haible  <bruno@clisp.org>
113913         BeOS portability.
113914         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113915         exist.
113917 2006-08-21  Bruno Haible  <bruno@clisp.org>
113919         BeOS portability.
113920         * lib/mbchar.h: Include <wctype.h> only if it exists.
113922 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113924         Remove files that are no longer needed by their respective modules.
113925         * m4/obstack.m4: Remove.
113926         * m4/strerror_r.m4: Remove.
113927         * m4/uint32_t.m4: Remove.
113928         * m4/uintptr_t.m4: Remove.
113929         * m4/ullong_max.m4: Remove.
113930         * m4/xstrtoimax.m4: Remove.
113931         * m4/xstrtoumax.m4: Remove.
113933         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113934         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113935         dependencies now capture this.
113937         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113938         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113939         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113940         * m4/human.m4 (gl_HUMAN): Likewise.
113941         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113942         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113944         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113946         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113947         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113948         stdint.
113949         * m4/human.m4 (gl_HUMAN): Likewise.
113950         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113951         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113952         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113953         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113954         * m4/xstrtol (gl_XSTRTOL): Likewise.
113956         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113957         AC_TYPE_LONG_LONG_INT.
113958         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113959         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113960         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113961         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113963         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113964         on stdbool.
113966         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113967         (gl_PREREQ_XSTRTOUL): Remove.
113969         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113971         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113972         mode.
113974 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113976         Add and change modules to make it easier for coreutils to use
113977         gnulib-tool.
113978         * modules/backupfile (Files): Remove m4/d-ino.m4.
113979         (Depends-on): Add d-ino.
113980         * modules/cycle-check (Depends-on): Add stdint.
113981         (lib_SOURCES): Add cycle-check.h.
113982         * modules/d-ino: New module.
113983         * modules/d-type: New module.
113984         * modules/error (Files): Remove m4/strerror_r.m4.
113985         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113986         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113987         m4/inttypes_h.m4, m4/uintmax_t.m4.
113988         (Depends-on): Add stdint.
113989         (lib_SOURCES): Add fsusage.h.
113990         * modules/getcwd (Files): Remove d-ino.m4.
113991         (Depends-on): Add d-ino.
113992         * modules/getndelim2 (Depends-on): Add stdint.
113993         * modules/glob (Files): Remove m4/d-type.m4.
113994         (Depends-on): Add d-type.
113995         * modules/host-os: New module.
113996         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113997         m4/inttypes_h.m4, m4/uintmax_t.m4.
113998         * Depends-on: Add stdint.
113999         (lib_SOURCES): Add human.h.
114000         * modules/inttostr (Files): Remove m4/intmax_t.m4,
114001         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
114002         m4/uintmax_t.m4, m4/ulonglong.m4.
114003         (Depends-on): Add stdint.
114004         (EXTRA_DIST): Add inttostr.h.
114005         * modules/lchmod: New module.
114006         * modules/link-follow: New module.
114007         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
114008         (Depends-on): Add lchmod.
114009         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
114010         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
114011         (Depends-on): Add stdint.
114012         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
114013         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
114014         (Depends-on): Add stdint.
114015         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
114016         * modules/perl: New module.
114017         * modules/regex (Depends-on): Add stdint.
114018         * modules/rmdir-errno: New module.
114019         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114020         m4/intmax_t.m4.
114021         (Depends-on): Add stdint.
114022         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114023         m4/uintmax_t.m4.
114024         (Depends-on): Add stdint.
114025         * modules/unlink-busy: New module.
114026         * modules/utimecmp (Depends-on): Add stdint.
114027         * modules/uptime: New module.
114028         * modules/winsz-ioctl: New module.
114029         * modules/winsz-termios: New module.
114030         * modules/xnanosleep (Depends-on): Add nanosleep.
114031         * modules/ullong_max: Remove.
114032         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
114033         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
114034         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
114035         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
114036         (Depends-on): Add inttypes.
114037         (lib_SOURCES): Add xstrtol.h.
114038         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
114039         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
114040         * MODULES.html.sh: Move 'assert' into the assert section.
114041         Move 'dummy' into the linking section.
114042         Remove ullong_max.
114043         Add section for compatibility checks for POSIX:2001 functions,
114044         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
114045         winsz-ioctl, and winsz-termios into it.
114046         Add lchmod.
114047         Add top-level Misc section and put host-os, perl, and uptime
114048         into it.
114050 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114052         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
114053         now assume the stdint module.  Do not include inttypes.h.
114054         * lib/fsusage.h: Likewise.
114055         * lib/getndelim2.c: Likewise.
114056         * lib/human.h: Likewise.
114057         * lib/inttostr.h: Likewise.
114058         * lib/obstack.c: Likewise.
114059         * lib/regex_internal.h: Likewise.
114060         * lib/tempname.c: Likewise.
114061         * lib/utimecmp.c: Likewise.
114062         * lib/xstrtol.h: Likewise.
114064         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
114066         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
114067         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
114068         * lib/xtime.h: Likewise.
114070 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114072         * modules/openat (Files): Add lib/fchmodat.c.
114073         Fixes problem reported by Jay Youngman.
114075 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114077         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
114078         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
114080 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
114081             Bruno Haible  <bruno@clisp.org>
114083         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
114084         and is a script that invokes bison. Tighten the code. Add comments.
114086 2006-08-18  Jim Meyering  <jim@meyering.net>
114088         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
114089         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
114090         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
114091         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
114093 2006-08-18  Bruno Haible  <bruno@clisp.org>
114095         * modules/bison-i18n: New file.
114096         * MODULES.html.sh (Internationalization functions): Add it.
114098 2006-08-18  Bruno Haible  <bruno@clisp.org>
114100         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
114101         sys/statvfs.h. When getmntinfo was found, check its declaration and
114102         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
114104 2006-08-18  Bruno Haible  <bruno@clisp.org>
114106         * m4/bison-i18n.m4: New file, from bison.
114108 2006-08-18  Bruno Haible  <bruno@clisp.org>
114110         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
114111         (ME_DUMMY): Treat "kernfs" as a dummy.
114112         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
114114 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114116         Update from coreutils.
114118         2006-08-15  Jim Meyering  <jim@meyering.net>
114120         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
114122         2006-01-17  Jim Meyering  <jim@meyering.net>
114124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
114126         2006-01-11  Jim Meyering  <jim@meyering.net>
114128         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
114129         Check for the lchmod function.
114131 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114133         Update from coreutils.
114135         * lib/__fpending.h: Add copyright notice.
114136         * lib/fprintftime.h: Likewise.
114137         * lib/savedir.c: Use (C) in copyright notice.
114138         * lib/savedir.h: Likewise.
114140         2006-08-15  Jim Meyering  <jim@meyering.net>
114142         * lib/at-func.c: New file, with the logic of all emulated at-functions.
114143         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
114144         in support of the EXPECTED_ERRNO macro.
114145         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
114146         definitions.  Instead, define the appropriate symbols and include
114147         "at-func.c".
114148         * lib/mkdirat.c (mkdirat): Likewise.
114149         * lib/fchmodat.c (fchmodat): Likewise.
114150         (ENOSYS): Remove definition.
114151         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
114152         it.  Don't include "unistd--.h" -- it wasn't ever used.
114154         2006-01-17  Jim Meyering  <jim@meyering.net>
114156         Rewrite fts.c not to change the current working directory,
114157         by using openat, fstatat, fdopendir, etc..
114159         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
114160         (HAVE_OPENAT_SUPPORT): Define.
114161         [_LIBC] (fchdir): Don't undef or define; no longer used.
114162         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
114163         Now, this `function' always succeeds, and consumes its file descriptor
114164         parameter -- so callers must not close such FDs.  Update callers.
114165         (diropen_fd, opendirat, cwd_advance_fd): New functions.
114166         (diropen): Add parameter, SP.  Adjust all callers.
114167         Implement using diropen_fd, rather than open.
114168         (fts_open): Initialize new member, fts_cwd_fd.
114169         Remove fts_rft-setting code.
114170         (fts_close): Close fts_cwd_fd, if necessary.
114171         (__opendir2): Define in terms of opendir or opendirat,
114172         depending on whether the FST_NOCHDIR flag is set.
114173         (fts_build): Since fts_safe_changedir consumes its FD, and since
114174         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
114175         and close the dup'd file descriptor upon failure.
114176         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
114177         (fts_safe_changedir): Tweak semantics to reflect that this function
114178         now calls cwd_advance_fd and hence consumes its FD argument.
114179         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
114180         [struct FTS] (fts_rft): Remove now-unused member.
114181         [struct FTS] (fts_cycle.state): Improve comment.
114183         * lib/openat.c (openat_needs_fchdir): New function.
114184         * lib/openat.h (openat_needs_fchdir): Declare it.
114186 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
114188         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
114189         Problem and fix reported by Pádraig Brady in
114190         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114192 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114194         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114196 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114198         * lib/memcoll.c (memcoll): Optimize for the common case where the
114199         arguments are bytewise equal.
114201 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114203         * doc/regexprops-generic.texi: Add a copyright notice.
114205 2006-08-15  Bruno Haible  <bruno@clisp.org>
114207         * modules/tmpdir (License): Change to LGPL.
114209 2006-08-15  Bruno Haible  <bruno@clisp.org>
114211         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
114212         module.
114214 2006-08-14  Simon Josefsson  <jas@extundo.com>
114216         * config/srclist.txt: Add gnupload.
114218 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114220         Change copyright notice from LGPL 2 to GPL 2, since that's the
114221         standard form used in the gnulib repository.
114222         * tests/test-lock.c: Likewise.
114223         * tests/test-stdint.c: Likewise.
114224         * tests/test-tls.c: Likewise.
114226         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
114227         prelude-manager.  User shorter URLs for GNU projects, without '?'.
114228         Add copyright notice.
114230         * check-module: Add copyright notice.  Output a copyright
114231         notice if "--version" is specified.
114232         * modules/COPYING: New file.
114233         * tests/test-getaddrinfo.c: Add copyright notice.
114234         * tests/test-verify.c: Likewise.
114236 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114238         Change copyright notice from LGPL 2 to GPL 2, since that's the
114239         standard form used in the gnulib repository.
114240         * lib/lock.c: LGPL -> GPL.
114241         * lib/lock.h: Likewise.
114242         * lib/strnlen1.c: Likewise.
114243         * lib/strnlen1.h: Likewise.
114244         * lib/tls.c: Likewise.
114245         * lib/tls.h: Likewise.
114246         * lib/tmpdir.c: Likewise.
114248         * lib/TODO: Remove; this belongs only in coreutils.
114250 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114252         Add copyright notices to long-enough files that lack them, since
114253         otherwise the files aren't clearly free.  Use the same notice that
114254         getdate.texi already uses.
114255         * doc/alloca-opt.texi: Add copyright notice.
114256         * doc/alloca.texi: Likewise.
114257         * doc/ctime.texi: Likewise.
114258         * doc/functions.texi: Likewise.
114259         * doc/gcd.texi: Likewise.
114260         * doc/gnulib-tool.texi: Likewise.
114261         * doc/inet_ntoa.texi: Likewise.
114262         * doc/visibility.texi: Likewise.
114264         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
114265         * doc/quote.texi: Add copyright notice.
114267         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
114268         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
114269         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
114270         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
114271         is now obsolete, and give a pointer to the Sun list.
114272         Add copyright notice.
114274 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114276         * config/srclistvars.sh: Add copyright notice.
114278 2006-08-14  Eric Blake  <ebb9@byu.net>
114280         Import the following change from libc:
114282         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
114284         Upstream bug 2997.
114285         * lib/misc/error.c: Add space between program name and message if file
114286         name is missing.
114288 2006-08-12  Karl Berry  <karl@gnu.org>
114290         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
114291         remove, these originate in gnulib now.
114293 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114295         * doc/Makefile (standards.info standards.html standards.dvi):
114296         Also depend on make-stds.texi.
114298 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114300         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
114301         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
114303         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
114304         in wchar_t.  Problem reported by Eric Blake.
114306         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
114307         LEN is smaller than SIZE.  Suggested by Bruno Haible.
114308         Also, help the compiler to keep LEN in a register.
114310 2006-08-11  Eric Blake  <ebb9@byu.net>
114312         * users.txt: Sort.  Add tar.
114314 2006-08-11  Bruno Haible  <bruno@clisp.org>
114316         * users.txt: New file.
114318 2006-08-11  Bruno Haible  <bruno@clisp.org>
114320         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
114321         before <wchar.h>. Needed for OSF/1 and BSD/OS.
114323 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114325         * modules/snprintf (Depends-on): Remove minmax.
114326         (Maintainer): Add self and Bruno.
114328 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114330         * lib/.cppi-disable: Add snprintf.h, socket_.h.
114331         * lib/snprintf.c: Include <errno.h> and <limits.h>.
114332         (EOVERFLOW): Define if the system does not.
114333         Do not include "minmax.h"; it wasn't used.
114334         (snprintf): Don't assume size_t promotes to an unsigned type.
114335         Fix bug when generated string was too long for the buffer: the
114336         buffer's contents are supposed to be the initial prefix of the
114337         output.  Don't assume vasnprintf returns EOVERFLOW if the size
114338         exceeds INT_MAX; do the check ourselves.
114340         Import the following changes from libc:
114342         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
114344         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
114345         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
114346         set wc to the byte which couldn't be converted.
114347         (re_string_reconstruct): Don't clear valid_raw_len before calling
114348         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
114349         tip_context using re_string_context_at.
114351         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
114353         * lib/posix/regex.h: g++ still cannot handled [restrict].
114355         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
114357         * lib/posix/regex.h: Remove special handling for VMS.
114359 2006-08-10  Jim Meyering  <jim@meyering.net>
114361         * modules/same-inode: New module.
114362         * modules/dev-ino: New module.
114363         * modules/cycle-check: Depend on these modules, rather than simply
114364         including their .h files.
114365         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114366         required via m4/cycle-check.m4.
114367         * modules/same: Depend on new same-inode module, rather than
114368         including same-inode.h.
114369         * modules/chdir-safer: New file.
114371         * modules/chown (Depends-on): Add stat-macros.
114373 2006-08-10  Jim Meyering  <jim@meyering.net>
114375         * m4/cycle-check.m4: New file.
114376         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114377         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114379 2006-08-10  Eric Blake  <ebb9@byu.net>
114381         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114382         in from original proposal.
114384 2006-08-10  Eric Blake  <ebb9@byu.net>
114385         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114387         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114388         namespace.
114390 2006-08-10  Bruno Haible  <bruno@clisp.org>
114392         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114393         as well.
114395 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114397         Sync from coreutils.
114399         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114401         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114402         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114404 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114406         * modules/restrict: Remove; no longer needed now that we assume
114407         Autoconf 2.59 or later.
114408         * MODULES.html.sh: Remove 'restrict'.
114409         * modules/argp (Depends-on): Remove 'restrict'.
114410         * modules/base64 (Depends-on): Likewise.
114411         * modules/gc (Depends-on): Likewise.
114412         * modules/getaddrinfo (Depends-on): Likewise.
114413         * modules/glob (Depends-on): Likewise.
114414         * modules/inet_ntop (Depends-on): Likewise.
114415         * modules/inet_pton (Depends-on): Likewise.
114416         * modules/memxor (Depends-on): Likewise.
114417         * modules/regex (Depends-on): Likewise.
114418         * modules/strtok_r (Depends-on): Likewise.
114419         * modules/time_r (Depends-on): Likewise.
114421 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114423         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114424         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114425         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114426         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114427         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114428         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114429         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114430         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114432         Merge from coreutils.
114433         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114434         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114435         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114436         * m4/time_r.m4 (gl_TIME_R): Likewise.
114438 2006-08-09  Karl Berry  <karl@gnu.org>
114440         * config/srclist.txt: no more gettext-tools, per Bruno.
114442 2006-08-08  Eric Blake  <ebb9@byu.net>
114444         * modules/verror: New module.
114445         * MODULES.html.sh: Document it.
114447 2006-08-08  Eric Blake  <ebb9@byu.net>
114449         * lib/verror.h, lib/verror.c: New files.
114451 2006-08-08  Eric Blake  <ebb9@byu.net>
114453         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114454         verror_at_line output complies with GNU Coding Standards even when
114455         file is NULL.
114457 2006-08-07  Bruno Haible  <bruno@clisp.org>
114459         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114460         versions of AIX.
114461         Reported by Ralf Wildenhues.
114463 2006-08-07  Bruno Haible  <bruno@clisp.org>
114465         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114466         in an AC_DEFUN. Needed so that the autoconf snippets can use
114467         AC_REQUIRE.
114469 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114471         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114472         Initialize pkgdata_DATA.
114473         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
114474         overriding it.
114476 2006-08-06  Eric Blake  <ebb9@byu.net>
114478         * lib/error.h: Fold in some upstream changes from glibc.
114479         * lib/error.c: Likewise.
114481 2006-08-04  Bruno Haible  <bruno@clisp.org>
114483         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114484         Make the mostlyclean-local rule depend on mostlyclean-generic.
114485         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
114487 2006-07-31  Bruno Haible  <bruno@clisp.org>
114489         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
114490         <stdlib.h>, <string.h>.
114492 2006-07-30  Bruno Haible  <bruno@clisp.org>
114494         * modules/readlink (License): Change to LGPL.
114496 2006-07-30  Bruno Haible  <bruno@clisp.org>
114498         * modules/javaversion (Makefile.am): Distribute javaversion.java and
114499         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
114500         set PKGDATADIR to point to it.
114502 2006-07-30  Bruno Haible  <bruno@clisp.org>
114504         * modules/csharpexec (configure.ac): Comment out macro invocation.
114505         * modules/javaexec (configure.ac): Likewise.
114506         * modules/javacomp-script (configure.ac): Likewise.
114508         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
114510 2006-07-30  Bruno Haible  <bruno@clisp.org>
114512         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
114513         linked-list.
114515 2006-07-30  Bruno Haible  <bruno@clisp.org>
114517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
114519 2006-07-30  Bruno Haible  <bruno@clisp.org>
114521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114522         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
114523         get removed.
114525 2006-07-29  Bruno Haible  <bruno@clisp.org>
114527         Make it possible for gnulib-tool to work with locally modified or
114528         augmented gnulib repositories.
114529         * gnulib-tool (func_usage): Document --local-dir option.
114530         (local_gnulib_dir): New variable.
114531         Handle --local-dir option.
114532         (func_lookup_file): New function.
114533         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
114534         (func_get_description, func_get_filelist, func_get_description,
114535         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
114536         func_get_automake_snippet, func_get_include_directive,
114537         func_get_license, func_get_maintainer): Use func_lookup_file.
114538         (func_import, func_create_testdir): Use func_lookup_file.
114540 2006-07-29  Bruno Haible  <bruno@clisp.org>
114542         * modules/setenv (Depends-on): Add unistd.
114544 2006-07-29  Bruno Haible  <bruno@clisp.org>
114546         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
114548 2006-07-29  Bruno Haible  <bruno@clisp.org>
114550         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
114552 2006-07-29  Bruno Haible  <bruno@clisp.org>
114554         * gnulib-tool (import, update): If there is no Makefile.am, look at
114555         aclocal.m4, instead of bailing out.
114557 2006-07-29  Bruno Haible  <bruno@clisp.org>
114559         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
114560         Categorize the options by when they are useful.
114562 2006-07-29  Bruno Haible  <bruno@clisp.org>
114564         * gnulib-tool (func_usage): Document option --no-libtool.
114565         Handle option --no-libtool.
114566         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
114567         for changed semantics of $libtool variable.
114568         (func_import): Likewise. If libtool is not used, show this through
114569         an option --no-libtool.
114570         (func_create_testdir): Update.
114572 2006-07-29  Bruno Haible  <bruno@clisp.org>
114574         * gnulib-tool (func_import): Extend error message about missing
114575         --doc-base.
114577 2006-07-29  Bruno Haible  <bruno@clisp.org>
114579         * gnulib-tool (func_import): Don't create the $docbase directory if
114580         there is no file to store there.
114582 2006-07-29  Bruno Haible  <bruno@clisp.org>
114584         * gnulib-tool (autoconf_minversion): If a --dir option is given and
114585         relevant, look for configure.ac there, not in the current directory.
114586         Also use a simple search for AC_PREREQ, not "autoconf --trace".
114588 2006-07-29  Bruno Haible  <bruno@clisp.org>
114590         * gnulib-tool (SORT): New variable.
114591         (func_usage): Undocument --assume-autoconf option.
114592         Remove --assume-autoconf option handling.
114593         (autoconf_minversion): Determine from the contents of configure.ac.
114594         (func_import): Remove autoconf_minversion handling.
114595         Suggested by Eric Blake.
114597 2006-07-29  Bruno Haible  <bruno@clisp.org>
114599         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
114601 2006-07-29  Bruno Haible  <bruno@clisp.org>
114603         * config/srclist.txt (*setenv.[ch]): Remove rules.
114605 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114607         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114609 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114611         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114612         arpa/inet.h.
114614 2006-07-28  Simon Josefsson  <jas@extundo.com>
114616         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
114617         * modules/inet_pton (Depends-on): Likewise.
114619 2006-07-28  Simon Josefsson  <jas@extundo.com>
114621         * m4/netinet_in_h.m4: New file.
114623 2006-07-28  Simon Josefsson  <jas@extundo.com>
114625         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
114626         #include's.
114628 2006-07-28  Simon Josefsson  <jas@extundo.com>
114630         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
114631         #include's.
114633 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
114635         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
114636         setgid on directories only if they set these bits.
114637         * lib/modechange.h: Remove obsolete comment about masks.
114639 2006-07-28  Eric Blake  <ebb9@byu.net>
114641         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
114642         macro expansion.
114644 2006-07-28  Bruno Haible  <bruno@clisp.org>
114646         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
114648 2006-07-28  Bruno Haible  <bruno@clisp.org>
114650         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
114652 2006-07-28  Bruno Haible  <bruno@clisp.org>
114654         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
114655         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
114656         Define fallbacks.
114657         Avoids link error on FreeBSD 4.x.
114658         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114660         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
114661         encoding.
114662         * lib/mbswidth.c (iswcntrl): Likewise.
114664 2006-07-27  Bruno Haible  <bruno@clisp.org>
114666         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
114667         test.
114669 2006-07-27  Bruno Haible  <bruno@clisp.org>
114671         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
114672         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
114673         defined.
114675 2006-07-26  Eric Blake  <ebb9@byu.net>
114677         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
114679 2006-07-26  Eric Blake  <ebb9@byu.net>
114681         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114682         like mingw that lack mkstemp.
114683         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114684         avoid compilation warning on mingw.
114686 2006-07-26  Bruno Haible  <bruno@clisp.org>
114688         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114689         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114690         INT_FAST*_MIN, INTPTR_MIN.
114692 2006-07-25  Bruno Haible  <bruno@clisp.org>
114694         * modules/version-etc (Depends-on): Add stdarg.
114696 2006-07-25  Bruno Haible  <bruno@clisp.org>
114698         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114699         complex commands.
114701 2006-07-25  Bruno Haible  <bruno@clisp.org>
114703         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114704         defined in <stdarg.h> or config.h.
114706 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114708         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114709         (gl_STDIO_SAFER): Remove.
114711 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114713         * MODULES.html.sh (File stream based Input/Output):
114714         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114715         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114716         * modules/fopen-safer, modules/tmpfile-safer: New files.
114717         * modules/stdio-safer: Remove.
114719 2006-07-24  Bruno Haible  <bruno@clisp.org>
114721         * modules/tmpdir: New file.
114722         * MODULES.html.sh (File system functions): Add it.
114724 2006-07-24  Bruno Haible  <bruno@clisp.org>
114726         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114727         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114729 2006-07-24  Bruno Haible  <bruno@clisp.org>
114731         * modules/clean-temp: New file.
114733 2006-07-24  Bruno Haible  <bruno@clisp.org>
114735         * m4/tmpdir.m4: New file, from GNU gettext.
114737 2006-07-24  Bruno Haible  <bruno@clisp.org>
114739         * lib/tmpdir.h: New file, from GNU gettext.
114740         * lib/tmpdir.c: New file, from GNU gettext.
114742 2006-07-24  Bruno Haible  <bruno@clisp.org>
114744         * lib/clean-temp.h: New file, from GNU gettext.
114745         * lib/clean-temp.c: New file, from GNU gettext.
114747 2006-07-23  Eric Blake  <ebb9@byu.net>
114749         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114750         (Depends-on): Add binary-io.
114752 2006-07-23  Eric Blake  <ebb9@byu.net>
114754         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114756 2006-07-23  Eric Blake  <ebb9@byu.net>
114758         * lib/tmpfile-safer.c: New file.
114759         * lib/stdio-safer.h (fopen_safer): Add prototype.
114760         * lib/stdio--.h (tmpfile): Make safer.
114762 2006-07-23  Bruno Haible  <bruno@clisp.org>
114764         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114765         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114766         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114767         gl_linked_remove_at): Use it.
114769 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114770         and Simon Josefsson <jas@extundo.com>
114772         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114774         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114776 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114778         * modules/close-stream: New file.
114779         * modules/closeout (Description): Make it clear that it exits
114780         with a diagnostic on error.
114781         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114782         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114784 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114786         * m4/close-stream.m4: New file.
114788 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114790         * lib/close-stream.c, lib/close-stream.h: New files.
114792 2006-07-22  Bruno Haible  <bruno@clisp.org>
114794         Merge from GNU gettext 0.15.
114796         2006-05-01  Bruno Haible  <bruno@clisp.org>
114798                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114800         2006-07-22  Bruno Haible  <bruno@clisp.org>
114802                 * modules/javaversion: New file.
114803                 * MODULES.html.sh (Java): Add javaversion.
114805         2006-03-12  Bruno Haible  <bruno@clisp.org>
114807                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114809         2005-12-04  Bruno Haible  <bruno@clisp.org>
114811                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114812                 (untested).
114814         2006-06-21  Bruno Haible  <bruno@clisp.org>
114816                 Avoid warnings from recent versions of mcs.
114817                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114818                 -o, -L, -r any more. Use options documented since mcs-1.0
114819                 instead. Similarly for -g.
114821         2005-12-04  Bruno Haible  <bruno@clisp.org>
114823                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114824                 .resources, not .resource.
114826         2005-07-09  Bruno Haible  <bruno@clisp.org>
114828                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114829                 add a .dll suffix.
114830                 Reported by Mark Junker <mjscod@gmx.de>.
114832         2006-07-22  Bruno Haible  <bruno@clisp.org>
114834                 * modules/gettext: Upgrade to gettext-0.15.
114835                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114836                 m4/visibility.m4.
114837                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114839 2006-07-22  Bruno Haible  <bruno@clisp.org>
114841         Merge from GNU gettext 0.15.
114843         2006-03-25  Bruno Haible  <bruno@clisp.org>
114845                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114847         2006-07-21  Bruno Haible  <bruno@clisp.org>
114849                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114850                 "1.1".
114852         2006-05-09  Bruno Haible  <bruno@clisp.org>
114854                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114855                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114856                 for the conftestver execution.
114858         2006-05-01  Bruno Haible  <bruno@clisp.org>
114860                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114861                 optional target-version argument. Verify that the compiler
114862                 groks source of the specified source-version, or add -source
114863                 option as necessary. Verify that the compiler produces
114864                 bytecode in the specified target-version, or add -target and
114865                 -source options as necessary. Make the result of the test
114866                 available as variable CONF_JAVAC. Also log error output in
114867                 config.log.
114869         2006-03-11  Bruno Haible  <bruno@clisp.org>
114871                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114873         2006-05-09  Bruno Haible  <bruno@clisp.org>
114875                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114876                 CLASSPATH_SEPARATOR to a semicolon.
114878         2006-03-12  Bruno Haible  <bruno@clisp.org>
114880                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114881                 available as variable CONF_JAVA, for subsequent autoconf
114882                 tests. Also log error output in config.log.
114884         2006-07-19  Bruno Haible  <bruno@clisp.org>
114886                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114887                 that getline works on glibc2 systems. Needed to avoid trouble
114888                 in relocatable.c.
114889                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114891         2005-12-04  Bruno Haible  <bruno@clisp.org>
114893                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114894                 launcher (untested).
114896         2005-12-04  Bruno Haible  <bruno@clisp.org>
114898                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114900         2006-07-22  Bruno Haible  <bruno@clisp.org>
114902                 * gettext.m4: Update from GNU gettext-0.15.
114903                 * nls.m4: Likewise.
114904                 * po.m4: Likewise.
114905                 * inttypes-pri.m4: Likewise.
114906                 * inttypes-h.m4: Renamed from inttypes.m4.
114907                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114909 2006-07-22  Bruno Haible  <bruno@clisp.org>
114911         Merge from GNU gettext 0.15.
114913         2005-07-05  Bruno Haible  <bruno@clisp.org>
114915                 * printf-args.c (printf_fetchargs): Work around broken
114916                 definition of wint_t on mingw.
114918         2005-02-12  Bruno Haible  <bruno@clisp.org>
114920                 * xallocsa.h: Add extern "C" for C++.
114922         2006-05-17  Bruno Haible  <bruno@clisp.org>
114924                 Cygwin portability.
114925                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114927         2006-04-30  Bruno Haible  <bruno@clisp.org>
114929                 * progreloc.c: Include <mach-o/dyld.h> if available.
114930                 (find_executable): Use _NSGetExecutablePath when possible.
114932         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114934                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114935                 function.
114937         2005-12-29  Bruno Haible  <bruno@clisp.org>
114939                 * progreloc.c (set_program_name_and_installdir): Fix
114940                 compilation error.
114942         2005-12-04  Bruno Haible  <bruno@clisp.org>
114944                 Cygwin portability.
114945                 * progreloc.c: Include <windows.h> also on Cygwin.
114946                 (find_executable): Add support for Cygwin.
114947                 (set_program_name_and_installdir): Handle also platforms with
114948                 nonempty EXEEXT.
114950         2006-07-11  Bruno Haible  <bruno@clisp.org>
114952                 * javacomp.c: Fix a comment.
114953                 Reported by Jim Meyering.
114955         2006-04-30  Bruno Haible  <bruno@clisp.org>
114957                 * javacomp.h (compile_java_class): Add source_version,
114958                 target_version arguments.
114959                 * javacomp.c: Rewritten to choose only a compiler that
114960                 respects the specified source_version and target_version.
114962         2006-06-27  Bruno Haible  <bruno@clisp.org>
114964                 Assume correct S_ISDIR macro.
114965                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114967         2006-07-22  Bruno Haible  <bruno@clisp.org>
114969                 * javaversion.h: New file, from GNU gettext.
114970                 * javaversion.c: New file, from GNU gettext.
114971                 * javaversion.java: New file, from GNU gettext.
114972                 * javaversion.class: New file, from GNU gettext.
114974         2006-05-17  Bruno Haible  <bruno@clisp.org>
114976                 Cygwin portability.
114977                 * javaexec.c (execute_java_class): Test for jview program
114978                 also on Cygwin.
114980         2006-04-09  Bruno Haible  <bruno@clisp.org>
114982                 * fatal-signal.c: Don't include string.h.
114983                 (at_fatal_signal): Use a copying loop instead of memcpy.
114985         2005-12-04  Bruno Haible  <bruno@clisp.org>
114987                 * csharpexec.c: Add support for 'clix' launcher (untested).
114988                 (execute_csharp_using_sscli): New function.
114989                 (execute_csharp_program): Call it.
114991         2006-06-21  Bruno Haible  <bruno@clisp.org>
114993                 Avoid warnings from recent versions of mcs.
114994                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114995                 -o, -L, -r any more. Use options documented since mcs-1.0
114996                 instead. Similarly for -g.
114998         2005-07-09  Bruno Haible  <bruno@clisp.org>
115000                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
115001                 add a .dll suffix.
115002                 Reported by Mark Junker <mjscod@gmx.de>.
115004         2006-06-17  Bruno Haible  <bruno@clisp.org>
115006                 * config.charset: Update for NetBSD 3.0.
115008         2006-05-17  Bruno Haible  <bruno@clisp.org>
115010                 Cygwin portability.
115011                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
115013         2006-05-16  Bruno Haible  <bruno@clisp.org>
115015                 * localcharset.c [CYGWIN]: Include <windows.h>.
115016                 (get_charset_aliases): For Cygwin, return the same CPxxx
115017                 aliases list as under WIN32.
115018                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
115019                 the environment variables. Fall back to GetACP().
115021         2006-04-05  Bruno Haible  <bruno@clisp.org>
115023                 * config.charset: Update Juan Manuel Guerrero's address.
115025         2005-02-12  Bruno Haible  <bruno@clisp.org>
115027                 * allocsa.h: Add extern "C" for C++.
115029         2005-02-10  Bruno Haible  <bruno@clisp.org>
115031                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
115032                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
115034         2006-07-22  Bruno Haible  <bruno@clisp.org>
115036                 * gettext.h: Update to GNU gettext-0.15.
115038 2006-07-22  Bruno Haible  <bruno@clisp.org>
115040         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
115041         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
115042         lib-prefix.m4, longdouble.m4, ssize_t.m4.
115044 2006-07-21  Eric Blake  <ebb9@byu.net>
115046         * modules/stdlib-safer: New file.
115047         * MODULES.html.sh (File stream based Input/Output): Add
115048         stdlib-safer.
115050 2006-07-21  Eric Blake  <ebb9@byu.net>
115052         * lib/stdlib-safer.h: New file from coreutils, required by
115053         stdlib--.h.
115055 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
115057         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
115059 2006-07-20  Bruno Haible  <bruno@clisp.org>
115061         * gnulib-tool: Recognize new option --assume-autoconf.
115062         (autoconf_minversion): New variable.
115063         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
115065 2006-07-20  Bruno Haible  <bruno@clisp.org>
115067         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
115069 2006-07-19  Derek R. Price  <derek@ximbiot.com>
115071         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
115072         Reindent and repaginate.
115074 2006-07-19  Derek Price  <derek@ximbiot.com>
115076         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
115077         Correct grammar.
115079 2006-07-17  Bruno Haible  <bruno@clisp.org>
115081         * modules/list: New file.
115082         * modules/array-list: New file.
115083         * modules/carray-list, modules/carray-list-tests: New files.
115084         * modules/linked-list, modules/linked-list-tests: New files.
115085         * modules/avltree-list, modules/avltree-list-tests: New files.
115086         * modules/rbtree-list, modules/rbtree-list-tests: New files.
115087         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
115088         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
115089         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
115090         * modules/oset: New file.
115091         * modules/array-oset: New file.
115092         * modules/avltree-oset, modules/avltree-oset-tests: New files.
115093         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
115094         * tests/test-carray_list.c: New file.
115095         * tests/test-linked_list.c: New file.
115096         * tests/test-avltree_list.c: New file.
115097         * tests/test-rbtree_list.c: New file.
115098         * tests/test-linkedhash_list.c: New file.
115099         * tests/test-avltreehash_list.c: New file.
115100         * tests/test-rbtreehash_list.c: New file.
115101         * tests/test-avltree_oset.c: New file.
115102         * tests/test-rbtree_oset.c: New file.
115103         * MODULES.html.sh (Container data structures): New section.
115105 2006-07-17  Bruno Haible  <bruno@clisp.org>
115107         * m4/gl_list.m4: New file.
115109 2006-07-17  Bruno Haible  <bruno@clisp.org>
115111         * lib/gl_list.h: New file.
115112         * lib/gl_list.c: New file.
115113         * lib/gl_array_list.h: New file.
115114         * lib/gl_array_list.c: New file.
115115         * lib/gl_carray_list.h: New file.
115116         * lib/gl_carray_list.c: New file.
115117         * lib/gl_linked_list.h: New file.
115118         * lib/gl_linked_list.c: New file.
115119         * lib/gl_anylinked_list1.h: New file.
115120         * lib/gl_anylinked_list2.h: New file.
115121         * lib/gl_avltree_list.h: New file.
115122         * lib/gl_avltree_list.c: New file.
115123         * lib/gl_anyavltree_list1.h: New file.
115124         * lib/gl_anyavltree_list2.h: New file.
115125         * lib/gl_rbtree_list.h: New file.
115126         * lib/gl_rbtree_list.c: New file.
115127         * lib/gl_anyrbtree_list1.h: New file.
115128         * lib/gl_anyrbtree_list2.h: New file.
115129         * lib/gl_anytree_list1.h: New file.
115130         * lib/gl_anytree_list2.h: New file.
115131         * lib/gl_linkedhash_list.h: New file.
115132         * lib/gl_linkedhash_list.c: New file.
115133         * lib/gl_anyhash_list1.h: New file.
115134         * lib/gl_anyhash_list2.h: New file.
115135         * lib/gl_avltreehash_list.h: New file.
115136         * lib/gl_avltreehash_list.c: New file.
115137         * lib/gl_rbtreehash_list.h: New file.
115138         * lib/gl_rbtreehash_list.c: New file.
115139         * lib/gl_anytreehash_list1.h: New file.
115140         * lib/gl_anytreehash_list2.h: New file.
115142         * lib/gl_oset.h: New file.
115143         * lib/gl_oset.c: New file.
115144         * lib/gl_array_oset.h: New file.
115145         * lib/gl_array_oset.c: New file.
115146         * lib/gl_avltree_oset.h: New file.
115147         * lib/gl_avltree_oset.c: New file.
115148         * lib/gl_rbtree_oset.h: New file.
115149         * lib/gl_rbtree_oset.c: New file.
115150         * lib/gl_anytree_oset.h: New file.
115152 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115154         * m4/mkancesdirs.m4: New file.
115155         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
115156         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
115157         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
115158         it.
115160 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115162         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
115163         * lib/mkancesdirs.h: New files.
115164         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
115165         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
115166         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
115167         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
115168         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
115169         callers changed.  Revamp internals significantly, by not
115170         attempting to create directories that are temporarily more
115171         permissive than the final results.  Do not attempt to use
115172         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
115173         This removes some race conditions, fixes some bugs, and simplifies
115174         things.  Use new dirchownmod function to do owner and mode changes.
115175         * lib/mkdir-p.h: Likewise.
115176         * lib/modechange.c (octal_to_mode): New function.
115177         (struct mode_change): New member mentioned.
115178         (make_node_op_equals): New arg mentioned.  All callers changed.
115179         (mode_compile): Keep track of which mode bits the user has explicitly
115180         mentioned.
115181         (mode_adjust): New arg DIR, so that we implement the X op correctly.
115182         New arg PMODE_BITS, to keep track of which mode bits the user
115183         mentioned; it treats S_ISUID and S_ISGID speciall.
115184         All callers changed.
115185         * lib/modechange.h: Likewise.
115187 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115189         * MODULES.html.sh: Add mkancestors.
115190         * modules/mkancesdirs: New module.
115191         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115192         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115193         The chdir-safer and afs files are now orphans; I'll remove them
115194         unless someone speaks up.
115195         Add lib/dirchownmod.c, lib/dirchownmod.h.
115196         (Depends-on): Remove alloca, chown, save-cwd, dirname.
115197         Add lchown, mkancesdirs.
115198         (Maintainer): Add self.
115200 2006-07-15  Karl Berry  <karl@gnu.org>
115202         * gnulib-tool: help message wording/arrangement.
115204 2006-07-14  Simon Josefsson  <jas@extundo.com>
115206         * doc/gnulib.texi (Libtool and Windows): New section.
115208 2006-07-12  Simon Josefsson  <jas@extundo.com>
115210         * modules/gendocs (License): Fix license, approved by Karl.
115212 2006-07-12  Eric Blake  <ebb9@byu.net>
115214         * MODULES.html.sh: Add gendocs.
115216 2006-07-11  Eric Blake  <ebb9@byu.net>
115218         * modules/fdl: New module, to install doc/fdl.texi.
115219         * MODULES.html.sh: Add new section for documentation modules.
115220         * gnulib-tool: Avoid space-tab.
115221         (--doc-base): New option, to manage files from doc.
115223 2006-07-11  Eric Blake  <ebb9@byu.net>
115225         * m4/absolute-header.m4: Fix comments to match recent change.
115227 2006-07-11  Eric Blake  <ebb9@byu.net>
115229         * gnulib-tool: List --doc-base before --tests-base.
115231 2006-07-11  Derek R. Price  <derek@ximbiot.com>
115233         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
115235 2006-07-11  Bruno Haible  <bruno@clisp.org>
115237         * README: Mention where to put documentation.
115239 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115241         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
115243 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115245         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
115246         to stdint.m4.
115248 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115250         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
115251         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
115252         "no/such/file/stdint.h" when there is no such file, so that
115253         the resulting C code can be parsed by dodgy compilers.
115254         Problems reported by Bob Proulx.
115256 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115258         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
115259         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115260         macros into the GNU _D_EXACT_NAMLEN.
115261         * lib/savedir.c:  Likewise.
115262         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
115264 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115265         and Paul Eggert  <eggert@cs.ucla.edu>
115267         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
115268         * m4/savedir.m4:
115269         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115270         macros into the GNU _D_EXACT_NAMLEN.
115272 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115274         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
115275         around the absolute name, to work around a problem with the HP-UX
115276         11.23 native C compiler, reported by Bob Proulx.
115278 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115280         * doc/maintain.texi, make-stds.texi: Sync from
115281         <http://savannah.gnu.org/projects/gnustandards>.
115283 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115285         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
115287 2006-07-09  Jim Meyering  <jim@meyering.net>
115289         * m4/glob.m4: Remove a doubled word in a comment.
115291 2006-07-09  Jim Meyering  <jim@meyering.net>
115293         * lib/argp-pv.c: Remove a doubled word in a comment.
115294         * lib/check-version.c (check_version): Likewise.
115295         * lib/javacomp.c (compile_java_class): Likewise.
115297 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115299         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
115300         for the benefit of people using Autoconf 2.60.  If you want to
115301         support older Autoconf versions you can copy m4/onceonly_2_57.m4
115302         (or m4/onceonly.m4, if pre-2.57) manually.
115304 2006-07-08  Jim Meyering  <jim@meyering.net>
115306         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
115307         comment.
115308         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
115309         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
115310         comment.
115312 2006-07-08  Jim Meyering  <jim@meyering.net>
115314         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
115316 2006-07-07  Simon Josefsson  <jas@extundo.com>
115318         * tests/test-crc.c: Change expected crc value, the test vector
115319         were probably computed using the old broken crc.c?
115321 2006-07-06  Simon Josefsson  <jas@extundo.com>
115323         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
115324         now the canonical place for the M4 file).
115326         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
115327         from the sys_socket dependency now.
115329         * modules/inet_pton (Files): Ditto.
115331         * modules/inet_ntop (Files): Ditto.
115333 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115335         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
115336         not gl_PREREQ_GETUSERSHELL.
115338 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115340         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
115341         with only one argument, for Autoconf 2.60.
115342         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
115343         expand to nothing, so add a shell command to avoid syntax error.
115344         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115346 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115348         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
115350 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115352         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
115353         no longer needed.  Check for isblank decl.
115354         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
115355         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
115356         of existence.
115358 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115360         * lib/getloadavg.c: Use __VMS, not VMS.
115361         * lib/getopt.c: Likewise.
115362         * lib/getpagesize.h: Likewise.
115363         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115364         and probably does not work.
115366 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115368         * lib/.cppi-disable: Add wcwidth.
115369         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115370         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115371         (ISGRAPH): Remove.  All uses changed to isgraph.
115372         (FOLD) [!defined _LIBC]: Remove special case.
115373         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115374         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115375         HAVE_ISBLANK.
115376         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115377         case.
115379 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115381         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115382         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115383         brackets.  Other minor changes to suppress some compiler
115384         warnings.
115386 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115387         and Paul Eggert  <eggert@cs.ucla.edu>
115389         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115390         of invoking obsolescent AC_HEADER_DIRENT macro.
115391         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115392         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115393         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115395         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115396         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115397         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115398         * m4/readdir.m4: Remove; no longer needed.
115400 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115401         and Paul Eggert  <eggert@cs.ucla.edu>
115403         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115404         Don't worry about this obsolete case any more.
115405         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115406         directories.
115407         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115408         worry about this obsolete case any more.
115409         * lib/fts.c: Likewise.
115410         * lib/getcwd.c: Likewise.
115411         * lib/glob.h: Likewise.
115412         * lib/savedir.c: Likewise.
115414 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115416         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115417         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115418         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115419         needed.
115420         All uses removed.
115421         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115422         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115423         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115424         needed.
115425         * m4/getdate.m4 (gl_GETDATE): Likewise.
115426         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115427         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115428         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115429         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115430         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115431         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115432         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115433         needed.
115435 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115437         * lib/memcasecmp.c: Include <limits.h>.
115438         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115439         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115440         Don't assume isdigit succeeds only on '0' through '9'.
115442 2006-07-05  Eric Blake  <ebb9@byu.net>
115444         * modules/getaddrinfo (Depends-on): Add snprintf.
115446 2006-07-05  Eric Blake  <ebb9@byu.net>
115448         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115449         to avoid 'header present but could not be compiled' on cygwin.
115451 2006-07-05  Eric Blake  <ebb9@byu.net>
115453         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115454         missing from netdb.h.
115455         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115457 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115459         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115460         no longer needed.
115461         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115462         * m4/getdate.m4 (gl_GETDATE): Likewise.
115463         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115464         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115465         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115466         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115467         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115469 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115471         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115472         All uses of is_space replaced by isspace.
115473         * lib/exit.h: Don't talk about STDC_HEADERS.
115474         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
115475         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
115476         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
115477         replaced by isprint etc.
115478         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
115479         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115480         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
115481         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
115482         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
115483         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115485 2006-07-05  Bruno Haible  <bruno@clisp.org>
115487         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
115488         the function exists, before testing against AIX.
115489         Reported by Martin Lambers <marlam@marlam.de>.
115491 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115493         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
115494         From Mark D. Baushke.
115496 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
115499         to the absolute name, not just one, to bypass Sun C 5.8's
115500         "warning: #include of /usr/include/... may be non-portable".
115502 2006-07-04  Eric Blake  <ebb9@byu.net>
115504         * modules/dirname-tests: New test module.
115505         * tests/test-dirname.c: New file, replacing dirname.c
115506         TEST_DIRNAME section that was recently deleted.
115508 2006-07-04  Bruno Haible  <bruno@clisp.org>
115510         Assume ANSI C header files and <ctype.h> functions.
115511         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
115512         (mbsnwidth): Use isprint, iscntrl instead.
115514 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115516         Merge from coreutils.
115517         * MODULES.html.sh: Add xstrtold.
115518         * modules/xstrtold: New file.
115519         * modules/cycle-check (Files): Add lib/same-inode.h.
115520         * modules/dirname (Files): Add m4/double-slash-root.m4.
115521         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
115522         * modules/mkdir-p (Files): Add lib/same-inode.h.
115523         * modules/same (Files): Add lib/same-inode.h.
115525 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115527         * m4/absolute-header.m4: Renamed from full-header-path.m4.
115528         This is to keep the terminology clean; POSIX talks about
115529         "absolute pathnames", not "full pathnames", but the GNU
115530         Coding Standards say to use "path" for something else;
115531         so use "absolute" to keep both sides happy.
115532         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
115533         Set gl_absolute_header, not gl_full_header_path.
115534         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
115535         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
115536         All uses changed.
115538         Merge from coreutils.
115540         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115542         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
115543         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
115544         want to require the building of c-strtod.o.
115545         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
115546         needs -lm directly.
115547         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
115549         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115551         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
115552         --as-needed option if available.  Problem reported by Albert Chin in
115553         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
115554         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
115555         cc merely issues a bunch of annoying warnings for --as-needed
115556         (this problem was reported by Bob Proulx).  Also, try linking with
115557         -lm to detect a bug in binutils 2.16 (this problem was reported
115558         by Ralf Wildenhues).
115560         2006-06-18  Jim Meyering  <jim@meyering.net>
115562         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
115563         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
115564         macro.
115565         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
115566         also check for glibc-2.4's abort-inducing bug.
115568         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
115569         Low-probability clean-up should be to use rmdir to get rid of
115570         the just-created directory, not unlink.
115572         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
115573         configure fail, and request a bug report to inform us about it.
115574         Add a comment that, barring reports to the contrary, in 2007 we'll
115575         assume ftruncate is universally available.
115577         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115579         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
115581         2006-03-12  Jim Meyering  <jim@meyering.net>
115583         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
115584         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
115585         * m4/same.m4 (gl_SAME): Likewise.
115586         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
115588         2006-03-11  Eric Blake  <ebb9@byu.net>
115590         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
115591         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
115592         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
115593         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
115595 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115597         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
115598         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
115599         reported by Mark D. Baushke, one in
115600         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
115602         Merge from coreutils.
115604         * lib/.cppi-disable: Add stdint_.h.
115605         * lib/.cvsignore: Add stdint.h.
115607         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115609         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115610         both double and long double versions.
115611         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115612         * lib/xstrtold.c: New file.
115613         * lib/xstrtod.h (xstrtold): New decl.
115615         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115617         * lib/filemode.c (setst): Remove.
115618         (strmode): Rewrite to avoid setst.  This makes the code shorter,
115619         (arguably) clearer, and the generated code is a bit smaller on my
115620         Debian GNU/Linux stable x86 host.
115622         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115624         * lib/filemode.c: Include "filemode.h" first, to test the interface.
115625         Assume that filemode.h includes sys/types.h and sys/stat.h.
115626         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
115627         (ftypelet): Reorder to put common cases first, for efficiency.
115628         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
115629         to do 'M'.
115630         (strmode): Renamed from mode_string, and now stores 12 bytes instead
115631         of 10, for compatibility with FreeBSD.  All callers changed.
115632         (filemodestring): Now stores 12 bytes instead of 10, and sets file
115633         types that can't be deduced solely from st_mode.  First arg is now a
115634         const pointer.
115635         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
115636         (strmode): Renamed from mode_string.
115637         (filemodestring): New decl.
115638         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
115639         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
115640         needed.
115641         (S_ISPORT, S_ISWHT): New macros, if not already defined.
115643         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
115645         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
115646         fsusage.h now does that.  Include fsusage.h first, to test interface.
115647         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
115648         at most one method (the old code could have generated decls that
115649         didn't conform to C89, not that this was ever exercised).
115650         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
115652         2006-03-19  Jim Meyering  <jim@meyering.net>
115654         Work even in a chroot where d_ino values for entries in "/"
115655         don't match the stat.st_ino values for the same names.
115656         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
115657         number, iterate through all entries again, using lstat instead.
115658         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
115659         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
115661         * lib/getcwd.c (__getcwd): Clarify a comment.
115662         Use memcpy in place of a call to strcpy.
115664         2006-03-12  Jim Meyering  <jim@meyering.net>
115666         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
115667         matches that of the current directory (which we're about to chdir ".."
115668         out of), then save the dev-ino of the parent, instead.
115670         * lib/same-inode.h (SAME_INODE): New file/macro.
115671         * lib/chdir-safer.c (SAME_INODE): Remove definition.
115672         Include "same-inode.h", instead.
115673         * lib/same.c: Likewise.
115674         * lib/cycle-check.h: Include "same-inode.h".
115675         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
115676         * lib/cycle-check.c (SAME_INODE): Remove definition.
115677         * lib/root-dev-ino.h: Include "same-inode.h".
115679         2006-03-11  Eric Blake  <ebb9@byu.net>
115681         * lib/same.c (same_name): s/base_name/last_component/
115682         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115683         * lib/filenamecat.c (file_name_concat): Likewise.
115685         2006-03-11  Eric Blake  <ebb9@byu.net>,
115686                     Paul Eggert  <eggert@cs.ucla.edu>
115688         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115689         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115690         drive prefix.
115691         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115692         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115693         (last_component): New method.
115694         * lib/dirname.c (dir_len): Determine when drive letters need a
115695         subsequent slash.  Preserve // when it is special.
115696         (dir_name): Don't append dot when drive letter is absolute.
115697         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115698         * lib/basename.c (base_name): New semantics - malloc the result.
115699         Preserve // when it is special.  Preserve relative files that look
115700         like drive letters.
115701         (base_len): Preserve // when it is special.
115702         (last_component): New method, similar to old base_name semantics.
115703         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115704         base_name.  Strip redundant slashes from ///.
115706 2006-07-03  Jim Meyering  <jim@meyering.net>
115708         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115709         macro is used before the first cycle_check call.
115711 2006-07-03  Eric Blake  <ebb9@byu.net>
115713         * modules/dirname (Depends-on): Add xstrndup.
115715 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115717         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115718         test cases, so that config.log is a bit easier to follow.
115720 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115722         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115723         both are 64 bits, since this seems to be the tradition, and this
115724         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115725         we ever run into a host that prefers long long to long in this
115726         case, we'll need another configure-time test.  Problem reported by
115727         Jim Meyering.
115729 2006-07-02  Eric Blake  <ebb9@byu.net>
115731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115733 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115735         * modules/inttypes (Depends-on): No longer depends on stdint.
115736         * modules/stdint (Description): Say more about assumptions.
115737         Say that the fast types might differ.  Say macros are used.
115738         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115739         (Makefile.am): Revise list of substituted symbols to match
115740         new stdint.m4.
115741         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115742         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115743         * tests/test-stdint.c (verify_same_types)
115744         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115745         the code conforms to C99/C89.
115746         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115747         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115749 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115751         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115752         but fix a bug, by requiring at least 64 bits.
115753         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115754         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115755         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115756         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115758         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115759         changes.  Make 2.59 a prerequisite.  Check and substitute for
115760         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115761         inttypes.h.  Do not use special include files; just use the
115762         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115763         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115764         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115765         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115766         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115767         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115768         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115769         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115770         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115771         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115772         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115773         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115774         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115775         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115776         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115777         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115778         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115779         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115780         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115781         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115782         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115783         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115784         not check for things that C99 does not require, e.g., int8_t.  If
115785         a test isn't needed unless <stdint.h> isn't working, and is
115786         unlikely to be needed for any other reason, then don't do it
115787         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115788         size_t, since we assume C89 freestanding at least.  Do not check
115789         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115790         the right thing even if the types are not defined.  Instead use:
115791         (gl_STDINT_TYPE_PROPERTIES): New macro.
115792         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115793         testing whether <sys/types.h> clashes, as Autoconf does this for
115794         us now.  All uses removed.
115795         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115796         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115797         (gl_CHECK_TYPE_SAME):
115798         Remove; no longer needed.
115799         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115800         exists, since we'll return 0 anyway in that case.
115801         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115803 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115805         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115806         possible collision with system files.
115807         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115808         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115809         WCHAR_MIN and WCHAR_MAX in this case.
115810         (<stddef.h>): Do not include; no longer needed.
115811         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115812         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115813         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115814         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115815         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115816         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115817         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115818         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115819         !defined(__c99))]: Include in this case too, since it's harmless
115820         now.
115821         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115822         dangerous to do so.
115823         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115824         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115825         (_STDINT_MIN, _STDINT_MAX): New macros.
115826         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115827         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115828         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115829         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115830         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115831         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115832         macros, not typedefs; this simplifies things quite a bit.
115833         Use long int for all types narrower than int64_t.
115834         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115835         Define in terms of long long int or int64_t or long int,
115836         not int64_t or int32_t.  This saves some compile-time testing.
115837         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115838         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115839         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115840         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115841         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115842         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115843         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115844         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115845         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115846         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115847         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115848         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115849         undef any previous version and define our own version, for
115850         simplicity and consistency with the new macros for types.
115851         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115852         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115853         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115854         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115855         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115856         @WINT_T_SUFFIX@ to keep things simple here.
115857         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115858         Simplify by assuming typical 8/16/32/64 host, since we're
115859         already doing that elsewhere anyway.
115860         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115861         and assume long long int is 64 bits if available.  This
115862         speeds up 'configure'.
115864 2006-07-01  Eric Blake  <ebb9@byu.net>
115866         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115867         Reported by Andreas Buening.
115869 2006-07-01  Eric Blake  <ebb9@byu.net>
115871         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115873 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115875         * lib/getaddrinfo.c: fixed typo
115877 2006-06-29  Jim Meyering  <jim@meyering.net>
115879         * modules/strftime (Maintainer): Add my name, since with the
115880         FPRINTFTIME changes strftime.c has forked from glibc.
115882 2006-06-29  Eric Blake  <ebb9@byu.net>
115884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115886 2006-06-29  Eric Blake  <ebb9@byu.net>
115888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115890 2006-06-29  Eric Blake  <ebb9@byu.net>
115892         * lib/stat_.h: New file.
115894 2006-06-29  Eric Blake  <ebb9@byu.net>
115896         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115897         unused static function.
115899 2006-06-29  Eric Blake  <ebb9@byu.net>
115901         * doc/functions.texi (Function Portability): Document missing lstat
115902         on mingw.
115904 2006-06-29  Eric Blake  <ebb9@byu.net>
115906         * MODULES.html.sh: Add sys_stat.
115907         * modules/sys_stat: New module.
115908         * modules/mkstemp (Depends-on): Add sys_stat.
115910 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115912         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115914 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115916         * m4/c-bs-a.m4: Removed.
115918 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115920         * lib/strftime.c: Assume strftime() exists.
115922 2006-06-29  Derek Price  <derek@ximbiot.com>
115924         * modules/c-bs-a: Removed - \a is C89.
115925         * MODULES.html.sh: Remove c-bs-a.
115927 2006-06-29  Bruno Haible  <bruno@clisp.org>
115929         * modules/wcwidth (License): Change to LGPL.
115931 2006-06-28  Simon Josefsson  <jas@extundo.com>
115933         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115934         on _WIN32.
115936         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115937         getnameinfo.
115939 2006-06-28  Simon Josefsson  <jas@extundo.com>
115941         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115943 2006-06-28  Simon Josefsson  <jas@extundo.com>
115945         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115946         functions there.  It will succeed on Windows XP, but on Windows
115947         2000 and (presumably) earlier, it will fail, and use the internal
115948         re-implementation.
115949         (use_win32_p): New function.
115950         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115951         Support AI_NUMERICSERV to disable getservbyname.
115952         (getnameinfo): New function, only supports
115953         NI_NUMERICHOST|NI_NUMERICSERV for now.
115955         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115956         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115957         getnameinfo.
115959 2006-06-28  Eric Blake  <ebb9@byu.net>
115961         * modules/wcwidth: New file.
115962         * modules/mbchar (Depends-on): Add wcwidth.
115963         * modules/mbswidth (Depends-on): Add wcwidth.
115964         * MODULES.html.sh: Add wcwidth.
115966 2006-06-28  Eric Blake  <ebb9@byu.net>
115968         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115971 2006-06-28  Eric Blake  <ebb9@byu.net>
115973         * lib/xvasprintf.h: Fix comments.
115975 2006-06-28  Eric Blake  <ebb9@byu.net>
115977         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115978         * lib/mbswidth.c (wcwidth): Move from here...
115979         * lib/wcwidth.h: ...to this new file.
115981 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115983         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115985         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115986         it's obsolete.
115987         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115989 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115991         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115992         Autoconf 2.60 says this stuff was obsolete.
115994 2006-06-28  Bruno Haible  <bruno@clisp.org>
115996         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115998 2006-06-28  Bruno Haible  <bruno@clisp.org>
116000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
116001         gt_TYPE_WCHAR_T.
116003 2006-06-28  Bruno Haible  <bruno@clisp.org>
116005         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
116006         declaration for wcwidth.
116007         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
116009 2006-06-28  Bruno Haible  <bruno@clisp.org>
116011         * lib/mkdtemp.c [MINGW]: Include <io.h>.
116012         (mkdir): Define using _mkdir.
116014 2006-06-28  Bruno Haible  <bruno@clisp.org>
116016         * lib/getaddrinfo.h: Fix POSIX URL.
116017         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
116018         _WIN32.
116019         (use_win32_p): Make static.
116020         (getaddrinfo): Reject service name if it is empty or does not consist
116021         solely of decimal digits, or if its value is > 65535.
116022         (getnameinfo): Remove useless casts.
116024 2006-06-27  Simon Josefsson  <jas@extundo.com>
116026         * modules/sys_select: New file, suggested by Bruno Haible, Paul
116027         Eggert and Martin Lambers.
116029 2006-06-27  Simon Josefsson  <jas@extundo.com>
116031         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
116032         Eggert and Martin Lambers.
116034 2006-06-27  Bruno Haible  <bruno@clisp.org>
116036         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
116037         result to 0, not to empty.
116038         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
116040 2006-06-27  Bruno Haible  <bruno@clisp.org>
116042         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
116044 2006-06-26  Simon Josefsson  <jas@extundo.com>
116046         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
116047         present.
116049 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
116051         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
116052         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
116053         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
116055 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
116057         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
116059 2006-06-26  Bruno Haible  <bruno@clisp.org>
116061         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
116063 2006-06-26  Bruno Haible  <bruno@clisp.org>
116065         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
116067 2006-06-26  Bruno Haible  <bruno@clisp.org>
116069         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
116070         SGI C compiler in pre-C99 mode.
116071         Suggested by Mark D. Baushke and Larry Jones.
116073 2006-06-26  Bruno Haible  <bruno@clisp.org>
116075         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
116076         WCHAR_MAX.
116077         Reported by Mark D. Baushke and Larry Jones.
116079 2006-06-26  Bruno Haible  <bruno@clisp.org>
116081         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
116082         in pre-C99 mode.
116083         Suggested by Mark D. Baushke and Larry Jones.
116085 2006-06-23  Simon Josefsson  <jas@extundo.com>
116086             Bruno Haible  <bruno@clisp.org>
116088         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
116089         Emit mostlyclean-local rule.
116090         (func_emit_tests_Makefile_am): Likewise.
116091         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
116093 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
116095         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
116097 2006-06-23  Bruno Haible  <bruno@clisp.org>
116099         * tests/test-stdint.c: Update to match ISO C 99 Technical
116100         Corrigendum 1.
116102 2006-06-23  Bruno Haible  <bruno@clisp.org>
116104         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
116106 2006-06-23  Bruno Haible  <bruno@clisp.org>
116108         * lib/stdint_.h: Treat IRIX like OpenBSD.
116110 2006-06-23  Bruno Haible  <bruno@clisp.org>
116112         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
116113         ISO C 99 Technical Corrigendum 1.
116115 2006-06-22  Simon Josefsson  <jas@extundo.com>
116117         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
116118         MinGW.
116120 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116122         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
116123         needed.  Some compiler complained about some of them.  Problem reported
116124         by Larry Jones in
116125         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
116127 2006-06-21  Simon Josefsson  <jas@extundo.com>
116129         * tests/test-getaddrinfo.c: New file.
116131         * modules/getaddrinfo-tests: New file.
116133         * MODULES.html.sh: Add inet_pton.
116135         * modules/inet_pton: New file.
116137 2006-06-21  Simon Josefsson  <jas@extundo.com>
116139         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
116140         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
116141         of using the (limited) gnulib implementation on Windows XP.
116143         * m4/inet_pton.m4: New file.
116145 2006-06-21  Simon Josefsson  <jas@extundo.com>
116147         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
116148         variable.
116150         * lib/socket_.h: Don't define WINVER.
116152         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
116153         slightly modified to work in gnulib.
116155 2006-06-21  Simon Josefsson  <jas@extundo.com>
116157         * doc/gnulib.texi (Windows sockets): Add.
116159 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
116161         * lib/read-file.c (fread_file): Start with buffer allocation of
116162         0 bytes rather than 1 byte; this simplifies the code.
116163         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
116164         code to free buffer and save/restore errno.
116165         (internal_read_file): Remove unused local.
116167 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
116169         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
116170         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
116171         Problem reported by Denis Excoffier in
116172         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
116174 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116176         * modules/sys_socket, modules/socklen: Include sys/types since
116177         FreeBSD 4.x's sys/socket.h needs it.
116179 2006-06-19  Simon Josefsson  <jas@extundo.com>
116181         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
116183 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116185         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
116187 2006-06-19  Bruno Haible  <bruno@clisp.org>
116189         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
116190         and FULL_PATH_INTTYPES_H in angle brackets.
116191         Reported by Mark D. Baushke <mdb@gnu.org>.
116193 2006-06-17  Eric Blake  <ebb9@byu.net>
116195         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116196         errno.
116198 2006-06-17  Bruno Haible  <bruno@clisp.org>
116200         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
116201         <sys/inttypes.h>.
116203 2006-06-17  Bruno Haible  <bruno@clisp.org>
116205         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
116206         whether errno is declared. Assume <errno.h> declares errno.
116208 2006-06-17  Bruno Haible  <bruno@clisp.org>
116210         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
116212 2006-06-17  Bruno Haible  <bruno@clisp.org>
116214         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
116215         problem on Solaris 2.5.1.
116217 2006-06-16  Eric Blake  <ebb9@byu.net>
116219         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
116220         * lib/unicodeio.c [!defined errno]: Likewise.
116221         * lib/strtol.c [!defined errno]: Likewise.
116222         * lib/strtod.c [!defined errno]: Likewise.
116224 2006-06-15  Eric Blake  <ebb9@byu.net>
116226         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
116228 2006-06-15  Eric Blake  <ebb9@byu.net>
116230         * config/srclist.txt (ssize_t.m4): Lose sync.
116232 2006-06-15  Bruno Haible  <bruno@clisp.org>
116234         * modules/stdint (Files): Include m4/full-header-path.m4,
116235         m4/size_max.m4, m4/wchar_t.m4.
116236         (Makefile.am): Many more substitutions.
116237         * modules/stdint-tests: New file.
116238         * tests/test-stdint.c: New file.
116240 2006-06-15  Bruno Haible  <bruno@clisp.org>
116242         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
116243         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
116244         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
116245         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
116246         gl_CHECK_TYPE_SAME): New macros.
116248 2006-06-15  Bruno Haible  <bruno@clisp.org>
116250         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
116252 2006-06-15  Bruno Haible  <bruno@clisp.org>
116254         * lib/stdint_.h: Rewritten to be fully auto-configured.
116255         Fixes bug on HP-UX/IA64.
116257 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
116259         * lib/getdate.y (__attribute__): Don't define if already defined.
116260         Problem reported by Larry Jones.
116261         * lib/utimens.c (__attribute__): Likewise.
116263 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
116265         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
116266         reported by Andreas Schwab.
116268 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116269             Bruno Haible  <bruno@clisp.org>
116271         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
116272         check for the declaration of strnlen and a run test that exposes the
116273         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
116274         rpl_strndup.
116276 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116277             Bruno Haible  <bruno@clisp.org>
116279         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
116281 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116283         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
116284         compile test, for Tru64 4.0D.
116286 2006-05-28  Karl Berry  <karl@gnu.org>
116288         * config/srclist.txt (printf-args.c): lose sync.
116290 2006-05-26  Martin Lambers  <marlam@marlam.de>
116292         * lib/getpass.c: Updates the test for the native W32 API, and adds
116293         missing includes, thus fixing compilation warnings.
116295 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116297         * lib/exclude.c (exclude_fnmatch): New function.
116298         (excluded_file_name): Call exclude_fnmatch.
116299         * lib/exclude.h (excluded_file_name): New prototype
116301 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
116303         * lib/tempname.c (small_open, large_open): New macros.
116304         (__open, __open64) [!_LIBC]: Remove.
116305         (__gen_tempname): Use small_open and large_open instead of __open
116306         and __open64.  This fixes a portability bug on HP-UX 11.11i
116307         reported by Simon Wing-Tang in
116308         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
116310 2006-05-24  Bruno Haible  <bruno@clisp.org>
116312         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
116313         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
116314         Reported by Thorsten Maerz <torte@netztorte.de> via
116315         Aaron Stone <aaron@serendipity.cx>.
116317 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
116320         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
116321         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
116322         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
116323         not really conditional on the cache.
116324         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
116326 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116328         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
116329         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
116330         (my_usleep): Don't mishandle maximum value.
116332 2006-05-19  Jim Meyering  <jim@meyering.net>
116334         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
116336 2006-05-17  Bruno Haible  <bruno@clisp.org>
116338         Cygwin portability.
116339         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
116341 2006-05-17  Bruno Haible  <bruno@clisp.org>
116343         * lib/stdint_.h: Fix recognition of Cygwin.
116345 2006-05-15  Bruno Haible  <bruno@clisp.org>
116347         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
116348         on libtool patch by Ralf Wildenhues.
116350 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
116352         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
116353         test for C99 conformance; (bool) 0.5 is an integer constant
116354         expression, but (bool) -0.5 is not.  Problem reported by Fedor
116355         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
116357 2006-05-11  Simon Josefsson  <jas@extundo.com>
116359         * m4/xvasprintf.m4: Fix obvious typo.
116361 2006-05-11  Jim Meyering  <jim@meyering.net>
116363         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116364         James Lemley.
116366 2006-05-10  Simon Josefsson  <jas@extundo.com>
116368         * lib/md4.c: Typo fix, update copyright years.
116369         (K1, K2): Don't use L because it turn computations into 64-bit on
116370         64-bit platforms.
116372 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116374         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116375         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116376         unwanted sign propagation, e.g., on hosts with 64-bit int.
116377         There still are some problems with reeelly weird theoretical hosts
116378         (e.g., 33-bit int) but it's not worth worrying about now.
116379         * lib/sha1.c (rol): Likewise.
116380         (K1, K2, K3, K4): Remove unnecessary L suffix.
116382 2006-05-10  Bruno Haible  <bruno@clisp.org>
116384         * lib/des.c: Cast to avoid warnings.
116386 2006-05-09  Bruno Haible  <bruno@clisp.org>
116388         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116389         (Depends-on): Depend also on xsize, stdarg.
116390         (configure.ac): Add gl_XVASPRINTF.
116392 2006-05-09  Bruno Haible  <bruno@clisp.org>
116394         * m4/xvasprintf.m4: New file.
116396 2006-05-09  Bruno Haible  <bruno@clisp.org>
116398         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116399         (EOVERFLOW): Define fallback value.
116400         (xstrcat): New function.
116401         (xvasprintf): Recognize the special case of a string concatenation.
116403 2006-05-08  Eric Blake  <ebb9@byu.net>
116405         * gnulib-tool (func_version): Base copyright year on CVS date.
116406         (func_emit_copyright_notice): New function.
116407         (func_emit_lib_Makefile_am): Use it.
116408         (func_emit_tests_Makefile_am): Likewise.
116409         (func_import): Likewise.
116411 2006-05-08  Bruno Haible  <bruno@clisp.org>
116413         * modules/stdarg: New file.
116414         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116416 2006-05-08  Bruno Haible  <bruno@clisp.org>
116418         * m4/stdarg.m4: New file, from GNU gettext.
116420 2006-05-08  Bruno Haible  <bruno@clisp.org>
116422         * config/srclist.txt (build-aux/config.rpath): different from latest
116423         release.
116425 2006-05-08  Bruno Haible  <bruno@clisp.org>
116427         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116429 2006-05-05  Jim Meyering  <jim@meyering.net>
116431         * m4/warning.m4: New file, derived from bison's file by the same name.
116433 2006-05-03  Bruno Haible  <bruno@clisp.org>
116435         * lib/stdint_.h: Shorter URL.
116436         * lib/inttypes.h: Likewise.
116438 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116440         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116442 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116444         * lib/verify.h: Document the internals better.  Most of this change
116445         was written by Bruno Haible.
116447 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116449         * doc/verify.texi: New file, partly based on a proposal by
116450         Bruno Haible.
116452 2006-05-02  Bruno Haible  <bruno@clisp.org>
116454         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116455         test from here...
116456         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116458 2006-04-29  Bruno Haible  <bruno@clisp.org>
116460         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116461         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116463 2006-04-29  Bruno Haible  <bruno@clisp.org>
116465         * gnulib-tool: Make --update option actually work.
116467 2006-04-29  Bruno Haible  <bruno@clisp.org>
116469         * doc/gcd.texi: New file.
116470         * doc/gnulib.texi: Include it.
116472 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
116474         * lib/getdate.y (get_date): When adding relative date, start with the
116475         initial time, not with the result of the first mktime call.
116477 2006-04-25  Bruno Haible  <bruno@clisp.org>
116479         * gnulib-tool (func_import): Output the include directives in three
116480         blocks, sorted separately.
116481         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116483 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116485         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
116486         to define main with arguments, for C++.  Reported by Eric Blake.
116487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
116488         Prefer 'int main ()' to 'int main (void)', for C++.
116489         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
116490         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
116491         for 'main', for C99 and C++.
116493 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116495         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
116496         Don't assume that exit status -1 is valid.
116497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116498         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
116499         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
116500         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
116501         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
116502         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
116503         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
116504         functions can be used without declaring them, or that you can
116505         exit with status -1.
116506         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
116508 2006-04-24  Karl Berry  <karl@gnu.org>
116510         * config/srclist.txt (longdouble.m4): sync lost.
116512 2006-04-24  Eric Blake  <ebb9@byu.net>
116514         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
116516 2006-04-24  Bruno Haible  <bruno@clisp.org>
116518         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
116519         poll() implementation in AIX.
116520         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116522 2006-04-24  Bruno Haible  <bruno@clisp.org>
116524         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
116525         assigned exactly once.
116527 2006-04-23  Claudio Fontana  <claudio@gnu.org>
116528             Bruno Haible  <bruno@clisp.org>
116530         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
116531         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
116532         for AM_CPPFLAGS.
116534 2006-04-23  Bruno Haible  <bruno@clisp.org>
116536         * modules/copy-file: Depend on unistd.
116537         * modules/execute: Likewise.
116538         * modules/fatal-signal: Likewise.
116539         * modules/findprog: Likewise.
116540         * modules/mkdtemp : Likewise.
116541         * modules/pipe: Likewise.
116542         * modules/wait-process: Likewise.
116544 2006-04-23  Bruno Haible  <bruno@clisp.org>
116546         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
116547         condition was already detected.
116548         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116550 2006-04-23  Bruno Haible  <bruno@clisp.org>
116552         * lib/copy-file.c: Include <unistd.h> unconditionally.
116553         * lib/execute.c: Likewise.
116554         * lib/fatal-signal.c: Likewise.
116555         * lib/findprog.c: Likewise.
116556         * lib/mkdtemp.c: Likewise.
116557         * lib/pipe.h: Likewise.
116558         * lib/pipe.c: Likewise.
116559         * lib/wait-process.h: Likewise.
116561 2006-04-23  Bruno Haible  <bruno@clisp.org>
116563         * gnulib-tool (func_usage): Fix --import description. Document
116564         --update.
116565         (func_import): Create temporary file in a temporary directory, if
116566         --dry-run is specified. Silence errors from 'grep' when there are no
116567         m4 files in $m4dir.
116568         (func_create_testdir): Silence errors from 'grep' when there are no
116569         m4 files in $m4dir.
116570         Reported by Karl Berry <karl@freefriends.org>.
116572 2006-04-20  Bruno Haible  <bruno@clisp.org>
116574         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
116575         one argument, so that the code will be portable to Autoconf 2.60.
116576         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
116577         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116578         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
116580 2006-04-19  Derek Price  <derek@ximbiot.com>
116581             Eric Blake  <ebb9@byu.net>
116583         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
116584         rather than "/full/path.h".  Update comment to match.  Shorten &
116585         generalize m4_translit call via AS_TR_CPP.
116587 2006-04-19  Derek Price  <derek@ximbiot.com>
116588             Eric Blake  <ebb9@byu.net>
116590         * lib/inttypes.h: Correct grammar in comment.
116592 2006-04-18  Derek Price  <derek@ximbiot.com>
116593             Paul Eggert  <eggert@cs.ucla.edu>
116595         * modules/inttypes: New file.
116596         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
116598 2006-04-18  Derek Price  <derek@ximbiot.com>
116599             Paul Eggert  <eggert@cs.ucla.edu>
116601         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
116602         New files.
116604 2006-04-18  Derek Price  <derek@ximbiot.com>
116605             Paul Eggert  <eggert@cs.ucla.edu>
116607         * lib/inttypes.h: New file.
116608         * lib/strtoimax.c: Assume <inttypes.h>.
116610 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116612         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116613         isn't mounted.  Problem reported by Kir Kolyshkin.
116615 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116617         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
116618         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
116619         Derek R. Price.
116620         * lib/regex.h (RE_DUP_MAX): Update comment to match current
116621         implementation.
116623 2006-04-12  Eric Blake  <ebb9@byu.net>
116625         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
116626         is now done automatically by the corresponding Autoconf macro.
116628 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
116630         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
116631         time_r.h.
116633 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116635         Merge regex changes from libc, removing some of our
116636         POSIX-conformance changes that were rejected and redoing them in a
116637         less-intrusive way.
116639         * lib/regcomp.c (re_compile_internal, init_dfa):
116640         Length arg is now size_t, not Idx.  All uses changed.
116641         (peek_token): Forward decl now says internal_function.
116642         (__re_error_msgid, __re_error_msgid_idx):
116643         Now static rather than extern with attribute_hidden.
116644         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
116645         For some reason libc prefers K&R style defns for external functions.
116646         (regerror) [!defined _LIBC]: Likewise.
116647         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
116648         (seek_collating_symbol_entry, lookup_collation_sequence_value):
116649         (build_range_exp, build_collating_symbol):
116650         Use K&R-style defn.
116651         (re_compile_fastmap): Use '\0' to memset, not 0.
116652         (utf8_sb_map): Make the calculations more obvious.
116653         (init_dfa, parse_bracket_exp, build_charclass_op):
116654         Call calloc and cast result, as glibc does.
116655         (init_word_char, fetch_token, peek_token, peek_token_bracket):
116656         (build_range_exp, build_collating_symbol):
116657         Now internal functions.
116659         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
116661         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
116662         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
116663         Don't depend on VMS; depend on __VMS instead, for POSIX
116664         namespace cleanness.
116665         (regoff_t): Define to ssize_t, not long int.
116667         Remove the REG_ macros named below.  Instead, make the old names
116668         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
116669         __USE_GNU_REGEX.
116670         (REG_BACKSLASH_ESCAPE_IN_LISTS):
116671         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
116672         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
116673         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
116674         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
116675         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
116676         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
116677         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
116678         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
116679         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
116680         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116681         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116682         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116683         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116684         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116685         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116686         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116687         (REG_NREGS):
116688         Remove.  All uses replaced by the old RE_* names.
116689         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116690         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116691         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116692         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116693         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116694         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116695         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116696         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116697         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116698         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116699         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116700         Don't bother having these macros be independent of each others'
116701         values, since they no longer exist in the POSIX name space.
116703         Rename the following member names back to their old names,
116704         unless !__USE_GNU_REGEX.  All uses changed back.
116705         (buffer): Renamed from re_buffer.
116706         (allocated): Renamed from re_allocated.
116707         (used): Renamed from re_used.
116708         (syntax): Renamed from re_syntax.
116709         (fastmap): Renamed from re_fastmap.
116710         (translate): Renamed from re_translate.
116711         (can_be_null): Renamed from re_can_be_null.
116712         (regs_allocated): Renamed from re_regs_allocated.
116713         (fastmap_accurate): Renamed from re_fastmap_accurate.
116714         (no_sub): Renamed from re_no_sub.
116715         (not_bol): Renamed from re_not_bol.
116716         (not_eol): Renamed from re_not_eol.
116717         (newline_anchor): Renamed from re_newline_anchor.
116718         (num_regs): Renamed from rm_num_regs.
116719         (start): Renamed from rm_start.
116720         (end): Renamed from rm_end.
116722         (free_state): Move up a bit.
116724         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116725         #define to be empty.
116726         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116727         when that is what is intended.
116728         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116729         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116730         (MAX): New macro.
116731         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116732         All uses changed back to re_malloc, etc.  It's now the caller's
116733         responsibility to check for overflow; all callers changed.
116734         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116735         (re_x2nrealloc): Remove.
116736         (free_state): Remove decl.
116738         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116739         (re_set_registers, re_exec):
116740         Use K&R-style defn.
116742         2006-01-31  Roland McGrath  <roland@redhat.com>
116744         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116745         Reported by Mike Frysinger <vapier@gentoo.org>.
116747         2006-01-15  Andreas Jaeger  <aj@suse.de>
116749         [BZ #1950]
116750         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116751         build_wcs_upper_buffer change.
116752         (build_wcs_upper_buffer): Change return type.
116754         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116756         * lib/regex_internal.h: Include <stdint.h> if available.
116758         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116760         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116762         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116764         * lib/regcomp.c: Adjust for changed secondary hash function.
116766         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116768         * lib/regex.h: Pretty printing.
116769         Clean up namespace a bit.
116771         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116773         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116774         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116776         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116777                     Ulrich Drepper  <drepper@redhat.com>
116779         [BZ #1302]
116780         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116781         changed.
116782         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116784         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116786         [BZ #281]
116787         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116788         * lib/regcomp.c: Remove unnecessary uses of
116789         unsigned RE_TRANSLATE_TYPE.
116790         * lib/regex_internal.h: Likewise.
116791         * lib/regex_internal.c: Likewise.
116792         * lib/regexec.c: Likewise.
116793         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116795         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116797         * lib/regexec.c (find_recover_state): Remove unnecessary
116798         initialization.
116799         (transit_state_bkref): Make DFA a const pointer.
116800         (get_subexp): Likewise.
116801         (check_arrival): Likewise.
116802         (update_cur_sifted_state): Likewise.
116803         (re_search_internal): Likewise.
116804         (prune_impossible_nodes): Likewise.
116805         (acquire_init_state_context): Likewise.
116806         (proceed_next_node): Likewise.
116807         (set_regs): Likewise.
116808         (free_fail_stack_return): Likewise.
116809         (check_arrival_expand_ecl): Mark DFA parameter as const.
116810         (check_arrival_expand_ecl_sub): Likewise.
116811         (check_subexp_limits): Likewise.
116812         (sub_epsilon_src_nodes):  Likewise.
116813         (add_epsilon_src_nodes):  Likewise.
116814         (merge_state_array): Likewise.
116815         (update_regs): Likewise.
116816         (build_trtable): Likewise.
116817         (sift_states_backward): Mark MCTX parameter as const.
116818         (build_sifted_states): Likewise.
116819         (update_cur_sifted_state): Likewise.
116820         (sift_states_mkref): Likewise.
116821         (check_arrival_expand_ecl): Mark eclosure as const.
116822         (check_dst_limits_calc_pos_1): Likewise.
116823         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116824         pointer.
116826         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116828         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116829         (transit_state_sb): Likewise.
116830         (transit_state_mb): Likewise.
116831         (sift_states_iter_mb): Likewise.
116832         (check_arrival_add_next_nodes): Likewise.
116833         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116834         [_LIBC] (re_search_2_stub): Use mempcpy.
116836         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116837         mbrtowc for very simple UTF-8 case.
116839         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116840         a pointer-to-const.
116841         (re_acquire_state_context): Likewise.
116842         * lib/regex_internal.h: Adjust prototypes.
116844         * lib/regex.c: Prevent using C++ compilers.
116846         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116847         (re_acquire_state_context): Likewise.
116849 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116851         * modules/regex (Depends-on): Add ssize_t.
116853 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116855         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116856         translation table.
116858 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116860         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116862 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116863             Bruno Haible  <bruno@clisp.org>
116865         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116866         <sys/types.h> and <inttypes.h>.
116868 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116870         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116871         `__error_t_defined', so argp.h will not typedef the former.
116873 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116875         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116876         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116877         glibc names.  Even if glibc is changed to conform to POSIX, the
116878         traditional names will be available anyway, since regex depends on
116879         the extensions module.  Also, fix a longstanding typo in the
116880         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116881         reported by Emanuele Giaquinta.  Also, change sense of cached
116882         variable, so that the message makes sense.
116884 2006-03-24  Simon Josefsson  <jas@extundo.com>
116886         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116887         including some doc fixes.
116888         (base64_encode_alloc): Fix +1 bug on allocation failures.
116890 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116892         * lib/base64.c (base64_encode): Do not read past end of array with
116893         unsanitized input on systems with CHAR_BIT > 8.
116895 2006-03-24  Eric Blake  <ebb9@byu.net>
116897         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116899 2006-03-22  Karl Berry  <karl@gnu.org>
116901         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116902         * config/srclistvars.sh (COREUTILS): new var.
116904 2006-03-17  Jim Meyering  <jim@meyering.net>
116906         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116907         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116909 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116911         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116912         no longer needs it.  Instead, check that regoff_t is as least
116913         as wide as ptrdiff_t.
116915         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116916         so that our regex.h stays compatible with the installed regex.
116917         This is helpful for installers who configure --without-included-regex.
116918         Problem reported by Emanuele Giaquinta.
116920 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116922         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116923         Typedef to long int, not to off_, as POSIX will likely change
116924         in that direction.
116926 2006-03-15  Eric Blake  <ebb9@byu.net>
116928         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116930 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116932         * lib/argp-help.c (validate_uparams): Fix typo
116933         * lib/argp-parse.c (argp_default_options): Consistently begin help
116934         messages with a lowercase letter.
116936 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116938         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116939         overrun buffers and shouldn't be used (much as gets shouldn't be
116940         used).
116941         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116943 2006-03-08  Simon Josefsson  <jas@extundo.com>
116945         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116946         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116948 2006-03-08  Simon Josefsson  <jas@extundo.com>
116950         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116951         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116953 2006-03-08  Simon Josefsson  <jas@extundo.com>
116955         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116956         signal that configure disabled the device.
116958 2006-03-08  Simon Josefsson  <jas@extundo.com>
116960         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116961         languages.
116963 2006-03-07  Simon Josefsson  <jas@extundo.com>
116965         * modules/getopt (Depends-on): Add unistd.
116967         * modules/unistd: New file.
116969 2006-03-07  Simon Josefsson  <jas@extundo.com>
116971         * modules/gc-random: New file.
116973 2006-03-07  Simon Josefsson  <jas@extundo.com>
116975         * m4/unistd_h.m4: New file.
116977 2006-03-07  Simon Josefsson  <jas@extundo.com>
116979         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116980         test to be side-effect free by storing the result in the cache
116981         variable gl_cv_lib_readline, and moving the assignment of
116982         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116983         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116985 2006-03-07  Simon Josefsson  <jas@extundo.com>
116987         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116988         error on missing devices (the functions will return an error).
116990         * m4/gc.m4: Move random stuff to gc-random.m4
116992 2006-03-07  Simon Josefsson  <jas@extundo.com>
116994         * lib/unistd_.h: New file.
116996 2006-03-07  Simon Josefsson  <jas@extundo.com>
116998         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
117000 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117002         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
117003         Problem reported by Juan Manuel Guerrero.
117005 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117007         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
117008         the unistd module.
117009         * lib/getlogin_r.c: Likewise.
117010         * lib/getlogin_r.h: Likewise.
117011         * lib/glob.c: Likewise.
117012         * lib/pagealign_alloc.c: Likewise.
117013         * lib/unistd_.h: Remove; no longer needed.
117015 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117017         * MODULES.html.sh (Support for systems lacking POSIX:2001):
117018         Add unistd.
117019         * modules/c-stack (Depends-on): Add unistd.
117020         * modules/getlogin_r: Likewise.
117021         * modules/glob: Likewise.
117022         * modules/pagealign_alloc: Likewise.
117023         * modules/unistd (Files): Remove lib/unistd_.h.
117024         (EXTRA_DIST): Remove.
117025         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
117026         need unistd_.h.
117027         (MOSTLYCLEANFILES): Remove unistd.h-t.
117029 2006-03-03  Simon Josefsson  <jas@extundo.com>
117031         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
117033 2006-03-03  Simon Josefsson  <jas@extundo.com>
117035         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
117036         libidn and bison.
117038 2006-03-03  Simon Josefsson  <jas@extundo.com>
117040         * build-aux/maint.mk: Add indent target.
117042 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
117044         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
117045         our replacement poll.h in any case, to avoid a differing
117046         declaration from a system header.  Seen on AIX.
117048 2006-03-01  Simon Josefsson  <jas@extundo.com>
117050         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
117051         <kasal@ucw.cz>.
117053 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117055         * modules/gettime (Depends-on): Add extensions module.
117056         * modules/nanosleep (Depends-on): Likewise.
117057         * modules/settime (Depends-on): Likewise.
117059 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117061         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
117062         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
117063         pedantically.
117064         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117065         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
117067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
117068         not "==".  Reported by Ralf Wildenhues.
117070 2006-03-01  Karl Berry  <karl@gnu.org>
117072         * doc/Copyright/request-*: new files, synced from gnuorg.
117074 2006-03-01  Karl Berry  <karl@gnu.org>
117076         * config/srclist.txt (Copyright/*): new entries.
117078 2006-02-28  Simon Josefsson  <jas@extundo.com>
117080         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
117082 2006-02-27  Simon Josefsson  <jas@extundo.com>
117084         * lib/base64.h: Indent #define's.  From Jim Meyering
117085         <jim@meyering.net>.
117087 2006-02-27  Jim Meyering  <jim@meyering.net>
117089         Revert the change of 2006-02-24, so these files can continue
117090         to be sync'd from gettext.
117091         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
117092         of `config.h'.
117094 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117096         * modules/intprops: New file.
117097         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
117098         Add intprops.
117099         * modules/getloadavg (Files): Remove lib/intprops.h.
117100         (Depends-on): Add intprops.
117101         * modules/human: Likewise.
117102         * modules/inttostr: Likewise.
117103         * modules/openat: Likewise.
117104         * modules/sig2str: Likewise.
117105         * modules/userspec: Likewise.
117106         * modules/utimecmp: Likewise.
117107         * modules/xnanosleep: Likewise.
117108         * modules/xstrtol: Likewise.
117110 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
117112         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
117113         * modules/lock-tests (TESTS): Use $(EXEEXT).
117114         * modules/tls-tests: Likewise.
117115         * modules/argp-tests: Likewise.
117116         (check_PROGRAMS): New var, replacing...
117117         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
117119 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117121         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
117122         `config.h'.
117124 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
117126         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
117128 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117130         Sync from coreutils.
117131         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
117132         gl_CHDIR_SAFER.
117134 2006-02-22  Jim Meyering  <jim@meyering.net>
117136         Sync from coreutils.
117137         * m4/chdir-safer.m4: New file.
117139 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
117141         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
117142         AT_FDCWD exceeds INT_MAX.
117143         * lib/openat.h (AT_FDCWD): Likewise.
117145 2006-02-17  Eric Blake  <address@hidden>
117147         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
117149 2006-02-16  Simon Josefsson  <jas@extundo.com>
117151         * modules/getaddrinfo (Depends-on): Add sys_socket.
117153 2006-02-15  Simon Josefsson  <jas@extundo.com>
117155         * build-aux/maint.mk: Add dsyntax-check rule.
117157 2006-02-15  Eric Blake  <ebb9@byu.net>
117159         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
117160         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
117161         'present but cannot compile' warnings on cygwin.
117162         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
117163         use ws2tcpip.h if sys/socket.h works.
117164         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
117165         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
117167 2006-02-14  Simon Josefsson  <jas@extundo.com>
117169         * modules/maintainer-makefile (Files): Rename.
117171         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
117172         and (the local) Makefile.cfg to maint-cfg.mk.
117174         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
117175         to the latter.
117177         * modules/maintainer-makefile: New module.
117179         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
117180         severaly stripped to make it possible to build it up from scratch
117181         with reliable tests.
117183         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
117184         fixes to permit overriding the default actions when configure and
117185         makefile are not available.
117187 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
117189         Sync from coreutils.
117190         * modules/lstat (Depends-on): Don't depend on xalloc.
117191         (License): Change from GPL to LGPL, since this is now simply a
117192         replacement for a libc function.
117194 2006-02-14  Jim Meyering  <jim@meyering.net>
117196         Sync from coreutils.
117198         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
117199         failure on deficient systems, and simplify gnulib lgpl dependencies.
117200         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
117201         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
117203         * lib/xalloc-die.c: Remove unused definition of N_.
117205 2006-02-14  Jim Meyering  <jim@meyering.net>
117207         Sync from coreutils.
117208         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
117209         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
117210         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
117211         double-quote uses of that variable, to accommodate the rare case in
117212         which getmntent is available in none of the libraries checked.  This
117213         happens at least on FreeBSD 5.0.
117215 2006-02-13  Simon Josefsson  <jas@extundo.com>
117217         * gnulib-tool (Usage): Fix --import, from
117218         karl@freefriends.org (Karl Berry).
117220 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117222         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
117224 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
117226         * lib/argp-namefrob.h: Restore changes accidentally lost during the
117227         "autoupdate" on 2005-12-12.
117229 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117231         * modules/closeout (Depends-on): Remove atexit.
117233 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117235         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
117236         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
117238 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
117240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
117241         __EXTENSIONS__ if this causes compilation to fail.  Problem
117242         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
117243         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
117245 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
117247         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
117248         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
117249         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
117250         All uses changed.
117252 2006-01-26  Simon Josefsson  <jas@extundo.com>
117254         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
117255         prototype is visible on mingw32.
117257         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
117258         for mingw32.
117260         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
117261         mingw32).
117263 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
117265         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
117266         attempt to open for write; this always fails, at least on POSIX
117267         hosts.  This reinstates the 2006-01-09 change, which was
117268         inadvertently removed.
117270 2006-01-26  Bruno Haible  <bruno@clisp.org>
117272         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
117273         Reported by Paul Eggert.
117275 2006-01-26  Bruno Haible  <bruno@clisp.org>
117276             Paul Eggert  <eggert@cs.ucla.edu>
117278         * lib/stdbool_.h (_Bool)
117279         [(! (defined __cplusplus || defined __BEOS__)
117280           && !defined __GNUC__
117281           && !(defined __HP_cc || defined __xlc__
117282                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
117283                || defined __sgi))]:
117284         #define to signed char in these cases too; this simplifies
117285         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
117286         etc., separately) and makes it more conservative.
117288 2006-01-25  Simon Josefsson  <jas@extundo.com>
117290         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
117291         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
117292         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
117294 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117296         * lib/argp-namefrob.h: Bugfix. Remove stray #
117298 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
117300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
117301         so that we test the test.
117302         Check for yet another HP-UX cc bug involving *bool |= bool.
117304 2006-01-25  Karl Berry  <karl@gnu.org>
117306         * config/srclist.txt (vasnprintf.c): sync lost.
117308 2006-01-25  Jim Meyering  <jim@meyering.net>
117310         Sync from the stable (b5) branch of coreutils:
117312         * lib/fts.c (fts_children): Don't let close() clobber errno from
117313         failed fchdir().
117315         * lib/fts.c (fts_stat): When following a symlink-to-directory,
117316         don't necessarily interpret stat-fails+lstat-succeeds as indicating
117317         a dangling symlink.  That can also happen at least for ELOOP.
117318         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
117319         FYI, this bug predates the inclusion of fts.c in coreutils.
117321         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
117322         in their own block, so pre-c99 compilers don't object.
117324         Avoid the double-free (first in fts_read, second in fts_close) that
117325         would occur when an `active' directory is made inaccessible (e.g.,
117326         via chmod a-x) during a traversal.
117327         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117328         before returning.  Reproduce this failure by
117329         mkdir -p a/b; cd a; chmod a-x . b
117330         Reported by Stavros Passas.
117332 2006-01-25  Jim Meyering  <jim@meyering.net>
117334         * lib/fileblocks.c: Remove more useless parentheses.
117335         * lib/readutmp.h: Likewise.
117337 2006-01-25  Bruno Haible  <bruno@clisp.org>
117339         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
117340         warnings.
117341         Reported by Paul Eggert.
117343 2006-01-25  Bruno Haible  <bruno@clisp.org>
117345         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
117346         rid of a trap command. For Solaris sh.
117347         Reported by Mark D. Baushke <mdb@gnu.org>.
117349 2006-01-24  Simon Josefsson  <jas@extundo.com>
117351         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
117352         Bruno.
117354 2006-01-24  Karl Berry  <karl@gnu.org>
117356         * config/srclist.txt (argp-namefrob.h): sync lost.
117358 2006-01-24  Jim Meyering  <jim@meyering.net>
117360         * modules/openat (Files): Add lib/intprops.h.
117361         From Mark D. Baushke.
117363 2006-01-24  Jim Meyering  <jim@meyering.net>
117365         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117366         Reported by Mark D. Baushke.
117368 2006-01-24  Jim Meyering  <jim@meyering.net>
117370         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117372 2006-01-24  Bruno Haible  <bruno@clisp.org>
117374         * modules/strnlen (Maintainer): Change from glibc to all.
117376 2006-01-24  Bruno Haible  <bruno@clisp.org>
117378         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117379         Patch by Paul Eggert.
117381 2006-01-24  Bruno Haible  <bruno@clisp.org>
117383         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117384         already has it.
117385         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117386         2005-11-26.
117388         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117389         'signed char' to avoid problems with the built-in _Bool type.
117390         Reported by Paul Eggert on 2005-11-26.
117392 2006-01-24  Bruno Haible  <bruno@clisp.org>
117394         * gnulib-tool (func_import): Avoid constructing complicated sed
117395         expressions inside backquote.
117396         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117398 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117400         These changes imported from libc.
117401         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117402         test and two separate function calls.
117403         * lib/strndup.c (__strndup): Add libc_hidden_def.
117405 2006-01-23  Simon Josefsson  <jas@extundo.com>
117407         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117408         Remove the test_*_SOURCES variable: automake infers it by default.
117409         * modules/tls-tests: Likewise.
117411 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117413         Work around porting bugs reported by Dieter in
117414         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117415         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117416         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117417         Include "getopt.h" first, to check interface.
117418         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117419         !HAVE_DECL_GETENV.
117420         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117421         (__strndup): Revert to K&R-style function dfns, the glibc style.
117422         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117423         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117424         Include strnlen.h first, to get prototype properly.
117425         (strnlen): Renamed from __strnlen.
117426         Remove weak alias.
117428 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117430         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117432 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117434         * config/srclist.txt: Adjust to reflect glibc reorganization.
117435         This affects only comments.
117437 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117439          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117440          Reported by Bruce Korb <bkorb@gnu.org>.
117442 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117444         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117445         to pacify gcc -Wswitch-default.
117447 2006-01-22  Bruno Haible  <bruno@clisp.org>
117449         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117450         temporary buffer for sprintf, take into account the precision also
117451         for 'd', 'i', 'u', 'o', 'x', 'X'.
117453 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117455         * modules/argp-tests: New module
117456         * tests/test-argp.c: New file
117457         * tests/test-argp-2.sh: New file
117459 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117461         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117462         (__argp_base_name): Removed
117463         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117464         typo.
117465         (__argp_base_name): Provide macro definition or extern declaration
117466         depending on the configuration
117468 2006-01-20  Simon Josefsson  <jas@extundo.com>
117470         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117472 2006-01-20  Simon Josefsson  <jas@extundo.com>
117474         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
117476 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117478         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
117479         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
117480         Suggested by Bruno Haible.
117482 2006-01-20  Karl Berry  <karl@gnu.org>
117484         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
117485         until changes propagate, I guess.
117487 2006-01-19  Simon Josefsson  <jas@extundo.com>
117489         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
117491 2006-01-19  Simon Josefsson  <jas@extundo.com>
117493         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
117495 2006-01-19  Simon Josefsson  <jas@extundo.com>
117497         * gnulib-tool: Set check_PROGRAMS.
117499         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117500         modules/des-tests, modules/gc-arcfour-tests,
117501         modules/gc-arctwo-tests, modules/gc-des-tests,
117502         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117503         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117504         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117505         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117506         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117507         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
117508         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
117509         test_*_SOURCES.
117511 2006-01-18  Simon Josefsson  <jas@extundo.com>
117513         * modules/socklen (Depends-on): Depend on sys_socket.
117515 2006-01-18  Simon Josefsson  <jas@extundo.com>
117517         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117518         modules/des-tests, modules/gc-arcfour-tests,
117519         modules/gc-arctwo-tests, modules/gc-des-tests,
117520         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117521         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117522         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117523         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117524         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117525         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
117526         $(EXEEXT) to automake TESTS variable, for mingw32.
117528 2006-01-17  Simon Josefsson  <jas@extundo.com>
117530         * modules/socklen (Include): Need sys/socket.h.
117532 2006-01-17  Bruno Haible  <bruno@clisp.org>
117534         * modules/ssize_t (Include): Add <sys/types.h>.
117536 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
117538         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
117539         it's not portable and it doesn't work with cross-compiles.
117540         Problem reported by Bruno Haible.  Fix missing-$ typo in
117541         'test "gl_cv_ignore_unused_libraries" ...' that prevented
117542         -zignore from being used with Sun's C compiler.
117544 2006-01-12  Simon Josefsson  <jas@extundo.com>
117546         * lib/base64.c: Fix warning, reported by Bruno Haible
117547         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
117549 2006-01-12  Bruno Haible  <bruno@clisp.org>
117551         * modules/ldd: New file.
117552         * build-aux/ldd.sh.in: New file.
117553         * MODULES.html.sh (Support for building libraries and executables): Add
117554         ldd.
117556 2006-01-12  Bruno Haible  <bruno@clisp.org>
117558         * m4/ldd.m4: New file.
117560 2006-01-12  Bruno Haible  <bruno@clisp.org>
117562         * gnulib-tool (func_import, func_create_testdir): Don't go into an
117563         endless loop while replacing $auxdir with build-aux.
117565 2006-01-11  Simon Josefsson  <jas@extundo.com>
117567         * lib/stdint_.h (SIZE_MAX): Add missing (.
117569 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
117571         Sync from coreutils.
117572         * lib/md5.c: Fix commentary typos.
117573         (alignof, UNALIGNED_P): No need for a GCC-specific version.
117574         * lib/md5.h (__attribute__): Remove; unused.
117575         * lib/sha1.c: Fix commentary to match md5 better.
117576         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
117577         so that we don't need to worry about alignment.  All uses changed.
117578         This merges the 2005-10-28 md5 change into sha1.
117580 2006-01-11  Jim Meyering  <jim@meyering.net>
117582         Sync from coreutils.
117583         * lib/md5.c (OP): Fix spacing.
117585 2006-01-11  Bruno Haible  <bruno@clisp.org>
117587         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117588         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
117589         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
117591 2006-01-11  Bruno Haible  <bruno@clisp.org>
117593         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117594         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
117595         the "early" section as well.
117597 2006-01-11  Bruno Haible  <bruno@clisp.org>
117599         Avoid "ar: no archive members specified" error on MacOS X.
117600         * gnulib-tool (func_modules_add_dummy): New function.
117601         (func_import, func_create_testdir): Invoke it.
117603 2006-01-11  Bruno Haible  <bruno@clisp.org>
117605         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
117606         with $auxdir in AC_CONFIG_FILES statements.
117608 2006-01-11  Bruno Haible  <bruno@clisp.org>
117610         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117611         Initialize also noinst_HEADERS to empty.
117613 2006-01-11  Bruno Haible  <bruno@clisp.org>
117615         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117616         variables.
117617         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
117618         autoreconf.
117620 2006-01-11  Bruno Haible  <bruno@clisp.org>
117622         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
117623         overridable by the user.
117624         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117626 2006-01-10  Simon Josefsson  <jas@extundo.com>
117628         * modules/sys_socket: New file.
117630 2006-01-10  Simon Josefsson  <jas@extundo.com>
117632         * m4/sys_socket_h.m4: New file.
117634 2006-01-10  Simon Josefsson  <jas@extundo.com>
117636         * lib/socket_.h: New file.
117638 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117640         * modules/readutmp (Maintainer): Add myself.
117642 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117644         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
117645         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
117646         People who are still concerned with buggy memcmp implementations
117647         can invoke gl_FUNC_MEMCMP themselves.
117649 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117651         * lib/regex_internal.h (BITSET_WORD_BITS):
117652         Work around a bug in 64-bit PGC (before version 6.1-2), where the
117653         preprocessor mishandles large unsigned values as if they were signed.
117654         Problem reported by Claudio Fontana in
117655         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
117657 2006-01-10  Jim Meyering  <jim@meyering.net>
117659         Avoid the double-free (first in fts_read, second in fts_close) that
117660         would occur when an `active' directory is made inaccessible (e.g.,
117661         via chmod a-x) during a traversal.
117662         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117663         before returning.  Reproduce this failure by
117664         mkdir -p a/b; cd a; chmod a-x . b
117665         Reported by Stavros Passas.
117667         Sync from coreutils.
117668         * lib/sha1.c: Tweak grammar in a comment.
117670 2006-01-10  Jim Meyering  <jim@meyering.net>
117672         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
117673         Patch by Joerg Sonnenberger.
117675 2006-01-10  Bruno Haible  <bruno@clisp.org>
117677         * modules/readutmp: Depend on module free.
117678         * modules/strtok_r: Depend on module restrict.
117680 2006-01-10  Bruno Haible  <bruno@clisp.org>
117682         * modules/gettext (configure.ac): Add an invocation of
117683         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117685 2006-01-10  Bruno Haible  <bruno@clisp.org>
117687         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117688         Reported by Werner Lemberg <wl@gnu.org>.
117690 2006-01-10  Bruno Haible  <bruno@clisp.org>
117692         * lib/localcharset.c: Update from GNU gettext.
117694 2006-01-10  Bruno Haible  <bruno@clisp.org>
117696         * lib/argp.h (__const): Remove macro. Use const instead.
117697         * lib/argp-fmtstream.h (__const): Likewise.
117698         * lib/glob_.h (__const): Remove macro.
117699         * lib/glob-libc.h: Use const instead of __const.
117701 2006-01-10  Bruno Haible  <bruno@clisp.org>
117703         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117704         variable.
117705         Needed to avoid an automake error regarding the 'gettext' module.
117707 2006-01-09  Simon Josefsson  <jas@extundo.com>
117709         * modules/inet_ntop (Depends-on): Add restrict.
117711 2006-01-09  Simon Josefsson  <jas@extundo.com>
117713         * modules/gc-rijndael-tests (License): Put under LGPL.
117715         * modules/gc-des-tests (License): Likewise.
117717         * modules/gc-arcfour-tests (License): Likewise.
117719         * modules/gc-arctwo-tests (License): Likewise.
117721         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117723         * modules/gc-hmac-sha1-tests (Files): Likewise.
117725         * modules/gc-hmac-md5-tests (License): Likewise.
117727         * modules/gc-sha1-tests (License): Likewise.
117729         * modules/gc-md5-tests (License): Likewise.
117731         * modules/gc-md4-tests (License): Likewise.
117733         * modules/gc-md2-tests (License): Likewise.
117735         * modules/gc-tests (License): Likewise.
117737         * modules/des-tests (License): Likewise.
117739         * modules/md4-tests (License): Likewise.
117741         * modules/md2-tests (License): Likewise.
117743 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117745         Sync from coreutils:
117747         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117748         * modules/lib-ignore: New file.
117749         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117750         chdir-safer.m4, lchmod.m4.
117751         * modules/openat: Add mkdirat.c, openat-priv.h.
117753 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117755         Sync from coreutils.
117756         * m4/lib-ignore.m4: New file.
117757         * m4/lchmod.m4: New file.
117759 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117761         Sync from coreutils.
117762         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117763         for write access: POSIX says that must fail.
117764         * lib/fts.c (diropen): Likewise.
117765         * lib/save-cwd.c (save_cwd): Likewise.
117766         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117767         well, for minor improvements on hosts that lack O_DIRECTORY.
117768         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117769         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117770         Fall back on chown if open failed with EACCES.
117772         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117773         Report an error at compile-time if only a 1-second nominal clock
117774         resolution is found.
117776         * lib/lchmod.h: New file.
117777         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117778         (make_dir_parents): Use lchown rather than chown, and
117779         lchmod rather than chmod.
117781         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117782         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117783         "proc" reported by n0dalus.
117785         * lib/mountlist.c: Include <limits.h>.
117786         (dev_from_mount_options)
117787         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117788         New function.  It no longer assumes "dev=" has the System V meaning
117789         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117790         (read_file_system_list)
117791         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117792         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117793         dev= in that case.
117795         * lib/posixtm.h (PDS_PRE_2000): New macro.
117796         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117797         allow_century.  All usages changed.  Reject dates outside the range
117798         1969-1999 if PDS_PRE_2000 is used.
117800 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117802         Sync from coreutils.
117803         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117804         (Time of day items): Mention the possibility of leap seconds.
117805         Problem reported by Dr. David Alan Gilbert.
117807 2006-01-09  Jim Meyering  <jim@meyering.net>
117809         Sync from coreutils.
117811         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117813         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117815         * lib/modechange.c (mode_compile): Reject an invalid mode string
117816         that starts with an octal digit.  From Andreas Gruenbacher.
117818         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117819         and dup to open_safer and dup_safer, respectively.
117820         (openat_permissive): Fix typo in comment.
117822         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117823         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117824         (_): Remove; no longer needed.
117825         (openat): Renamed from rpl_openat; no need for rpl_openat
117826         since openat.h renames openat for us.
117827         Replace most of the body with a call to openat_permissive,
117828         to avoid duplicate code.
117829         Port to (probably hypothetical) environments were mode_t is
117830         wider than int.
117831         (openat_permissive): Require mode arg, so that we can check
117832         types better.  Put it just after flags.  Change cwd failure
117833         indicator from pointer-to-bool to pointer-to-errno-value.
117834         All callers changed.
117835         Invoke openat_save_fail and/or openat_restore_fail if
117836         cwd_errno is null, so that openat can call us.
117837         (openat_permissive, fdopendir, fstatat, unlinkat):
117838         Simplify errno handling to avoid some duplicate code,
117839         as it's OK to set errno on success.
117840         * lib/openat.h: Revamp code so that function macros depend on
117841         __OPENAT_PREFIX only, not also on AT_FDCWD.
117842         (openat_ro): Remove.  Caller changed to use openat_permissive.
117843         (openat_permissive): Now a macro, if not a function.
117844         (openat_restore_fail, openat_save_fail): Now always functions,
117845         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117847         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117848         and openat.c.
117849         * lib/mkdirat.c: Include openat-priv.h.
117850         Remove definitions of macros defined therein.
117851         * lib/openat.c: Likewise.
117853         * lib/mkdirat.c (mkdirat): New file and function.
117854         * lib/openat.h (mkdirat): Declare.
117856         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117858         * lib/openat.h (openat_permissive): Declare.
117859         (openat_ro): Define.
117861         * lib/openat.c (EXPECTED_ERRNO): New macro.
117862         (openat_permissive): New function -- used in remove.c rewrite.
117863         (all functions): Set errno just before returning, only if there
117864         was an actual failure.
117865         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117867         Emulate openat-family functions using Linux's procfs, if possible.
117868         Idea and some code based on Ulrich Drepper's glibc changes.
117870         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117871         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117872         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117873         before falling back on save_cwd and restore_cwd.
117874         (fdopendir, fstatat, unlinkat): Likewise.
117876         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117877         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117879         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117880         as second argument to va_arg.  Otherwise, some versions of gcc
117881         warn that `if this code is reached, the program will abort'.
117883 2006-01-09  Jim Meyering  <jim@meyering.net>
117885         Sync from coreutils.
117886         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117887         Require openat-priv.h.
117889 2006-01-09  Bruno Haible  <bruno@clisp.org>
117891         * modules/strnlen (Include): Use strnlen.h.
117893 2006-01-09  Bruno Haible  <bruno@clisp.org>
117895         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117897 2006-01-09  Bruno Haible  <bruno@clisp.org>
117899         * lib/sysexit_.h (EX_OK): New macro.
117900         Suggested by Martin Lambers <marlam@marlam.de>.
117902 2006-01-09  Bruno Haible  <bruno@clisp.org>
117904         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117905         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117907 2006-01-09  Bruno Haible  <bruno@clisp.org>
117909         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117910         numbers.
117912 2006-01-09  Bruno Haible  <bruno@clisp.org>
117914         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117915         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117916         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117917         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117919 2006-01-09  Bruno Haible  <bruno@clisp.org>
117921         * build-aux/javacomp.sh.in: New file, moved from lib/.
117922         * modules/javacomp-script (Files): Update.
117923         (configure.ac): Add AC_CONFIG_FILES invocation.
117924         (EXTRA_DIST): Remove variable.
117926         * build-aux/javaexec.sh.in: New file, moved from lib/.
117927         * modules/javaexec (Files): Update.
117928         (configure.ac): Add AC_CONFIG_FILES invocation.
117929         (EXTRA_DIST): Remove javaexec.sh.in.
117931         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117932         * modules/csharpcomp-script (Files): Update.
117933         (configure.ac): Add AC_CONFIG_FILES invocation.
117934         (EXTRA_DIST): Remove variable.
117936         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117937         * modules/csharpexec (Files): Update.
117938         (configure.ac): Add AC_CONFIG_FILES invocation.
117939         (EXTRA_DIST): Remove csharpexec.sh.in.
117941 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117943         Sync from coreutils.
117945         Add POSIX ACL support
117946         * lib/acl.h (copy_acl, set_acl): Add declarations.
117947         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117948         systems other than Linux.
117949         (chmod_or_fchmod): New function: use fchmod when possible,
117950         and chmod otherwise.
117951         (file_has_acl): Add a POSIX ACL implementation, with a
117952         Linux-specific subcase.
117953         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117954         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117955         acls are unsupported.
117956         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117957         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117958         are unsupported.
117960 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117962         Sync from coreutils.
117963         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117965 2006-01-07  Bruno Haible  <bruno@clisp.org>
117967         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117968         gl_EARLY.
117970 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117972         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117973         Problem reported for Mingw by Mark Junker.
117975 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117977         * README: Gnulib normally doesn't generate a tarball.
117979 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117981         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117982         long int, not int, for nanosecond counts, so that people who are
117983         used to POSIX struct timespec won't be surprised.  Reported by Jim
117984         Meyering.
117986 2005-12-28  Bruno Haible  <bruno@clisp.org>
117988         * build-aux/config.rpath: Update from GNU gettext.
117990 2005-12-16  Jim Meyering  <jim@meyering.net>
117992         * modules/fprintftime: New module.
117993         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117995 2005-12-16  Jim Meyering  <jim@meyering.net>
117997         * m4/fprintftime.m4: New file.
117999 2005-12-16  Jim Meyering  <jim@meyering.net>
118001         * lib/fprintftime.c, lib/fprintftime.h: New files.
118003 2005-12-15  Simon Josefsson  <jas@extundo.com>
118005         * modules/socklen (configure.ac): Fix M4 macro name, to align with
118006         new m4/socklen.m4.
118008 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118010         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
118011         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
118013 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118015         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
118016         * lib/argp-help.c (fill_in_uparams): Check if the constructed
118017         struct uparams is valid. Fall back to the default values if it is
118018         not.
118020 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118022         * modules/argp (Files): Add argp-pin.c
118023         (Depends-on): dirname
118024         (lib_SOURCES): Add argp-pin.c
118026 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118028         * m4/argp.m4:  Check if program_invocation_name and
118029         program_invocation_short_name are declared and define appropriate
118030         macros if they are not.
118032 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118034         * lib/argp-help.c (__argp_base_name): New function
118035         (__argp_short_program_name): Rewrite using __argp_base_name
118036         * lib/argp-namefrob.h: Define program_invocation_name and
118037         program_invocation_short_name if requested
118038         (__argp_base_name): Add prototype
118039         * lib/argp-parse.c (argp_def): Use gettext wrappers
118040         (argp_default_parser): Use __argp_base_name
118041         * lib/argp-pin.c: New file. Defines program_invocation_name and
118042         program_invocation_short_name on systems that lack them.
118044 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118046         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
118047         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118048         porting problem reported by Georg Schwarz in
118049         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118051 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118053         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
118054         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118055         porting problem reported by Georg Schwarz in
118056         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118058 2005-12-05  Bruno Haible  <bruno@clisp.org>
118060         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
118061         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
118062         Reported by Mark Junker <mjscod@gmx.de>.
118064 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118066         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
118067         Use implementation from Albert Chin, with some
118068         comments/corrections by Stepan Kasal and myself.
118070 2005-12-02  Bruno Haible  <bruno@clisp.org>
118072         * gnulib-tool (func_import): Accept GPLed build tool modules when
118073         --lgpl is given.
118074         * modules/csharpcomp-script: New file.
118075         * modules/csharpcomp: Depend on it.
118076         * modules/javacomp-script: New file.
118077         * modules/javacomp: Depend on it.
118078         Suggested by Simon Josefsson.
118080 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
118082         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
118083         statement, to work around an HP-UX 10.20 compiler bug reported by
118084         Peter O'Gorman.
118086 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118088         * modules/savedir (Depends-on): Add openat.
118090 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118092         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
118093         (uintmax_t) [defined uintmax_t]: Do not declare.
118094         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
118095         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
118096         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
118097         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
118098         sake of portability to weird hosts that C allows (though we don't
118099         know of any practical examples).
118101         * lib/savedir.h (fdsavedir): New decl.
118102         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
118103         contains most of the former guts of savedir.
118104         (savedir): Use savedirstream.
118105         Include "openat.h".
118107 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118109         * modules/obstack (Files): Add m4/ulonglong.m4.
118110         Problem reported by Davide Angelocola.
118112 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118114         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
118115         coreutils no longer futzes with rounding modes.
118117 2005-11-14  Jim Meyering  <jim@meyering.net>
118119         * lib/mkstemp-safer.c: Include <config.h>, required for possible
118120         replacement of mkstemp.
118122 2005-11-10  Simon Josefsson  <jas@extundo.com>
118124         * lib/readline.c: Remove EOL.
118126 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118128         * modules/gethrxtime (Depends-on): Add gettime.
118130 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118132         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
118133         or gettimeofday; no longer needed.
118135 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118137         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
118138         time business.
118139         (gethrxtime) [! (HAVE_NANOUPTIME
118140         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
118141         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
118142         our own approximation.
118144 2005-11-08  Eric Blake  <ebb9@byu.net>
118146         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118148 2005-11-08  Eric Blake  <ebb9@byu.net>
118150         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118152 2005-11-04  Bruno Haible  <bruno@clisp.org>
118154         * gnulib-tool: Implement --update mode.
118156 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118158         Fix porting problem reported by Theodoros V. Kalamatianos.
118159         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
118160         Don't assume that futimes failing means we must fail.
118162 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118164         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
118165         variables to suggest the intended function of the PATH_MAX check.
118167 2005-10-30  Kean Johnston  <jkj@sco.com>
118169         Trivial changes to support SCO systems.
118170         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
118171         as PATH_MAX.
118172         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
118173         where __ptr is null when no I/O is pending.
118175 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118177         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
118178         leave errno alone.  Problem reported by Dmitry V. Levin.
118180 2005-10-28  Simon Josefsson  <jas@extundo.com>
118182         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
118183         Test more.
118185         * tests/test-gc-md2.c, tests/test-md2.c: New files.
118187         * modules/md2, modules/md2-tests: New files.
118189 2005-10-28  Simon Josefsson  <jas@extundo.com>
118191         * m4/inet_ntop.m4: More tests.
118193         * m4/gc-md2.m4, md2.m4: New file.
118195 2005-10-28  Simon Josefsson  <jas@extundo.com>
118197         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
118198         "restrict" keywords, as per POSIX.  Protect the function
118199         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
118200         Don't use K&R prototypes.  Check the sprintf return values.
118201         Re-define EAFNOSUPPORT if not present.  Indent.
118203         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
118204         suggested by Bruno Haible <bruno@clisp.org>.
118206         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
118208         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
118210         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
118211         libgcrypt).
118213         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
118215         * lib/md2.h, lib/md2.c: New files.
118217 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
118219         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
118220         errno alone.  Problem reported by Frederic Jolliton.
118222 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
118224         * modules/verify (License): Change from GPL to LGPL.  This is a
118225         tiny module and there are apparently near-equivalents that are
118226         under the BSD license.
118228 2005-10-24  Simon Josefsson  <jas@extundo.com>
118230         * modules/sha1: Relicense to LGPL.
118232 2005-10-24  Simon Josefsson  <jas@extundo.com>
118234         * lib/md4.h: Shrink buffer size, now that we changed the type.
118236 2005-10-23  Simon Josefsson  <jas@extundo.com>
118238         * gnulib-tool (func_import): Fix --tests-base.
118240 2005-10-22  Simon Josefsson  <jas@extundo.com>
118242         * modules/arcfour (Depends-on): Need stdint.
118244 2005-10-22  Simon Josefsson  <jas@extundo.com>
118246         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
118247         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
118249 2005-10-22  Simon Josefsson  <jas@extundo.com>
118251         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
118252         suggested by Bruno Haible <bruno@clisp.org>.
118254 2005-10-22  Simon Josefsson  <jas@extundo.com>
118256         * lib/crc.h: Include stddef.h, for size_t.
118258 2005-10-22  Simon Josefsson  <jas@extundo.com>
118260         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
118261         arcfour_context struct (simplify test vector testing in GNU
118262         Shishi).
118264 2005-10-21  Simon Josefsson  <jas@extundo.com>
118266         * modules/des, modules/des-tests: New files.
118268         * modules/gc-des, modules/gc-des-tests: New files.
118270         * tests/test-des.c, tests/test-gc-des.c: New file.
118272 2005-10-21  Simon Josefsson  <jas@extundo.com>
118274         * modules/arctwo, modules/arctwo-tests: New files.
118276         * tests/test-arctwo.c: New file.
118278         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
118280         * tests/test-gc-arctwo.c: New file.
118282 2005-10-21  Simon Josefsson  <jas@extundo.com>
118284         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
118285         Bruno Haible <bruno@clisp.org>.
118287         * m4/gc-des.m4: New file.
118289 2005-10-21  Simon Josefsson  <jas@extundo.com>
118291         * m4/arctwo.m4: New file.
118293         * m4/gc-arctwo.m4: New file.
118295 2005-10-21  Simon Josefsson  <jas@extundo.com>
118297         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
118298         block.
118300 2005-10-21  Simon Josefsson  <jas@extundo.com>
118302         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
118303         <bruno@clisp.org>.
118305         * lib/hmac-sha1.c (hmac_sha1): Likewise.
118307         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
118308         Bruno Haible <bruno@clisp.org>.
118310         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
118311         <bruno@clisp.org>.
118313 2005-10-21  Simon Josefsson  <jas@extundo.com>
118315         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
118317 2005-10-21  Simon Josefsson  <jas@extundo.com>
118319         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
118321 2005-10-21  Simon Josefsson  <jas@extundo.com>
118323         * lib/des.h, lib/des.c: New files.
118325         * lib/gc-gnulib.c: Support DES.c
118327 2005-10-21  Simon Josefsson  <jas@extundo.com>
118329         * lib/arctwo.h, lib/arctwo.c: New files.
118331         * lib/gc-gnulib.c: Support ARCTWO.
118333 2005-10-21  Simon Josefsson  <jas@extundo.com>
118335         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
118336         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118338 2005-10-21  Simon Josefsson  <jas@extundo.com>
118340         * gnulib-tool (func_import, func_create_testdir): Define automake
118341         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
118342         Makefile.am snippet),
118343         suggested by Bruno Haible <bruno@clisp.org>.
118345         * modules/gc (Makefile.am): Use it.
118347 2005-10-21  Bruno Haible  <bruno@clisp.org>
118349         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
118350         patch.
118352 2005-10-19  Simon Josefsson  <jas@extundo.com>
118354         * tests/test-gc-rijndael.c: New file.
118356         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
118358 2005-10-19  Simon Josefsson  <jas@extundo.com>
118360         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
118361         interface too.
118363 2005-10-19  Simon Josefsson  <jas@extundo.com>
118365         * tests/test-gc-arcfour.c: New file.
118367         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118369 2005-10-19  Simon Josefsson  <jas@extundo.com>
118371         * modules/gc-md4, modules/gc-md4-tests: New file.
118373         * tests/test-gc-md4.c: New file.
118375 2005-10-19  Simon Josefsson  <jas@extundo.com>
118377         * m4/gc-md4.m4: New file.
118379 2005-10-19  Simon Josefsson  <jas@extundo.com>
118381         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118382         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118383         <kasal@ucw.cz>.
118385 2005-10-19  Simon Josefsson  <jas@extundo.com>
118387         * m4/gc-arcfour.m4: New file.
118389         * m4/gc-rijndael.m4: New file.
118391 2005-10-19  Simon Josefsson  <jas@extundo.com>
118393         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118395 2005-10-19  Simon Josefsson  <jas@extundo.com>
118397         * lib/gc-gnulib.c: Support ARCFOUR.
118399 2005-10-19  Simon Josefsson  <jas@extundo.com>
118401         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118402         support.
118404         * lib/gc.h: Add ECB enum type.
118406         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118408 2005-10-18  Simon Josefsson  <jas@extundo.com>
118410         * tests/test-md5.c: New file.
118412         * modules/md5-tests: New file.
118414 2005-10-18  Simon Josefsson  <jas@extundo.com>
118416         * tests/test-md4.c: New file.
118418         * modules/md4, modules/md4-tests: New files.
118420 2005-10-18  Simon Josefsson  <jas@extundo.com>
118422         * m4/md4.m4: New file.
118424 2005-10-18  Simon Josefsson  <jas@extundo.com>
118426         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118428 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118430         * gnulib-tool (func_create_testdir): Omit the second check whether
118431         BUILT_SOURCES in nonempty.
118433 2005-10-17  Simon Josefsson  <jas@extundo.com>
118435         * tests/test-rijndael.c: New file.
118437 2005-10-17  Simon Josefsson  <jas@extundo.com>
118439         * modules/sha1: Depend on stdint instead of md5.
118441         * modules/md5: Depend on stdint, remove uint32_t.
118443 2005-10-17  Simon Josefsson  <jas@extundo.com>
118445         * modules/gc-sha1-tests: New file.
118447         * tests/test-gc-sha1.c: New file.
118449 2005-10-17  Simon Josefsson  <jas@extundo.com>
118451         * m4/md5.m4: Remove call to uint32_t.m4.
118453 2005-10-17  Simon Josefsson  <jas@extundo.com>
118455         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118457         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118458         md5.h.
118460         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118462         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118464 2005-10-17  Simon Josefsson  <jas@extundo.com>
118466         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118468 2005-10-17  Simon Josefsson  <jas@extundo.com>
118470         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118472 2005-10-17  Simon Josefsson  <jas@extundo.com>
118474         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
118476         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
118478 2005-10-17  Bruno Haible  <bruno@clisp.org>
118480         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
118481         that it can also be used in a test.
118483 2005-10-16  Bruno Haible  <bruno@clisp.org>
118485         * gnulib-tool (func_emit_tests_Makefile_am): Also define
118486         TESTS_ENVIRONMENT, so that individual tests can augment it.
118488         * gnulib-tool (func_create_testdir): Use an intermediate target for
118489         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
118490         macros, like $(ALLOCA_H), which cannot be passed through the command
118491         line.
118493 2005-10-15  Simon Josefsson  <jas@extundo.com>
118495         * modules/rijndael-tests: New file.
118497         * modules/rijndael: New file.
118499 2005-10-15  Simon Josefsson  <jas@extundo.com>
118501         * m4/rijndael.m4: New file.
118503 2005-10-15  Simon Josefsson  <jas@extundo.com>
118505         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
118507         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
118509 2005-10-14  Simon Josefsson  <jas@extundo.com>
118511         * tests/test-arcfour.c: New file.
118513         * modules/arcfour, modules/arcfour-tests: New files.
118515 2005-10-14  Simon Josefsson  <jas@extundo.com>
118517         * m4/arcfour.m4: New file.
118519 2005-10-14  Simon Josefsson  <jas@extundo.com>
118521         * lib/arcfour.h, lib/arcfour.c: New files.
118523 2005-10-14  Roland McGrath  <roland@redhat.com>
118525         Import from libc.  [BZ #1331]
118526         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
118527         macro argument.
118528         Reported by Matej Vela <vela@debian.org>.
118530 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118532         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
118533         include <wchar.h>; no longer needed.
118535 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118537         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
118539 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
118540         and  Ulrich Drepper  <drepper@redhat.com>
118542         Import from libc.
118543         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
118544         instead of inline stream orientation test and two separate
118545         function calls.  Pay no attention to USE_IN_LIBIO.
118547 2005-10-13  Simon Josefsson  <jas@extundo.com>
118549         * modules/gc-hmac-md5-tests: New file.
118551         * tests/test-gc-hmac-sha1.c: New file.
118553         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
118555         * modules/gc-hmac-md5-tests: New file.
118557         * tests/test-gc-md5.c: New file.
118559         * modules/gc-md5-tests: New file.
118561 2005-10-13  Simon Josefsson  <jas@extundo.com>
118563         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
118564         Move memory allocation outside of loop.
118566 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
118568         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
118569         intermediate directory is in a read-only file system.  Problem
118570         reported by Eric Blake.
118572 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
118574         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
118576 2005-10-12  Simon Josefsson  <jas@extundo.com>
118578         * tests/test-hmac-sha1.c: New file.
118580         * modules/hmac-sha1-tests: New file.
118582         * modules/hmac-sha1: New file.
118584 2005-10-12  Simon Josefsson  <jas@extundo.com>
118586         * modules/gc-sha1: New file.
118588 2005-10-12  Simon Josefsson  <jas@extundo.com>
118590         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
118592         * tests/test-gc-pbkdf2-sha1.c: New file.
118594 2005-10-12  Simon Josefsson  <jas@extundo.com>
118596         * modules/gc-md5, modules/gc-hmac-md5: New files.
118598         * modules/gc (Files): Remove md5, memxor and hmac files.
118600 2005-10-12  Simon Josefsson  <jas@extundo.com>
118602         * m4/gc-pbkdf2-sha1.m4: New file.
118604         * m4/gc-hmac-sha1.m4: New file.
118606         * m4/gc-sha1: New file.
118608         * m4/hmac-sha1.m4: New file.
118610 2005-10-12  Simon Josefsson  <jas@extundo.com>
118612         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118614         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118616 2005-10-12  Simon Josefsson  <jas@extundo.com>
118618         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
118619         suggested by Bruno Haible <bruno@clisp.org>.
118621 2005-10-12  Simon Josefsson  <jas@extundo.com>
118623         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
118625 2005-10-12  Simon Josefsson  <jas@extundo.com>
118627         * lib/gc-pbkdf2-sha1.c: New file.
118629         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
118631 2005-10-12  Simon Josefsson  <jas@extundo.com>
118633         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
118635         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
118637 2005-10-12  Simon Josefsson  <jas@extundo.com>
118639         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
118640         GC_USE_HMAC_MD5, respectively.
118642         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
118643         (gc_md5): Fix typo.
118645         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
118647         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
118649         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
118651 2005-10-12  Bruno Haible  <bruno@clisp.org>
118653         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
118654         Reported by Stepan Kasal <kasal@ucw.cz>.
118656 2005-10-11  Simon Josefsson  <jas@extundo.com>
118658         * tests/test-crc.c: New file.
118660         * modules/crc, modules/crc-tests: New files.
118662 2005-10-11  Simon Josefsson  <jas@extundo.com>
118664         * m4/crc.m4: New file.
118666 2005-10-11  Simon Josefsson  <jas@extundo.com>
118668         * lib/gc.h: Add gc_hash and gc_hash_buffer.
118670         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
118672         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
118674 2005-10-11  Simon Josefsson  <jas@extundo.com>
118676         * lib/crc.h, lib/crc.c: New files.
118678         * lib/gc.h (gc_hash_buffer): Add doc.
118680 2005-10-11  Bruno Haible  <bruno@clisp.org>
118682         * modules/c-strcasestr: New file.
118683         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118685 2005-10-11  Bruno Haible  <bruno@clisp.org>
118687         * modules/c-strcase: New file.
118688         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118690 2005-10-11  Bruno Haible  <bruno@clisp.org>
118692         * lib/strcasecmp.c: Include limits.h.
118693         (strcasecmp): Avoid integer overflow on exotic platforms.
118694         * lib/strncasecmp.c: Include limits.h.
118695         (strncasecmp): Avoid integer overflow on exotic platforms.
118696         Reported by Paul Eggert.
118698 2005-10-11  Bruno Haible  <bruno@clisp.org>
118700         * lib/c-strcasestr.h: New file, from GNU gettext.
118701         * lib/c-strcasestr.c: New file, from GNU gettext.
118703 2005-10-11  Bruno Haible  <bruno@clisp.org>
118705         * lib/c-strcase.h: New file, from GNU gettext.
118706         * lib/c-strcasecmp.c: New file, from GNU gettext.
118707         * lib/c-strncasecmp.c: New file, from GNU gettext.
118709 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118711         * modules/mempcpy (License): GPL -> LGPL.
118712         * modules/strchrnul (License): Likewise.
118713         * modules/sysexits (License): Likewise.
118715 2005-10-08  Simon Josefsson  <jas@extundo.com>
118717         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118719 2005-10-07  Simon Josefsson  <jas@extundo.com>
118721         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118723 2005-10-06  Simon Josefsson  <jas@extundo.com>
118725         * tests/test-hmac-md5.c: New file.
118727         * modules/hmac-md5-tests: New file.
118729         * modules/hmac-md5: New file.
118731 2005-10-06  Simon Josefsson  <jas@extundo.com>
118733         * m4/hmac-md5.m4: New file.
118735         * m4/memxor.m4: Require gl_C_RESTRICT.
118737 2005-10-06  Simon Josefsson  <jas@extundo.com>
118739         * lib/memxor.c (memxor): Avoid casts and warnings.
118741 2005-10-06  Simon Josefsson  <jas@extundo.com>
118743         * lib/hmac-md5.c: New file.
118745         * lib/hmac.h: New file.
118747 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118749         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118750         promotes to int, not unsigned int, to catch the AIX 5.3
118751         compiler bug.
118753 2005-10-05  Simon Josefsson  <jas@extundo.com>
118755         * modules/memxor: New file.
118757         * modules/iconv (Files): Move config.rpath to havelib, it is used
118758         there.
118760         * modules/havelib (Files): Add config.rpath.
118762 2005-10-05  Simon Josefsson  <jas@extundo.com>
118764         * m4/memxor.m4: New file.
118766 2005-10-05  Simon Josefsson  <jas@extundo.com>
118768         * lib/memxor.c (memxor): Fix compiler error.
118770         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118771         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118773         * lib/memxor.h, lib/memxor.c: New files.
118775         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118776         we assume all systems have it, suggested by Jim Meyering
118777         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118778         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118779         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118780         same reasons.
118782 2005-10-05  Simon Josefsson  <jas@extundo.com>
118784         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118786 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118788         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118789         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118790         needed, since the source code now assumes these .h files.
118792 2005-10-05  Derek Price  <derek@ximbiot.com>
118794         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118796 2005-10-05  Bruno Haible  <bruno@clisp.org>
118798         * modules/stdint (License): Change to LGPL.
118800 2005-10-04  Simon Josefsson  <jas@extundo.com>
118802         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118803         D. Baushke" <mdb@gnu.org>.
118805 2005-10-04  Bruno Haible  <bruno@clisp.org>
118807         * lib/verify.h (verify_true): Provide alternative definition for C++.
118809 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118811         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118812         (SSIZE_MAX): New macro, if not already defined.
118813         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118814         than 2 GiB.
118816 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118818         Sync from coreutils.
118819         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118820         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118821         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118822         ULLONG_MAX doesn't work with 2.7.2.1.
118824 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118826         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118827         From Ben Pfaff.
118829         * modules/exclude (Depends-on): Depend on verify.
118830         * modules/strtoimax (Depends-on): Likewise.
118831         * modules/utimecmp (Depends-on): Likewise.
118833 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118835         * lib/exclude.c: Include verify.h.
118836         (verify): Remove.  All callers changed to use verify.h's version.
118837         * lib/strtoimax.c: Likewise.
118838         * lib/utimecmp.c: Likewis.e
118840         Sync from coreutils.
118841         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118842         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118843         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118844         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118845         bother returning ENOSYS if settimeofday or stime fails; just let
118846         them return whatever errno they want to return.
118847         * lib/utimens.c: Include unistd.h, for dup2.
118848         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118849         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118851 2005-10-02  Jim Meyering  <jim@meyering.net>
118853         Sync from coreutils.
118854         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118855         from glibc-2.2.5 that fails for read-only files.
118857 2005-10-02  Jim Meyering  <jim@meyering.net>
118859         Sync from coreutils.
118860         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118861         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118862         `#if HAVE_CONFIG_H'.
118863         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118864         Remove AT_FDCWD test.
118865         Do not consume the fd unless successful.
118866         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118867         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118868         block, so that we don't even try to compile it if settimeofday is
118869         available.  This works around a compilation failure on OSF1 V5.1,
118870         due to stime requiring a `long int*' while tv_sec is `int'.
118872 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118874         Sync from coreutils.
118875         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118876         against `yes', rather than just testing for nonempty.
118878 2005-10-01  Simon Josefsson  <jas@extundo.com>
118880         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118881         and Darwin.
118883         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118884         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118885         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118886         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118887         Check if struct addrinfo is declared.
118889 2005-10-01  Simon Josefsson  <jas@extundo.com>
118891         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118892         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118893         AI_* and EAI_* definitions.  Protect function declarations.
118895 2005-10-01  Jim Meyering  <jim@meyering.net>
118897         Sync from coreutils.
118899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118900         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118901         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118903         in the inet and nsl libraries.  Required on Solaris 5.7.
118905 2005-10-01  Jim Meyering  <jim@meyering.net>
118907         Sync from coreutils.
118908         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118909         in the inet and nsl libraries.  Required on Solaris 5.7.
118911 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118913         * lib/getdelim.c (getdelim): Remove unused variables.
118915 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118917         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118918         so that the code works even with ancient cpp.  Portability problem
118919         with GCC 2.7.2.1 reported by Thomas M.Ott.
118921 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118923         * modules/regex (Depends-on): Add strcase.
118925         * modules/gethostname (Licence): Change from GPL to LGPL, since
118926         gethostname.c is a trivial implementation of a standard library
118927         function.
118928         * modules/poll (License): Change from GPL to LGPL, since it's
118929         derived from LGPL code.
118931 2005-09-27  Jim Meyering  <jim@meyering.net>
118933         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118934         HAVE_CONFIG_H.
118936         * lib/intprops.h (signed_type_or_expr__): Define.
118937         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118938         for unsigned types.
118940 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118942         * lib/verify.h (verify_expr): Remove, replacing with:
118943         (verify_true): New macro that returns true instead of void.
118944         (verify_type__): Remove.
118945         (verify): Use verify_true rather than verify_type__.
118947 2005-09-26  Bruno Haible  <bruno@clisp.org>
118949         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118950         is necessary.
118951         (lib_SOURCES): Remove mbchar.c.
118952         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118953         (Files): Add m4/mbrtowc.m4.
118954         * modules/mbiter: Likewise.
118955         * modules/mbuiter: Likewise.
118957 2005-09-26  Bruno Haible  <bruno@clisp.org>
118959         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118960         compile mbchar.c if they are not both present.
118961         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118962         * m4/mbiter.m4 (gl_MBITER): Likewise.
118963         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118964         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118965         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118967 2005-09-25  Jim Meyering  <jim@meyering.net>
118969         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118970         also uses socklen_t.
118972 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118974         * lib/utimens.c (ENOSYS): Define if not already defined.
118975         (futimens): Support having a null PATH if the file descriptor
118976         is nonnegative.
118978         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118979         Remove.
118980         (__attribute): Define to empty unless GCC 3.1 or later.
118981         This works around a core dump on OpenBSD 3.4, which has GCC
118982         2.95.3, which dumps core when given __attribute__(()).  It also
118983         simplifies other tests, since we really don't want to bother with
118984         worrying about which ancient version of GCC supported what.
118985         Original problem reported by Yoann Vandoorselaere, with part of
118986         the fix suggested by Derek Price.
118988 2005-09-24  Jim Meyering  <jim@meyering.net>
118990         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118991         so we can once again use a positive bitfield width of 1 -- now we
118992         don't have to explain why we were using a bitfield width of 2.
118994 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118996         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118997         and similarly for the other external symbols.  Problem reported
118998         by James Gallager.
119000         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
119001         bug reported by Jim Meyering.
119003         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
119004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
119005         not needed, since socklen is a prerequisite module.
119007 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119009         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
119010         Problem reported by Eric Blake.
119011         (getaddrinfo): Initialize se so that it's not garbage.
119012         Redo internal storage allocation so that it doesn't make unportable
119013         assumptions about alignment.
119014         Fix a memory leak.
119016         * lib/utimens.c (futimens): Use futimesat if available.
119017         Prefer it to futimes since it doesn't have the futimes bug.
119019         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
119020         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
119021         Instead, declare a function that returns a pointer to an array,
119022         and use verify_type__ to declare the size of the array.
119023         Problem and germ of a solution reported by Bruno Haible.
119024         (verify_type__): Use 2, not 1, for bitfield size, to avoid
119025         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
119027 2005-09-23  Jim Meyering  <jim@meyering.net>
119029         Sync from coreutils.
119030         Correct build failure (socklen_t not defined) on at least
119031         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
119032         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
119034 2005-09-23  Jim Meyering  <jim@meyering.net>
119036         * modules/getaddrinfo (Depends-on): Add socklen.
119038 2005-09-23  Bruno Haible  <bruno@clisp.org>
119040         * tests/test-verify.c: New file.
119042 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119044         Sync from coreutils.
119046         * modules/argmatch (Depends-on): Add verify.
119047         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
119048         unistd-safer.
119049         * modules/save-cwd (Depends-on): Likewise.
119051         * modules/openat (Files): Add lib/openat-die.c.
119052         (Depends-on): Remove error, exitfail.
119053         Add dirname.
119055         * modules/verify: New file.
119056         * MODULES.html.sh (Diagnostics <assert.h>): New section,
119057         with "verify" module.
119059 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119061         Sync from coreutils.
119063         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
119064         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
119065         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
119066         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
119067         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
119068         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
119069         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
119070         Don't bother checking for string.h, stdlib.h, unistd.h.
119071         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
119072         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
119073         module's job.
119074         * m4/jm-macros.m4 (gl_MACROS): Likewise.
119075         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
119077         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
119078         (gl_GETDATE): Use it.
119080         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
119082 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119084         Sync from coreutils.
119086         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
119087         stat-time.h.
119088         * lib/argmatch.h: Include verify.h
119089         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
119090         (ARGMATCH_ASSERT): Remove; unused.
119091         * lib/canonicalize.c: Assume STDC_HEADERS.
119092         * lib/exclude.c: Include "strcase.h".
119093         * lib/regex_internal.h [!defined _LIBC]: Likewise.
119094         * lib/getusershell.c: Include stdio--.h rather than stdio.h
119095         and stdio-safer.h.
119096         (getusershell): Call fopen, not fopen_safer.
119097         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
119098         Do not include unistd-safer.h.
119099         (save_cwd): Don't call fd_safer; no longer needed
119100         now that we include fcntl--.h.
119102         * lib/getdate.y (relative_time): New type.
119103         (RELATIVE_TIME_0): New constant.
119104         (parser_control): Use relative_time instead of doing it ourselves.
119105         (%union): Add new relative_time rel member.
119106         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
119107         Now typeless.
119108         (relunit, relunit_snumber): Now of type rel.
119109         (zone, rel, relunit, get_date): Adjust to above changes.
119111         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
119112         Do not include unistd-safer.h.
119113         (getloadavg): Don't call fd_safer; no longer needed
119114         now that we include fcntl--.h.
119116         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
119117         (make_dir_parents): Treat ENOSYS like EEXIST.
119119         Improve quality of diagnostics on restore_cwd failure.
119120         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
119121         (make_dir_parents): Last arg is now int * (for errno), not bool *.
119122         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
119123         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
119124         each time through the loop.  Do not diagnose restore_cwd failure;
119125         that is the caller's job (and perhaps the caller does not care).
119127         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
119128         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
119129         If the file already exists but is not a directory, don't bother
119130         to try to make its parents.
119131         Close potential file descriptor leak if we can't chdir("/") (!).
119132         Don't always return true if chdir($PWD) fails; return true only
119133         if the requested action was done successfully (except for the
119134         chdir($PWD)).
119135         Don't log final directory unless we actually made it.
119136         Refactor to avoid duplicate code to fix up permissions.
119137         Don't attempt to fix up parent permissions if chdir($PWD) fails.
119139         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
119140         to make it a bit faster and (I hope) clearer.
119141         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
119142         Fix bug in formats like %2N.
119144         * lib/verify.h: New file.
119146 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119148         Sync from coreutils.
119149         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
119151 2005-09-22  Jim Meyering  <jim@meyering.net>
119153         Sync from coreutils.
119155         * m4/lstat.m4 (gl_FUNC_LSTAT):
119156         Use AC_LIBSOURCES to require lstat.c and lstat.h.
119157         Remove obsolete comment.
119158         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
119159         * m4/xstrtod.m4: Likewise.
119161         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
119163 2005-09-22  Jim Meyering  <jim@meyering.net>
119165         Sync from coreutils.
119167         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
119169         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
119170         the .tm_year member, since otherwise gcc-4.0 would now warn about
119171         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
119173         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
119174         order to avoid an unsuppressible warning from gcc on 64-bit systems.
119176         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
119177         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
119178         when run in a time zone for which daylight savings time is in effect
119179         for the starting date.
119181         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
119182         stop us from restricting permissions of just-created absolute-named
119183         directories.
119184         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
119185         to restore initial working directory.
119186         * lib/mkdir-p.c (make_dir_parents): New parameter:
119187         different_working_dir, to tell caller if/when we change the working
119188         directory and are unable to return to the initial one.
119189         * lib/mkdir-p.h (make_dir_parents): Update prototype.
119190         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
119191         `return false'.  This fixes a bug introduced on 2004-07-30.
119193         * lib/openat.c (fdopendir): Be sure to close the supplied
119194         file descriptor before returning.  This makes our replacement
119195         implementation a little closer to Solaris's, where fdopendir
119196         ties the file descriptor to the returned DIR* pointer.
119197         * lib/openat.c (unlinkat): New function.
119198         * lib/openat.h (unlinkat): Add prototype.
119199         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
119200         (openat_restore_fail): Rename from openat_restore_die.
119201         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
119203         Provide an alternative to exiting immediately upon save_cwd or
119204         restore_cwd failure.  Now, an application can arrange e.g.,
119205         to perform a longjump in that case.
119206         * lib/openat.c: Include dirname.h.
119207         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
119208         (rpl_openat, fdopendir, fstatat): Call openat_save_die
119209         and openat_restore_die rather than calling error directly.
119210         Don't include "error.h" or "exitfail.h"; they're no longer needed.
119212         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
119213         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
119214         define.
119216         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
119217         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
119218                             int utc, int nanoseconds);
119219         Background:
119220         date should not have to allocate a megabyte of virtual memory to
119221         handle a format argument like +%1048575T.  When implemented with
119222         strftime, it must allocate such a buffer, use strftime to fill it
119223         in, print it, then free it.
119224         With fprintftime, it simply prints everything and exits.
119225         With no need for memory allocation, that's one fewer way to fail.
119226         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
119227         optional field width, not before, so we accept %9:z, not %:9z.
119228         (my_strftime): Be sure to use L_('x') for literals.
119230         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
119231         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
119232         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
119233         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
119234         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
119235         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
119236         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
119237         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
119238         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
119239         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
119240         * lib/xgethostname.c, lib/xreadlink.c:
119241         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
119243         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
119244         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
119245         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
119246         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119247         and don't include <sys/file.h>).
119249 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
119251         Sync from coreutils.
119253         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
119254         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
119255         [!LDAV_DONE]: Avoid unused variable warning.
119257 2005-09-21  Bruno Haible  <bruno@clisp.org>
119259         * lib/unicodeio.h (unicode_to_mb): New declaration.
119261 2005-09-20  Derek Price  <derek@ximbiot.com>
119263         * lib/getaddrinfo.c: Don't include <netdb.h> included from
119264         getaddrinfo.h.
119266 2005-09-20  Bruno Haible  <bruno@clisp.org>
119268         * gnulib-tool: Remove trailing slashes from the values specified for
119269         --source-base, --m4-base, --tests-base, --aux-dir.
119270         Suggested by Simon Josefsson <jas@extundo.com>.
119272 2005-09-20  Bruno Haible  <bruno@clisp.org>
119274         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
119275         func_modules_to_filelist, func_import, func_create_testdir): Make all
119276         sorting results locale-independent, so that gnulib-cache.m4 doesn't
119277         change when gnulib-tool is invoked in a different locale.
119279 2005-09-19  Simon Josefsson  <jas@extundo.com>
119281         * m4/socklen.m4: Fix typo.
119283 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119285         Use a consistent style for including <config.h>.
119286         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
119287         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
119288         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
119289         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
119290         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
119291         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
119292         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
119293         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
119294         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
119295         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
119296         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
119297         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
119298         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
119299         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
119300         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
119301         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
119302         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
119303         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
119304         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
119305         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
119306         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
119307         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
119308         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
119309         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
119310         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
119311         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
119312         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
119313         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
119314         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
119315         lib/xstrtoumax.c, lib/yesno.c:
119316         Standardize inclusion of config.h.
119317         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
119318         lib/inttostr.h:  Removed inclusion of config.h from header files.
119319         * lib/inttostr.c:  Adjusted in-tree users.
119320         * lib/timespec.h: Remove superfluous warning to include config.h.
119321         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
119322         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
119323         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
119324         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
119325         config.h with HAVE_CONFIG_H.
119327 2005-09-19  Jim Meyering  <jim@meyering.net>
119329         * modules/pathmax (License): Change to LGPL.
119331 2005-09-19  Derek Price  <derek@ximbiot.com>
119333         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
119335 2005-09-19  Bruno Haible  <bruno@clisp.org>
119337         * gnulib-tool (import): Provide default for --tests-base.
119339 2005-09-19  Bruno Haible  <bruno@clisp.org>
119341         * doc/quote.texi: New file, extracted from gnulib.texi.
119342         * doc/ctime.texi: New file, extracted from gnulib.texi.
119343         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
119344         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
119345         * doc/gnulib.texi: Include them.
119347 2005-09-18  Bruno Haible  <bruno@clisp.org>
119349         Portability fix.
119350         * gnulib-tool (func_readlink): New function.
119351         (func_ln_if_changed): Use it.
119353 2005-09-18  Bruno Haible  <bruno@clisp.org>
119355         * gnulib-tool: Support --with-tests also with --import.
119356         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
119357         (func_import): Use variables $testsbase and $inctests. Emit a
119358         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
119359         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
119360         SUBDIRS += $testsdir.
119361         (func_create_testdir): Update.
119363 2005-09-18  Bruno Haible  <bruno@clisp.org>
119365         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119366         instead of $dry_run.
119367         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119368         (func_ln_if_changed): Don't handle dry-run here.
119369         (func_import): In dry-run mode, detect more precisely which actions
119370         would be performed, and don't use "...ing" verbs.
119372 2005-09-18  Bruno Haible  <bruno@clisp.org>
119374         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119375         (func_import): Use join on two temporary files instead of three nested
119376         loops, in order to determine which files are new or old.
119378 2005-09-18  Bruno Haible  <bruno@clisp.org>
119380         * gnulib-tool (func_import): Comment out code that spits out the
119381         new files with --dry-run.
119383 2005-09-18  Bruno Haible  <bruno@clisp.org>
119385         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119387 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119389         * lib/stat-time.h: New file.
119390         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119391         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119392         in a different way.
119393         (timespec_cmp): New function.
119394         * lib/utimecmp.c: Include stat-time.h.
119395         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119396         members exist, not on the obsolescent ST_MTIM_NSEC.
119397         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119399 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119401         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119403 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119405         * MODULES.html.sh (File system functions): Add stat-time.
119406         * modules/stat-time: New file.
119407         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119408         is now done in a different way, by the stat-time module.
119409         * modules/utimecmp (Depends-on): Add stat-time.
119411 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119413         * m4/st_mtim.m4: Remove.  Superseded by...
119414         * m4/stat-time.m4: New file.
119415         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119416         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119418 2005-09-15  Derek Price  <derek@ximbiot.com>
119420         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119422 2005-09-15  Derek Price  <derek@ximbiot.com>
119424         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119425         * lib/regex_internal.c: Ditto, using this...
119426         (__GNUC_PREREQ): ...new macro.
119427         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119428         using...
119429         (__GNUC_PREREQ): ...this new macro.
119431         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119433 2005-09-15  Derek Price  <derek@ximbiot.com>
119434             Paul Eggert  <eggert@cs.ucla.edu>
119436         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119437         changes, consolidating in...
119438         * lib/regex_internal.h: ...this file.
119440 2005-09-13  Jim Meyering  <jim@meyering.net>
119442         * lib/canon-host.c: Filter through gnu indent and reword comments
119443         slightly.
119444         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119446 2005-09-13  Derek Price  <derek@ximbiot.com>
119448         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119449         failure.
119450         Reported by Jim Meyering  <jim@meyering.net>.
119452 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119454         * lib/base64.c: Typo.
119455         (base64_encode): Put b64str in initialized data section.
119457 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119459         Merge glibc and coreutils changes into gnulib, plus a few
119460         extra fixes.
119461         * lib/md5.c: Use #error rather than a string.
119462         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119463         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119464         (__attribute__): Define to empty for non recent-GCC.
119465         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119466         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119467         Renamed from their non-__ counterparts, with new macros replacing
119468         them if not _LIBC.  Add __THROW attribute.
119469         (rol): Remove.
119470         (struct md5_ctx): Align buffer if using GCC.
119471         * lib/sha1.h (struct sha1_ctx): Likewise.
119472         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
119473         The old name was backwards.
119474         (NOTSWAP): Remove; not used.
119475         (rol): New macro, moved here from md5.h.
119476         (sha1_process_block): Remove a FIXME that doesn't make sense.
119478 2005-09-12  Derek Price  <derek@ximbiot.com>
119480         Return usable errors from canon-host.
119481         * lib/canon-host.h: New file.
119482         * lib/canon-host.c (canon_host): Wrap...
119483         (canon_host_r): ...this new function, which now relies exclusively on
119484         getaddrinfo.
119485         (ch_strerror): New function.
119486         (last_cherror): New global.
119487         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
119488         interface.
119489         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
119490         void *.
119491         (freeaddrinfo): Free ai->ai_canonname when set.
119493 2005-09-12  Derek Price  <derek@ximbiot.com>
119495         Make canon-host require getaddrinfo.
119496         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
119497         AC_LIBSOURCE canon-host.h.  Call...
119498         (gl_PREREQ_CANON_HOST): ...this new function, which requires
119499         gl_GETADDRINFO.
119500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
119502 2005-09-12  Derek Price  <derek@ximbiot.com>
119504         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
119505         LGPL.
119506         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
119508 2005-09-12  Derek Price  <derek@ximbiot.com>
119510         * lib/gai_strerror.c: Include config.h when available.  Include
119511         getaddrinfo.h before other headers to test interface.
119512         Reported by Larry Jones <lawrence.jones@ugs.com>.
119514 2005-09-12  Derek Price  <derek@ximbiot.com>
119515             Paul Eggert  <eggert@cs.ucla.edu>
119517         * modules/glob (Files): Add glob-libc.h.
119519 2005-09-12  Derek Price  <derek@ximbiot.com>
119520             Paul Eggert  <eggert@cs.ucla.edu>
119522         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
119523         glob_.h, glob-libc.h.
119524         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
119526 2005-09-12  Derek Price  <derek@ximbiot.com>
119527             Paul Eggert  <eggert@cs.ucla.edu>
119529         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
119530         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
119531         protecting things that should be done only in gnulib contexts.
119532         * lib/glob_.h: New file, containing only the glob things needed for
119533         gnulib.
119534         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
119535         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
119536         (glob, globfree, glob_pattern_p): Now defined simply in terms of
119537         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
119538         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
119539         and to respect the namespace rules better.
119541 2005-09-08  Simon Josefsson  <jas@extundo.com>
119543         * modules/socklen: New file.
119545 2005-09-08  Simon Josefsson  <jas@extundo.com>
119547         * m4/socklen.m4: New file.
119549 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119551         * modules/utimens (Files): Add m4/utimbuf.m4, since
119552         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
119553         Reported by Sergey Poznyakoff.
119555 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119557         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
119558         definitions, since that's the preferred style in glibc.
119559         Fix a minor spacing issue, and update copyright notice to match
119560         glibc's.
119562 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119564         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
119566 2005-09-06  Simon Josefsson  <jas@extundo.com>
119568         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
119569         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
119571 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119573         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
119574         warning.
119576 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119578         * config/srclist.txt: Add glibc bug 1302.
119580 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
119582         Change bitset word type from unsigned int to unsigned long int,
119583         as this has better performance on typical 64-bit hosts.
119584         Port bitset code to hosts with unusual word sizes.
119585         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
119586         (build_collating_symbol):
119587         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
119588         argument is a bitset.  This is merely a style issue, but it makes
119589         it clearer that an entire array is expected.
119590         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
119591         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
119592         Port to the case where bitset_word is not the same as unsigned int.
119593         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119594         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
119595         Likewise.
119596         * lib/regexec.c (check_dst_limits_calc_pos_1,
119597         check_subexp_matching_top):
119598         (build_trtable, group_nodes_into_DFAstates):
119599         Likewise.
119600         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
119601         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
119602         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
119603         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
119604         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
119605         * lib/regcomp.c (optimize_subexps, lower_subexp):
119606         Work even if bitset_word has holes in its bitwise representation.
119607         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
119608         * lib/regexec.c (check_dst_limits_calc_pos_1,
119609         check_subexp_matching_top):
119610         Likewise.
119611         * lib/regex_internal.c (re_string_reconstruct):
119612         Don't assume UCHAR_MAX == 255.
119613         * lib/regex_internal.h (bitset_set_all): Likewise.
119614         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119615         All uses changed.
119616         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
119617         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
119618         All uses changed.
119619         (BITSET_WORD_MAX): New macro.
119620         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
119621         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
119622         (bitset_empty, bitset_copy):
119623         Prefer sizeof (bitset) to multiplying it out ourselves.
119624         (bitset_not_merge): Remove; unused.
119625         (bitset_contain): Return bool, not unsigned int with one bit on.
119626         All callers changed.
119627         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
119628         alignment than re_node_set; do this by defining a new internal
119629         type struct dests_alloc and using it to allocate memory.
119631 2005-09-05  Bruno Haible  <bruno@clisp.org>
119633         * gnulib-tool (func_import): Fix comparison in handling of symbolic
119634         links.
119636 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
119638         * modules/size_max (Makefile.am): Add size_max.h
119640 2005-09-04  Derek Price  <derek@ximbiot.com>
119642         * gnulib-tool (func_import): Fix reversed $symbolic logic.
119644 2005-09-03  Simon Josefsson  <jas@extundo.com>
119646         * gnulib-tool: Fix typo.
119648 2005-09-03  Simon Josefsson  <jas@extundo.com>
119650         * config/srclist.txt: Add glibc bug 1293.
119652 2005-09-03  Derek Price  <derek@ximbiot.com>
119654         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
119655         From Larry Jones <lawrence.jones@ugs.com>.
119657 2005-09-02  Simon Josefsson  <jas@extundo.com>
119659         * modules/socklen: New file.
119661 2005-09-02  Simon Josefsson  <jas@extundo.com>
119663         * modules/havelib: New module.
119665         * modules/gettext, modules/iconv, modules/lock, modules/readline:
119666         Use havelib.
119668 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119670         Check for arithmetic overflow when calculating sizes, to prevent
119671         some buffer-overflow issues.  These patches are conservative, in the
119672         sense that when I couldn't determine whether an overflow was possible,
119673         I inserted a run-time check.
119674         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
119675         macros.
119676         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
119677         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
119678         (re_xnrealloc, re_x2nrealloc): New inline functions.
119679         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
119680         parse_bracket_exp):
119681         (build_equiv_class, build_charclass): Check for arithmetic overflow
119682         in size expression calculations.
119683         * lib/regex_internal.c (re_string_realloc_buffers):
119684         (build_wcs_upper_buffer, re_node_set_add_intersect):
119685         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119686         (re_dfa_add_node, register_state): Likewise.
119687         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119688         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119689         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119690         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119692 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119694         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119695         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119697 2005-09-02  Bruno Haible  <bruno@clisp.org>
119699         Support for lib vs. lib64 distinction on biarch platforms.
119700         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119701         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119702         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119704 2005-09-02  Bruno Haible  <bruno@clisp.org>
119706         * gnulib-tool (import): In the other first-use case, provide defaults
119707         as well.
119709 2005-09-02  Bruno Haible  <bruno@clisp.org>
119711         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119712         patches not yet found in the latest gettext release.
119714 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119716         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119717         to avoid a collision with bits/local_lim.h in glibc.
119718         All uses changed.  Problem reported by Dmitry V. Levin in
119719         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119721         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119722         bugs in int versus size_t comparisons.
119723         (re_string_context_at): Fix bug where the code assumed that
119724         Idx is signed.
119726         Use bool where appropriate.
119727         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119728         All callers changed.
119729         (calc_eclosure_iter): Likewise, for ROOT arg.
119730         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119731         (build_charclass_op): Likewise, for NON_MATCH arg.
119732         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119733         (re_string_construct_common): Likewise, for ICASE arg.
119734         * lib/regexec.c (re_search_2_stub, re_search_stub):
119735         Likewise, for RET_LEN arg.
119736         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119737         (set_regs): Likewise, for FL_BACKTRACK arg.
119738         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119739         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119740         (calc_eclosure_iter, parse_bracket_exp):
119741         Use bool for internal variables that are booleans.
119742         * lib/regexec.c (re_search_internal, check_matching,
119743         proceed_next_node):
119744         (set_regs, build_sifted_states, sift_states_bkref):
119745         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119746         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119747         (find_collation_sequence_value):
119748         Likewise.
119749         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119750         (re_node_set_compare):
119751         Return bool, not int. All callers changed.
119752         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119753         (build_trtable, check_node_accept): Likewise.
119754         * lib/regex_internal.h: Include stdbool.h.
119756         Fix bugs uncovered when converting to bool.
119757         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119758         failure instead of charging ahead blindly.
119759         * lib/regex_internal.c (register_state): Likewise.
119760         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119761         for freeing internal storage.
119762         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119763         bitset pieces used as boolean, to avoid undefined behavior
119764         on hosts that do int overflow checking.
119766 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119768         * config/srclist.txt: Add glibc bugs 1285-1287.
119770 2005-09-01  Jim Meyering  <jim@meyering.net>
119772         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119773         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119774         Require gl_STAT_MACROS, too.
119776 2005-09-01  Bruno Haible  <bruno@clisp.org>
119778         * gnulib-tool (import): In the first-use case, provide defaults.
119780 2005-09-01  Bruno Haible  <bruno@clisp.org>
119782         * gnulib-tool (func_import): Remove the .tmp files.
119784 2005-09-01  Bruno Haible  <bruno@clisp.org>
119786         * gnulib-tool (func_import): Fix handling of symbolic links.
119788 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119790         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119791         old glibc regex code mishandles strings longer than 2**31 bytes.
119792         This patch fixes this when the regex code is used in gnulib
119793         (i.e., outside glibc).
119795         This patch should not affect the use of the regex code inside
119796         glibc.  No doubt this problem also needs to be handled for glibc
119797         as well, but the result will be an incompatible change to the
119798         glibc ABI, and the old ABI will have to be supported too.  That
119799         can be the subject for another patch.
119801         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119802         governing whether the rest of this patch is active.  By default,
119803         the macro is disabled and the patch has no effect.
119804         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119805         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119806         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119807         (re_match_2, re_set_registers): Use the new types.
119808         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119809         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119810         New macros.
119811         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119812         (re_string_context_at, bin_tree_t, re_dfastate_t):
119813         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119814         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119815         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119816         (re_string_char_size_at, re_string_wchar_at):
119817         (re_string_elem_size_at):
119818         Use the new types and macros to port to 64-bit hosts.
119819         Use unsigned types for internal values, so that the code
119820         mostly works even for arrays larger than SSIZE_MAX.
119821         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119822         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119823         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119824         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119825         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119826         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119827         (calc_inveclosure, parse_dup_op, build_range_exp):
119828         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119829         (fetch_number, create_token_tree, mark_opt_subexp):
119830         Likewise.
119831         * lib/regex_internal.c (re_string_construct_common,
119832         create_ci_newstate):
119833         (create_cd_newstate, re_string_allocate, re_string_construct):
119834         (re_string_realloc_buffers, build_wcs_upper_buffer):
119835         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119836         (re_string_reconstruct, re_string_peek_byte_case):
119837         (re_string_fetch_byte_case, re_string_context_at):
119838         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119839         (re_node_set_init_copy, re_node_set_add_intersect):
119840         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119841         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119842         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119843         (re_acquire_state, re_acquire_state_context, register_state):
119844         Likewise.
119845         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119846         search_cur_bkref_entry):
119847         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119848         (re_search_internal, re_search_2_stub, re_search_stub)
119849         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119850         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119851         (update_cur_sifted_state, check_dst_limits):
119852         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119853         (check_subexp_limits, sift_states_bkref, merge_state_array):
119854         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119855         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119856         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119857         (expand_bkref_cache, check_node_accept_bytes):
119858         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119859         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119860         (acquire_init_state_context, check_halt_node_context):
119861         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119862         (sift_states_backward, clean_state_log_if_needed):
119863         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119864         (find_recover_state, transit_state_sb, transit_state_mb):
119865         (transit_state_bkref, build_trtable, match_ctx_clean):
119866         Likewise.
119867         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119868         to work around an assumption that REG_MISSING is negative.
119870         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119871         (seek_collating_symbol_entry) [defined _LIBC]:
119872         (lookup_collation_sequence_value) [defined _LIBC]:
119873         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119874         Use prototypes rather than old-style function definitions.
119875         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119876         (transit_state_sb) [0]:
119877         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119879         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119880         rm_eo.
119882         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119883         (optimize_subexps, lower_subexp):
119884         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119885         since the signed shift might overflow.  Use 1u<<31 instead.
119886         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119887         Likewise.
119888         * lib/regexec.c (check_dst_limits_calc_pos_1,
119889         check_subexp_matching_top): Likewise.
119891         * lib/regcomp.c (optimize_subexps, lower_subexp):
119892         Use CHAR_BIT rather than 8, for clarity.
119893         * lib/regexec.c (check_dst_limits_calc_pos_1):
119894         (check_subexp_matching_top): Likewise.
119895         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119896         have to worry about portability issues when shifting it left.
119897         Remove no-longer-needed test for table_size > 0.
119898         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119899         in a word, as the resulting behavior is undefined.
119900         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119901         in one case, a <= should have been an <, and in another case the
119902         whole test was missing.
119903         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119904         the standard name CHAR_BIT.
119905         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119906         this is not true on one's complement and signed-magnitude hosts.
119908         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119909         next_last_offset.
119910         (struct re_dfa_t): Remove unused member states_alloc.
119911         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119913 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119915         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119916         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119917         and large-file glibc and in 32-bit large-file Solaris.
119919 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119921         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119922         lengths fit in regoff_t; this isn't true if regoff_t is the same
119923         width as size_t.
119924         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119925         (= START + RANGE) instead of RANGE.  This avoids overflow
119926         problems when regoff_t is the same width as size_t.
119927         All callers changed.
119928         (re_search_2_stub): Check for overflow when adding the
119929         sizes of the two strings.
119930         (re_search_stub): Check for overflow when adding START
119931         to RANGE; if it occurs, substitute the extreme value.
119933 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119935         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119937 2005-08-31  Jim Meyering  <jim@meyering.net>
119939         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119940         a pointer-to-const.
119941         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119942         (register_state): Likewise.
119943         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119944         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119945         (group_nodes_into_DFAstates): Likewise.
119947 2005-08-31  Jim Meyering  <jim@meyering.net>
119949         * check-module: Add a FIXME comment.
119951 2005-08-31  Eric Blake  <ebb9@byu.net>
119953         * modules/unistd-safer (Files): Add unistd--.h.
119954         * modules/stdio-safer (Files): Add stdio--.h.
119956 2005-08-31  Derek Price  <derek@ximbiot.com>
119958         * lib/getdelim.c (getdelim): Return EOF on EOF.
119959         Reported by Larry Jones <lawrence.jones@ugs.com>.
119961 2005-08-31  Bruno Haible  <bruno@clisp.org>
119963         Avoid unnecessary diffs in the generated lib/Makefile.am.
119964         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119965         the generated files.
119966         (func_import): Don't set cmd.
119968 2005-08-31  Bruno Haible  <bruno@clisp.org>
119970         * lib/strstr.c: Include <stddef.h>, for NULL.
119971         * lib/strcasestr.c: Likewise.
119972         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119974 2005-08-31  Bruno Haible  <bruno@clisp.org>
119976         * gnulib-tool: New option --macro-prefix.
119977         (func_import): Use macro_prefix.
119978         (import): Handle option --macro-prefix.
119980 2005-08-31  Bruno Haible  <bruno@clisp.org>
119982         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119983         Also use new variables cached_lgpl, cached_libtool.
119985 2005-08-31  Bruno Haible  <bruno@clisp.org>
119987         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119988         always instantiating them.
119990 2005-08-31  Bruno Haible  <bruno@clisp.org>
119992         * gnulib-tool (func_import): Read the previous cached settings
119993         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119994         earlier added by gnulib but are now dropped. Warn when a gnulib file
119995         overwrites a non-gnulib file.
119997 2005-08-31  Bruno Haible  <bruno@clisp.org>
119999         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
120000         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
120001         projects that don't keep autogenerated files in CVS. Put into
120002         actioncmd only the specified modules, not the transitive closure.
120004 2005-08-31  Bruno Haible  <bruno@clisp.org>
120006         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
120007         Create directories that shall be filled.
120008         (import): Don't look for gl_* macros in configure.ac. Recurse across
120009         all directories containing a gnulib-cache.m4 files, if meaningful.
120011 2005-08-31  Bruno Haible  <bruno@clisp.org>
120013         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
120014         (import): Set seen_libtool when we see gl_LIBTOOL.
120016 2005-08-31  Bruno Haible  <bruno@clisp.org>
120018         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
120019         declaration macro definitions from generated gnulib.m4.
120021 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
120023         * lib/iconvme.h: Add prototype for iconv_alloc.
120025 2005-08-29  Simon Josefsson  <jas@extundo.com>
120027         * lib/iconvme.c: Fix errno.
120029 2005-08-29  Bruno Haible  <bruno@clisp.org>
120031         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
120032         that it works when the directory contains spaces.
120034 2005-08-29  Bruno Haible  <bruno@clisp.org>
120036         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
120038 2005-08-29  Bruno Haible  <bruno@clisp.org>
120040         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
120041         Emit more advice.
120043 2005-08-29  Bruno Haible  <bruno@clisp.org>
120044         and Stepan Kasal  <kasal@ucw.cz>
120046         * check-module: If more parameters are given, check each of them
120047         separately; add more exceptions, as noted by Jim Meyering.
120048         (check_module): New procedure.
120049         (%exempt_header): Now contains all exceptions.
120051 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
120053         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
120055 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120057         * lib/iconvme.c: Split iconv_string into iconv_alloc.
120059 2005-08-28  Bruno Haible  <bruno@clisp.org>
120061         * m4/gnulib-tool.m4: New file.
120063 2005-08-27  Jim Meyering  <jim@meyering.net>
120065         * modules/unistd-safer (Files): Add pipe-safer.c.
120066         * modules/fcntl-safer (Files): Add creat-safer.c.
120068 2005-08-27  Jim Meyering  <jim@meyering.net>
120070         * m4/stdlib-safer.m4: New file.  From coreutils.
120071         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
120072         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
120073         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
120074         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
120075         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
120077 2005-08-27  Jim Meyering  <jim@meyering.net>
120079         * lib/fopen-safer.c: Merge minor changes from coreutils.
120080         * lib/dup-safer.c: Likewise.
120081         * lib/fd-safer.c: Likewise.
120083         Merge from coreutils.
120084         * lib/stdio--.h: New file.
120085         * lib/stdlib--.h: New file.
120086         * lib/mkstemp-safer.c: New file.
120088         GNU tar needs these.
120089         * lib/pipe-safer.c: New file.
120090         * lib/creat-safer.c: New file.
120091         * lib/fcntl--.h (creat): Define to creat_safer.
120092         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
120093         * lib/unistd--.h (pipe): Define to pipe_safer.
120094         * lib/unistd-safer.h: Declare pipe_safer.
120096 2005-08-26  Simon Josefsson  <jas@extundo.com>
120098         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
120099         Haible <bruno@clisp.org>.
120101 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
120103         * lib/regex_internal.h: Remove all references to
120104         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
120105         or better.
120106         (bitset_not, bitset_merge, bitset_not_merge):
120107         (bitset_mask, re_string_allocate, re_string_construct):
120108         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
120109         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
120110         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
120111         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
120112         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120113         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120114         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
120115         (re_acquire_state_context):
120116         Remove unnecessary forward decls.
120117         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
120118         Put __attribute at function definition,
120119         now that the function decl has been removed.
120120         * lib/regex_internal.c (re_string_peek_byte_case):
120121         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
120122         Likewise.
120124 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
120126         * m4/regex.m4: Add AC_PREREQ(2.50).
120127         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
120129 2005-08-25  Simon Josefsson  <jas@extundo.com>
120131         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
120132         __fsetlocking.
120134 2005-08-25  Simon Josefsson  <jas@extundo.com>
120136         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
120137         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
120138         GLIBC specific code.
120140 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120142         Make regex safe for g++.  This fixes one real bug (an "err"
120143         that should have been "*err").  g++ problem reported by
120144         Sam Steingold.
120145         * lib/regex_internal.h (re_calloc): New macro, consistent with
120146         re_malloc etc.  All callers of calloc changed to use re_calloc.
120147         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
120148         not int.  All callers changed.
120149         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
120150         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
120151         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
120152         (find_recover_state): Change "err" to "*err"; this fixes what
120153         appears to be a real bug.
120154         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
120155         versus int.
120157 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120159         * modules/regex (Depends-on): Add malloc, since the code
120160         assumes that !malloc(0) means failure.
120162 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120164         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
120166         alloca modernization/simplification for regex.
120167         * lib/regex.c: Remove portability cruft for alloca.  This no longer
120168         needs to be at the start of the file, and can be moved into
120169         regex_internal.h and simplified.
120170         * lib/regex_internal.h: Include <alloca.h>.
120171         (__libc_use_alloca) [!defined _LIBC]: New macro.
120172         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
120173         now works outside glibc.
120175 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120177         * config/srclist.txt: Add glibc bugs 1241, 1245.
120179 2005-08-25  Jim Meyering  <jim@meyering.net>
120181         * lib/open-safer.c: Include <config.h>.
120182         Otherwise, we'd lose LARGEFILE support in any file using
120183         e.g. "fcntl--.h"
120185 2005-08-25  Bruno Haible  <bruno@clisp.org>
120187         * m4/minmax.m4: Require autoconf 2.52.
120188         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
120189         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
120190         alternatives of translit over the alphabet.
120191         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120193 2005-08-24  Simon Josefsson  <jas@extundo.com>
120195         * tests/test-getpass.c: New file.
120197 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120199         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
120200         for GNU regex features.
120202 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120204         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
120205         * lib/regex.h (regerror): Likewise.
120207         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
120208         requires this.  (The code never needed it.)
120210         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
120211         All uses of recently-renamed identifiers changed to use the new,
120212         POSIX-compliant names.  The code will build and run just fine
120213         without these changes, but it's better to eat our own dog food
120214         and use the standard-conforming names.
120216         * lib/regex.h: Fix a multitude of POSIX name space violations.
120217         These changes have an effect only for programs that define
120218         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
120219         do not change anything for programs compiled in the normal way.
120220         Also, there is no effect on the ABI.
120222         (_REGEX_SOURCE): New macro.
120223         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
120224         defined and _GNU_SOURCE is not; this fixes a name space violation.
120226         Rename the following macros to obey POSIX requirements.
120227         The old names are still visible as macros if _REGEX_SOURCE is defined.
120228         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
120229         RE_BACKSLASH_ESCAPE_IN_LISTS.
120230         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
120231         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
120232         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
120233         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
120234         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
120235         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
120236         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
120237         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
120238         (REG_INTERVALS): renamed from RE_INTERVALS.
120239         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
120240         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
120241         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
120242         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
120243         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
120244         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
120245         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
120246         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
120247         RE_UNMATCHED_RIGHT_PAREN_ORD.
120248         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
120249         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
120250         (REG_DEBUG): renamed from RE_DEBUG.
120251         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
120252         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
120253         unusual, since we can't clash with the POSIX REG_ICASE.
120254         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
120255         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
120256         (REG_NO_SUB): renamed from RE_NO_SUB.
120257         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
120258         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
120259         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
120260         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
120261         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
120262         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
120263         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
120264         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
120265         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
120266         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
120267         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
120268         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
120269         RE_SYNTAX_POSIX_MINIMAL_BASIC.
120270         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
120271         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
120272         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
120273         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
120274         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
120275         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
120276         (REG_FIXED): Renamed from REGS_FIXED.
120277         (REG_NREGS): Renamed from RE_NREGS.
120279         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
120280         of other REG_* macros, since POSIX says the user is allowed to
120281         #undef these macros selectively.
120283         (reg_errcode_t): Update comment stating what other tables need
120284         to be consistent.
120286         Rename the following enum values to obey POSIX requirements.
120287         The old names are still visible as macros.
120288         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
120289         is not defined, since GNU is supposed to be a superset of POSIX as
120290         much as possible, and since we want reg_errcode_t to be a signed
120291         type for implementation consistency.
120292         (_REG_NOERROR): Renamed from REG_NOERROR.
120293         (_REG_NOMATCH): Renamed from REG_NOMATCH.
120294         (_REG_BADPAT): Renamed from REG_BADPAT.
120295         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
120296         (_REG_ECTYPE): Renamed from REG_ECTYPE.
120297         (_REG_EESCAPE): Renamed from REG_EESCAPE.
120298         (_REG_ESUBREG): Renamed from REG_ESUBREG.
120299         (_REG_EBRACK): Renamed from REG_EBRACK.
120300         (_REG_EPAREN): Renamed from REG_EPAREN.
120301         (_REG_EBRACE): Renamed from REG_EBRACE.
120302         (_REG_BADBR): Renamed from REG_BADBR.
120303         (_REG_ERANGE): Renamed from REG_ERANGE.
120304         (_REG_ESPACE): Renamed from REG_ESPACE.
120305         (_REG_BADRPT): Renamed from REG_BADRPT.
120306         (_REG_EEND): Renamed from REG_EEND.
120307         (_REG_ESIZE): Renamed from REG_ESIZE.
120308         (_REG_ERPAREN): Renamed from REG_ERPAREN.
120309         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
120310         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
120311         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
120312         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
120314         (_REG_RE_NAME, _REG_RM_NAME): New macros.
120315         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
120316         changed.  But support the old name if the new one is not defined
120317         and if _REGEX_SOURCE.
120319         Change the following member names in struct re_pattern_buffer.
120320         The old names are still supported if !_REGEX_SOURCE.
120321         The new names are always supported, regardless of _REGEX_SOURCE.
120322         (re_buffer): Renamed from buffer.
120323         (re_allocated): Renamed from allocated.
120324         (re_used): Renamed from used.
120325         (re_syntax): Renamed from syntax.
120326         (re_fastmap): Renamed from fastmap.
120327         (re_translate): Renamed from translate.
120328         (re_can_be_null): Renamed from can_be_null.
120329         (re_regs_allocated): Renamed from regs_allocated.
120330         (re_fastmap_accurate): Renamed from fastmap_accurate.
120331         (re_no_sub): Renamed from no_sub.
120332         (re_not_bol): Renamed from not_bol.
120333         (re_not_eol): Renamed from not_eol.
120334         (re_newline_anchor): Renamed from newline_anchor.
120336         Change the following member names in struct re_registers.
120337         The old names are still supported if !_REGEX_SOURCE.
120338         The new names are always supported, regardless of _REGEX_SOURCE.
120339         (rm_num_regs): Renamed from num_regs.
120340         (rm_start): Renamed from start.
120341         (rm_end): Renamed from end.
120343         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
120344         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
120345         Prepend __ to parameter names.
120347         Undo yesterday's changes.
120349 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120351         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
120352         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
120353         lib/regex.c.
120355 2005-08-24  Jim Meyering  <jim@meyering.net>
120357         Sync from coreutils.
120358         * m4/fcntl-safer.m4: New file.
120360         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
120361         and object files for this module.
120363 2005-08-24  Jim Meyering  <jim@meyering.net>
120365         Sync from coreutils.
120366         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120368 2005-08-24  Jim Meyering  <jim@meyering.net>
120370         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120371         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120373 2005-08-24  Jim Meyering  <jim@meyering.net>
120375         * modules/fcntl-safer: New module.
120376         * modules/fts (Depends-on): Add fcntl-safer.
120377         * MODULES.html.sh (File descriptor based Input/Output):
120378         Add fcntl-safer.
120380 2005-08-24  Bruno Haible  <bruno@clisp.org>
120382         Support for unit test modules.
120383         * modules/README: Mention tests modules.
120384         * modules/TEMPLATE-TESTS: New file.
120385         * gnulib-tool: New options --extract-tests-module, --with-tests and
120386         --tests-base (unused for the moment).
120387         (testsbase, inctests): New variables.
120388         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120389         (func_verify_module): Exclude TEMPLATE-TESTS.
120390         (func_verify_nontests_module, func_verify_tests_module): New functions.
120391         (func_get_dependencies): Add implicit dependency for tests modules.
120392         (func_get_tests_module): New function.
120393         (func_modules_transitive_closure): When --with-tests was specified,
120394         include the unit tests as well, unless explicitly avoided.
120395         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120396         (func_emit_tests_Makefile_am): New function.
120397         (func_create_testdir): When --with-tests was specified, emit a
120398         tests/ directory.
120399         * MODULES.html.sh (Future developments): Update.
120401 2005-08-24  Bruno Haible  <bruno@clisp.org>
120403         * modules/tls-tests: New file.
120404         * tests/test-tls.c: New file, from GNU gettext.
120406 2005-08-24  Bruno Haible  <bruno@clisp.org>
120408         * modules/lock-tests: New file.
120409         * tests/test-lock.c: New file, from GNU gettext.
120411 2005-08-24  Bruno Haible  <bruno@clisp.org>
120413         * lib/lock.h: Add multiple inclusion guard.
120414         * lib/tls.h: Add multiple inclusion guard.
120416 2005-08-24  Bruno Haible  <bruno@clisp.org>
120418         * gnulib-tool: Add support for the --aux-dir option to
120419         --create-testdir, --create-megatestdir, --test, --megatest.
120420         (func_create_testdir, func_create_megatestdir): Optionally emit a
120421         AC_CONFIG_AUX_DIR directive.
120422         (create-testdir, create-megatestdir, test, megatest): Provide a
120423         default value for $auxdir.
120425 2005-08-24  Bruno Haible  <bruno@clisp.org>
120427         * gnulib-tool (import): Use compound statement instead of subshell
120428         where possible.
120430 2005-08-24  Bruno Haible  <bruno@clisp.org>
120432         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120434 2005-08-24  Bruno Haible  <bruno@clisp.org>
120436         * gnulib-tool (func_version): Update.
120438 2005-08-24  Bruno Haible  <bruno@clisp.org>
120440         * gnulib-tool (func_import, func_create_testdir,
120441         func_create_megatestdir): Quote all autoconf macro arguments.
120443 2005-08-24  Bruno Haible  <bruno@clisp.org>
120445         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120446         option --force, because --force causes the aclocal.m4 of each
120447         subdirectory to be newer than the corresponding config.h.in.
120449 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120451         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120452         All contents moved to gl_REGEX.
120453         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120454         assume that it does.
120456 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120458         * lib/regex.h (REG_NOSYS)
120459         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120460         Define, since POSIX requires it as of 2001.
120461         (_REG_ENOSYS)
120462         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120463         New private symbol, used to keep the enum signed in all cases.
120464         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120465         Youngman in
120466         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120468         * lib/regex_internal.c (re_string_skip_chars, register_state):
120469         (calc_state_hash):
120470         Remove forward decls; no longer needed now that we use prototypes.
120471         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120472         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
120473         (clean_state_log_if_needed): Likewise.
120475 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120477         * config/srclist.txt: Add glibc bugs 1231-1233.
120479 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120481         Fix problems reported by Sam Steingold in
120482         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
120483         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
120484         assumed that reg_errcode_t is a signed type, which is not
120485         necessarily true if _XOPEN_SOURCE is not defined.
120486         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
120487         since some compilers warn about it otherwise.
120489 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120491         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
120492         (init_word_char, create_initial_state, duplicate_node_closure):
120493         (fetch_token, peek_token_bracket, build_range_exp):
120494         (build_collating_symbol): Remove forward decls; no longer needed
120495         now that we use prototypes.
120497         * lib/regcomp.c:
120498         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
120499         (re_compile_fastmap_iter, regcomp, regerror, regfree):
120500         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
120501         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
120502         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
120503         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
120504         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
120505         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
120506         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
120507         (build_range_exp, build_collating_symbol, parse_bracket_exp):
120508         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
120509         (build_charclass, build_charclass_op, fetch_number, create_tree):
120510         (create_token_tree, mark_opt_subexp, duplicate_tree):
120511         Use prototypes rather than old-style definitions.
120513         * lib/regex_internal.c:
120514         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
120515         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
120516         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120517         (re_string_reconstruct, re_string_peek_byte_case):
120518         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
120519         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120520         (re_node_set_init_copy, re_node_set_add_intersect):
120521         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120522         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120523         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120524         (re_acquire_state, re_acquire_state_context, register_state):
120525         (create_ci_newstate, create_cd_newstate, free_state):
120526         Likewise.
120527         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
120528         re_search_2):
120529         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
120530         (re_search_internal, prune_impossible_nodes):
120531         (acquire_init_state_context, check_matching, static):
120532         (check_halt_node_context, check_halt_state_context, proceed_next_node):
120533         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
120534         (update_regs, sift_states_backward, build_sifted_states):
120535         (clean_state_log_if_needed, merge_state_array):
120536         (update_cur_sifted_state, add_epsilon_src_nodes):
120537         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
120538         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
120539         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
120540         (find_recover_state, check_subexp_matching_top, transit_state_mb):
120541         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
120542         (check_arrival, check_arrival_add_next_nodes):
120543         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120544         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120545         (check_node_accept_bytes, check_node_accept, extend_buffers):
120546         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
120547         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
120548         (sift_ctx_init):
120549         Likewise.
120551         * lib/regex_internal.h:
120552         (re_string_allocate, re_string_construct, re_string_reconstruct):
120553         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
120554         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
120555         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
120556         (re_string_context_at, re_string_peek_byte_case):
120557         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
120558         is defined, since we now use prototypes always.
120560         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
120561         C89 or better.  All uses removed.
120563 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120565         * config/srclist.txt: Add glibc bugs 1220-1227.
120567 2005-08-20  Jim Meyering  <jim@meyering.net>
120569         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
120570         of unused local, dfa.
120572 2005-08-20  Bruno Haible  <bruno@clisp.org>
120574         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
120576 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120578         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
120579         (re_node_set_insert_last, re_dfa_add_node):
120580         Rename local variables to avoid GCC shadowing warnings.
120582 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120584         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
120585         [defined lint]: Suppress bogus uninitialized-variable warnings.
120587         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
120588         and let the caller return REG_ESPACE if out of space.  This
120589         removes an uninitialied-variable warning with GCC 4.0.1, and also
120590         avoids taking the address of a local variable.  All callers
120591         changed.
120593 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120595         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
120596         $LIBCSRC/posix/regexec.c.
120597         Add glibc bug 1217 for regcomp.c.
120599 2005-08-19  Jim Meyering  <jim@meyering.net>
120601         * lib/regexec.c (proceed_next_node): Redo local variables to
120602         avoid GCC shadowing warnings.
120604 2005-08-18  Bruno Haible  <bruno@clisp.org>
120606         * lib/strstr.c (strstr): Fix return value in multibyte case.
120607         * lib/strcasestr.c (strcasestr): Likewise.
120609 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120611         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120613 2005-08-17  Jim Meyering  <jim@meyering.net>
120615         Make the %s format (seconds since the epoch) work for a negative
120616         number and when used with a zero-padded field width, e.g. %015s.
120618         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
120619         label so that it precedes the code to set `digits'.  Otherwise,
120620         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
120621         print `00-22'.  Now, it prints `-0022', as it should.
120623 2005-08-17  Bruno Haible  <bruno@clisp.org>
120625         * modules/strstr (Files): Add m4/mbrtowc.m4.
120626         (Depends-on): Add mbuiter.
120628 2005-08-17  Bruno Haible  <bruno@clisp.org>
120630         * modules/strcasestr: New file.
120631         * MODULES.html.sh (String handling, based on ANSI C 89): Add
120632         strcasestr.
120634 2005-08-17  Bruno Haible  <bruno@clisp.org>
120636         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
120638 2005-08-17  Bruno Haible  <bruno@clisp.org>
120640         * modules/mbuiter: New file.
120641         * MODULES.html.sh (Extended multibyte and wide character utilities):
120642         Add mbuiter.
120644 2005-08-17  Bruno Haible  <bruno@clisp.org>
120646         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
120647         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
120649 2005-08-17  Bruno Haible  <bruno@clisp.org>
120651         * m4/strcasestr.m4: New file.
120653 2005-08-17  Bruno Haible  <bruno@clisp.org>
120655         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
120656         * lib/strstr.c: Completely rewritten, with multibyte locale support.
120658 2005-08-17  Bruno Haible  <bruno@clisp.org>
120660         * lib/strcasestr.h: New file.
120661         * lib/strcasestr.c: New file.
120663 2005-08-17  Bruno Haible  <bruno@clisp.org>
120665         * lib/strcasecmp.c: Use mbuiter.h.
120667 2005-08-17  Bruno Haible  <bruno@clisp.org>
120669         * lib/mbuiter.h: New file.
120671 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
120673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
120674         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
120675         and gl_GETOPT are both invoked via different paths (as happens
120676         with GNU tar CVS because it uses both argp and getopt), the former
120677         wins.
120679 2005-08-16  Bruno Haible  <bruno@clisp.org>
120681         * modules/tls: New file.
120682         * MODULES.html.sh (Multithreading): Add tls.
120684 2005-08-16  Bruno Haible  <bruno@clisp.org>
120686         * modules/strnlen1: New file.
120687         * MODULES.html.sh (String handling): Add strnlen1.
120689 2005-08-16  Bruno Haible  <bruno@clisp.org>
120691         * modules/strcase (Files): Add m4/mbrtowc.m4.
120692         (Depends-on): Add strnlen1, mbchar.
120694 2005-08-16  Bruno Haible  <bruno@clisp.org>
120696         * modules/mbiter: New file.
120697         * MODULES.html.sh (Extended multibyte and wide character utilities):
120698         Add mbiter.
120700 2005-08-16  Bruno Haible  <bruno@clisp.org>
120702         * modules/mbfile: New file.
120703         * MODULES.html.sh (Extended multibyte and wide character utilities):
120704         Add mbfile.
120706 2005-08-16  Bruno Haible  <bruno@clisp.org>
120708         * modules/mbchar: New file.
120709         * MODULES.html.sh (Extended multibyte and wide character utilities):
120710         New section.
120712 2005-08-16  Bruno Haible  <bruno@clisp.org>
120714         * m4/tls.m4: New file, from GNU gettext.
120716 2005-08-16  Bruno Haible  <bruno@clisp.org>
120718         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120719         always.
120720         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120722 2005-08-16  Bruno Haible  <bruno@clisp.org>
120724         * m4/mbiter.m4: New file.
120726 2005-08-16  Bruno Haible  <bruno@clisp.org>
120728         * m4/mbfile.m4: New file.
120730 2005-08-16  Bruno Haible  <bruno@clisp.org>
120732         * m4/mbchar.m4: New file.
120734 2005-08-16  Bruno Haible  <bruno@clisp.org>
120736         * lib/tls.h: New file, from GNU gettext.
120737         * lib/tls.c: New file, from GNU gettext.
120739 2005-08-16  Bruno Haible  <bruno@clisp.org>
120741         * lib/strnlen1.h: New file.
120742         * lib/strnlen1.c: New file.
120744 2005-08-16  Bruno Haible  <bruno@clisp.org>
120746         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120747         (mbi_init): Update.
120748         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120749         NUL byte, not after it.
120751 2005-08-16  Bruno Haible  <bruno@clisp.org>
120753         * lib/strcase.h (strcasecmp): Add note in comments.
120754         * lib/strncasecmp.c: Use code from strcasecmp.c.
120755         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120756         (strcasecmp): Work correctly in multibyte locales.
120758 2005-08-16  Bruno Haible  <bruno@clisp.org>
120760         * lib/mbiter.h: New file.
120762 2005-08-16  Bruno Haible  <bruno@clisp.org>
120764         * lib/mbfile.h: New file.
120766 2005-08-16  Bruno Haible  <bruno@clisp.org>
120768         * lib/mbchar.h: New file.
120769         * lib/mbchar.c: New file.
120771 2005-08-16  Bruno Haible  <bruno@clisp.org>
120773         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120774         the valid ones. Makes the comparison operations transitive:
120775         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120776         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120778 2005-08-15  Simon Josefsson  <jas@extundo.com>
120780         * modules/ssize_t (License): Change to 'unlimited'.
120782         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120784 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120786         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120787         Add comments for each pending glibc patch.
120789 2005-08-15  Bruno Haible  <bruno@clisp.org>
120791         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120792         __cplusplus is defined.
120794 2005-08-14  Jim Meyering  <jim@meyering.net>
120796         Sync from coreutils.
120798         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120799         Use the hash-table-based cycle-detection code not just when
120800         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120801         Reported by James Youngman in
120802         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120803         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120804         FTS_TIGHT_CYCLE_CHECK.
120805         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120806         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120807         once again.
120808         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120809         * lib/fts.c (fd_safer): Remove decl.
120810         Include fcntl--.h rather than unistd-safer.h
120811         (fts_safe_changedir): Don't call fd_safer; no longer needed
120812         now that we include fcntl--.h.
120814 2005-08-12  Simon Josefsson  <jas@extundo.com>
120816         * modules/getndelim2: Use ssize_t module.
120817         * modules/getnline: Likewise.
120818         * modules/safe-read: Likewise.
120819         * modules/xreadlink: Likewise.
120821         * modules/ssize_t: New file.
120823 2005-08-12  Simon Josefsson  <jas@extundo.com>
120825         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120827 2005-08-12  Simon Josefsson  <jas@extundo.com>
120829         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120830         ssize_t.
120832 2005-08-12  Simon Josefsson  <jas@extundo.com>
120834         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120835         readline, getdelim and check_version.
120836         (Support for systems lacking ISO C 99: Sizes of integer types):
120837         Add size_max.
120839 2005-08-12  Bruno Haible  <bruno@clisp.org>
120841         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120843 2005-08-11  Simon Josefsson  <jas@extundo.com>
120845         * modules/readline: New file.
120847         * modules/strnlen (Files): Add strnlen.h.
120849 2005-08-11  Simon Josefsson  <jas@extundo.com>
120851         * m4/readline.m4: New file.
120853 2005-08-11  Simon Josefsson  <jas@extundo.com>
120855         * lib/readline.h, readline.c: New file.
120857 2005-08-11  Simon Josefsson  <jas@extundo.com>
120859         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120860         gl_AVOID.
120862 2005-08-11  Bruno Haible  <bruno@clisp.org>
120864         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120866 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120868         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120870 2005-08-10  Simon Josefsson  <jas@extundo.com>
120872         * tests/test-iconvme.c: New file.
120874 2005-08-10  Simon Josefsson  <jas@extundo.com>
120876         * m4/strnlen.m4: New file.
120878         * m4/strndup.m4: Don't check for strnlen declaration, done in
120879         strnlen.m4.
120881 2005-08-10  Simon Josefsson  <jas@extundo.com>
120883         * lib/strndup.c: Use strnlen.h.
120885         * lib/strnlen.h: New file.
120887 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120889         * README: Typos.
120891 2005-08-02  Simon Josefsson  <jas@extundo.com>
120893         * modules/readline: New file.
120895 2005-08-02  Simon Josefsson  <jas@extundo.com>
120897         * modules/getdelim: New file.
120899         * modules/getline: Rewrite, don't use getndelim2.
120901 2005-08-02  Simon Josefsson  <jas@extundo.com>
120903         * m4/getline.m4: Separate out getdelim stuff into separate module.
120905         * m4/getdelim.m4: New file.
120907 2005-08-02  Simon Josefsson  <jas@extundo.com>
120909         * lib/getline.h, getline.c: Rewrite.
120911         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120913 2005-07-31  Bruno Haible  <bruno@clisp.org>
120915         * lib/lock.h (gl_lock_initializer): New macro.
120916         (gl_lock_define_initialized): Use it.
120917         (gl_rwlock_initializer): New macro.
120918         (gl_rwlock_define_initialized): Use it.
120919         (gl_recursive_lock_initializer): New macro.
120920         (gl_recursive_lock_define_initialized): Use it.
120922 2005-07-30  Karl Berry  <karl@gnu.org>
120924         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120925         Report from Ben Pfaff, regarding getopt.
120927 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120929         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120930         normal way.
120931         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120932         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120933         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120934         (gl_GETOPT): Use the new macros.  Most of the implementation
120935         is moved to the new macros.  This is for programs like Emacs
120936         that don't want all the functionality of gl_GETOPT.
120938 2005-07-26  Bruno Haible  <bruno@clisp.org>
120940         * m4/lock.m4: Update from GNU gettext.
120942 2005-07-26  Bruno Haible  <bruno@clisp.org>
120944         * lib/lock.h: Update from GNU gettext.
120945         * lib/lock.c: Update from GNU gettext.
120947 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120949         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120950         obsolescent AC_TRY_RUN.  Include the default includes files, for
120951         'exit'.
120953 2005-07-24  Bruno Haible  <bruno@clisp.org>
120955         * modules/visibility: New file.
120956         * MODULES.html.sh (Misc): Add visibility.
120958 2005-07-24  Bruno Haible  <bruno@clisp.org>
120960         * m4/visibility.m4: New file.
120962 2005-07-24  Bruno Haible  <bruno@clisp.org>
120964         * doc/visibility.texi: New file.
120966 2005-07-22  Bruno Haible  <bruno@clisp.org>
120968         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120969         $(ALLOCA_H), redundant through BUILT_SOURCES.
120970         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120971         redundant through BUILT_SOURCES.
120972         * modules/byteswap (Makefile.am): Remove explicit dependency on
120973         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120974         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120975         $(FNMATCH_H), redundant through BUILT_SOURCES.
120976         * modules/getopt (Makefile.am): Remove explicit dependency on
120977         $(GETOPT_H), redundant through BUILT_SOURCES.
120978         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120979         redundant through BUILT_SOURCES.
120980         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120981         redundant through BUILT_SOURCES.
120982         * modules/stdbool (Makefile.am): Remove explicit dependency on
120983         $(STDBOOL_H), redundant through BUILT_SOURCES.
120984         * modules/stdint (Makefile.am): Remove explicit dependency on
120985         $(STDINT_H), redundant through BUILT_SOURCES.
120986         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120987         Remove explicit dependency on $(SYSEXITS_H).
120988         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120990 2005-07-18  Simon Josefsson  <jas@extundo.com>
120992         * lib/check-version.c (check_version): Accept identical versions too.
120994 2005-07-18  Bruno Haible  <bruno@clisp.org>
120996         * modules/lock: New file.
120997         * MODULES.html.sh (Multithreading): New section.
120999 2005-07-18  Bruno Haible  <bruno@clisp.org>
121001         * m4/lock.m4: New file, from GNU gettext.
121003 2005-07-18  Bruno Haible  <bruno@clisp.org>
121005         * lib/lock.h: New file, from GNU gettext.
121006         * lib/lock.c: New file, from GNU gettext.
121008 2005-07-18  Bruno Haible  <bruno@clisp.org>
121010         * lib/lock.h (gl_once_t): New type.
121011         (gl_once_define, gl_once): New macros.
121012         * lib/lock.c (fresh_once): New variable.
121013         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
121014         functions.
121016 2005-07-16  Simon Josefsson  <jas@extundo.com>
121018         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
121019         workaround, suggested by Bruno.
121021 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121023         * modules/xalloc (Depends-on): Add xalloc-die.
121024         * modules/xvasprintf (Depends-on): Add xalloc-die.
121026 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121028         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
121029         with a minor change.
121031 2005-07-15  Bruno Haible  <bruno@clisp.org>
121033         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
121034         When using lib/poll.c, define poll as rpl_poll.
121036 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
121038         * modules/argp (Depends-on): Remove unlocked-io.
121040 2005-07-14  Derek Price  <derek@ximbiot.com>
121042         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
121043         for glob symlink bug.
121045 2005-07-14  Bruno Haible  <bruno@clisp.org>
121047         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
121048         Instead, test for *_unlocked function declarations directly.
121050 2005-07-11  Simon Josefsson  <jas@extundo.com>
121052         * modules/size_max: New file.
121054         * modules/xsize: Depend on size_max module for size_max.m4.
121056 2005-07-11  Simon Josefsson  <jas@extundo.com>
121058         * lib/size_max.h: New file.
121060 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
121062         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
121063         copyright symbol and the year.
121064         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
121065         (version_etc_va): Use parameterized copyright notice.
121066         Reword to conform to the current GNU coding standards.
121068 2005-07-11  Karl Berry  <karl@gnu.org>
121070         * doc/gnulib.texi (Quoting): new node.
121071         (Initial import): more info, from Patrice.
121073 2005-07-11  Bruno Haible  <bruno@clisp.org>
121075         * gnulib-tool (func_usage): Document option --avoid.
121076         (Command line options): Handle --avoid.
121077         (func_acceptable): New function.
121078         (func_modules_transitive_closure): Use it.
121080 2005-07-11  Bruno Haible  <bruno@clisp.org>
121082         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
121083         Reported by Jim Meyering.
121085 2005-07-10  Bruno Haible  <bruno@clisp.org>
121087         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
121088         Needed when size_t is smaller than 'unsigned int'.
121089         Reported by Paul Eggert.
121091 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121093         * modules/argp (Depends-on): Add unlocked-io
121095 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121097         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
121098         block of defines.
121100 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
121102         * config/srclist.txt: Comment out regcomp.c, since we have a porting
121103         fix now.
121105 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
121106         and Paul Eggert  <eggert@cs.ucla.edu>
121108         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
121109         in wint_t, not wchar_t.  Remove now-unnecessary cast.
121111 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121113         * modules/regex (Files): Add lib/regex_internal.c,
121114         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
121115         (Depends-on): Add extensions.
121116         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
121118 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121120         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
121121         pathconf.
121122         * m4/same.m4 (gl_SAME): Likewise.
121123         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
121125         * m4/regex.m4: Adjust to new libc regex implementation.
121126         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
121127         all the .c and .h parts of (the new) regex.
121128         Quote the m4 stuff better.
121129         Check for RE_ICASE bug of old gnulib.
121130         Check for REG_STARTEND of recent libc.
121131         Rename local variables from jm_* to gl_*.
121132         Quote operand of "test -f".
121133         Say "recent enough" version of libc, not "version 2".
121134         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
121135         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
121136         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
121137         Remove check for btowc, isascii.
121138         Require AM_LANGINFO_CODESET.
121140 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121142         * lib/regex.c, regex.h: Sync from libc.
121143         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
121144         * lib/regexec.c:
121145         New files, synced from libc, except that regex_internal.h
121146         currently has a small porting fix.
121148 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121150         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
121151         regex_internal.c, regexec.c.
121152         Add regex_internal.h too, but as a comment, since the libc version
121153         is currently broken in gnulib mode.
121155 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
121157         Support programs like Emacs that use gnulib but not gettext.
121158         * MODULES.html.sh (Internationalization functions): Add gettext-h.
121159         * modules/gettext-h: New file.
121160         * modules/gettext (Files): Remove lib/gettext.h.
121161         (Depends-on): Add gettext-h.
121162         (Makefile.am): Remove lib_SOURCES.
121163         * modules/argmatch, modules/c-stack, modules/closeout:
121164         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
121165         * modules/execute, modules/file-type, modules/getaddrinfo:
121166         * modules/getopt, modules/human, modules/javacomp:
121167         * modules/javaexec, modules/mkdir-p, modules/obstack:
121168         * modules/openat, modules/pagealign_alloc, modules/pipe:
121169         * modules/quotearg, modules/regex, modules/rpmatch:
121170         * modules/unicodeio, modules/userspec, modules/version-etc:
121171         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
121172         * modules/xsetenv:
121173         Depend on gettext-h, not gettext.
121175 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
121177         * gnulib-tool (func_import): Add support for 'public domain' license.
121178         * modules/alloca, modules/atexit, modules/memmove:
121179         Now public domain, not GPL.
121180         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
121181         * modules/realloc, modules/strerror, modules/strtod:
121182         Now LGPL, not GPL.
121184 2005-07-05  Bruno Haible  <bruno@clisp.org>
121186         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
121187         autoconf CVS. Needed for mingw.
121189 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121191         Remove the dependency of the strftime module on the tzset module.
121192         * modules/strftime (Depends-on): Remove dependency on tzset.
121194 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121196         Remove the dependency of the strftime module on the tzset module.
121197         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
121198         gl_FUNC_TZSET_CLOBBER.
121200 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121202         Remove the dependency of the strftime module on the tzset module.
121203         * lib/strftime.c (my_strftime)
121204         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
121205         Copy the input structure, to work around some of the bug with
121206         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
121207         Solaris releases, you should also use the tzset module, but we won't
121208         require it as a dependency any more since we don't want LGPLed code
121209         to depend on GPLed code.
121211 2005-07-02  Jim Meyering  <jim@meyering.net>
121213         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
121214         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
121215         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
121216         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
121218 2005-07-02  Jim Meyering  <jim@meyering.net>
121220         * lib/backupfile.c (backup_args): Change a `0' to NULL.
121222 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
121224         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
121225         declares only 'struct timespec;' (!).
121227 2005-07-01  Jim Meyering  <jim@meyering.net>
121229         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
121230         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
121231         * lib/save-cwd.c, tempname.c:
121232         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
121233         and don't include <sys/file.h>).
121235 2005-06-29  Jim Meyering  <jim@meyering.net>
121237         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
121238         type name.  Use the variable name instead.
121239         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
121240         Likewise.
121242 2005-06-28  Simon Josefsson  <jas@extundo.com>
121244         * modules/check-version (Files): Add check-version.m4.
121246 2005-06-28  Simon Josefsson  <jas@extundo.com>
121248         * m4/check-version.m4: New file, suggested by Jim Meyering
121249         <jim@meyering.net>.
121251 2005-06-28  Simon Josefsson  <jas@extundo.com>
121253         * lib/check-version.h, lib/check-version.c: New files.
121255 2005-06-28  Simon Josefsson  <jas@extundo.com>
121257         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
121258         collision with global variable.  Better indentation.  Don't
121259         increment buffer pointer beyond buffer end.  Based on comments
121260         from Paul Eggert <eggert@cs.ucla.edu>.
121262         * lib/base64.h: Indent.
121264 2005-06-28  Simon Josefsson  <jas@extundo.com>
121266         * doc/gnulib.texi (Library version handling): New section.
121268 2005-06-28  Jim Meyering  <jim@meyering.net>
121270         * check-module (find_included_lib_files): Hard-code another
121271         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
121272         but modules/fts-lgpl (correctly) does not list those files.
121274         * modules/canonicalize (Files): Add lib/pathmax.h.
121276 2005-06-25  Simon Josefsson  <jas@extundo.com>
121278         * modules/check-version: New file.
121280 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
121282         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
121283         initializer of struct addrinfo, as an indication that we don't
121284         care how many members the structure has.
121286 2005-06-24  Derek Price  <derek@ximbiot.com>
121287         and Bruno Haible  <bruno@clisp.org>
121289         Remove stat module & update lstat.
121290         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
121291         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
121292         * m4/stat.m4: Remove this file.
121294 2005-06-24  Derek Price  <derek@ximbiot.com>
121295         and Bruno Haible  <bruno@clisp.org>
121297         Remove stat module & update lstat.
121298         * lib/stat.c: Remove this file...
121299         (slash_aware_lstat): ...moving this content and its support...
121300         * lib/lstat.c (rpl_lstat): ...into here.
121301         * lib/lstat.h: New file.
121303 2005-06-24  Derek Price  <derek@ximbiot.com>
121304         and Bruno Haible  <bruno@clisp.org>
121306         Remove stat module & update lstat.
121307         * config/srclist.txt (libc sources): Remove stat.
121309 2005-06-24  Derek Price  <derek@ximbiot.com>
121310         and Bruno Haible  <bruno@clisp.org>
121312         Remove stat module & update lstat.
121313         * MODULES.html.sh (stat): Remove.
121314         * MODULES.html: Regenerated.
121315         * modules/lstat (Description): Correct function name.
121316         (Files): Add "lstat.h".
121317         (Depends-on): Remove stat, add xalloc, stat-macros.
121318         * modules/stat: Remove this file.
121319         (Include): Add "lstat.h", remove <sys/stat.h>.
121321 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
121323         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
121324         (ranged_convert): Don't save conversion in a temporary struct.
121325         This causes a warning with GCC 4.0.0, and anyway in the typical
121326         case it's not worth the extra 100 bytes or so of code.
121327         (ranged_convert, __mktime_internal): When calling a function via a
121328         pointer P, use P () rather than (*P) (), as we now assume C89 or
121329         better.
121331 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121333         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
121334         "who -r" failed to give output.  Problem reported by Tim Waugh.
121336         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
121337         (xcalloc): Use it to avoid needless tests.
121338         Problem reported by Jim Meyering.
121340 2005-06-20  Derek Price  <derek@ximbiot.com>
121342         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
121343         unnecessary for Autoconfs > 2.59c.
121345 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121347         * lib/argp.h (__option_is_short): Check upper limit of
121348         __key. Isprint() requires its argument to have the value
121349         of an unsigned char or EOF.
121351 2005-06-16  Jim Meyering  <jim@meyering.net>
121353         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
121354         when either N or S is zero.
121356 2005-06-16  Derek Price  <derek@ximbiot.com>
121358         * m4/bison.m4: Declare YACC & YFLAGS precious.
121360 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121362         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121363         multibyte string or pattern, fall back on unibyte matching.
121364         Problem reported by James Youngman.
121366 2005-06-08  Bruno Haible  <bruno@clisp.org>
121368         * modules/csharpcomp: New file.
121369         * MODULES.html.sh (C#): Add csharpcomp.
121371 2005-06-08  Bruno Haible  <bruno@clisp.org>
121373         * m4/csharpcomp.m4: New file, from GNU gettext.
121375 2005-06-08  Bruno Haible  <bruno@clisp.org>
121377         * lib/csharpcomp.h: New file, from GNU gettext.
121378         * lib/csharpcomp.c: New file, from GNU gettext.
121379         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121381 2005-06-08  Bruno Haible  <bruno@clisp.org>
121383         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121384         warning on mingw.
121386 2005-06-07  Derek Price  <derek@ximbiot.com>
121388         Sync from CVS.
121389         * lib/glob_.h: Indent nested #ifdef.
121391 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121393         Sync from coreutils.
121394         Use "file name" when talking about file names, instead of "filename"
121395         or "path", as per the GNU coding standards.
121396         * lib/mkdir-p.c: Renamed from makepath.c.
121397         (make_dir_parents): Renamed from make_path.  All callers changed.
121398         * lib/mkdir-p.h: Likewise.  All includers changed.
121399         * lib/filenamecat.c: Renamed from path-concat.c.
121400         (file_name_concat): Renamed from path_concat.  All callers changed.
121401         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121402         * lib/filenamecat.h: Likewise.  All includers changed.
121403         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121404         in comments or local variable names.
121405         * lib/basename.c: Likewise.
121406         * lib/canonicalize.c, canonicalize.h: Likewise.
121407         * lib/dirname.c, dirname.h: Likewise.
121408         * lib/euidaccess.c: Likewise.
121409         * lib/exclude.c: Likewise
121410         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121411         * lib/fsusage.c, fsuage.h: Likewise.
121412         * lib/fts.c, fts_.h: Likewise.
121413         * lib/getcwd.c: Likewise.
121414         * lib/getloadavg.c: Likewise.
121415         * lib/mkstemp.c: Likewise.
121416         * lib/mountlist.c, mountlist.h: Likewise.
121417         * lib/openat.c, openat.h: Likewise.
121418         * lib/readlink-stub.c: Likewise.
121419         * lib/readutmp.c, readutmp.h: Likewise.
121420         * lib/rename.c: Likewise.
121421         * lib/rmdir.c: Likewise.
121422         * lib/same.c: Likewise.
121423         * lib/savedir.c: Likewise.
121424         * lib/stripslash.c: Likewise.
121425         * lib/tempname.c: Likewise.
121426         * lib/xreadlink.c: Likewise.
121427         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121428         All uses changed.
121429         * lib/exclude.h: Likewise.
121431         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121432         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121433         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121434         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121435         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121436         files have been getting away with it for years (MORE/BSD 4.3
121437         is extinct now).
121438         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121439         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121441         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121442         Define to 256, not 255, as per modern POSIX.
121444 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121446         Sync from coreutils.
121447         Use "file name" when talking about file names, instead of "filename"
121448         or "path", as per the GNU coding standards.
121449         * MODULES.html.sh: mkdir-p renamed from makepath.
121450         filenamecat renamed from path-concat.
121451         * modules/filenamecat: Renamed from modules/path-concat.
121452         (Files): filenamecat.h and filenamecat.c renamed from
121453         path-concat.h and path-concat.c.
121454         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121455         (Include): filenamecat.h, not path-concat.h.
121456         * modules/mkdir-p: Renamed from modules/makepath.
121457         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121458         makepath.c.
121459         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121460         (Include): mkdir-p.h, not makepath.h.
121462 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121464         Sync from coreutils.
121465         * m4/mkdir-p.m4: Renamed from makepath.m4.
121466         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121467         Rename files from makepath.c to mkdir-p.c, and from
121468         makepath.h to mkdir-p.h.
121469         * m4/filenamecat.m4: Renamed from path-concat.m4.
121470         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121471         Rename files from path-concat.c to filenamecat.c,
121472         and from path-concat.h to filenamecat.h.
121473         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
121474         "file name" in local variables or comments.
121475         * m4/rename.m4: Likewise.
121477 2005-06-01  Bruno Haible  <bruno@clisp.org>
121479         * modules/csharpexec: New file.
121480         * MODULES.html.sh (C#): New section.
121482 2005-06-01  Bruno Haible  <bruno@clisp.org>
121484         * m4/csharp.m4: New file, from GNU gettext.
121485         * m4/csharpexec.m4: New file, from GNU gettext.
121487 2005-06-01  Bruno Haible  <bruno@clisp.org>
121489         * lib/csharpexec.h: New file, from GNU gettext.
121490         * lib/csharpexec.c: New file, from GNU gettext.
121491         * lib/csharpexec.sh.in: New file, from GNU gettext.
121493 2005-05-31  Derek Price  <derek@ximbiot.com>
121494             Paul Eggert  <eggert@cs.ucla.edu>
121496         Sync from cvs.
121497         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121499 2005-05-31  Derek Price  <derek@ximbiot.com>
121500             Paul Eggert  <eggert@cs.ucla.edu>
121502         Sync from cvs.
121503         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121505 2005-05-29  Derek Price  <derek@ximbiot.com>
121507         * config/srclist.txt (glob_.h, glob.c): Add these files.
121509 2005-05-29  Derek Price  <derek@ximbiot.com>
121511         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
121512         * modules/glob: New file.
121513         * modules/getlogin_r: Add link to POSIX spec in description.
121515 2005-05-29  Derek Price  <derek@ximbiot.com>
121516             Paul Eggert  <eggert@cs.ucla.edu>
121518         * m4/glob.m4: New file.
121520 2005-05-29  Derek Price  <derek@ximbiot.com>
121521             Paul Eggert  <eggert@cs.ucla.edu>
121523         * lib/glob_.h, lib/glob.c: New files.
121525 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121527         * modules/fts (Files): Remove m4/inttypes-pri.m4.
121528         * modules/fts-lgpl (Depends-on): Remove gettext.
121530 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121532         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
121533         and don't require gt_INTTYPES_PRI.
121535 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121537         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
121539         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
121540         the configuration hassle isn't worth it.
121541         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
121542         (LONGEST_MODIFIER, PRIuMAX): Remove.
121544 2005-05-27  Bruno Haible  <bruno@clisp.org>
121546         * lib/getlogin_r.h: Remove second include of <stddef.h>.
121548 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
121550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
121551         _POSIX_PTHREAD_SEMANTICS for Solaris.
121553 2005-05-25  Derek Price  <derek@ximbiot.com>
121555         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
121557 2005-05-25  Derek Price  <derek@ximbiot.com>
121558             Paul Eggert  <eggert@cs.ucla.edu>
121560         * modules/getlogin_r, m4/getlogin_r.m4: New files.
121561         * lib/getlogin_r.c, getlogin_r.h: New files.
121563 2005-05-25  Bruno Haible  <bruno@clisp.org>
121564             Derek Price  <derek@ximbiot.com>
121566         * lib/getlogin_r.h: Simplify API documentation.
121568 2005-05-23  Derek Price  <derek@ximbiot.com>
121570         * modules/minmax (Files): Add m4/minmax.m4.
121571         (configure.ac): Add gl_MINMAX.
121573 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
121575         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
121576         so that unistd-safer.h (GPL'ed code) need not be included.
121578 2005-05-22  Bruno Haible  <bruno@clisp.org>
121580         * m4/minmax.m4: New file.
121581         Based on a patch by Derek Price <derek@ximbiot.com>.
121583 2005-05-22  Bruno Haible  <bruno@clisp.org>
121585         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
121586         (INT64_MIN): Fix definition.
121587         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
121589         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
121590         NEED_SIGNED_INT_TYPES.
121592         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
121593         HAVE_SYSTEM_INTTYPES.
121595 2005-05-22  Bruno Haible  <bruno@clisp.org>
121597         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
121598         Also include <sys/param.h> if it defines MIN, MAX.
121599         Based on a patch by Derek Price <derek@ximbiot.com>.
121601 2005-05-21  Jim Meyering  <jim@meyering.net>
121603         * modules/fts (Files): Add m4/inttypes-pri.m4.
121604         (Depends-on): Add lstat and remove gettext.  Alphabetize.
121606 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121608         New fts module.
121609         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121610         (setup_dir, free_dir): New functions.
121611         (enter_dir, leave_dir): Define trivial
121612         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121613         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121614         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121615         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121616         Move to fts-cycle.c.
121617         (fts_open): Use setup_dir.
121618         (fts_close): Use free_dir.
121619         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
121620         This adds a label and some gotos, but the alternatives were messier.
121621         Check for memory allocation failure when entering a dir.
121622         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
121623         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
121624         (FTS): New member fts_cycle, that is a union that contains the
121625         old active_dir_ht and cycle_state.  All uses changed to mention
121626         fts_cycle.ht and fts_cycle.state.
121627         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
121628         fts.c, with the following changes:
121629         (setup_dir, free_dir): New functions.
121630         (enter_dir): Now returns bool.  Return true if successful, false
121631         if memory exhausted.  All callers changed.
121632         Do not bother partly cleaning up on
121633         memory allocation failure; that is free_dir's job.
121634         However, free ad if hash_insert fails, to avoid memory leak.
121635         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
121636         fts->fts_options to see which union member to use.
121638 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121640         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
121641         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
121643 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121645         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
121647 2005-05-20  Jim Meyering  <jim@meyering.net>
121649         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
121650         Now a macro, to pacify GCC.
121652 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121654         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
121655         of -1.
121657 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121659         * lib/chown.c (rpl_chown): Return -1 on failure.
121661 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121663         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
121664         Don't check for stddef.h.
121665         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
121666         don't use its results.
121667         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
121668         since we include them unconditionally.  Don't require
121669         AM_STDBOOL_H, since stdbool is a prerequisite.
121670         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
121671         since we assume C89 or better.
121672         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
121673         as we don't use their results.
121674         Don't check for fchdir, memmove, memset, strrchr, as we use
121675         them unconditionally.
121676         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
121677         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
121679 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121681         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121682         Include <stddef.h> unconditionally, since we assume C89 now.
121683         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121684         * lib/fts.c: Include fts_.h first, to check interface.
121685         Do not include intprops.h; no longer needed.
121686         Include cycle-check.h and hash.h, since fts_.h no longer does.
121687         Remove unnecessary casts of closedir to void.
121688         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121689         decide whether to decrement nlinks.
121690         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121691         (FTS): Use struct hash_table * instead of Hash_table, so that
121692         we no longer need to include hash.h here.
121694 2005-05-18  Jim Meyering  <jim@meyering.net>
121696         * modules/dirfd (License): Change to LGPL.  Most of the code
121697         is already in the public domain.
121699 2005-05-18  Jim Meyering  <jim@meyering.net>
121701         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121702         Reported by Yoann Vandoorselaere.
121704 2005-05-17  Jim Meyering  <jim@meyering.net>
121706         * m4/fts.m4: New file, from coreutils.
121708 2005-05-17  Jim Meyering  <jim@meyering.net>
121710         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121712 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121714         Sync from coreutils.
121715         * m4/unlinkdir.m4: New file.
121717 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121719         Sync from coreutils.
121720         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121721         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121722         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121723         White space changes only.
121724         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121725         special.
121726         * lib/yesno.c: Include getline.h, not ctype.h.
121727         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121728         Use getline to remove arbitrary restriction on response length.
121730 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121732         * config/srclist-update: Spell out "Street" in FSF postal
121733         mail address; this is the style the FSF seems to prefer.
121735         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121736         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121737         this updates FSF postal mail address.
121739         Sync from coreutils.
121740         * modules/unlinkdir: New file.
121741         * modules/yesno (Depends-on): Add getline.
121742         * MODULES.html.sh (File system functions): Add unlinkdir.
121744 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121746         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121747         lib/strsep.h:
121748         Change the initial comment to refer to GPL, not LGPL.
121749         gnulib-tool will change it to LGPL as needed.
121751         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121752         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121753         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121754         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121755         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121756         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121757         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121758         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121759         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121760         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121761         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121762         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121763         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121764         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121765         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121766         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121767         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121768         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121769         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121770         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121771         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121772         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121773         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121774         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121775         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121776         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121777         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121778         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121779         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121780         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121781         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121782         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121783         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121784         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121785         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121786         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121787         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121788         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121789         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121790         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121791         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121792         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121793         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121794         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121795         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121796         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121797         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121798         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121799         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121800         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121801         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121802         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121803         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121804         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121805         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121806         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121807         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121808         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121809         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121810         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121811         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121812         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121813         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121814         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121815         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121816         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121817         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121818         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121819         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121820         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121821         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121822         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121823         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121824         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121825         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121826         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121827         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121828         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121829         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121830         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121831         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121832         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121833         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121834         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121835         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121836         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121837         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121838         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121839         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121840         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121841         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121842         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121843         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121844         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121845         lib/yesno.c, lib/yesno.h:
121846         Update FSF postal mail address.
121848 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121850         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121851         tests/test-memmem.c, tests/test-stpncpy.c:
121852         Update FSF postal mail address.
121854 2005-05-13  Bruno Haible  <bruno@clisp.org>
121856         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121857         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121858         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121859         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121860         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121861         Add support for 64-bit integers in the MSVC compiler.
121863 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121865         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121867 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121869         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121871 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121873         * doc/getdate.texi (General date syntax): Don't say that date
121874         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121875         Problem reported by Nic Ferrier.
121877 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121879         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121880         specified in ai_socktype. Fix invalid ai_protocol
121881         check. ai_protocol is usually set to 0 or depending on
121882         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121883         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121884         ai_socktype / ai_protocol in the returned addrinfo structure.
121886 2005-05-10  Simon Josefsson  <jas@extundo.com>
121888         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121889         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121891 2005-05-10  Karl Berry  <karl@gnu.org>
121893         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121894         (from http://www.gnu.org/licenses).
121895         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121896         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121897         fdl.texi suffices.
121899 2005-05-10  Karl Berry  <karl@gnu.org>
121901         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121902         (COPYING.DOC): remove.
121904         * config/srclist-update: new FSF address.
121906 2005-05-10  Derek Price  <derek@ximbiot.com>
121908         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121909         possible.
121911 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121912             Bruno Haible  <bruno@clisp.org>
121914         * modules/inet_ntop: New file.
121915         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121916         inet_ntop.
121918 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121919             Bruno Haible  <bruno@clisp.org>
121921         * m4/inet_ntop.m4: New file.
121923 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121924             Bruno Haible  <bruno@clisp.org>
121926         * lib/inet_ntop.h: New file.
121927         * lib/inet_ntop.c: New file, from glibc with modifications.
121929 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121931         * modules/time_r (License): Change to LGPL.
121932         * modules/extensions (License): Change to LGPL.  Actually,
121933         the license is more permissive than that, but currently gnulib-tool
121934         doesn't know how to handle more-permissive licenses.
121936         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121937         Problem reported by Dave Love.
121939 2005-05-08  Jim Meyering  <jim@meyering.net>
121941         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121942         blank.
121944 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121946         * modules/argmatch (Depends-on): Add stdbool.
121947         * modules/backupfile (Depends-on): Likewise.
121948         * modules/chdir-long (Depends-on): Likewise.
121949         * modules/closeout (Depends-on): Likewise.
121950         * modules/cycle-check (Depends-on): Likewise.
121951         * modules/dirname (Depends-on): Likewise.
121952         * modules/fnmatch (Depends-on): Likewise.
121953         * modules/fsusage (Depends-on): Likewise.
121954         * modules/fwriteerror (Depends-on): Likewise.
121955         * modules/getcwd (Depends-on): Likewise.
121956         * modules/getloadavg (Depends-on): Likewise.
121957         * modules/hard-locale (Depends-on): Likewise.
121958         * modules/makepath (Depends-on): Likewise.
121959         * modules/mountlist (Depends-on): Likewise.
121960         * modules/nanosleep (Depends-on): Likewise.
121961         * modules/posixtm (Depends-on): Likewise.
121962         * modules/quotearg (Depends-on): Likewise.
121963         * modules/readtokens (Depends-on): Likewise.
121964         * modules/readtokens0 (Depends-on): Likewise.
121965         * modules/readutmp (Depends-on): Likewise.
121966         * modules/save-cwd (Depends-on): Likewise.
121967         * modules/strftime (Depends-on): Likewise.
121968         * modules/userspec (Depends-on): Likewise.
121969         * modules/utimecmp (Depends-on): Likewise.
121970         * modules/xgetcwd (Depends-on): Likewise.
121971         * modules/xnanosleep (Depends-on): Likewise.
121972         * modules/xstrtod (Depends-on): Likewise.
121973         * modules/yesno (Depends-on): Likewise.
121975 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121977         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121978         needless checks.
121980 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121982         Merge from coreutils.  Among other things,
121983         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121984         * lib/fd-safer.c: New file.
121985         * lib/fcntl-safer.h, open-safer.c: Remove.
121986         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121987         * lib/dup-safer.c: Include unistd-safer.h first.
121988         Don't include errno.h.
121989         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121990         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121991         * lib/file-type.c: Rely on file-type.h change.
121992         * lib/getloadavg.c: Include unistd-safer.h.
121993         (getloadavg): Use safer open.
121994         * lib/getusershell.c: Include "stdio-safer.h".
121995         (getusershell): Use safer fopen.
121996         * lib/long-options.c (long_options): Use NULL rather than 0.
121997         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121998         'free'.
121999         * lib/modechange.c: Likewise.
122000         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
122001         (MODE_DONE): New constant.
122002         (struct mode_change): Remove 'next' member.
122003         (make_node_op_equals): New function; like the old one of the
122004         same name, except it allocates an array.
122005         (mode_compile, mode_create_from_ref): Use it.
122006         (mode_compile): Allocate result as an array, not a linked list.
122007         Parse octal string ourself, so that we catch mistakes like "+0".
122008         (mode_adjust): Arg is an array, not a linked list.
122009         * lib/modechange.c: Include stat-macros.h, xalloc.h.
122010         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
122011         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
122012         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
122013         Remove.  This is now stat-macros.h's job.
122014         (talloc): Remove.  All callers replaced by xalloc, so that
122015         our invokers don't have to worry about reporting memory failures.
122016         (make_node_op_equals): Remove.
122017         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122018         New constants.
122019         (struct mode_change): Moved here from modechange.h.
122020         (mode_append_entry): Remove.
122021         (mode_compile): Remove MASKED_OPS arg, since it encouraged
122022         apps to have incorrect behavior.  Use simpler algorithm for head
122023         and tail.  Don't futz with umask; that's now the job of mode_adjust.
122024         Detect more invalid usages rather than having somewhat-random behavior.
122025         Don't insert an "a=" action, as that leads to incorrect behavior.
122026         (mode_compile, mode_create_from_ref): Return NULL on error instead
122027         of an enum, since now there's only one way to have an error.  All
122028         callers changed.
122029         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
122030         at the correct time.  Simplify calculation of "+u" and its ilk.
122031         Don't mishandle "+X".
122032         (mode_free): Remove "register" and localize decls.
122033         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122034         (struct mode_change): Move to modechange.c; callers don't
122035         need to see this stuff.
122036         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
122037         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
122038         (mode_change, mode_adjust): Reflect the new signatures noted above.
122039         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
122040         that might redefine system include files.
122041         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
122042         (my_usleep): Use NULL rather than (void *) 0.
122043         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
122044         Use siginterrupt to specify that system calls should be interrupted.
122045         (rpl_nanosleep): Move initialization of suspended closer to call of
122046         my_usleep.
122047         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
122048         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
122049         (desirable_utmp_entry): New function.
122050         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
122051         using x2nrealloc, to simplify logic.
122052         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
122053         size calculation.  Do not assume utmp file is a regular file.
122054         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
122055         (READ_UTMP_CHECK_PIDS): New constant.
122056         * lib/save-cwd.c: Include unistd-safer.h.
122057         (save_cwd): Use fd_safer.
122058         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
122059         [!_LIBC] Include "stat-macros.h" instead.
122060         * lib/unistd-safer.h (fd_safer): New decl.
122062 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122064         * modules/getloadavg (Depends-on): Add unistd-safer.
122065         * modules/getusershell (Depends-on): Add stdio-safer.
122066         * modules/lstat (Depends-on): Remove xalloc.
122067         * modules/mkstemp (Depends-on): Add stat-macros.
122068         * modules/modechange (Depends-on): Remove xstrtol.
122069         Add stat-macros, xalloc.
122070         * modules/save-cwd (Depends-on): Add unistd-safer.
122071         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
122072         * modules/unistd-safer (Files): Add lib/fd-safer.c
122073         (Makefile.am): Remove lib_SOURCES.
122075         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
122076         Remove fcntl-safer; unistd-safer supersedes it.
122078 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122080         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
122081         AC_HEADER_STAT.
122082         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
122083         (gl_PREREQ_CHOWN): Remove.
122084         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
122085         it.  Don't require AC_HEADER_STAT.
122086         (gl_PREREQ_LSTAT): Remove.
122087         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
122088         Don't require AC_HEADER_STAT.
122089         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
122090         (gl_PREREQ_RMDIR): Remove.
122091         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
122092         mention stat-macros.h or AC_HEADER_STAT, since we'll make
122093         the stat-macros module a prerequisite.
122094         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
122095         * m4/filemode.m4 (gl_FILEMODE): Likewise.
122096         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
122097         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
122098         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
122099         variable names.
122100         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
122101         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
122102         variable prefixes.
122103         * m4/fcntl-safer.m4: Remove.
122104         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
122105         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
122106         Invoke gl_PREREQ_FD_SAFER.
122107         (gl_PREREQ_FD_SAFER): New macro.
122108         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
122109         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
122110         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
122111         Remove duplicate call to AC_LIBOBJ(readutmp).
122112         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
122114         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
122115         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
122117 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122119         * MODULES.html.sh (Misc): Add byteswap.
122121 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122123         * modules/getcwd (Depends-on): Add extensions.
122124         * modules/openat (Depends-on): Likewise.
122126 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122128         * modules/byteswap: New file.
122130 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122132         * m4/byteswap.m4: New file.
122134 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122136         * lib/byteswap_.h: New file.
122138 2005-04-25  Karl Berry  <karl@gnu.org>
122140         * m4/gettext.m4: Update from GNU gettext 0.14.4.
122142 2005-04-25  Albert Chin  <china@thewrittenword.com>
122144         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
122145         Toolkit C bug.
122147 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
122149         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
122150         (func_ln_if_changed): Remove forcibly for no error message
122151         in case file does not exist.
122153 2005-04-19  Simon Josefsson  <jas@extundo.com>
122155         * gnulib-tool (Options): Make --symlink mean --symbolic.
122157 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
122159         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
122161 2005-04-16  Simon Josefsson  <jas@extundo.com>
122163         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
122165 2005-04-15  Simon Josefsson  <jas@extundo.com>
122167         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
122169 2005-04-15  Simon Josefsson  <jas@extundo.com>
122171         * gnulib-tool: Rename --symlink to --symbolic.
122173 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
122175         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
122176         symbolic links to files instead of copying/moving.  Add --aux-dir,
122177         specifying directory relative --dir where auxiliary build tools
122178         are placed.
122180 2005-04-14  Bruno Haible  <bruno@clisp.org>
122182         * modules/allocsa (License): Change to LGPL.
122183         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
122185 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
122187         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
122188         that "UTC +1 second" continues to work.  Problem reported
122189         by Dmitry V. Levin.
122190         (relunit_snumber): New rule.
122191         (relunit): Use it.
122193 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122195         * lib/getdate.y (universal_time_zone_table): New constant.
122196         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
122197         universal_time_zone_table.
122198         (lookup_zone): Prefer universal_time_zone_table to
122199         local_time_zone_table, so that "GMT" time stamps are allowed in
122200         London during the summer.  Problem reported by Ian Abbott.
122202 2005-04-12  Jim Meyering  <jim@meyering.net>
122204         * lib/human.c (humblock): Set *options even when returning due to
122205         xstrtoumax conversion failure.  Thanks to a used-uninitialized
122206         warning from gcc-4.
122208 2005-04-09  Jim Meyering  <jim@meyering.net>
122210         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
122211         -Wuninitialized: initialize tm0.tm_year.
122213 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
122215         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
122216         count, since there's no maximum.  All uses changed.
122217         Add member dsts_seen.
122218         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
122219         not being INT_MAX.
122220         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
122221         Use pc_rels_seen to decide whether a date is absolute.
122223         * lib/getdate.y (number): Don't overwrite year.
122224         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
122225         check.
122227 2005-04-02  Simon Josefsson  <jas@extundo.com>
122229         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
122230         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
122232 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
122234         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
122235         where no absolute path name can be longer than PATH_MAX.
122237 2005-03-27  Jim Meyering  <jim@meyering.net>
122239         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
122241 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
122243         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
122244         "one's complement" -> "ones' complement" in comment, as per Knuth.
122245         "value of type" -> "type or expression" in comment.
122246         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
122248 2005-03-26  Jim Meyering  <jim@meyering.net>
122250         Comment nits.
122251         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
122252         Correct typos: s/or/of/.
122254 2005-03-26  Jim Meyering  <jim@meyering.net>
122256         * modules/check-include-files: Move to ../ and rename to...
122257         * check-module: ...this.
122259 2005-03-25  Jim Meyering  <jim@meyering.net>
122261         * modules/xvasprintf (Files): Add xalloc.h.
122263 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
122265         * modules/gettext (Files): config/config.rpath ->
122266         build-aux/config.rpath
122267         * modules/iconv (Files): Likewise.
122268         Problem reported by Oskar Liljeblad.
122270 2005-03-23  Jim Meyering  <jim@meyering.net>
122272         * modules/check-include-files: New script to check for
122273         missing dependencies, multiple includes, etc.
122275         * modules/c-strtold (Depends-on): Add xalloc.
122276         * modules/c-strtod (Depends-on): Add xalloc.
122277         * modules/hash (Depends-on): Add xalloc.
122278         (Files): Remove lib/xalloc.h.
122280         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
122281         * modules/userspec (Files): Add lib/inttostr.h.
122283 2005-03-23  Jim Meyering  <jim@meyering.net>
122285         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
122287 2005-03-22  Jim Meyering  <jim@meyering.net>
122289         * modules/stat-macros: New module.
122290         * modules/canonicalize, modules/euidaccess, modules/file-type,
122291         * modules/filemode, modules/lchown, modules/makepath,
122292         * modules/rmdir, modules/stat: Depend on new stat-macros module
122293         rather than listing lib/stat-macros.h manually.
122294         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
122296 2005-03-22  Jim Meyering  <jim@meyering.net>
122298         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
122300 2005-03-22  Bruno Haible  <bruno@clisp.org>
122302         * config/srclist.txt: Replace target directory 'config' with
122303         'build-aux'.
122304         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
122305         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
122306         ../build-aux/.
122308 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
122310         * modules/chdir-long (Depends-on): Add mempcpy.
122312         * modules/acl, modules/backupfile, modules/c-strtod,
122313         modules/c-strtold, modules/canon-host, modules/canonicalize,
122314         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
122315         modules/exclude, modules/exitfail, modules/file-type,
122316         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
122317         modules/getdate, modules/getline, modules/getpagesize,
122318         modules/getpass, modules/getugroups, modules/group-member,
122319         modules/hard-locale, modules/hash, modules/human, modules/idcache,
122320         modules/inttostr, modules/long-options, modules/makepath,
122321         modules/md5, modules/memcasecmp, modules/memcoll,
122322         modules/modechange, modules/mountlist, modules/path-concat,
122323         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
122324         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
122325         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
122326         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
122327         modules/strftime, modules/strndup, modules/strverscmp,
122328         modules/timespec, modules/unlocked-io, modules/userspec,
122329         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
122330         modules/yesno:
122331         Remove lib_SOURCES line from Makefile.am section, as this is now
122332         done automatically by the corresponding Autoconf macro.
122334 2005-03-21  Jim Meyering  <jim@meyering.net>
122336         Changes imported from coreutils.
122338         * lib/cycle-check.c: Don't include xalloc.h.
122340         * lib/path-concat.c: Don't include assert.h.
122341         (path_concat): Remove assertion that would have triggered
122342         for ABASE starting with more than one slash.
122343         Reported by Andreas Schwab.
122345         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
122346         properly when ABASE is an absolute file name.
122347         Correct the description of this function.
122348         Include <assert.h>.
122349         Add an assertion and a test driver.
122350         This fixes a bug introduced on 2004-07-02.
122351         Andreas Schwab reported the resulting failure of cp --parents:
122352         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
122354 2005-03-21  Jim Meyering  <jim@meyering.net>
122356         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
122357         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
122359 2005-03-21  Jim Meyering  <jim@meyering.net>
122360         and  Paul Eggert  <eggert@cs.ucla.edu>
122362         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122363         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122364         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122365         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122366         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122367         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122368         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122369         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122370         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122371         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122372         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122373         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122374         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122375         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122376         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122377         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122378         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122379         for these modules.
122381 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122383         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122384         (which shouldn't happen), generate nothing instead of returning 0
122385         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122387 2005-03-16  Bruno Haible  <bruno@clisp.org>
122389         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122390         HAVE_LONGLONG_64BIT.
122392 2005-03-16  Bruno Haible  <bruno@clisp.org>
122394         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122395         HAVE_LONGLONG_64BIT.
122397 2005-03-16  Bruno Haible  <bruno@clisp.org>
122399         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122400         HAVE_LONGLONG_64BIT.
122402 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122404         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122405         reliably distinguish strftime failure from empty output on POSIX
122406         hosts.
122408 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122410         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122411         (iconv_string): Don't guess a size-zero buffer, as that might cause
122412         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122413         result would be 'too large', where 'too large' is (heuristically)
122414         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122415         overflow concerns.  This will prevent some unwanted malloc failures
122416         when the inputs are very large.
122418 2005-03-15  Karl Berry  <karl@gnu.org>
122420         * config/srclist.txt (config.rpath): from gettext.
122421         * config/config.rpath: update.
122423 2005-03-15  Bruno Haible  <bruno@clisp.org>
122425         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122426         to 'negate'.
122428         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122429         variable.
122431         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122432         results.
122434 2005-03-14  Simon Josefsson  <jas@extundo.com>
122436         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122437         <fx@gnu.org>.
122439 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122441         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122442         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122443         intprops.h.
122444         * lib/strtol.c: Likewise.
122446 2005-03-14  Jim Meyering  <jim@meyering.net>
122448         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122449         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122450         to be nonzero so that we (and caller) can detect the difference
122451         between a valid zero-length expansion and an error return, even
122452         when the underlying strftime fails before writing anything into
122453         that location.
122455 2005-03-14  Bruno Haible  <bruno@clisp.org>
122457         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122458         Update from GNU gettext 0.14.3.
122460 2005-03-10  Jim Meyering  <jim@meyering.net>
122462         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122464 2005-03-10  Jim Meyering  <jim@meyering.net>
122466         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122467         so that this module works on systems without fchdir.
122469 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122471         Factor int-properties macros into a single file, except for
122472         glibc-related files.
122473         * lib/intprops.h: New file.
122474         * lib/getloadavg.c: Include it instead of limits.h.
122475         (INT_STRLEN_BOUND): Remove.
122476         * lib/human.c: Include intprops.h.
122477         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
122478         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
122479         302/1000.
122480         * lib/inttostr.h: Include intprops.h instead of limits.h.
122481         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
122482         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
122483         for consistency with intprops.h.
122484         (time_t_is_integer, twos_complement_arithmetic): Use them.
122485         * lib/sig2str.h: Include <signal.h>, intprops.h.
122486         (INT_STRLEN_BOUND): Remove.
122487         * lib/strftime.c (TYPE_SIGNED): Remove.
122488         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
122489         * lib/strtol.c: Adjust comments to match intprops.h.
122490         * lib/userspec.c: Include intprops.h.
122491         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
122492         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
122493         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
122494         instead of rolling our own expressions.
122495         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
122497         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
122498         instead of int.
122499         (my_strftime): Do not mishandle years close to INT_MAX, by doing
122500         the right thing even if adding 1900 would overflow.  Similarly
122501         for tm_mon + 1 and tm_yday + 1.
122502         Make %Y always equivalent to %C%y, and similarly for %G and %g.
122503         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
122504         (DO_SIGNED_NUMBER): New macro.
122505         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
122507 2005-03-07  Bruno Haible  <bruno@clisp.org>
122509         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
122511 2005-03-07  Bruno Haible  <bruno@clisp.org>
122513         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
122515 2005-03-04  Derek R. Price  <derek@ximbiot.com>
122517         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
122518         (func_import): Only replace files via --import when they have actually
122519         changed.
122521 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122523         * m4/mmap-anon.m4: New file.
122524         * m4/pagealign_alloc.m4: New file.
122526 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122527             Bruno Haible  <bruno@clisp.org>
122529         * modules/pagealign_alloc: New file.
122530         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
122532 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122533             Bruno Haible  <bruno@clisp.org>
122535         * lib/pagealign_alloc.h: New file.
122536         * lib/pagealign_alloc.c: New file.
122538 2005-03-03  Bruno Haible  <bruno@clisp.org>
122540         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
122541         Use an all-permissive copyright notice, recommended by RMS.
122543 2005-03-02  Bruno Haible  <bruno@clisp.org>
122545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
122546         of AIX, the replacement has to be done only after <string.h> is
122547         included, therefore not in config.h. stpncpy.h does the replacement,
122548         and stpncpy.c uses it.
122550 2005-03-02  Bruno Haible  <bruno@clisp.org>
122552         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
122553         stpncpy.c uses it.
122555 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122557         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
122558         The workaround isn't strictly needed for POSIX conformance, and
122559         it's too much of a pain to configure and maintain.  We'll ask
122560         people to fix their kernels instead.
122561         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
122562         (NANOSLEEP_BUG_WORKAROUND): Remove.
122563         (xnanosleep): Remove the workaround.
122565 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122567         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
122568         Reported by Derek Price.
122569         (Include): Add "timespec.h".
122571         * modules/xnanosleep (Depends-on): Remove gethrxtime.
122573 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122575         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
122576         to detect nanosleep bug.
122578 2005-03-01  Bruno Haible  <bruno@clisp.org>
122580         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
122582 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
122584         * modules/gethrxtime: New file.
122585         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
122586         (Depends-on): Add gethrxtime.
122587         (configure.ac): Add gl_XNANOSLEEP.
122588         (Makefile.am): Remove lib_SOURCES line.
122590 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122592         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
122593         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
122595 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122597         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
122598         * lib/timespec.h (gettime): Return void, since it always
122599         succeeds now.  All uses changed.
122600         * lib/gettime.c (gettime): Likewise.
122601         [HAVE_NANOTIME]: Prefer nanotime.
122602         Assume gettimeofday succeeds, as POSIX requires.
122603         Assime time () succeeds, since other code already does.
122604         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
122605         (timespec_subtract): Remove.
122606         (NANOSLEEP_BUG_WORKAROUND): New constant.
122607         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
122608         things considerably.  Use it only on GNU/Linux hosts, since the
122609         workaround shouldn't be needed elsewhere.
122611 2005-02-24  Bruno Haible  <bruno@clisp.org>
122613         * modules/gettext (Files): Add m4/glibc2.m4.
122615 2005-02-24  Bruno Haible  <bruno@clisp.org>
122617         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
122618         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
122619         * m4/progtest.m4:
122620         Update from GNU gettext 0.14.2.
122621         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
122623 2005-02-24  Bruno Haible  <bruno@clisp.org>
122625         * lib/localcharset.c: Update from GNU gettext 0.14.2.
122626         * lib/config.charset: Update from GNU gettext 0.14.2.
122628 2005-02-24  Bruno Haible  <bruno@clisp.org>
122630         * lib/gettext.h: Update from GNU gettext 0.14.2.
122632 2005-02-23  Simon Josefsson  <jas@extundo.com>
122634         * m4/iconvme.m4: New file.
122636 2005-02-23  Jim Meyering  <jim@meyering.net>
122638         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
122639         change.
122640         Thanks to Bruno Haible for catching it.
122642 2005-02-22  Simon Josefsson  <jas@extundo.com>
122644         * modules/iconvme: New file.
122646         * MODULES.html.sh: Add iconvme.
122648 2005-02-22  Simon Josefsson  <jas@extundo.com>
122650         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
122652 2005-02-22  Simon Josefsson  <jas@extundo.com>
122654         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
122656 2005-02-22  Jim Meyering  <jim@meyering.net>
122658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
122659         s/ifndef/ifdef/.
122661 2005-02-20  Neil Conway  <neilc@samurai.com>
122663         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
122664         returned by OSX/Darwin if the specified buffer is not large
122665         enough for the hostname.
122667 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122669         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
122670         pass it to _help, otherwise the latter coredumps trying to
122671         dereference state.root_argp.
122673 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122675         * modules/chdir-long (Depends-on): Add memrchr.
122676         * modules/memrchr (Files): Add lib/memrchr.h.
122677         (Include): "memrchr.h".
122679 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122681         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122683 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122685         * lib/memrchr.h: New file.
122686         * lib/chdir-long.c: Include it.
122687         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122688         Don't bother including stddef.h.
122690 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122692         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122693         inclusion.
122694         Include <sys/types.h>, for dev_t.
122695         (ME_DUMMY, ME_REMOTE): Move from here....
122696         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122697         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122698         Dmitry V. Levin.
122699         Include mountlist.h first, to test the interface.
122701 2005-01-29  Bruno Haible  <bruno@clisp.org>
122703         * lib/progname.c (program_name): Initialize.
122704         Needed when linking statically on MacOS X.
122706 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122708         Sync from coreutils.
122709         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122710         (Depends-on): Add c-strtod.
122711         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122713 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122715         Sync from coreutils.
122716         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122718         Remove files that are specific to coreutils.
122719         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122721 2005-01-28  Bruno Haible  <bruno@clisp.org>
122723         * modules/javacomp: New file.
122724         * MODULES.html.sh (Java): Add javacomp.
122726 2005-01-28  Bruno Haible  <bruno@clisp.org>
122728         * m4/javacomp.m4: New file, from GNU gettext.
122730 2005-01-28  Bruno Haible  <bruno@clisp.org>
122732         * lib/javacomp.sh.in: New file, from GNU gettext.
122733         * lib/javacomp.h: New file, from GNU gettext.
122734         * lib/javacomp.c: New file, from GNU gettext.
122736 2005-01-26  Simon Josefsson  <jas@extundo.com>
122738         * lib/gai_strerror.c: Use GPL in header.
122740 2005-01-26  Bruno Haible  <bruno@clisp.org>
122742         * modules/javaexec: New file.
122743         * MODULES.html.sh (Java): Add javaexec.
122745 2005-01-26  Bruno Haible  <bruno@clisp.org>
122747         * m4/javaexec.m4: New file, from GNU gettext.
122749 2005-01-26  Bruno Haible  <bruno@clisp.org>
122751         * lib/javaexec.sh.in: New file, from GNU gettext.
122752         * lib/javaexec.h: New file, from GNU gettext.
122753         * lib/javaexec.c: New file, from GNU gettext.
122755 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122757         * modules/lchown (Depends-on): Remove lchown.h
122759 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122761         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122762         must be defined if the header file was not found, in order
122763         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122765 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122767         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122768         initializers for struct pentry_state.
122769         (__argp_error): Check return value of __asprintf
122770         (__argp_failure): Translate error message
122772         * lib/argp-parse.c: Removed braces around the expansion of N_()
122774 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122776         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122777         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122778         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122779         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122780         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122781         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122782         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122783         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122784         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122785         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122786         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122787         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122788         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122789         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122790         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122791         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122792         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122793         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122794         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122795         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122796         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122797         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122798         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122799         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122800         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122801         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122802         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122803         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122804         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122805         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122806         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122807         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122808         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122809         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122810         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122811         Use an all-permissive copyright notice, recommended by RMS.
122813 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122815         * modules/chdir-long (Depends-on): Remove mempcpy.
122817 2005-01-21  Jim Meyering  <jim@meyering.net>
122819         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122820         same value as for Solaris 9.
122822         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122823         component length.  This included changing the parameter to be
122824         of type `char *' rather than `char const *'.
122825         * lib/chdir-long.h (chdir_long): Update prototype.
122827         * lib/openat.c (fdopendir, fstatat): New functions.
122828         * lib/openat.h: Include headers required for use of DIR and struct
122829         stat.
122830         [AT_SYMLINK_NOFOLLOW]: Define.
122831         (fdopendir, fstatat): Add prototypes.
122833 2005-01-21  Bruno Haible  <bruno@clisp.org>
122835         * modules/classpath: New file.
122836         * MODULES.html.sh (Java): Add classpath.
122838 2005-01-21  Bruno Haible  <bruno@clisp.org>
122840         * lib/classpath.h: New file, from GNU gettext.
122841         * lib/classpath.c: New file, from GNU gettext.
122843 2005-01-20  Simon Josefsson  <jas@extundo.com>
122845         * modules/version-etc-fsf: New file.
122847 2005-01-20  Simon Josefsson  <jas@extundo.com>
122849         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122850         * lib/version-etc.c: Remove version_etc_copyright.
122851         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122852         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122854 2005-01-20  Simon Josefsson  <jas@extundo.com>
122856         * lib/base64.h (isbase64): Add.
122858         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122859         using a unsigned prototype, don't inline.
122860         (base64_decode): Use it.
122862 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122864         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122865         it.
122867 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122869         * lib/save-cwd.c (save_cwd): Remove code to support the case
122870         where fchdir is missing or flaky.
122872 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122874         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122876 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122878         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122879         AC_LIBSOURCES now does this.
122880         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122881         with new ullong_max module.
122883 2005-01-19  Bruno Haible  <bruno@clisp.org>
122885         * modules/sh-quote: New file.
122886         * MODULES.html.sh (Executing programs): Add sh-quote.
122888 2005-01-19  Bruno Haible  <bruno@clisp.org>
122890         * lib/sh-quote.h: New file, from GNU gettext.
122891         * lib/sh-quote.c: New file, from GNU gettext.
122893 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122895         Merge from coreutils.
122896         * m4/ullong_max.m4: New file.
122897         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122898         (gl_MACROS): Assume localeconv exists.
122900 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122902         Merge changes from coreutils, as described below in several
122903         changelogs dated today.
122905         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122906         (O_DIRECTORY): Remove; not needed here, since "." must be
122907         a directory.  All uses removed.
122908         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122909         universal on Suns, and we also need to test for IRIX.
122910         Revamp code to use 'if' rather than '#if'.
122911         Avoid unnecessary comparison of cwd->desc to 0.
122913         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122914         for known valid error numbers rather than observed invalid ones.
122916 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122918         * modules/ullong_max: New file.
122920         * modules/chdir-long, modules/openat: New files.
122921         * modules/save-cwd (Depends-on): Depend on chdir-long.
122922         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122924 2005-01-18  Jim Meyering  <jim@meyering.net>
122926         Merge from coreutils.
122927         * m4/chdir-long.m4, m4/openat.m4: New files.
122928         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122929         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122930         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122931         is sane and DOES follow symlinks.  Besides, testing 20 different
122932         systems found no broken chown implementations.
122933         Prompted by a change in rsync's copy of this macro.
122934         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122936         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122938         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122939         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122940         NULL-means-set-to-current-time semantics.
122941         Remove temporary file immediately, rather than waiting
122942         for configure's at-exit trap code to do it.
122944 2005-01-18  Jim Meyering  <jim@meyering.net>
122946         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122948         * lib/utimens.c (futimens): Account for the fact that futimes
122949         can also fail with errno == ENOSYS or errno == ENOENT.
122950         Patch from Dmitry V. Levin.
122952         Change the name of the robust chdir function from chdir to chdir_long.
122953         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122954         (restore_cwd): Use chdir_long, not chdir.
122955         * lib/chdir-long.c: Renamed from chdir.c.
122956         * lib/chdir-long.h: Renamed from chdir.h.
122957         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122958         Hurd.
122960 2005-01-18  Bruno Haible  <bruno@clisp.org>
122962         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122963         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122964         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122965         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122966         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122967         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122968         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122969         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122970         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122971         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122972         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122973         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122974         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122975         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122976         Use an all-permissive copyright notice, recommended by RMS.
122978 2005-01-18  Bob Proulx  <bob@proulx.com>
122980         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122981         simplify offsetof() macro construct to avoid compile failure with
122982         native HP-UX 11.0 ANSI C compiler.
122984 2005-01-17  Bruno Haible  <bruno@clisp.org>
122986         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122987         redundant because stpncpy.m4 takes care of it.
122989 2005-01-17  Bruno Haible  <bruno@clisp.org>
122991         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122993 2005-01-17  Bruno Haible  <bruno@clisp.org>
122995         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122996         used.
122998 2005-01-17  Bruno Haible  <bruno@clisp.org>
123000         * lib/fwriteerror.h (fwriteerror): Change specification to include
123001         fclose.
123002         * lib/fwriteerror.c: Include <stdbool.h>.
123003         (fwriteerror): At the end, close the file stream. Record whether
123004         stdout was already closed.
123006 2005-01-17  Bruno Haible  <bruno@clisp.org>
123008         * lib/execute.c (environ): Declare if needed.
123009         * lib/pipe.c (environ): Likewise.
123010         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
123012 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123014         * modules/argp: Depend on vsnprintf
123016 2005-01-10  Jim Meyering  <jim@meyering.net>
123018         * modules/closeout (Depends-on): Add atexit.
123020 2005-01-06  Bruno Haible  <bruno@clisp.org>
123022         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
123024 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
123026         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
123027         definitions to be after all include files, to avoid collisions.
123028         Problem reported by Bob Proulx.
123030 2005-01-04  Jim Meyering  <jim@meyering.net>
123032         Changes imported from coreutils.
123033         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
123034         as the mkstemp template, use a temporary directory and an
123035         8.3-friendly template to avoid trouble on systems like DJGPP.
123036         Reported by Juan M. Guerrero via Stepan Kasal.
123037         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
123038         close. Remove the temporary directory right away, rather than waiting
123039         for configure's at-exit trap code to do it.
123040         Suggestion from Stepan Kasal.
123042 2005-01-01  Simon Josefsson  <jas@extundo.com>
123044         * gnulib-tool: Print #include directives when --import'ing.
123046 2004-12-28  Simon Josefsson  <jas@extundo.com>
123048         * tests/test-base64.c: Include required header files.  Remove
123049         unused variables.
123051 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123053         * modules/error (Depends-on): Remove gettext.
123055 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123057         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
123058         not needed.  This removes a dependency on the gettext module.
123059         [defined _LIBC]: Do not include <libintl.h>; not needed.
123061 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123063         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
123064         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
123066 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123068         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
123069         HAVE_DECL_STRTOLD.
123071 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123073         * modules/getdate (Depends-on): Remove alloca-opt.
123075 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123077         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
123079 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123081         * lib/argp-parse.c: Include <stddef.h>.
123082         (alignof, alignto): New macros.
123083         (parser_init): Don't assume that void * is aligned sufficiently
123084         for struct option.
123086         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
123087         need to extend the stack.
123088         (YYINITDEPTH): New macro, so that the initial stack isn't overly
123089         large.
123091 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123093         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
123095 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123097         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
123098         (2004-10-24) change.  Apparently this was a false alarm.
123100         * modules/getdate: Depend on alloca-opt, not alloca.
123102 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123104         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
123105         Remove now-obsolete comment about AIX.
123106         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
123107         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
123108         (YYMAXDEPTH): New macro.
123110 2004-12-18  Simon Josefsson  <jas@extundo.com>
123112         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
123114 2004-12-18  Bruno Haible  <bruno@clisp.org>
123116         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
123118 2004-12-18  Bruno Haible  <bruno@clisp.org>
123120         * lib/fatal-signal.c (fatal_signals): Make non-const.
123121         (init_fatal_signals): New function.
123122         (uninstall_handlers, install_handlers): Ignore signals that were set to
123123         SIG_IGN.
123124         (at_fatal_signal): Call init_fatal_signals.
123125         (init_fatal_signal_set): Likewise. Ignore signals that were set to
123126         SIG_IGN.
123127         Reported by Paul Eggert.
123129 2004-12-18  Bruno Haible  <bruno@clisp.org>
123131         * doc/alloca.texi: New file.
123132         * doc/alloca-opt.texi: New file.
123134 2004-12-17  Jim Meyering  <jim@meyering.net>
123136         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
123137         Otherwise, install-sh could exit with improper exit status when
123138         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
123140 2004-12-16  Simon Josefsson  <jas@extundo.com>
123142         * tests/test-base64.c: Add license.
123144 2004-12-15  Stepan Kasal  <address@hidden>
123146         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
123148 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
123150         * modules/getcwd (Files): Add m4/d-ino.m4.
123151         Suggested by Mark D. Baushke.
123153 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123155         * lib/getdate.y (textint): New member "negative".
123156         (time_zone_hhmm): New function.
123157         Expect 14 shift-reduce conflicts, not 13.
123158         (o_colon_minutes): New rule.
123159         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
123160         (yylex): Set the "negative" member of signed numbers.
123162 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123164         * doc/getdate.texi (Time of day items, Time zone items):
123165         Describe new formats +00:00, UTC+00:00.
123167 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
123169         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
123170         spurious "-l"s.  Problem reported by Stepan Kasal.
123172 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
123174         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
123175         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
123177 2004-12-04  Simon Josefsson  <jas@extundo.com>
123179         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
123180         Vandoorselaere <yoann@prelude-ids.org>.
123182 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123184         Changes imported from coreutils.
123185         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
123186         exist.
123187         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
123189 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123191         Changes imported from coreutils.
123192         * lib/hard-locale.c: Assume <locale.h> exists.
123193         Include "strdup.h".
123194         (GLIBC_VERSION): New macro.
123195         (hard_locale): Assume setlocale exists.
123196         Rewrite to avoid #ifdef.
123197         Use strdup rather than malloc + strcpy.
123198         * lib/human.c: Assume <locale.h> exists.
123199         (human_readable): Assume localeconv exists.
123201 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123203         * modules/hard-locale (Depends-on): Add strdup.
123205 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
123207         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
123208         convert T2, not T.  (Imported from libc.)
123210 2004-11-30  Simon Josefsson  <jas@extundo.com>
123212         * modules/restrict (License): Change to LGPL.
123214 2004-11-30  Simon Josefsson  <jas@extundo.com>
123216         * m4/restrict.m4: Add copyright and copying conditions.
123218 2004-11-30  Simon Josefsson  <jas@extundo.com>
123220         * m4/base64.m4: New file.
123222 2004-11-30  Simon Josefsson  <jas@extundo.com>
123224         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
123225         base64.
123227         * tests/test-base64.c: New file.
123229         * modules/base64: New file.
123231 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123233         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
123234         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
123236         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
123238 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123240         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
123241         (__getcwd.c): Don't restore errno; glibc doesn't.
123242         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
123243         first, falling back to our code only if its results look suspicious.
123244         Ensure that the resulting buffer is only as large as necessary.
123246         * lib/readutmp.c: Include readutmp.h first.
123247         Include <errno.h>, since readutmp.h no longer does that.
123248         * lib/readutmp.h: Don't include <errno.h>,
123249         <sys/param.h>, <time.h>; not needed to establish interface.
123250         (errno): Remove decl.
123251         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
123252         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
123253         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
123255 2004-11-28  Simon Josefsson  <jas@extundo.com>
123257         * lib/base64.h, base64.c: New file.
123259 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
123261         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
123263 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
123265         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
123266         (Depends-on): Remove pathmax, same.  Add mempcpy.
123267         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
123268         (Makefile.am): Append getcwd.h to lib_SOURCES.
123269         (Include): Add getcwd.h.
123270         (Maintainer): Change from Jim Meyering to "all, glibc",
123271         since getdate now uses intended-for-glibc code.
123272         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
123273         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
123275 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123277         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
123278         HP's ANSI C compiler.
123279         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
123280         Declaring int functions causes warnings on some modern systems and
123281         shouldn't be needed to compile on ancient ones.
123282         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
123283         defined.
123285         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
123286         with the following changes.
123287         (__set_errno): Parenthesize properly.
123288         Include <stdbool.h>.
123289         (MIN, MAX, MATCHING_INO): New macros.
123290         (__getcwd): Define with prototype, not K&R form.
123291         Use heuristics to allocate default buffer on stack if possible.
123292         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
123293         behavior, and to avoid the PATH_MAX limit when computing
123294         ../../../../...
123295         Use MATCHING_INO to compare inode number to file.
123296         Check for arithmetic overflow in size calculations.
123297         Fix bug in reallocation of dot array that caused getcwd to fail
123298         on directories nested deeper than 75.
123299         Be more careful about saving errno on error.
123300         Do not use realloc; use only free+malloc, as this is a bit
123301         more flexible and avoids a needless copy operation.
123302         Do not inspect st_dev and st_ino for symbolic links; POSIX
123303         doesn't specify the latter.
123304         Check for closedir errors.
123305         Avoid needless casts.
123306         Use "#ifdef weak_alias" around weak_alias, to be like other
123307         glibc code.
123308         The following changes to getcwd.c have effect only when used in
123309         gnulib; they have no effect inside glibc proper.
123310         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
123311         as alloca isn't used.
123312         (alloca, __alloca): Likewise.
123313         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
123314         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123315         unconditionally, as gnulib assumes C89 or better.
123316         Do not include <sys/param.h>.
123317         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
123318         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
123319         better.
123320         (NULL) [!defined NULL]: Remove; we assume C89 or better.
123321         Include <dirent.h> in a way that is compatible with modern Autoconf.
123322         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
123323         New macros, if not already defined.
123324         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
123325         Use "_LIBC", not "defined _LIBC", for consistency.
123326         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
123327         a mempcpy module.
123328         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
123329         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
123330         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
123331         credit only to Jim Meyering and adjust the copyright dates.
123332         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
123333         <stdlib.h>, <unistd.h>, "pathmax.h".
123334         Instead, include "xgetcwd.h" (first) and "getcwd.h".
123335         (INITIAL_BUFFER_SIZE): Remove.
123336         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
123338 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123340         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
123341         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
123342         Use the _ONCE methods, for efficiency.
123343         Check for fcntl.h.  In test program, include <errno.h>
123344         and <fcntl.h> if available.  Remove old K&R cruft from
123345         test program.  Check for common errors in GNU/Linux,
123346         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
123347         don't do AC_LIBOBJ, as that's getcwd.m4's job.
123348         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
123349         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
123350         name accordingly.
123351         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
123352         accommodate new getcwd.c.
123353         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
123354         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
123355         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
123356         that's all we need now.
123358 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123360         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
123361         argp-parse.c depends on getopt internals, that means we should
123362         always use our getopt, to be on the safe side.
123363         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123364         order not to spoil the result of an eventual previous invocation
123365         of gl_GETOPT_SUBSTITUTE.
123367 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123369         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123370         redefinition warnings. To avoid them, include the defines
123371         in `#if !defined __need_getopt ... #endif'. The only place
123372         where __getopt_argv_const is used is in definitions
123373         of getopt_long and getopt_long_only below, which are as well
123374         protected by `#ifndef __need_getopt'.
123375         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123376         __need_getopt after including <stdio.h> and <unistd.h> These
123377         headers might have defined it.
123379 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123381         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123383 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123385         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123386         (futimens): New function, which uses futimes if available.
123387         (futimens, utimens): Support timespec==NULL, with same semantics
123388         as utime and utimens.
123389         * lib/utimens.h (futimens): New decl.
123391 2004-11-23  Jim Meyering  <jim@meyering.net>
123393         * lib/getopt_.h: Remove trailing blanks.
123395 2004-11-23  Jim Meyering  <jim@meyering.net>
123397         * lib/__fpending.c: Add comment.
123399 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123401         * modules/canonicalize (Depends-on): Add xreadlink.
123402         Problem reported by James Youngman.
123404 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123406         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123407         New macros.
123408         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123409         optopt): Use them instead of invoking ## directly; otherwise, the
123410         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123412 2004-11-19  Bruno Haible  <bruno@clisp.org>
123414         * lib/strtok_r.c: Move comments from here...
123415         * lib/strtok_r.h: ... to here.
123417 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123419         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123420         implementations that mishandle size_t overflow.
123422 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123424         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123425         might fail.  Problem reported by Yoann Vandoorselaere.
123426         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123427         implementations that mishandle size_t overflow.
123429 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123431         * modules/canon-host (Depends-on): Add strdup.
123433 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123435         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123437 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123439         * lib/canon-host.c: Include "strdup.h".
123440         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123441         Use strdup instead of malloc/strcpy to duplicate strings.
123443         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123444         (human_space_before_unit): New constant.
123445         * lib/human.c (human_readable): Support it.
123447         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123448         (xgetcwd): Set errno correctly when failing.
123449         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123450         the failure is actually due to a PATH_MAX problem.
123452         Further getopt changes to make it more likely that glibc will
123453         buy the changes back.
123454         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123455         (getopt): Use it, so to preserve glibc semantic
123456         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123457         when compiling for libc.
123458         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123459         (getopt_long, getopt_long_only): Use it.
123461         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123462         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123463         (getopt): Argv is now char * const *, as per standard.
123464         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123465         not char *__getopt_argv_const *.
123466         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123467         _getopt_long_only_r): Likewise.
123468         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123469         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123470         _getopt_long_r, _getopt_long_only_r): Likewise.
123471         * lib/getopt_.h (__getopt_argv_const): Remove.
123472         (getopt): Argv is now char * const *, as per standard.
123474         * lib/getdate.y (tORDINAL): New token.
123475         (day, relunit): Allow it for relative times.
123476         (relative_time_table): Use tORDINAL for ordinals.
123478 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123480         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
123481         Document that "second" isn't allowed as an ordinal number.
123483 2004-11-16  Jim Meyering  <jim@meyering.net>
123485         * modules/closeout (Depends-on): Add fpending.
123487 2004-11-15  Jim Meyering  <jim@meyering.net>
123489         * lib/closeout.c: Include "__fpending.h" once again.
123490         Include <stdbool.h>.
123491         (close_stdout): Don't fail just because stdout was closed initially,
123492         since some programs don't write to stdout in the normal course of
123493         operation (other than --version and --help), and we don't want this
123494         function to make e.g. `touch file >&-' fail.
123495         But do fail if it was closed and someone has tried to write to it.
123496         E.g., `printf foo >&-' must fail.
123498 2004-11-13  Jim Meyering  <jim@meyering.net>
123500         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
123502 2004-11-12  Simon Josefsson  <jas@extundo.com>
123504         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
123505         small doc fix is still pending.
123507 2004-11-11  Simon Josefsson  <jas@extundo.com>
123509         * modules/strtok_r: New file.
123511         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123512         strtok_r.
123514 2004-11-11  Simon Josefsson  <jas@extundo.com>
123516         * m4/strtok_r.m4: New file.
123518         * m4/getopt.m4: Replace opterr.
123520 2004-11-11  Simon Josefsson  <jas@extundo.com>
123522         * lib/strtok_r.h, strtok_r.c: New file.
123524 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123526         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
123527         of replacing opterr, getopt, etc.  This should handle the
123528         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
123530 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123532         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
123533         we can stop lying to compilers about the constness of argv when we
123534         are compiled outside glibc.
123535         (getopt, getopt_long, getopt_long_only): Use it.
123536         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123537         _getopt_internal, getopt): Likewise.
123538         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123539         _getopt_long_only_r): Likewise.
123540         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123541         _getopt_long_r, _getopt_long_only_r): Likewise.
123543         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
123544         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
123545         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
123546         the other external symbols.
123547         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
123548         declaration, since the above renaming now works around collisions.
123550 2004-11-11  Jim Meyering  <jim@meyering.net>
123552         * lib/linebreak.c: Remove trailing blanks.
123553         * lib/alloca_.h: Likewise.
123554         * lib/acosl.c: Likewise.
123555         * lib/euidaccess.c: Likewise.
123556         * lib/allocsa.h: Likewise.
123558 2004-11-10  Simon Josefsson  <jas@extundo.com>
123560         * m4/getaddrinfo.m4: New file.
123562 2004-11-10  Simon Josefsson  <jas@extundo.com>
123564         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
123566 2004-11-10  Simon Josefsson  <jas@extundo.com>
123568         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123569         getaddrinfo.
123571         * modules/getaddrinfo: New file.
123573 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123575         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
123577 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123579         * lib/mktime.c (SHR): New macro, which is a portable
123580         substitute for >> that should work even on Crays.
123581         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
123582         Problem reported by Mark D. Baushke in
123583         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
123584         * lib/getdate.y (SHR): Likewise.
123585         (tm_diff): Use it.
123586         * lib/strftime.c (SHR): Likewise.
123587         (tm_diff): Use it.
123588         * lib/quotearg.c (struct quoting_options): Use unsigned int for
123589         quote_these_too, so that right shifts are well defined.  All uses
123590         changed.
123592 2004-11-10  Jim Meyering  <jim@meyering.net>
123594         Ensure that no close failure goes unreported.
123595         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
123596         return early when it seems there's nothing to flush.
123597         Don't include __fpending.h.
123599 2004-11-10  Jim Meyering  <jim@meyering.net>
123601         * modules/closeout (Depends-on): Remove fpending.
123603 2004-11-10  Jim Meyering  <jim@meyering.net>
123605         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
123607 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123609         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123610         gl_FUNC_STRFTIME.
123611         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123612         and AC_REQUIRE when possible, to avoid duplicate checks.
123613         Check for <wchar.h>.
123615 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123617         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
123619 2004-11-09  Bruno Haible  <bruno@clisp.org>
123621         * m4/sockpfaf.m4: New file.
123623 2004-11-05  Bruno Haible  <bruno@clisp.org>
123625         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
123626         Reported by Mark D. Baushke <mdb@cvshome.org>.
123628 2004-11-04  Bruno Haible  <bruno@clisp.org>
123630         2004-09-11  Bruno Haible  <bruno@clisp.org>
123631                 * allocsa.valgrind: New file.
123632         2004-02-06  Bruno Haible  <bruno@clisp.org>
123633                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
123634                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
123635                 Reported by Christopher Seip <chris.seip@hp.com>.
123637 2004-11-04  Bruno Haible  <bruno@clisp.org>
123639         * modules/allocsa (Files): Add lib/allocsa.valgrind.
123640         (Makefile.am): Distribute it.
123642 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
123644         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
123645         with errno == ERANGE if the buffer is too small.
123646         Problem reported by Mark D. Baushke.
123648 2004-11-03  Albert Chin  <china@thewrittenword.com>
123649             Paul Eggert  <eggert@cs.ucla.edu>
123651         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
123652         equivalent, substitute $ac_type for equivalent type rather than
123653         blindly using uint32_t *always* which won't work if uint32_t is not
123654         available.  Define _UINT32_T to work around typedef of uint32_t if
123655         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
123656         2.5.1.
123658 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123660         * m4/jm-macros.m4: Sync from coreutils.
123661         (gl_MACROS): Check for mbrlen, for pathchk.
123662         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
123664 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123666         * lib/xreadlink.c (MAXSIZE): New macro.
123667         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
123668         size does not exceed MAXSIZE.  Avoid cast.
123669         As suggested by Mark D. Baushke in
123670         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
123671         if readlink fails with buffer size just under MAXSIZE, try again
123672         with MAXSIZE.
123674 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123676         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
123678 2004-11-02  Derek R. Price  <derek@ximbiot.com>
123679         and  Paul Eggert  <eggert@cs.ucla.edu>
123681         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123682         (get_date): Overparenthesize to avoid GCC warning.
123684 2004-11-02  Bruno Haible  <bruno@clisp.org>
123686         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123687         returns void.
123689 2004-11-02  Bruno Haible  <bruno@clisp.org>
123691         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123692         function returns void.
123694 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123696         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123697         fflush_unlocked, flockfile, funlockfile, funlockfile,
123698         fputs_unlocked, putc_unlocked.
123700 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123702         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123703         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123704         already declared.
123706 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123708         * modules/getdate (Files): Add doc/getdate.texi.
123709         (Depends-on): Add setenv, xalloc.
123711 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123713         * lib/getdate.y: Add support for TZ="foo" within a date string.
123714         Fix some bugs near time_t boundaries.  Reject dates with
123715         out-of-range components, e.g., "Sept 31".
123716         Include <stdlib.h>, "setenv.h", "xalloc.h".
123717         (ISDIGIT_LOCALE): Remove; unused.
123718         Note that the TZ and time functions used here are not reentrant.
123719         (mktime_ok, get_tz): New functions.
123720         (TZBUFSIZE): New constant.
123721         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123722         This requires that we sometimes generate our own TZ="XXX..." setting.
123724 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123726         * doc/getdate.texi: New file, from coreutils with modifications for
123727         the new TZ parsing.
123729 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123731         * lib/mktime.c (not_equal_tm): Remove redundant check.
123733 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123735         * modules/regex (lib_SOURCES): Add regex.c.
123736         Reported by James Youngman in
123737         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123739 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123741         * lib/getdate.y: Use Bison 1.875 features, and some minor
123742         code cleanups.  This change does not affect semantics.
123743         Don't include <stdlib.h>; no longer needed.
123744         Don't include unlocked-io.h; only the "#if TEST" code uses
123745         stdio, and performance isn't crucial there.
123746         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123747         Bison 1.875 features as described below.
123748         All uses of "PC." replaced by "pc->".
123749         (YYSTYPE): Add a forward declaration.
123750         (yylex, yyerror): Use full prototypes in forward decls.
123751         Use "%pure-parser" rather than obsolescent "%pure_parser".
123752         Use %parse-param and %lex-param instead of obsolescent
123753         YYPARSE_PARAM and YYLEX_PARAM.
123754         (meridian_table, month_and_day_table, time_units_table,
123755         relative_time_table, time_zone_table, military_table,
123756         lookup_zone, lookup_word, get_date):
123757         Use NULL instead of 0 where appropriate.
123758         (to_hour): Avoid abort (), to avoid a dependency on
123759         stdlib.h.
123760         (yyerror, yylex): Now accepts parser_control * arg.
123761         (main) [TEST]: Use '\0' rather than 0 for char.
123763 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123765         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123767 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123769         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123770         It's now the caller's responsibility to handle the case where
123771         !HAVE_GETPAGESIZE && !defined getpagesize.
123773         * lib/mktime.c (leapyear): Arg is long int, not int.
123775 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123777         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123779 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123781         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123782         missing.  Problem reported by James Youngman.
123784 2004-10-16  Simon Josefsson  <jas@extundo.com>
123786         * gnulib-tool: Fix comments.  Fix parse problem.
123787         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123789 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123791         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123792         implementation of getopt_long.  Problem reported by Alexander Taler in:
123793         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123795 2004-10-15  Bruno Haible  <bruno@clisp.org>
123797         * gnulib-tool: Untabify. Initialize supplied_libname.
123798         (func_usage): More homogenous output.
123799         (func_modules_transitive_closure, func_modules_to_filelist,
123800         func_emit_lib_Makefile_am): New functions.
123801         (func_import): New function, extracted from big case statement. Use
123802         func_get_license, func_modules_transitive_closure,
123803         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123804         opt_lgpl. Don't use test -a, as it's not portable.
123805         (func_create_testdir): Use func_modules_transitive_closure,
123806         func_modules_to_filelist, func_emit_lib_Makefile_am.
123808 2004-10-15  Bruno Haible  <bruno@clisp.org>
123810         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123812 2004-10-15  Bruno Haible  <bruno@clisp.org>
123814         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123815         the portions belonging to each module.
123816         Suggested by Derek Robert Price <derek@ximbiot.com>.
123818 2004-10-12  Simon Josefsson  <jas@extundo.com>
123820         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123821         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123822         to real functions.
123824 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123826         * modules/vsnprintf: New file.
123828 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123830         * m4/vsnprintf.m4: New file.
123832 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123834         * lib/vsnprintf.h: New file.
123835         * lib/vsnprintf.c: New file.
123837 2004-10-11  Bruno Haible  <bruno@clisp.org>
123839         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123840         vsnprintf.
123842 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123844         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123846 2004-10-07  Bruno Haible  <bruno@clisp.org>
123848         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123849         fits into the provided buffer.
123851 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123853         * lib/diacrit.c, diacrit.h: Add GPL notice.
123855         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123856         notice.
123857         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123858         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123859         This avoids a potential constant-folding bug.
123861 2004-10-05  Bruno Haible  <bruno@clisp.org>
123863         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123864         for the declaration of strsep.
123866 2004-10-05  Bruno Haible  <bruno@clisp.org>
123868         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123870 2004-10-04  Simon Josefsson  <jas@extundo.com>
123872         * modules/memmem: New file.
123873         * tests/test-memmem.c: New file.
123874         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123876 2004-10-04  Simon Josefsson  <jas@extundo.com>
123878         * m4/memmem.m4: New file.
123880 2004-10-04  Simon Josefsson  <jas@extundo.com>
123882         * lib/memmem.h: New file.
123883         * lib/memmem.c: New file, taken from glibc.
123885 2004-10-04  Simon Josefsson  <jas@extundo.com>
123887         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123888         '#ifdef USE_UNLOCKED_IO'.
123890 2004-10-04  Simon Josefsson  <jas@extundo.com>
123892         * config/srclist.txt: Add memmem from glibc.
123894 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123896         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123898         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123899         modules/exclude, modules/getdate, modules/getline,
123900         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123901         modules/getusershell, modules/linebuffer, modules/md5,
123902         modules/mountlist, modules/posixtm, modules/readtokens,
123903         modules/readutmp, modules/regex, modules/sha1,
123904         modules/version-etc, modules/yesno:
123905         Remove dependency on unlocked-io.
123907 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123909         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123911         * m4/unlocked-io.m4: Add copyright notice.
123912         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123914 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123916         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123917         * lib/xmalloc.c (xmemdup): Likewise.
123918         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123919         XFREE): Remove these long-obsolescent macros.
123920         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123921         * lib/xstrdup.c: Remove.
123923         * lib/regex.c (re_comp): Cast gettext return value to char *,
123924         Problem reported by Martin Neitzel via Mark D. Baushke.
123926 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123928         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123929         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123930         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123931         regex.c, sha1.c, version-etc.c, yesno.c:
123932         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123933         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123934         the includer's responsibility.
123936         Sync from coreutils.
123938         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123939         points to the start of a string, as the C Standard says the
123940         resulting behavior is undefined.
123942         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123943         simple -> simple_backups, numbered_existing ->
123944         numbered_existing_backups, numbered -> numbered_backups
123945         to avoid shadowing problems.  All uses changed.
123946         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123947         * lib/backupfile.c (check_extension, numbered_backup):
123948         Rename locals to avoid shadowing 'basename'.
123949         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123950         once.
123952         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123953         * lib/.cvsignore: Add getopt.h.
123955 2004-10-04  Bruno Haible  <bruno@clisp.org>
123957         * modules/README: New file.
123958         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123959         not a module.
123961 2004-10-02  Jim Meyering  <jim@meyering.net>
123963         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123965 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123967         * modules/strsep: New file.
123969 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123971         * m4/strsep.m4: New file.
123973 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123975         * lib/strsep.h: New file.
123976         * lib/strsep.c: New file.
123978 2004-10-01  Simon Josefsson  <jas@extundo.com>
123980         * lib/snprintf.c (snprintf): Handle size==0.
123982 2004-10-01  Simon Josefsson  <jas@extundo.com>
123983             Bruno Haible  <bruno@clisp.org>
123985         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123986         (snprintf): Declare 'args'.
123988 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123990         * lib/snprintf.c: Remove comments as to why each header is needed.
123992 2004-10-01  Bruno Haible  <bruno@clisp.org>
123994         * MODULES.html.sh: Add strsep.
123996 2004-09-30  Simon Josefsson  <jas@extundo.com>
123998         * modules/snprintf: New file.
124000 2004-09-30  Simon Josefsson  <jas@extundo.com>
124002         * m4/snprintf.m4: New file.
124004 2004-09-30  Simon Josefsson  <jas@extundo.com>
124006         * lib/snprintf.h, lib/snprintf.c: New files.
124008 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124010         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
124011         (hol_entry_help): Never translate an empty string.
124012         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
124013         * lib/argp.h (OPTION_NO_TRANS): New option.
124015 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124017         * modules/argp (Maintainer): Replace Simon Josefsson
124018         by Sergey Poznyakoff.
124020 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124022         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
124023         changes merged back into glibc.
124025 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124027         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
124029 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
124031         * lib/xvasprintf.c: Include xalloc.h.
124032         (xvasprintf): Use xalloc_die, not xmalloc_die.
124034 2004-09-29  Bruno Haible  <bruno@clisp.org>
124036         * modules/alloca-opt: New file, derived from modules/alloca.
124037         * modules/allocsa: Depend on alloca-opt instead of alloca.
124038         * modules/setenv: Likewise.
124039         * modules/vasnprintf: Likewise.
124040         * MODULES.html.sh: Add alloca-opt.
124042 2004-09-28  Simon Josefsson  <jas@extundo.com>
124044         * gnulib-tool: New parameter --lgpl, to asseert that modules are
124045         LGPL, and to replace license template from GPL to LGPL.
124047 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124049         * modules/dummy: Change license to LGPL.
124051 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124053         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
124055 2004-09-24  Simon Josefsson  <jas@extundo.com>
124057         * modules/minmax (License): Change from GPL to LGPL.
124059 2004-09-23  Simon Josefsson  <jas@extundo.com>
124061         * gnulib-tool (--import): Typo.
124063 2004-09-23  Simon Josefsson  <jas@extundo.com>
124065         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
124067 2004-09-22  Bruno Haible  <bruno@clisp.org>
124069         * modules/*: Add 'License' field.
124070         * gnulib-tool: Accept --extract-license option.
124071         (func_get_license): New function.
124073 2004-09-21  Bruno Haible  <bruno@clisp.org>
124075         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
124076         Reported by Simon Josefsson.
124078 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124080         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
124081         gl_AC_TYPE_LONG_LONG.
124083 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124085         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
124087 2004-09-18  Simon Josefsson  <jas@extundo.com>
124088         and  Paul Eggert  <eggert@cs.ucla.edu>
124090         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
124091         calls with autoreconf.  Define GL_LIB.
124093 2004-09-14  Karl Berry  <karl@gnu.org>
124095         * config/srclist.txt: unsync setenv.c, sigh.
124097 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124099         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
124100         Problem reported by Bruno Haible in:
124101         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
124103 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124105         * config/srclist.txt: Comment out argp-pvh.c.
124107 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
124109         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
124110         in case some system header has #define'd it.  Problem reported by
124111         Soeren D. Schulze in
124112         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
124114 2004-09-09  Karl Berry  <karl@gnu.org>
124116         * regex.[ch]: delete from the root.  These were supposed to be
124117                 synced with emacs cvs, but this has not happened for about
124118                 a year, and anyway nothing else uses emacs regex.[ch].
124119                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
124120                 lib/regex[.ch] is untouched.
124122 2004-09-09  Bruno Haible  <bruno@clisp.org>
124124         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
124126 2004-09-09  Bruno Haible  <bruno@clisp.org>
124128         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
124129         modifications.
124130         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
124132 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124134         * modules/xvasprintf: New file.
124135         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
124137 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124139         * lib/xvasprintf.h: New file.
124140         * lib/xvasprintf.c: New file.
124141         * lib/xasprintf.c: New file.
124143 2004-09-08  Bruno Haible  <bruno@clisp.org>
124145         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
124147 2004-09-08  Bruno Haible  <bruno@clisp.org>
124149         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
124150         length is > INT_MAX.
124151         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
124152         more.
124154 2004-09-08  Bruno Haible  <bruno@clisp.org>
124156         * lib/stdint_.h: New file, taken from GNU clisp.
124158 2004-09-08  Bruno Haible  <bruno@clisp.org>
124159             Oskar Liljeblad  <oskar@osk.mine.nu>
124161         * modules/stdint: New file.
124162         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
124164 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124166         Import from coreutils.
124167         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
124168         strings on unbounded length.  alloca's performance benefits aren't
124169         that important here.
124170         (V_STRDUP): Remove.
124171         (parse_with_separator): New function, with most of the internals
124172         of the old parse_user_spec.  Allow user to omit both user and group,
124173         for compatibility with FreeBSD.
124174         Clone only the user name, not the entire spec.
124175         Do not set *uid, *gid unless entirely successful.
124176         Avoid memory leak in some failing cases.
124177         Fix regression for USER.GROUP reported by Dmitry V. Levin in
124178         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
124179         (parse_user_spec): Rewrite to use parse_with_separator.
124181 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124183         * modules/userspec: Don't depend on alloca.
124185 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124187         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
124189 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
124191         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124192         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124193         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124195 2004-08-16  Simon Josefsson  <jas@extundo.com>
124197         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
124198         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
124199         Add --dry-run for --import.
124200         Let user provided command line parameters override configure.ac
124201         settings.
124203 2004-08-12  Simon Josefsson  <jas@extundo.com>
124205         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
124206         as discussed with Paul Eggert in threads rooted at
124207         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
124208         and
124209         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
124210         Before, the test was empty, and relied on ELIDE_CODE in source
124211         code.)
124212         (gl_PREREQ_GETOPT): New macro.
124213         (gl_GETOPT): Use them.
124215 2004-08-12  Simon Josefsson  <jas@extundo.com>
124217         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
124218         * lib/getopt_.h: Renamed from getopt.h.
124220 2004-08-12  Simon Josefsson  <jas@extundo.com>
124222         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
124223         Change default library name from libfoo to libgnu.
124224         Now, if you have a configure.ac that says:
124225                 gl_SOURCE_BASE(gl)
124226                 gl_M4_BASE(gl/m4)
124227                 gl_MODULES(error getopt etcetera)
124228                 gl_INIT
124229         you can import all you need by running:
124230                 ../gnulib/gnulib-tool --import
124232         * modules/getopt (Files): Rename getopt.h to getopt_.h.
124233         (Makefile.am): Rewrite, use logic from argz.
124234         (Include): Use <getopt.h> instead of "getopt.h".
124236 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124238         * modules/argp (Files): Add m4/unlocked-io.m4.
124239         (Depends-on): Add extensions.
124241 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124243         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
124244         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
124245         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
124246         Check for program_invocation_name, program_invocation_short_name,
124247         flockfile, funlockfile, features.h, _getopt_long_only_r.
124249 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124251         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
124252         its complicated substitute.
124253         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
124254         and program_invocation_name.
124255         (__argp_basename) [!_LIBC]: Remove; the only use was
124256         replaced by its body.
124257         (__argp_short_program_name): Change condition from
124258         !defined __argp_short_program_name to
124259         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
124260         to match argp-namefrob.h.
124261         (__argp_failure): Don't assume strerror_r returns char *.
124262         * lib/argp-parse.c (N_): Define unconditionally.
124263         (argp_default_options): Fill out initializers with 0 to avoid
124264         gcc warnings.
124266 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124268         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
124269         getopt1.c.
124271 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124273         Merge from coreutils.
124275         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
124277         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
124278         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
124280 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124282         Merge from coreutils.
124284         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
124285         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
124286         for Reliant Unix 5.43.
124288         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
124289         (union fooround): Use uintmax_t, not long int.
124290         The rest is a merge from libc:
124291         [defined _LIBC]: Include <shlib-compat.h>.
124292         (_obstack) [defined _LIBC]: Remove after 2.3.4.
124294         * lib/settime.c (settime): Recode to avoid warning with
124295         Sun Forte C 6U2.
124297         * lib/strverscmp.c: Convert to UTF-8.
124299 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124301         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
124302         m4/uintmax_t.m4.
124304 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124306         * modules/xalloc-die: New file.
124307         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
124309         * modules/md5 (Files): Add m4/uint32_t.m4.
124310         * modules/sha1: Renamed from modules/sha.
124311         (Files):
124312         Rename lib/sha.h to lib/sha1.h.
124313         Rename lib/sha.c to lib/sha1.c.
124314         Rename m4/sha.m4 to m4/sha1.m4.
124315         (lib_SOURCES): Likewise.
124316         (configure.ac): Rename gl_SHA to gl_SHA1.
124317         (Include): sha.h -> sha1.h.
124319 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124321         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
124322         * m4/sha1.m4: Renamed from sha.m4.
124323         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
124325 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124327         * lib/obstack.h (obstack_empty_p):
124328         Don't assume that chunk->contents is suitably aligned.
124329         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
124330         Likewise. Problem reported by Benno in
124331         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
124333         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
124334         readable.  This could be improved further but it'd take some work.
124336 2004-08-08  Simon Josefsson  <jas@extundo.com>
124338         * modules/xgethostname (Depends-on): Remove exit and error (not
124339         used).
124341         * modules/getpass-gnu: Add getpass.h.
124342         (Depends-on): Add stdbool.
124343         * modules/getpass: Add getpass.h.
124345 2004-08-08  Simon Josefsson  <jas@extundo.com>
124347         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
124348         Check getpass declaration.
124350 2004-08-08  Simon Josefsson  <jas@extundo.com>
124352         * lib/xgethostname.c: Don't include error.h (not used).
124354         * lib/getpass.h: Add.
124355         * lib/getpass.c: Include getpass.h first.
124357 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
124359         * lib/xalloc-die.c: New file.
124360         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
124361         All uses removed.
124362         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124363         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124364         xalloc-die.c.
124365         (_, N_, xalloc_die): Move to xalloc-die.c.
124366         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124367         so that we needn't mess with xalloc_msg_memory_exhausted.
124369         * lib/sha1.h: Renamed from sha.h.
124370         (SHA1_H): Renamed from _SHA_H.
124371         (sha1_ctx): Renamed from sha_ctx.
124372         (sha1_init_ctx): Renamed from sha_init_ctx.
124373         (sha1_process_block): Renamed from sha_process_block.
124374         (sha1_process_bytes): Renamed from sha_process_bytes.
124375         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124376         (sha1_read_ctx): Renamed from sha_read_ctx.
124377         (sha1_stream): Renamed from sha_stream.
124378         (sha1_buffer): Renamed from sha_buffer.
124379         * lib/sha1.c: Likewise; renamed from sha.c.
124380         Do not include <sys/types.h>.
124381         Include <stddef.h> rather than <stdlib.h>.
124383 2004-08-08  Bruno Haible  <bruno@clisp.org>
124385         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124386         FILESYSTEM_PREFIX_LEN.
124387         * lib/progreloc.c: Likewise.
124388         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124390 2004-08-06  Simon Josefsson  <jas@extundo.com>
124392         * modules/progname (Depends-on): Don't depend on stdbool.
124394 2004-08-06  Simon Josefsson  <jas@extundo.com>
124396         * modules/getsubopt: New file.
124397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124398         getsubopt.
124400 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124402         More merge from coreutils.
124404         * m4/utimens.m4, m4/utimecmp.m4: New files.
124405         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124406         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124407         prereq.m4, sha.m4: Import changes from coreutils.
124409 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124411         More merge from coreutils.
124412         * modules/raise, modules/readtokens0, modules/utimens:
124413         * modules/utimecmp, module/xnanosleep: New files.
124414         * modules/strftime: Add lib/strftime.h.
124415         Change include from <time.h> to "strftime.h".
124416         * modules/yesno: Add lib/yesno.h.
124417         * modules/backupfile: Remove lib/addext.c.
124418         * modules/euidaccess: Add stat-macros.h.
124419         * modules/canonicalize, modules/euidaccess,
124420         modules/filemode, modules/lchown, modules/makepath,
124421         modules/rmdir, modules/stat: Likewise.
124423 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124425         Merge from tar.
124426         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124427         SIZE_MAX is a valid preprocessor constant.
124428         (__argp_basename): Change from "#ifndef _LIBC"
124429         to "#ifndef __argp_short_program_name", so that
124430         we don't compile these functions for tar.
124432         More merges from coreutils.
124433         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124434         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124435         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124436         * lib/addext.c: Remove; no longer needed.
124437         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124438         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124439         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124440         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124441         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124442         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124443         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124444         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124445         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124446         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124447         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124448         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124449         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124450         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124451         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124452         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124453         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124454         Import changes from coreutils.
124456 2004-08-05  Simon Josefsson  <jas@extundo.com>
124458         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124460 2004-08-05  Simon Josefsson  <jas@extundo.com>
124462         * m4/getsubopt.m4: New file.
124464 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124466         Merge from coreutils.
124468         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124469         * m4/getcwd-path-max.m4: New files.
124471         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124472         FILESYSTEM_PREFIX_LEN ->
124473         FILE_SYSTEM_PREFIX_LEN.
124474         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
124475         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
124476         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
124477         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
124479         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
124480         prerequisite modules now handle the DOS stuff.
124481         Don't check for unistd.h.
124483 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124485         Merge from coreutils.
124487         * lib/.gdb-history: Remove; this doesn't belong here.
124489         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
124490         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
124491         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
124492         * lib/getcwd.c: New files.
124494         * lib/dirname.h: Include <stdbool.h>.
124495         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
124496         for consistency with POSIX terminology.  All uses changed.
124497         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
124498         (strip_trailing_slashes): Use bool for booleans.
124499         * lib/stripslash.c (strip_trailing_slashes): Likewise.
124501         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
124502         sometimes returns a positive errno value even when it succeeds.
124503         (print_errno_message) [!LIBC]: Fall back on strerror if
124504         __strerror_r fails.
124506         * lib/path-concat.c (mempcpy): Don't define if a system header defines
124507         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
124508         (longest_relative_suffix): New function.
124509         (path_concat): Use it.  Assume first argument is not NULL.
124510         Port to DOS.  Omit redundant separators.
124511         Report an error instead of returning NULL.
124512         Use mempcpy instead of memcpy.
124513         (xpath_concat): Remove: not declared or used.
124515         * lib/same.h: Include <stdbool.h>
124516         (same_name): Return bool, not int.
124517         * lib/same.c (same_name): Likewise.
124518         (errno): Don't declare; we assume C89 or better now.
124520         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
124521         if not already defined.
124523         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
124524         * lib/dup-safer.c (errno): Likewise.
124526 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124528         Merge from coreutils.
124529         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
124530         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
124531         * modules/path-concat: Don't depend on strdup.
124533 2004-08-03  Simon Josefsson  <jas@extundo.com>
124535         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
124536         * lib/progname.h: Don't include stdbool.h.
124538 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124540         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
124541         * MODULES.html.sh (func_all_modules): Remove fatal.
124543 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124545         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
124547 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124549         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
124550         working.
124552 2004-08-02  Simon Josefsson  <jas@extundo.com>
124554         * lib/getsubopt.h: New file, with comments from Bruno Haible.
124555         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
124556         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
124558 2004-08-01  Simon Josefsson  <jas@extundo.com>
124560         * lib/xgetdomainname.c: Include stdlib.h, for free().
124562 2004-07-19  Bruno Haible  <bruno@clisp.org>
124564         * MODULES.html.sh (func_all_modules): Add dummy.
124566 2004-07-16  Simon Josefsson  <jas@extundo.com>
124568         * modules/dummy: New file.
124570 2004-07-16  Simon Josefsson  <jas@extundo.com>
124572         * lib/dummy.c: New file.
124574 2004-07-16  Bruno Haible  <bruno@clisp.org>
124576         * lib/backupfile.h: Add extern "C" for C++.
124577         * lib/closeout.h: Likewise.
124578         * lib/copy-file.h: Likewise.
124579         * lib/findprog.h: Likewise.
124580         * lib/full-write.h: Likewise.
124581         * lib/pathname.h: Likewise.
124582         * lib/progname.h: Likewise.
124583         * lib/stpcpy.h: Likewise.
124584         * lib/stpncpy.h: Likewise.
124585         * lib/strcase.h: Likewise.
124586         * lib/strstr.h: Likewise.
124587         * lib/xalloc.h: Likewise.
124589         * lib/mbswidth.h: Add extern "C" for C++.
124590         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
124592 2004-07-13  Robert Millan  <robertmh@gnu.org>
124594         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
124596 2004-07-09  Simon Josefsson  <jas@extundo.com>
124598         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
124599         failed without this.)
124601 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124603         * modules/chown (Files): Add lib/fchown-stub.c, since
124604         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
124606 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124608         * lib/fchown-stub.c: New file.
124610 2004-06-24  Jim Meyering  <jim@meyering.net>
124612         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124614 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124616         * modules/argz: Omit "#include".
124618         * MODULES.html.sh (func_all_modules): Add calloc, to match
124619         2004-06-01 addition of calloc module.
124621 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124623         * m4/argz.m4: New file, which is autoupdated from libtool.
124625 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124627         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
124628         libtool.
124630 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124632         * config/srclist-update: Don't insist on "USA." before the
124633         close-comment, as libtool omits the period and puts the */ on a
124634         separate line.
124635         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
124636         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
124638 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
124640         * modules/argz: New file.
124641         * MODULES.html.sh (func_all_modules): Add argz.
124643 2004-06-12  Jim Meyering  <jim@meyering.net>
124644         and  Paul Eggert  <eggert@cs.ucla.edu>
124646         * modules/hash (Files): Add lib/xalloc.h.
124647         * modules/pipe (Depends-on): Add wait-process.
124648         * modules/stat (Depends-on): Add xalloc.
124649         * modules/userspec (Files): Add lib/userspec.h.
124650         * modules/xstrto
124652         Upgrade from gettext-0.13.
124653         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
124654         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
124655         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
124657 2004-06-10  Jim Meyering  <jim@meyering.net>
124659         * lib/calloc.c: New file.
124661 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
124663         * lib/getdate.y (yylex): Allow space between sign and number.
124664         Problem reported by Dan Jacobson.
124666 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124668         Merge from coreutils CVS.
124670         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
124671         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
124672         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
124673         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
124674         xstrtol.m4: Fix copyright date and/or serial number.
124676         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
124677         See if we need an fchown replacement.
124678         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
124679         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
124680         and use the replacement function if we detect either defect.
124682         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124683         gl_UTIMECMP.
124685 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124686         and  Jim Meyering  <jim@meyering.net>
124688         Merge from coreutils CVS.
124690         * lib/stat-macros.h: New file, with contents from file-type.h
124691         and coreutils' system.h.
124692         * lib/file-type.c: Include "stat-macros.h".
124693         * lib/file-type.h (file_type): Move all macro definitions to new file,
124694         stat-macros.h.
124696         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124697         Wrap old code with this conditional.
124698         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124699         function that does not dereference symlinks.
124700         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124702         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124703         dependency problems.
124704         (xreadlink): Accept new arg SIZE, for efficiency.
124705         All decls and uses changed.
124706         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124708         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124709         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124711         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124712         sysexits.h.
124714 2004-06-01  Jim Meyering  <jim@meyering.net>
124716         * m4/calloc.m4: New file.
124718 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124720         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124721         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124722         Also, fix a typo in a diagnostic.
124724 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124726         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124727         or AC_FUNC_REALLOC.
124729 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124731         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124732         macros to be defined.
124733         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124734         the allocator returns NULL because the requested size is zero.
124736 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124738         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124739         var.  Add comment explaining why libc still defines it.  This
124740         merges the following patch from glibc:
124741         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124743 2004-05-20  Andreas Schwab  <schwab@suse.de>
124745         * m4/free.m4: Replace free if it not known to work, not the other
124746         way round.
124748 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124750         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124751         present in glibc since revision 1.1 of this file.
124752         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124753         obstack_alignment_mask, obstack_alloc, obstack_base,
124754         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124755         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124756         obstack_grow0, obstack_init, obstack_int_grow,
124757         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124758         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124759         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124760         nonexistent functions.
124762 2004-05-18  Karl Berry  <karl@gnu.org>
124764         * config/srclist.txt: break link for vasnprintf.c.
124766 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124768         Port obstack to the AS/400, where pointers are 16 bytes wide and
124769         you cannot cast an integer to a valid pointer.  This patch is
124770         currently waiting to be integrated into glibc; see
124771         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124773         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124774         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124775         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124776         (struct obstack): temp member is now a union of a pointer and
124777         an integer, instead of an integer.  All integer uses changed.
124778         This does not affect the physical layout of struct obstack,
124779         except on hosts (like the AS/400) where the size or alignment of
124780         void * is greater than that of ptrdiff_t.
124781         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124782         __STDC__)]: Store temporary in pointer member of union, not
124783         integer member.
124784         * lib/obstack.c: Include <stddef.h>, for offsetof.
124785         (struct fooalign): Remove; it doesn't need a name.
124786         (union fooround): Change double to long double, and add void *.
124787         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124788         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124789         not a macro.  Hence the values are always int; so remove all
124790         casts-to-int in uses.
124792 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124794         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124795         we can get this patch merged into glibc.
124797 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124798             Paul Eggert  <eggert@cs.ucla.edu>
124800         * m4/argp: Depend on alloca.
124802 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124803             Paul Eggert  <eggert@cs.ucla.edu>
124805         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124806         freecoding.
124808 2004-05-17  Bruno Haible  <bruno@clisp.org>
124810         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124811         precision that consists of a '.' followed by an empty digit string.
124812         Patch by Tor Lillqvist <tml@iki.fi>.
124814 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124816         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124817         for backward compatibility with older code.  We need our own
124818         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124819         it under some other name, and our alloca.h will define it.
124821 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124822             Derek Price  <derek@ximbiot.com>
124824         * lib/alloca.c: Include <alloca.h>, to get our interface.
124825         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124826         include <alloca.h> first.  Use C89 prototype for alloca; this
124827         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124828         Use #elif for simplicity, since we can assume C89 now.
124829         Don't try to source the system alloca.h since it will not be found
124830         and to prevent recursively including its replacement.
124831         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124832         * lib/regex.c: Likewise.
124834 2004-05-16  Derek Price  <derek@ximbiot.com>
124835             Paul Eggert  <eggert@cs.ucla.edu>
124837         getline cleanup.  This changes the getndelim2 API: both order of
124838         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124839         no delimiter).
124841         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124842         interface does that.
124843         (getline): Always use getdelim, so that we don't have two
124844         copies of this code.
124845         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124846         if available.
124847         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124848         (GETNDELIM2_MAXIMUM): New macro.
124849         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124850         instead of the old practice of delim2==0.  All callers changed.
124851         Return -1 on overflow, instead of returning junk.
124852         Do not set *linesize unless allocation succeeds.
124853         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124854         that we include sys/types.h.
124855         * lib/getnline.h: Likewise.
124856         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124857         (getndelim2): Reorder arguments.
124858         * lib/getnline.c (getnline, getndelim):
124859         Don't discard the NMAX argument.
124860         (getnline): Invoke getndelim, to avoid code duplication.
124861         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124862         of (size_t) -1 by callers of the getnline family.
124864 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124866         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124867         Check for gettimeofday.
124868         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124869         Check for settimeofday, stime.
124871 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124873         * lib/nanosleep.c (suspended): Change its type from int to
124874         sig_atomic_t volatile.
124875         (first_call): Make it private to rpl_nanosleep, and have it
124876         be zero initially as that's a bit faster.
124877         (my_usleep): Round up fractional times instead of truncating them,
124878         as this is the usual meaning for 'sleep'.
124880         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124881         doesn't work.
124882         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124883         (ENOSYS): Define if not defined.
124884         (settime): Fall back on stime if it exists and settimeofday fails.
124885         But don't bother with fallbacks if a method fails with errno == EPERM.
124887 2004-05-11  Jim Meyering  <jim@meyering.net>
124889         Prior to this change, the save_cwd caller required read access to the
124890         current directory on most systems (ones with the fchdir function).
124892         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124893         fails, try write-only, and finally, resort to using xgetcwd.
124895 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124897         * lib/obstack.c, obstack.h: Import changes from libc.
124899 2004-04-28  Bruno Haible  <bruno@clisp.org>
124901         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124902         also implicitly appends .exe to executables.
124903         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124904         accepts Windows pathnames.
124905         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124906         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124907         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124908         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124909         Reported by Derek Robert Price <derek@ximbiot.com>.
124911 2004-04-21  Karl Berry  <karl@gnu.org>
124913         * config/srclist.txt (localcharset.c): break sync.
124915 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124917         * m4/host-os.m4: Add a copyright notice.
124919 2004-04-20  Jim Meyering  <jim@meyering.net>
124921         Change UTILS_ to gl_ in AC_DEFINE'd names.
124922         Change utils_- and jm_-prefixed variables, too.
124923         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124924         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124925         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124927         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124928         Don't emit trailing blanks.
124929         Also rename jm_-prefixed variables to have gl_ prefix.
124931         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124932         Also rename jm_-prefixed variables to have gl_ prefix.
124934         * m4/jm-macros.m4: Reflect the renamings.
124935         * m4/prereq.m4: Likewise.
124937 2004-04-20  Jim Meyering  <jim@meyering.net>
124939         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124940         memory.
124942 2004-04-20  Jim Meyering  <jim@meyering.net>
124943             Bruno Haible  <bruno@clisp.org>
124945         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124946         memory when realloc fails.
124948 2004-04-19  Jim Meyering  <jim@meyering.net>
124950         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124951         now that readutmp.c may call `free (0)'.
124953 2004-04-19  Bruno Haible  <bruno@clisp.org>
124955         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124956         * m4/inttypes_h.m4: Likewise.
124957         * m4/stdint_h.m4: Likewise.
124958         * m4/intmax_t.m4: Likewise.
124959         * m4/uintmax_t.m4: Likewise.
124961 2004-04-18  Jim Meyering  <jim@meyering.net>
124963         * m4/prereq.m4: Don't forbid jm_ prefix.
124965         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124966         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124967         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124968         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124969         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124970         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124971         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124972         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124973         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124974         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124975         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124976         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124977         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124978         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124979         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124980         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124981         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124982         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124983         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124985 2004-04-18  Jim Meyering  <jim@meyering.net>
124987         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124988         failure, don't leak memory and do call END_UTMP_ENT.
124990 2004-04-16  Jim Meyering  <jim@meyering.net>
124992         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124993         coreutils' stat program.
124994         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124996 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124998         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124999         C89.
125000         (CHAR_BIT): Remove, since we assume C89.
125001         Include <stdint.h> if available, as per current Autoconf CVS advice.
125003 2004-03-31  Jim Meyering  <jim@meyering.net>
125005         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
125006         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
125007         * m4/xalloc.m4: Likewise.
125009 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125011         Merge from coreutils.
125013         * m4/inttostr.m4: New file.
125014         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
125015         Require AM_STDBOOL_H and gl_TIMESPEC instead.
125016         Require gl_CLOCK_TIME.
125017         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
125019 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125021         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
125022         not bool, to be more consistent with Unix conventions.
125023         Suggested by Bruno Haible.
125025         Merge from coreutils.
125027         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
125028         * lib/umaxtostr.c: New files.
125030         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
125031         the usual <time.h> dance.
125032         (get_date): Change signature to support fractional time stamps.
125033         All callers changed.
125034         * lib/getdate.y: Include "getdate.h" first, as we can now
125035         assume C89 and don't need to worry about 'const'.
125036         Similarly, include "unlocked-io.h" near start, not in middle.
125037         Include <limits.h>.
125038         (textint.value): Use long int rather than int.
125039         (textint.digits): Use size_t rather than int.
125040         (BILLION, LOG10_BILLION): New constants.
125041         (parser_control): New member rel_ns.  Members day_ordinal,
125042         time_zone, month, day, hour, minutes, rel_year, rel_month,
125043         rel_day, rel_hour, rel_minutes, rel_seconds
125044         are now long int, not int.  Member seconds is now struct timespec,
125045         not int.  New member timespec_seen.  Members dates_seen, days_seen,
125046         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
125047         not int.
125048         (%union.intval): Now long int, not int.
125049         New member timespec.
125050         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
125051         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
125052         (spec): Now is a timespec or an item list.
125053         (timespec, items): New nonterminals.
125054         (time, rel, relunit, number, get_date):
125055         Add support for fractional seconds.
125056         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
125057         (gmtime, localtime, mktime): Remove decls; not needed with C89.
125058         (to_hour): First arg is now long int, not int.
125059         (to_year): Returns long int, not int.
125060         Don't treat year -70 like 70.
125061         (tm_diff): Returns long int, not int.
125062         (lookup_word): Use bool instead of int when appropriate.
125063         (yylex): Use size_t for count, not int.
125064         Detect overflow when parsing large integer constants.
125065         Add support for fractions.
125066         (get_date): Make pointers 'const' if possible.
125067         Use more-portable code to detect integer overflow.
125068         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
125069         Don't use ctime; it's not reliable if the year has >4 digits.
125071         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
125072         This is for compatibility with BSD.
125074         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
125075         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
125076         From coreutils' system.h.
125078         * lib/userspec.c: Don't include "posixver.h".
125079         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
125080         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
125081         compatible extension.  Simplify code by removing a boolean int
125082         that was always nonzero if a string was nonnull.
125084 2004-03-30  Jim Meyering  <jim@meyering.net>
125086         Merge from coreutils.
125088         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
125089         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
125090         on some systems one must include <grp.h> before it.
125091         Reported by Christian Krackowizer.
125093 2004-03-30  Jim Meyering  <jim@meyering.net>
125095         Merge from coreutils.
125097         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
125099         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
125100         an empty input stream.
125102         * lib/readtokens.c: Include <stdbool.h>.
125103         (readtoken): Use `size_t' rather than int/long.
125104         All callers adjusted.
125105         Use `bool' rather than `int' where appropriate.
125106         Use memset rather than an explicit loop.
125107         Use x2nrealloc rather than xrealloc.
125108         Allow the use of `\0' as a delimiter.
125109         (readtokens): Likewise.
125110         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
125112 2004-03-30  Jim Meyering  <jim@meyering.net>
125114         * m4/realloc.m4: Remove file, since now it does no more than
125115         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
125116         the `configure.ac' section of module/realloc.
125117         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
125119 2004-03-30  Bruno Haible  <bruno@clisp.org>
125121         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
125122         nonnull.
125124 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125126         Merge changes to getloadavg.c from coreutils and Emacs.
125128         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
125129         Define to an expression, not to the empty string.
125130         Include cloexec.h and xalloc.h.
125131         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
125132         Use set_cloexec_flag rather than rolling our own.
125133         * lib/cloexec.c, lib/cloexec.h: New files.
125135 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125137         * m4/cloexec.m4: New file.
125139 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125141         * lib/getopt.h: Sync with libc CVS.
125143 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125144             Bruno Haible  <bruno@clisp.org>
125146         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
125147         mbswidth.
125149 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125150             Bruno Haible  <bruno@clisp.org>
125152         * lib/mbswidth.h: Include <wchar.h> only if
125153         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
125154         <wchar.h>.
125155         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
125157 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125159         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
125160         Sync with libc CVS.
125161         * lib/getopt_int.h: New file, also synced from libc.
125163 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125165         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
125166         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
125167         Bring back getopt.c, getopt.h, getopt1.c.
125169 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125171         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
125172         All uses changed.  Check for sa_sigaction member; this fixes
125173         a bug first reported by Jason Andrade in
125174         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125176 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125178         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
125179         '#if' expressions.  Unlike the code it replaces, it does not
125180         depend on (defined _SC_PAGESIZE).  However, it does depend on
125181         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
125182         first reported by Jason Andrade in
125183         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125185 2004-02-25  Simon Josefsson  <jas@extundo.com>
125187         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
125189 2004-02-25  Simon Josefsson  <jas@extundo.com>
125191         * lib/strdup.h: New file.
125192         * lib/strdup.c: Include it.
125193         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125194         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125196 2004-02-23  Karl Berry  <karl@gnu.org>
125198         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
125199         (from fencepost.gnu.org:/gd/gnuorg).
125201 2004-02-23  Karl Berry  <karl@gnu.org>
125203         * config/srclistvars.sh (GNUORG) [karl]: redefine.
125204         * config/srclist.txt: add maintain/standards documents.
125206 2004-02-18  Bruno Haible  <bruno@clisp.org>
125208         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
125209         Reported by Derek Robert Price <derek@ximbiot.com>.
125211 2004-02-16  Karl Berry  <karl@gnu.org>
125213         * config/mkinstalldirs, install-sh: update from automake.
125215 2004-02-06  Karl Berry  <karl@gnu.org>
125217         * m4/po.m4: update from gettext 0.14.1.
125219 2004-02-06  Karl Berry  <karl@gnu.org>
125221         * lib/config.charset: update from gettext 0.14.1.
125223 2004-02-05  Paul Eggert  <eggert@twinsun.com>
125225         Add comments and code, prompted by suggestions from Bruno Haible
125226         for sh-quote.
125227         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
125228         describing the enum quoting_style values.
125229         * lib/quotearg.c (quotearg_alloc): New function.
125230         (quotearg_buffer_restyled): Treat lone { and } as special.
125231         Treat = as special.  Work around bug with older shells
125232         that "see" a '\' that is really the 2nd byte of a multibyte char.
125233         Quote empty string with shell_quoting_style.
125235 2004-02-03  Bruno Haible  <bruno@clisp.org>
125237         * m4/pipe.m4: New file, from GNU gettext.
125239 2004-02-03  Bruno Haible  <bruno@clisp.org>
125241         * lib/pipe.h: New file, from GNU gettext.
125242         * lib/pipe.c: New file, from GNU gettext.
125244 2004-01-27  Bruno Haible  <bruno@clisp.org>
125246         * m4/execute.m4: New file, from GNU gettext.
125248 2004-01-27  Bruno Haible  <bruno@clisp.org>
125250         * lib/execute.h: New file, from GNU gettext.
125251         * lib/execute.c: New file, from GNU gettext.
125252         * lib/w32spawn.h: New file, from GNU gettext.
125254 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125256         Merge from diffutils.
125258         * lib/file-type.c (file_type): Add typed memory objects.
125259         * lib/file-type.h (S_TYPEISTMO): New macro.
125261         * lib/c-stack.h (c_stack_action): Remove argv argument.
125262         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
125263         (die): Don't calculate message unless segv_action returns.
125264         (get_stack_location, min_address_from_argv, max_address_from_argv,
125265         volatile stack_base, volatile_stack_size): Remove.
125266         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
125267         that every segmentation violation is a stack overflow.  (Ouch!)
125268         See Debian bug 136249 (still outstanding) for more info about why
125269         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
125271 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125273         Exit-status fix from coreutils.
125275         Use exit_failure consistently in place of EXIT_FAILURE,
125276         so that program exit statuses are consistent on failure.
125278         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
125279         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
125280         * lib/argmatch.h: Comment fix to match the above.
125281         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
125282         Now a macro referring to exit_failure, instead of a separate
125283         variable.  Include "exitfail.h" to get it.
125284         * lib/xstrtol.h: Include "exitfail.h".
125285         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
125287         * lib/long-options.c (parse_long_options): Use prototype
125288         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
125289         for clarity.
125291 2004-01-21  Jim Meyering  <jim@meyering.net>
125293         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
125294         so as not to conflict with a different-sized __mktime_internal
125295         function in GNU libc.
125296         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
125297         Problem building statically-linked `ls' reported by Michael Brunnbauer.
125299 2004-01-20  Karl Berry  <karl@gnu.org>
125301         * config/config.guess: update from config.
125303         * config/srclistvars.sh: GNUWWWLICENSES for karl.
125305 2004-01-20  Bruno Haible  <bruno@clisp.org>
125307         Safer stack allocation.
125308         * lib/setenv.c: Include allocsa.h.
125309         (alloca): Remove fallback definition.
125310         (freea): Remove macro.
125311         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
125312         instead of freea.
125314 2004-01-20  Bruno Haible  <bruno@clisp.org>
125316         * m4/eealloc.m4: New file, from GNU gettext.
125318 2004-01-20  Bruno Haible  <bruno@clisp.org>
125320         * m4/allocsa.m4: New file, from GNU gettext.
125322 2004-01-20  Bruno Haible  <bruno@clisp.org>
125324         * lib/xallocsa.h: New file, from GNU gettext.
125325         * lib/xallocsa.c: New file, from GNU gettext.
125327 2004-01-20  Bruno Haible  <bruno@clisp.org>
125329         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
125331 2004-01-20  Bruno Haible  <bruno@clisp.org>
125333         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
125334         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
125335         specially.
125337 2004-01-20  Bruno Haible  <bruno@clisp.org>
125339         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
125340         patch.
125342 2004-01-20  Bruno Haible  <bruno@clisp.org>
125344         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
125346 2004-01-20  Bruno Haible  <bruno@clisp.org>
125348         * lib/eealloc.h: New file.
125350 2004-01-20  Bruno Haible  <bruno@clisp.org>
125352         * lib/binary-io.h: Avoid warnings on Cygwin.
125354 2004-01-20  Bruno Haible  <bruno@clisp.org>
125356         * lib/allocsa.h: New file, from GNU gettext.
125357         * lib/allocsa.c: New file, from GNU gettext.
125359 2004-01-18  Karl Berry  <karl@gnu.org>
125361         * doc/gpl.texi, doc/lgpl.texi: new files.
125363 2004-01-18  Karl Berry  <karl@gnu.org>
125365         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125366         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125368 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125370         Merge from coreutils.
125372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125373         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125374         (gl_DEFAULT_POSIX2_VERSION): Move
125375         the documentation from 'configure' into 'config.hin',
125376         so that 'configure --help' isn't burdened by it and
125377         we don't have to worry about its formatting there.
125378         Reword the documentation so that it's more succinct
125379         and can be run together into a single paragraph.
125380         * m4/same.m4 (gl_SAME): Check for pathconf.
125382 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125384         Merge from coreutils.
125386         * lib/posixver.c: Include posixver.h.
125388         * lib/same.c: Include <stdbool.h>, <limits.h>.
125389         (_POSIX_NAME_MAX): Define if not defined.
125390         (MIN): New macro.
125391         (same_name): If file names are silently truncated, report
125392         that the file names are the same if they are the same after
125393         the silent truncation.
125395         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125396         conversion function.
125397         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125398         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125399         longer needed.
125401 2004-01-15  Jim Meyering  <jim@meyering.net>
125403         Merge from coreutils.
125405         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125406         if no library is required.
125407         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125408         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125409         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125410         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125411         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125412         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125413         value, $ac_cv_search_crypt, if it's "none required".
125414         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125415         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125416         not gl_FUNC_GETLOADAVG.
125417         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125418         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125420 2004-01-15  Jim Meyering  <jim@meyering.net>
125422         Merge from coreutils.
125424         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125425         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125426         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125428         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125429         optional configure-time default.
125431         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125433         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125435 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125437         Merge from coreutils.
125439         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125440         value, $ac_cv_search_nanosleep, if it's "none required".
125442 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125444         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125445         with like-named macro in fnmatch.c.
125446         (EXT): Use an internal constant instead.
125448         Merge fnmatch patches from glibc.
125449         * lib/fnmatch.c (mbsinit): Remove define.
125450         Add libc_hidden_ver (__fnmatch, fnmatch).
125451         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125452         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125454 2004-01-14  Karl Berry  <karl@gnu.org>
125456         * config/install-sh: update from automake.
125458 2004-01-13  Karl Berry  <karl@gnu.org>
125460         * config/install-sh: update from automake.
125462 2004-01-09  Karl Berry  <karl@gnu.org>
125464         * config/install-sh: update from automake.
125466 2004-01-05  Karl Berry  <karl@gnu.org>
125468         * config/config.{sub,guess}: update from config.
125470 2003-12-31  Karl Berry  <karl@gnu.org>
125472         * config/depcomp: update from automake.
125474 2003-12-14  Karl Berry  <karl@gnu.org>
125476         * lib/config.charset: update from gettext-runtime.
125478 2003-12-03  Paul Eggert  <eggert@twinsun.com>
125480         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
125481         Bug reported by Alfred M. Szmidt.
125483 2003-12-03  Bruno Haible  <bruno@clisp.org>
125485         * m4/gettext.m4: Upgrade from gettext-0.13.
125486         * m4/po.m4: Upgrade from gettext-0.13.
125487         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
125488         * m4/intmax.m4: New file, from gettext-0.13.
125489         * m4/printf-posix.m4: New file, from gettext-0.13.
125491 2003-11-29  Karl Berry  <karl@gnu.org>
125493         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
125495 2003-11-25  Paul Eggert  <eggert@twinsun.com>
125496             Bruno Haible  <bruno@clisp.org>
125498         * lib/printf-parse.h: Don't include sys/types.h.
125499         (ARG_NONE): New macro.
125500         (char_directive): Change type of *arg_index fields to size_t.
125501         * lib/printf-parse.c: Don't include sys/types.h.
125502         (SSIZE_MAX): Remove macro.
125503         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
125504         Remove unnecessary overflow check.
125505         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
125506         fields.
125508 2003-11-25  Bruno Haible  <bruno@clisp.org>
125510         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
125512 2003-11-25  Bruno Haible  <bruno@clisp.org>
125514         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
125515         gt_TYPE_SSIZE_T.
125517 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125519         * modules/alloca: Remove dependency on xalloc.
125521 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125523         * lib/alloca.c: Remove dependency on xalloc module.
125524         (xalloc_die): Remove.
125525         (memory_full) [!defined emacs]: New macro.
125526         [!defined emacs]: Don't include xalloc.h.
125527         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
125528         address arithmetic overflows.  Change datatypes a bit to avoid
125529         unnecessary casts.
125531 2003-11-22  Jim Meyering  <jim@meyering.net>
125533         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
125534         s/size/size_t/.
125536 2003-11-21  Karl Berry  <karl@gnu.org>
125538         * config/config.{sub,guess}: update from config.
125540 2003-11-18  Karl Berry  <karl@gnu.org>
125542         * config/config.{sub,guess}: update from config.
125544         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
125546 2003-11-17  Paul Eggert  <eggert@twinsun.com>
125548         * README: Mention that S+T cannot overflow if S is the size of
125549         an existing object and T is sufficiently small.
125551 2003-11-17  Jim Meyering  <jim@meyering.net>
125553         On systems without utime and without a utimes function capable of
125554         dealing with a NULL struct utimbuf* argument, this utime replacement
125555         could -- in unusual circumstances -- leak a file descriptor.
125556         * lib/utime.c: Include <unistd.h> and <errno.h>.
125557         (utime_null): Be sure to close `fd' and to preserve errno.
125558         Reported by Geoff Collyer via Arnold Robbins.
125560 2003-11-17  Bruno Haible  <bruno@clisp.org>
125562         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
125563         (Depends-on): Add xsize.
125565 2003-11-17  Bruno Haible  <bruno@clisp.org>
125567         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
125569 2003-11-17  Bruno Haible  <bruno@clisp.org>
125571         * lib/vasnprintf.c (alloca): Remove fallback definition.
125572         (freea): Remove definition.
125573         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
125574         Reported by Paul Eggert.
125576 2003-11-16  Paul Eggert  <eggert@twinsun.com>
125577             Bruno Haible  <bruno@clisp.org>
125579         Protect against address arithmetic overflow.
125580         * lib/printf-args.h: Include stddef.h.
125581         (arguments): Change type of field 'count' to size_t.
125582         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
125583         'unsigned int' where appropriate.
125584         * lib/printf-parse.h: Include sys/types.h.
125585         (char_directive): Change type of *arg_index fields to ssize_t.
125586         (char_directives): Change type of fields 'count', max_*_length to
125587         size_t.
125588         * lib/printf-parse.c: Include sys/types.h and xsize.h.
125589         (SSIZE_MAX): Define fallback value.
125590         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
125591         instead of 'int' where appropriate. Check a_allocated, d_allocated
125592         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
125593         * lib/vasnprintf.c: Include xsize.h.
125594         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
125595         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
125596         overflow. Avoid wraparound when converting a width or precision from
125597         decimal to binary.
125599 2003-11-16  Bruno Haible  <bruno@clisp.org>
125601         Update from GNU gettext.
125602         * lib/printf-parse.c: Generalize to it can be compiled for wide
125603         strings.
125604         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
125605         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
125606         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
125607         SNPRINTF): New macros.
125608         Don't include <alloca.h> if the file is used inside libintl.
125609         (local_wcslen): New function, for Solaris 2.5.1.
125610         (VASNPRINTF): Use it instead of wcslen.
125612 2003-11-16  Bruno Haible  <bruno@clisp.org>
125614         * lib/xsize.h (xmax): New function.
125615         (xsum, xsum3, xsum4): Declare as "pure" functions.
125617 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125619         * modules/xalloc (Files): Undo latest change, since xalloc.h
125620         no longer needs SIZE_MAX or PTRDIFF_MAX.
125622 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125624         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
125625         gl_PTRDIFF_MAX.
125627 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125629         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
125630         "return", to pacify some unknown compiler.  Problem reported
125631         by Joerg Schilling.
125633 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125635         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
125636         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
125637         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
125638         heuristic is just as accurate as far as we know, and it removes a
125639         dependency on size_max.m4 and ptrdiff_max.m4.
125641 2003-11-11  Bruno Haible  <bruno@clisp.org>
125643         * modules/xsize (Files): Add m4/size_max.m4.
125644         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
125646 2003-11-11  Bruno Haible  <bruno@clisp.org>
125648         * m4/size_max.m4: New file.
125649         * m4/ptrdiff_max.m4: New file.
125650         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
125651         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
125652         (gl_XALLOC): Invoke it.
125654 2003-11-11  Bruno Haible  <bruno@clisp.org>
125656         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
125657         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
125658         defined.
125660 2003-11-10  Paul Eggert  <eggert@twinsun.com>
125662         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
125663         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
125664         rejected some allocations of exactly SIZE_MAX - 2 bytes.
125665         From Bruno Haible.
125666         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
125667         not (size_t) -1, since it's defined here.
125669 2003-11-09  Karl Berry  <karl@gnu.org>
125671         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
125673 2003-11-06  Paul Eggert  <eggert@twinsun.com>
125675         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
125676         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
125677         Reject sizes of exactly SIZE_MAX bytes.
125678         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
125679         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125681 2003-11-05  Bruno Haible  <bruno@clisp.org>
125683         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125684         SIZE_MAX defined in <limits.h> on Solaris.
125686 2003-11-04  Jim Meyering  <jim@meyering.net>
125688         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125689         variable names, rather than @VAR@.
125690         * modules/poll: Likewise.
125692 2003-11-04  Bruno Haible  <bruno@clisp.org>
125694         * modules/xsize: New file.
125695         * modules/linebreak: Depend on xsize.
125696         * MODULES.html.sh (func_all_modules): Add xsize.
125698 2003-11-04  Bruno Haible  <bruno@clisp.org>
125700         * m4/xsize.m4: New file.
125702 2003-11-04  Bruno Haible  <bruno@clisp.org>
125704         * lib/xsize.h: New file.
125705         * lib/linebreak.c: Include xsize.h.
125706         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125707         argument for overflow.
125708         Suggested by Paul Eggert.
125710 2003-11-03  Karl Berry  <karl@gnu.org>
125712         * config/config.{guess,sub}: update from config.
125714 2003-11-03  Jim Meyering  <jim@meyering.net>
125716         * modules/userspec (lib_SOURCES): Add userspec.h.
125717         (Include): Add "userspec.h".
125718         Improve description.
125720 2003-11-03  Jim Meyering  <jim@meyering.net>
125722         * lib/userspec.c: Include "userspec.h".
125723         * lib/userspec.h: New file.
125725 2003-11-03  Bruno Haible  <bruno@clisp.org>
125727         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125729 2003-11-03  Bruno Haible  <bruno@clisp.org>
125731         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125732         available, to avoid (extremely rare) race condition.
125733         Suggested by Paul Eggert.
125735 2003-11-02  Karl Berry  <karl@gnu.org>
125737         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125739 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125741         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125742         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125743         (read_filesystem_list): Set and use me_type_malloced.
125744         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125745         whatever the type happens to be), for brevity and consistency.
125746         Check for size calculation overflow on Alphas running OSF/1.
125748 2003-10-31  Jim Meyering  <jim@meyering.net>
125750         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125752         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125754 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125755             Bruno Haible  <bruno@clisp.org>
125757         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125758         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125760 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125762         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125763         netbsd*-gnu*.  Suggested by Robert Millan.
125765 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125767         * modules/group-member: Depend on stdbool.
125769 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125771         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125773 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125775         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125776         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125777         after the 'gnu' in these cases.  This fixes some bugs in the
125778         previous change, and is based on suggestions by Robert Millan.
125780 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125782         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125783         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125784         no longer needed.
125785         * lib/quotearg.c (quotearg_n_options): Use it.
125786         * lib/group-member.c: Include <stdbool.h>.
125787         (free_group_info): Arg is now const *; don't free arg.
125788         (get_group_info): Now returns bool and accepts struct group_info *,
125789         rather than returning a malloc'ed struct group_info *.
125790         All uses changed.  Check for overflow in internal size calculation.
125792         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125793         rather than xmalloc/xrealloc.
125794         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125795         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125796         conformance bug: the old code used a pointer after freeing the
125797         storage that it addressed.
125798         * lib/hash.c (hash_initialize): Simplify the code by using
125799         xalloc_oversized rather than doing it by hand.
125800         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125801         the buffer preserved.  Use free and xmalloc instead.
125802         * lib/quotearg.c (quotearg_n_options): Likewise.
125803         Use a simpler test for size overflow.  Don't use xalloc_oversized
125804         because unsigned int might be wider than size_t (!); this suggests
125805         that we should switch from unsigned int to size_t for slot numbers.
125807 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125809         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125810         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125811         NetBSD kernels.  Requested by Richard Stallman.
125813 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125815         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125816         to allocate the returned structure.  Do not allocate a subarray,
125817         as x2nrealloc will do that.
125818         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125819         instead of xnrealloc.
125820         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125822 2003-10-27  Bruno Haible  <bruno@clisp.org>
125824         * lib/stdbool_.h: Better support for BeOS.
125826 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125828         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125829         now uses inline.
125831 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125833         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125834         callers that want to do their own size-overflow checking.  Include
125835         <stdbool.h>, since xalloc_oversized returns bool.
125836         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125837         to use xalloc_oversized.
125839         Add two functions x2realloc, x2nrealloc, for programs that grow
125840         arrays dynamically by doubling their sizes.
125841         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125842         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125843         New functions.
125845         Port to C99 semantics for 'inline' of external functions.
125846         Bug reported by Bruno Haible.
125847         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125848         with the old contents of xnmalloc.
125849         (xnmalloc, xmalloc): Use it.
125850         (xnrealloc_inline): New static inline function,
125851         with the old contents of xnrealloc.
125852         (xnrealloc, xrealloc): Use it.
125854         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125855         that.
125857 2003-10-26  Karl Berry  <karl@gnu.org>
125859         * config/srclist.txt (COPYING.DOC): no longer available from
125860         /gd/gnuorg; don't know where the ultimate source is.
125862 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125864         Fix several address-calculation bugs in the hash modules,
125865         plus some minor code cleanup.
125867         * lib/hash.h: Include <stdbool.h>, for bool.
125868         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125869         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125870         hash_get_n_entries, hash_get_max_bucket_length,
125871         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125872         hash_rehash): Use size_t rather than unsigned.
125873         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125874         hash_get_n_buckets_used, hash_get_n_entries,
125875         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125876         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125877         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125878         Likewise.
125879         (SIZE_MAX): Define if not defined.
125880         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125881         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125882         hash_print):
125883         Use const * when possible.
125884         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125885         (check_tuning): Fix bug: if tuning parameters were very close to
125886         0 or 1, rounding errors could have caused subscript violations.
125887         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125888         (hash_initialize): Add 'fail:' label
125889         to free table and return NULL, and use it to simplify code.
125890         Use calloc rather than clearing the storage ourself.
125891         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125892         buffer size calculations.
125893         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125894         Include <stddef.h>, for size_t.
125895         * lib/hash-pjw.c (hash_pjw): Likewise.
125896         Switch to method described by Bruno Haible.
125897         Include <limits.h>, for CHAR_BIT.
125898         (SIZE_BITS): New macro.
125900 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125902         * m4/getline.m4 (AM_FUNC_GETLINE):
125903         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125904         hosts.  Problem reported by Derek Robert Price in
125905         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125906         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125907         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125909 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125911         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125912         ceiling the allocation at NMAX bytes rather than silently
125913         discarding input bytes before NMAX is reached.  This makes
125914         a difference only if NMAX exceeds SIZE_MAX / 2.
125916         * lib/obstack.c: Merge from glibc.
125917         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125918         Add libc_hidden_def (_obstack_newchunk).
125919         (_obstack_free) [! defined _LIBC]: Remove.
125920         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125921         a clone of the function body.
125922         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125923         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125925         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125926         glibc.
125927         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125928         arg to memcpy.
125930         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125931         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125932         Don't use lvalue casts, as GCC plans to remove support for them
125933         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125934         was also present in the non-GCC version, indicating that this
125935         code had always been buggy and had never been widely used.
125936         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125937         Use the fast variant of each macro, rather than copying the
125938         definiens of the fast variant; that way, we'll be more likely to
125939         catch future bugs in the fast variants.
125941 2003-10-20  Bruno Haible  <bruno@clisp.org>
125943         * modules/wait-process: New file.
125944         * MODULES.html.sh (func_all_modules): Add wait-process.
125946 2003-10-20  Bruno Haible  <bruno@clisp.org>
125948         * m4/wait-process.m4: New file.
125950 2003-10-20  Bruno Haible  <bruno@clisp.org>
125952         * lib/wait-process.h: New file, from GNU gettext.
125953         * lib/wait-process.c: New file, from GNU gettext.
125955 2003-10-19  Jim Meyering  <jim@meyering.net>
125957         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125958         HPUX 10.20.
125960 2003-10-18  Karl Berry  <karl@gnu.org>
125962         * config/config.guess: update from config.
125964 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125966         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125967         (getgroups): First arg is int, not size_t.
125968         Don't let 'free' mangle errno.
125970 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125972         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125974 2003-10-16  Karl Berry  <karl@gnu.org>
125976         * config/config.{guess,sub}: update from config.
125978 2003-10-16  Jim Meyering  <jim@meyering.net>
125980         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125981         memcpy.
125983 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125985         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125986         (SIZE_MAX): Remove.
125987         (new_exclude, add_exclude_file): Initial size no longer needs to
125988         be a power of 2.
125989         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125990         our own address arithmetic overflow checking.
125992         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125993         (fnmatch): Do not alloca more than 2000 wide characters;
125994         instead, use malloc for large buffers.
125995         Check for address arithmetic overflow, and return -1
125996         with errno set to ENOMEM in that case.
125997         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125998         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125999         instead, return -1.  Check for address arithmetic overflow.
126001 2003-10-14  Paul Eggert  <eggert@twinsun.com>
126003         Handle invalid suffixes and overflow independently, so that
126004         callers can treat them independently as needed.  Fix some bugs in
126005         suffix handling, e.g., "100k@" was not diagnosed as an invalid
126006         suffix for a human-readable blocksize.  The major caller-visible
126007         change is the addition of a new
126008         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
126009         that both overflow and suffix chars were found.
126011         * lib/human.c (humblock): Don't check separately for invalid suffix
126012         char; that is xstrtoumax's job (now that its bug is fixed).
126013         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
126014         INTMAX_MAX]: New macros.
126015         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
126016         TYPE_MAXIMUM): New macros.
126017         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
126018         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
126019         if overflow occurs, as it's what __strtol does and it's more useful
126020         in practice.
126021         (__xstrtol): If __strtol reports some error other than ERANGE,
126022         reflect it to the caller as LONGINT_INVALID.  If it reports
126023         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
126024         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
126025         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
126026         value.
126027         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
126028         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
126029         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
126030         [defined UINTMAX_MAX]: New macros.
126032 2003-10-14  Bruno Haible  <bruno@clisp.org>
126034         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
126036 2003-10-14  Bruno Haible  <bruno@clisp.org>
126038         * m4/sig_atomic_t: New file, from GNU gettext.
126039         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
126041 2003-10-14  Bruno Haible  <bruno@clisp.org>
126043         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
126044         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
126045         Also use volatile where needed.
126047 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126049         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
126050         Change maintainer from Bruno Haible to 'all'.
126052 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126054         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
126056 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126058         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
126059         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
126060         and define in terms of the other primitives.
126061         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
126062         (SIZE_MAX): Define if not already defined.
126063         (array_size_overflow): New function.
126064         (xalloc_die): Abort instead of exiting if 'error' returns.
126065         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
126066         (xmalloc, xrealloc): Use them.
126067         (xcalloc): Check for address arithmetic overflow.
126068         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
126069         a bit faster than strcpy.
126071 2003-10-10  Simon Josefsson  <jas@extundo.com>
126073         * modules/argp (Depends-on): Add restrict and strcase.
126075 2003-10-10  Simon Josefsson  <jas@extundo.com>
126077         * m4/argp.m4: Add AC_C_INLINE.
126079 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126081         Merge getpass from libc, plus a few fixes.
126083         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
126084         Include <stdbool.h>.
126085         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
126086         __fsetlocking to empty.
126087         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
126088         do include <bits/libc-lock.h>.
126089         Do not include <fcntl.h>; not needed.
126090         [_LIBC]: Include <wchar.h>.
126091         (NOTCANCEL_MODE): New macro.
126092         (flockfile, funlockfile) [_LIBC]: New macros.
126093         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
126094         [!_LIBC]: New macros.
126095         (call_fclose): New function.
126096         (getpass): Use it.  Save tty stream separately; this simplifies the
126097         code and makes it more reliable if stdin happens to equal stdout.
126098         Invoke __fsetlocking on tty.
126099         Handle thread cancellation if needed.
126100         Namespace cleanup (use __tcgetattr, __getline).
126101         Use bool for Booleans.
126102         [USE_IN_LIBIO]: Handle wide streams.
126103         [!_LIBC]: Unconditionally do the fseek, since we don't know what
126104         stream might go where.
126106         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
126107         doesn't have to include <stdio.h> before us.
126108         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
126109         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
126110         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
126111         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
126112         if not declared, so that we can use getpass.c code from libc without
126113         rewriting it.
126114         (flockfile, ftrylockfile, funlockfile): New macros.
126116 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126118         * modules/getpass: Depend on stdbool.
126120 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
126124 2003-10-07  Karl Berry  <karl@gnu.org>
126126         * config/config.{guess,sub}: update from config.
126128 2003-10-06  Jim Meyering  <jim@meyering.net>
126129             Bruno Haible  <bruno@clisp.org>
126131         This lets translators provide better translations for the
126132         "Written by ..." part of --version output.
126133         * lib/version-etc.h: Include stdarg.h.
126134         (version_etc_copyright): Declare as readonly.
126135         (version_etc): Make this function variadic with a NULL-terminated list
126136         of author name strings.
126137         (version_etc_va): New declaration.
126138         * lib/version-etc.c: Include stdarg.h, stdlib.h.
126139         (version_etc_copyright): Declare as readonly.
126140         (version_etc_va): New function. Provide a different translatable string
126141         for each possible number of authors < 10. Abbreviate when there are 10
126142         authors or more.
126143         (version_etc): Make this function variadic. Call version_etc_va.
126144         Suggestion from Gary V. Vaughan.
126146         * lib/long-options.h (parse_long_options): Change prototype: the
126147         authors string is moved to the end and becomes variadic.
126148         * lib/long-options.c: Include stdarg.h.
126149         (parse_long_options): Make this function variadic, too.
126150         Call version_etc_va, not version_etc.
126152 2003-10-06  Bruno Haible  <bruno@clisp.org>
126154         * modules/version-etc-2: Remove file.
126155         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
126157 2003-10-06  Bruno Haible  <bruno@clisp.org>
126159         * modules/fatal-signal: New file.
126160         * MODULES.html.sh (func_all_modules): Add fatal-signal.
126162 2003-10-06  Bruno Haible  <bruno@clisp.org>
126164         * m4/fatal-signal.m4: New file.
126165         * m4/signalblocking.m4: New file, from GNU gettext.
126167 2003-10-06  Bruno Haible  <bruno@clisp.org>
126169         * lib/version-etc-2.h: Remove file.
126170         * lib/version-etc-2.c: Remove file.
126172 2003-10-06  Bruno Haible  <bruno@clisp.org>
126174         * lib/fatal-signal.h: New file, from GNU gettext.
126175         * lib/fatal-signal.c: New file, from GNU gettext.
126177 2003-10-05  Paul Eggert  <eggert@twinsun.com>
126179         * README: Rework advice for preventing empty .o files.
126180         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
126181         not <sys/types.h>.
126183 2003-10-04  Karl Berry  <karl@gnu.org>
126185         * lib/argp*: update from libc.
126187 2003-10-04  Karl Berry  <karl@gnu.org>
126189         * config/config.{guess,sub}: update from config.
126191 2003-10-02  Bruno Haible  <bruno@clisp.org>
126193         * modules/lchown (Include): Add lchown.h.
126194         * modules/time_r (Include): Use "..." syntax.
126195         * modules/xgetdomainname (Include): Add xgetdomainname.h.
126197 2003-10-01  Simon Josefsson  <jas@extundo.com>
126199         * MODULES.html.sh (func_all_modules): Move gethostname from section
126200         'based on' to section 'lacking' POSIX:2001.
126202 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
126204         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
126205         to output mode on the same stream.
126207 2003-09-29  Paul Eggert  <eggert@twinsun.com>
126209         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
126210         Fix arg typo in previous patch.
126212 2003-09-28  Jim Meyering  <jim@meyering.net>
126214         * lib/error.c: Correct cpp indentation.
126216 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126218         * modules/free: New file.
126220 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126222         * m4/free.m4: New file.
126224 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126226         * lib/minmax.h (MIN, MAX)
126227         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
126228         Omit the special code that used __typeof__, since we worry that
126229         it could be more trouble than it's worth.  See:
126230         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
126231         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
126233         * lib/free.c: New file.
126235 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
126237         Trivial fixes to Makefile.am parts of module listings.
126238         * modules/strstr: Append strstr.h to lib_SOURCES.
126239         * modules/strcase: Likewise, for strcase.h.
126241 2003-09-27  Karl Berry  <karl@gnu.org>
126243         * config/mkinstalldirs: update from automake.
126245 2003-09-26  Paul Eggert  <eggert@twinsun.com>
126247         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
126248         (error_tail): Do not loop, reallocating temporary buffer, since
126249         the output cannot contain more wide characters than the input
126250         contains bytes, the size must be big enough already.  This avoids
126251         one potential size overflow calculation.  Check for size overflow
126252         when calculating temporary buffer size.  Free temporary buffer
126253         when done, if it was allocated with malloc; this plugs a memory
126254         leak.  Remove casts from void * to pointers, that are no longer
126255         needed now that we're assuming C89 or better.
126257         Merge error changes from glibc.
126259         * lib/error.c, error.h: Update copyright notice header to match glibc.
126260         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
126261         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
126262         Disable cancellation while printing error.
126263         * lib/error.h: Prepend __ to parameter names.
126265 2003-09-26  Jim Meyering  <jim@meyering.net>
126267         * lib/error.c (error_tail): Move some declarations
126268         into inner scope where the local variables are used.
126270 2003-09-26  Bruno Haible  <bruno@clisp.org>
126272         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
126273         stpncpy().
126274         Don't define stpncpy through config.h; it's now done through stpncpy.h.
126276 2003-09-26  Bruno Haible  <bruno@clisp.org>
126278         * lib/stpncpy.h (gnu_stpncpy): New declaration.
126279         (stpncpy): Define as alias for gnu_stpncpy.
126280         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
126282 2003-09-25  Simon Josefsson  <jas@extundo.com>
126284         * lib/xgetdomainname.h: New file.
126285         * lib/xgetdomainname.c: New file.
126287 2003-09-25  Simon Josefsson  <jas@extundo.com>
126288             Bruno Haible  <bruno@clisp.org>
126290         * modules/getdomainname: New file.
126291         * modules/xgetdomainname: New file.
126292         * MODULES.html.sh (func_all_modules): Add getdomainname,
126293         xgetdomainname.
126295 2003-09-25  Simon Josefsson  <jas@extundo.com>
126296             Bruno Haible  <bruno@clisp.org>
126298         * m4/getdomainname.m4: New file.
126300 2003-09-25  Simon Josefsson  <jas@extundo.com>
126301             Bruno Haible  <bruno@clisp.org>
126303         * lib/getdomainname.h: New file.
126304         * lib/getdomainname.c: New file.
126306 2003-09-25  Karl Berry  <karl@gnu.org>
126308         * lib/argp-fmtstream.c, argp-help.c: update from libc.
126310 2003-09-25  Karl Berry  <karl@gnu.org>
126312         * config/install-sh: update from automake.
126314 2003-09-25  Bruno Haible  <bruno@clisp.org>
126316         * modules/version-etc-2: New file, from modules/version-etc with
126317         modifications.
126318         * MODULES.html.sh (func_all_modules): Add version-etc-2.
126320 2003-09-25  Bruno Haible  <bruno@clisp.org>
126322         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
126323         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
126325 2003-09-24  Simon Josefsson  <jas@extundo.com>
126327         * modules/xgethostname: Add xgethostname.h.
126329 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126331         * lib/linebuffer.c (freebuffer): Don't free the argument, just
126332         the buffer associated with the argument.  Bug reported by
126333         Simon Josefsson.
126335 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126337         * README: Document assumptions that 'int' is at least 32 bits
126338         wide, that integer arithmetic is 2's complement without overflow,
126339         that there are no holes in integer values, that adding sizes of
126340         two nonoverlapping objects can't overflow, and that all-bits-zero
126341         yields scalar zero.  Fix spelling and capitalization typos.
126343 2003-09-19  Karl Berry  <karl@gnu.org>
126345         * lib/argp.h: update from libc.
126347 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126349         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
126350         to avoid spurious warnings like "AC_RUN_IFELSE was called before
126351         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
126353 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126355         * gnulib-tool: Use "test -h", not "test -L", for portability
126356         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
126357         (tags_regexp): Remove, since \| doesn't conform to POSIX.
126358         (sed_extract_prog): Issue s commands one-by-one, rather than
126359         using \| in one s command.
126361 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126363         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126364         input error, instead of returning NULL the next time we are called
126365         (and therefore losing track of errno).
126367 2003-09-16  Bruno Haible  <bruno@clisp.org>
126369         * gnulib-tool (func_create_testdir): Warn about duplicated
126370         dependencies.
126372 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126374         * modules/argmatch, modules/fatal, modules/obstack,
126375         modules/xalloc, modules/xgethostname: Sort dependencies by
126376         importance, not alphabetically.
126378 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126380         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126381         fails, so that the caller gets the proper errno.
126383         * lib/readutmp.c (read_utmp): Likewise.
126384         Check for fstat error.  Close stream and free storage
126385         when failing.
126387 2003-09-14  Karl Berry  <karl@gnu.org>
126389         * config/srclist.txt (strdup.c): disable for c89 changes.
126391 2003-09-14  Jim Meyering  <jim@meyering.net>
126393         * lib/getloadavg.c: Correct cpp indentation.
126394         * lib/strdup.c: Likewise.
126395         * lib/vasnprintf.c: Likewise.
126397 2003-09-14  Bruno Haible  <bruno@clisp.org>
126399         * modules/fwriteerror: New file.
126400         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126402 2003-09-14  Bruno Haible  <bruno@clisp.org>
126404         * lib/fwriteerror.h: New file.
126405         * lib/fwriteerror.c: New file.
126407 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126409         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126410         modules/xgethostname, modules/xalloc: Depend on exit.
126412 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126414         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126417         and AC_MINIX, too, so that their extensions are available.
126419         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126420         This macro has been superseded by gl_BACKUPFILE.
126422         More patches to assume C89 or better.
126424         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126426         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126427         unconditionally.
126428         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126429         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126430         Include <string.h>, <stdlib.h> unconditionally.
126431         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126432         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126433         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126434         headers or for string.h.
126435         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126436         or strtoul.
126438         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126439         headers.
126440         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126441         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126442         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126443         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126444         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126445         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126446         memcpy, memset.
126447         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126448         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126449         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126450         strtol.
126451         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126452         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126453         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126454         strtoul.
126456 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126458         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126459         * lib/obstack.c [!defined _LIBC]: Likewise.
126460         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126461         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126462         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126464         More changes to assume C89 or better.
126466         * lib/error.c (error_tail): Assume vprintf.
126468         * lib/argmatch.c (getenv): Remove decl.
126469         * lib/progreloc.c (get_full_program_name): Define via prototype.
126470         * lib/setenv.c (clearenv): Likewise.
126471         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126472         needed.
126473         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
126474         (malloc, memcpy): Remove decls.
126475         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
126476         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
126477         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126478         (memcpy): Remove macro.
126479         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
126480         (__P): Remove.  All uses removed.
126481         (PTR): Remove.  All uses changed to void *.
126482         (CHAR_BIT, NULL): Remove.
126483         (spaces, zeros, memset_space, memset_zero)
126484         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
126485         Remove.
126486         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
126487         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
126488         Define with prototype.
126489         Remove now-unnecessary prototype decl.
126490         (extra_args_spec): Assume ANSI C.  All uses changed.
126491         (extra_args_spec_iso): Remove.
126492         (my_strftime, emacs_strftimeu): Define via prototype.
126493         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
126494         unconditionally.
126495         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
126496         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
126497         (strtoul, strtol): Remove decls.
126498         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
126499         LONG_MAX): Remove.
126500         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126501         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
126502         (LOCALE_PARAM_PROTO): New macro.
126503         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
126504         (INTERNAL (strtol), strtol): Define with a prototype.
126505         (PARAMS): Remove.  All uses removed.
126506         * lib/tempname.c: Include <string.h> unconditionally.
126507         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
126508         * lib/xgethostname.c (main): Define with a prototype.
126509         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
126510         Include <stdlib.h> unconditionally.
126511         (calloc, malloc, realloc, free): Remove decls.
126512         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
126513         Include <stdlib.h> unconditionally.  Sort include file names.
126514         (strtod): Remove.
126515         (xstrtod): Define with a prototype.
126516         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
126517         (strtol, strtoul): Remove decls.
126519 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126521         More patches to assume C89 or better.
126522         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
126523         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
126524         string.h, memchr, STDC_HEADERS.
126526 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126528         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
126529         Include <stdlib.h>, <string.h> unconditionally.
126530         Remove now-unnecessary cast to char *.
126531         * lib/strnlen.c: Include <string.h> unconditionally.
126532         * lib/yesno.c (yesno): Define with a prototype.
126534 2003-09-11  Bruno Haible  <bruno@clisp.org>
126536         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
126538 2003-09-10  Jim Meyering  <jim@meyering.net>
126540         * lib/error.c: Correct indentation of cpp directives.
126542 2003-09-10  Bruno Haible  <bruno@clisp.org>
126544         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
126545         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
126546         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
126547         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
126548         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
126549         <stdlib.h> and <string.h> checks.
126550         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
126551         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
126553 2003-09-10  Bruno Haible  <bruno@clisp.org>
126555         * lib/strcspn.c: Include <string.h> unconditionally.
126556         * lib/strpbrk.c: Include <string.h> unconditionally.
126557         * lib/strstr.c: Include <string.h> unconditionally.
126558         * lib/unicodeio.c: Include <string.h> unconditionally.
126559         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
126560         * lib/unsetenv.c: Likewise.
126561         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
126562         * lib/yesno.c: Include <stdlib.h> unconditionally.
126563         (rpmatch): Add prototype.
126565 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126567         More patches to assume C89 or better.
126568         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
126569         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
126570         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
126571         or for string.h.
126572         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
126573         stdlib.h.
126574         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
126575         C headers.
126576         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
126577         string.h.
126578         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
126579         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
126580         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
126581         or for string.h.
126582         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
126583         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
126584         C headers.
126585         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
126586         memcpy.
126587         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
126588         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
126589         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
126590         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
126591         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
126592         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
126593         string.h, free.
126594         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
126595         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
126596         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
126597         C headers, or for string.h.
126598         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
126599         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
126600         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
126601         headers, memory.h, stdlib.h, string.h, strings.h.
126602         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
126603         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
126604         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
126605         strchr.
126606         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
126607         headers, memory.h, string.h.
126608         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126609         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126610         free.
126611         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126612         headers.
126613         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126614         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126615         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126616         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
126617         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
126619 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126621         More K&R removal.
126623         * lib/acosl.c (main): Use a prototype.
126624         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
126625         tanl.c: Likewise.
126627         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
126629         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
126630         (getopt, etopt_long, getopt_long_only, _getopt_internal)
126631         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
126632         with a prototype.
126633         * lib/getopt.c (const): Remove macro.
126634         Include <string.h> unconditionally.
126635         (my_index): Remove; all uses changed to strchr.
126636         (strlen): Remove decl.
126637         (exchange): Remove forward decl; no longer needed.
126638         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
126639         Define with prototype.
126640         * lib/getopt1.c (const): Remove macro.
126641         (getopt_long, getopt_long_only, main): Define with prototype.
126643         * lib/getugroups.c: Include <string.h> unconditionally.
126645         * lib/getusershell.c: Include <stdlib.h> unconditionally.
126646         (getusershell, setusershell, endusershell, readname, main):
126647         Define with prototypes.
126649         * lib/group-member.c: Include group-member.h first.
126650         Include <stdlib.h> unconditionally.
126652         * lib/hard-locale.c: Include hard-locale.h first.
126653         Include <stdlib.h>, <string.h> unconditionally.
126655         * lib/hash.c (free, malloc): Remove decls.
126656         Include <stdlib.h> unconditionally.
126658         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
126659         (getenv): Do not declare.
126661         * lib/idcache.c: Include <string.h> unconditionally.
126663         * lib/long-options.c: Include long-options.h first, to test interface.
126664         Include <stdlib.h> unconditionally.
126666         * lib/makepath.c: Include makepath.h first, to test interface.
126667         Include <stdlib.h> and <string.h> unconditionally.
126669         * lib/linebuffer.c: Include <stdlib.h>.
126670         (free): Remove decl.
126672         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
126673         stddef.h. rpl_malloc returns void *, not char *.
126674         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
126675         prototype.
126677         * lib/md5.h: Include <limits.h> unconditionally.
126678         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
126679         (__P): Remove; all uses removed.
126680         * lib/md5.c: Include "md5.h" first.
126681         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126682         md5_buffer, md5_process_bytes, md5_process_block):
126683         Define with prototypes.
126684         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126685         * lib/sha.c: Include "sha.h" first.
126686         Include <stdlib.h>, <string.h> unconditionally.
126688         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126689         * lib/memcmp.c (__ptr_t): Likewise.
126690         * lib/memrchr.c (__ptr_t): Likewise.
126691         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126692         Include <string.h> unconditionally.
126693         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126694         * lib/memchr.c: Include <stdlib.h> unconditionally.
126695         * lib/memchr.c (LONG_MAX): Remove.
126696         * lib/memrchr.c (LONG_MAX): Likewise.
126697         * lib/memchr.c (__memchr): Define via a prototype.
126698         * lib/memrchr.c (__memrchr): Likewise.
126699         * lib/memcmp.c (__P): Remove, and remove all uses.
126700         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126701         Remove forward decls; no longer needed.
126702         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126703         Use types required by C89 in prototype.
126705         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126706         * lib/savedir.c: Likewise.
126707         * lib/mkdir.c (free): Remove decl.
126708         * lib/rmdir.c (rmdir): Define with a prototype.
126709         * lib/savedir.c: Include savedir.h first, to test interface.
126711         * lib/mktime.c (STDC_HEADERS): Remove.
126712         Include <stdlib.h>, <string.h> unconditionally.
126714         * lib/modechange.c: Include <stdlib.h> unconditionally.
126715         (malloc): Remove decl.
126717         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126718         (free): Remove decl.
126720         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126721         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126722         (This type really should be intptr_t, but that's a C99ism.)
126723         (_obstack_memcpy): Remove: all uses changed to memcpy.
126724         Include <string.h> unconditionally.
126725         (struct obstack): Assume __STDC__ for types of members
126726         chunkfun, freefun, extra_arg.
126727         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126728         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126729         obstack_begin, obstack_specify_allocation,
126730         obstack_specify_allocation_with_arg, obstack_chunkfun,
126731         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126732         Remove unprototyped decls and the macros that use them.
126733         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126734         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126735         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126736         (defined __STDC__ && __STDC__)]:
126737         Remove nonprototyped code.
126738         Include <stdlib.h> unconditionally.
126739         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126740         _obstack_allocated_p, _obstack_free, obstack_free,
126741         _obstack_memory_used, print_and_abort):
126742         Define using prototypes.
126743         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126744         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126745         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126746         obstack_next_free, obstack_object_size, obstack_room) [0]:
126747         Remove unused, unprototyped code.
126749         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126751         * lib/physmem.c (physmem_total, physmem_available, main): Define
126752         with prototypes.
126754         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126755         (main): Define with a prototype.
126757         * lib/posixver.c (getenv): Remove decl.
126759         * lib/putenv.c (malloc): Returns void *, not char *.
126760         Include <string.h> unconditionally.
126761         (strchr, memcpy, NULL): Do not define.
126763         * lib/readtokens.c: Include readtokens.h first, to test interface.
126764         Include <stdlib.h>, <string.h> unconditionally.
126765         (init_tokenbuffer): Define with a prototype.
126767         * lib/regex.c (PARAMS): Remove.  All uses removed.
126768         All uses of _RE_ARGS removed, too.
126769         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126770         unconditionally.
126771         (bzero): Assume memset exists.
126772         (memcmp, memcpy, NULL): Remove.
126773         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126774         char, or assignments to local vars of type signed char.
126775         (init_syntax_once, PREFIX(extract_number_and_incr),
126776         PREFIX(print_partial_compiled_pattern),
126777         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126778         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126779         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126780         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126781         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126782         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126783         wcs_compile_range, byte_compile_range, truncate_wchar,
126784         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126785         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126786         count_mbs_length, wcs_re_match_2_internal,
126787         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126788         PREFIX(alt_match_null_string_p),
126789         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126790         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126791         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126792         now-unnecessary declaration, if any.
126793         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126794         regcomp, regexec):
126795         Remove now-unnecessary casts among pointer types.
126796         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126798         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126799         (free): Remove decl.
126801         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126803         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126804         (free): Remove decl.
126806         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126807         * lib/xgetcwd.c: Likewise.
126809         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126810         (free): Remove decl.
126812         * lib/strchrnul.c (strchrnul): Define with a prototype.
126813         Fix bug: c_in was not converted to char before searching.
126815         The following changes are not K&R related:
126817         * lib/group-member.h: Include <sys/types.h>, so that this file is
126818         self-contained.
126819         * lib/makepath.h: Likewise.
126821         * lib/getusershell.c (readname, default_index, line_size, readname):
126822         Use size_t, not int, for sizes.
126823         (readname): If the size overflows, report an error instead of
126824         looping forever.
126826 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126828         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126829         libc.
126831 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126833         * README: New section: portability guidelines.
126835 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126837         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126838         C89 spec.
126840 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126842         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126844 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126846         Assume C89 or better; remove K&R cruft.
126847         A few of these changes were first proposed by Derek Robert Price
126848         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126850         * lib/addext.c: Include <string.h> unconditionally.
126851         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126852         Don't declare getenv or malloc.
126854         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126855         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126856         (NULL): Remove.
126857         (find_stack_direction, alloca): Use prototypes.
126859         * lib/atexit.c (atexit): Define using a prototype.
126861         * lib/basename.c, dirname.c, stripslash.c:
126862         Include <string.h> unconditionally.
126864         * lib/bcopy.c: Include <stddef.h>.
126865         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126867         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126869         * lib/error.h (error, error_at_line, error_print_progname)
126870         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126871         * lib/error.c: Include error.h first, to check interface.
126872         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126873         (VA_START): Remove; all uses changeed to va_start.
126874         (exit, strerror): Remove decls.
126875         (error_print_progname): Prototype uncondionally.
126876         Don't include <errno.h>; no longer needed.
126877         (private_strerror): Remove.
126878         (error_tail): Always define.
126879         (error, error_at_line): Assume C89 or better; always use prototypes.
126880         * lib/fatal.c: Include "fatal.h" first, to test interface.
126881         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126882         (VA_START): Remove; all uses changed to va_start.
126883         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126884         this case.
126885         (exit): Remove decl.
126886         (fatal): Prototype unconditionally.  Assume va_start works.
126887         Abort at end, to pacify gcc.
126889         * lib/euidaccess.c (main): Define with a prototype.
126891         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126893         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126895         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126896         prototypes.
126897         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126898         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126899         (getenv): Remove decl.
126900         (fnmatch): Define using a prototype.
126901         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126902         (FCT): Define using a prototype.
126904         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126906         * lib/gethostname.c: Include <stddef.h>.
126907         (gethostname): Define with prototype.  Length is size_t, not int.
126909 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126911         Assume C89 or better; remove K&R cruft.
126912         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126913         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126914         string.h, getenv, malloc.
126915         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126916         headers.
126917         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126918         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126919         do not check for strerror.
126920         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126921         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126922         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126923         do not check for doprnt or vprintf.
126924         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126925         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126927 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126929         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126930         getversion.c should have been removed then, but was accidentally
126931         preserved.
126933         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126934         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126936 2003-09-08  Karl Berry  <karl@gnu.org>
126938         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126939                 config, forget about prep.
126941         * config/depcomp, missing: update from automake.
126943 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126945         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126946         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126948 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126950         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126951         copy_tm_result.  Bug reported by Simon Josefsson in
126952         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126954 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126956         * m4/time_r.m4: New file.
126957         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126958         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126959         is. Check for timegm declaration.
126960         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126961         Do not check for gmtime_r.
126962         Replace mktime if __mktime_internal does not exist and if mktime
126963         hasn't been replaced already.
126965 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126967         * lib/time_r.c, lib/time_r.h: New files.
126969         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126970         __localtime_r.
126971         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126972         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126974         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126975         __gmtime_r.
126976         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126977         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126978         Include <time_r.h>.
126980         * lib/timegm.c: Switch to glibc implementation, with the following
126981         changes:
126982         [defined HAVE_CONFIG_H]: Include <config.h>.
126983         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126984         (__mktime_internal) [!defined _LIBC]: New decl.
126985         (__gmtime_r) [!defined _LIBC]: New macro and function.
126986         (timegm): Use a prototype, since gnulib assumes C89.
126987         Do not bother declaring tmp to be const, as it's not really usefu.
126988         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126989         (timegm): Declare only if HAVE_DECL_TIMEGM.
126991 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126993         * MODULES.html.sh (func_all_modules): Add time_r.
126994         * modules/time_r: New file.
126995         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126996         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126998 2003-09-03  Paul Eggert  <eggert@twinsun.com>
127000         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
127001         Bug reported by Lute Kamstra in
127002         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
127004         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
127005         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
127006         course with correspondingly smaller numbers for tomorrow and
127007         yesterday.  From Tadayoshi Funaba.  Originally installed into
127008         sh-utils on 1999-08-07, but the patch got lost (I guess during the
127009         coreutils merge?).
127011 2003-08-31  Simon Josefsson  <jas@extundo.com>
127013         * modules/timegm: New file.
127014         * MODULES.html.sh (func_all_modules): Add timegm.
127016 2003-08-31  Simon Josefsson  <jas@extundo.com>
127018         * m4/timegm.m4: New file.
127020 2003-08-31  Simon Josefsson  <jas@extundo.com>
127022         * lib/timegm.h: New file.
127023         * lib/timegm.c: New file.  Based on
127024         wget-1.8.2/src/http.c:mktime_from_utc.
127026 2003-08-31  Karl Berry  <karl@gnu.org>
127028         * lib/argp.h: update from libc.
127030 2003-08-28  Bruno Haible  <bruno@clisp.org>
127032         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
127033         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
127034         followed by '#define fnmatch fnmatch_posix' gives an error.
127036 2003-08-28  Bruno Haible  <bruno@clisp.org>
127038         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
127039         warning on QNX, which defines O_BINARY to 000000.
127041 2003-08-27  Jim Meyering  <jim@meyering.net>
127043         * m4/mkstemp.m4: Require that the system mkstemp be able to create
127044         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
127045         would fail after 32.  Reported by Danny Levinson.  Details here:
127046         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
127048 2003-08-24  Bruno Haible  <bruno@clisp.org>
127050         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
127051         MSVC7 <stdio.h> is included later.
127053 2003-08-22  Simon Josefsson  <jas@extundo.com>
127055         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
127057 2003-08-20  Karl Berry  <karl@gnu.org>
127059         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
127061 2003-08-20  Bruno Haible  <bruno@clisp.org>
127063         * modules/progname: New file.
127064         * MODULES.html.sh (func_all_modules): Add progname.
127066 2003-08-20  Bruno Haible  <bruno@clisp.org>
127068         * lib/progname.h: New file, from GNU gettext.
127069         * lib/progname.c: New file, from GNU gettext.
127070         * lib/progreloc.c: New file, from GNU gettext.
127072 2003-08-19  Jim Meyering  <jim@meyering.net>
127074         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
127075         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
127077 2003-08-19  Bruno Haible  <bruno@clisp.org>
127079         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
127080         more.
127082 2003-08-19  Bruno Haible  <bruno@clisp.org>
127084         * lib/xstrdup.c: Assume <string.h> exists.
127086 2003-08-18  Paul Eggert  <eggert@twinsun.com>
127088         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
127089         in makefile rules.
127091 2003-08-18  Jim Meyering  <jim@meyering.net>
127093         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
127094         * m4/lib-ld.m4: Likewise.
127096 2003-08-18  Jim Meyering  <jim@meyering.net>
127098         * lib/setenv.h: Indent nested cpp directive.
127099         * lib/vasnprintf.c: Remove trailing blanks.
127101 2003-08-17  Simon Josefsson  <jas@extundo.com>
127103         * modules/xstrndup: New file.
127104         * MODULES.html.sh (func_all_modules): Add xstrndup.
127106 2003-08-17  Simon Josefsson  <jas@extundo.com>
127108         * modules/argp: Fix autoconf macro name. Add more dependencies.
127110 2003-08-17  Simon Josefsson  <jas@extundo.com>
127112         * m4/xstrndup.m4: New file.
127114 2003-08-17  Simon Josefsson  <jas@extundo.com>
127116         * m4/argp.m4: New file.
127118 2003-08-17  Simon Josefsson  <jas@extundo.com>
127119             Bruno Haible  <bruno@clisp.org>
127121         * lib/xstrndup.h: New file.
127122         * lib/xstrndup.c: New file.
127124 2003-08-17  Bruno Haible  <bruno@clisp.org>
127126         * modules/strndup (Files, Include): Add lib/strndup.h.
127128 2003-08-17  Bruno Haible  <bruno@clisp.org>
127130         * modules/euidaccess (Files): Add lib/euidaccess.h.
127132 2003-08-17  Bruno Haible  <bruno@clisp.org>
127134         * lib/strndup.h: New file.
127136 2003-08-17  Bruno Haible  <bruno@clisp.org>
127138         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
127139         like AC_GNU_SOURCE.
127140         * modules/extensions (configure.ac): Comment out the invocation of
127141         gl_USE_SYSTEM_EXTENSIONS.
127143 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127145         Merges from coreutils, etc.
127146         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
127147         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
127148         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
127149         fixing a typo.
127150         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
127151         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
127153 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127155         Document merge from coreutils.
127156         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
127157         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
127158         * modules/utime: Add m4/utimes-null.m4.
127160 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127162         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
127163         space, undoing this 2003-08-12 change:
127164         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127166 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127168         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
127169         strtoul.c from libc, undoing this 2003-08-12 change:
127170         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127172 2003-08-16  Jim Meyering  <jim@meyering.net>
127174         Merges from coreutils.
127175         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
127176         prefix.  Adjust cache variables similarly.  Create 500 rather than
127177         just 300 files, to exercise bug on Darwin6.5, too.
127178         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
127179         $missing_dir.
127180         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
127181         AM_SYS_POSIX_TERMIOS.
127182         Reported by mkc@mathdogs.com.
127183         Also change use of $am_cv_sys_posix_termios
127184         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
127185         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
127186         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
127187         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
127188         in /proc/mounts until it finds one with matching device number.  This
127189         is unnecessary when the FILE argument *is* a mount point.  No stat call
127190         is necessary in that case.  So, disable the statvfs-testing code on
127191         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127192         as RedHat bug# 84846.
127193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127194         to 1MB, so as not to render systems with no stack size limit (e.g.,
127195         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127196         Include <unistd.h>.  On some systems,
127197         it is required for the definition of _SC_PAGESIZE.
127199 2003-08-16  Jim Meyering  <jim@meyering.net>
127201         Merge from coreutils.
127202         * lib/xstrtoimax.c: #else #if -> #elif.
127203         * lib/xstrtoumax.c: Likewise.
127205 2003-08-16  Jim Meyering  <jim@meyering.net>
127207         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
127208         * m4/utimes.m4: Removed.
127209         * m4/utimes-null.m4: Renamed from utimes.m4.
127211         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127212         to 1MB, so as not to render systems with no stack size limit (e.g.,
127213         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127214         Include <unistd.h>.  On some systems,
127215         it is required for the definition of _SC_PAGESIZE.
127217 2003-08-16  Jim Meyering  <jim@meyering.net>
127218         and Paul Eggert  <eggert@cs.ucla.edu>
127220         Merges from coreutils, etc.
127222         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
127223         using the latest version from cvs.  This avoids problems with #line
127224         directives using a vendor (Sun) compiler.
127225         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
127226         Don't set GETGROUPS_LIB here; now it's
127227         done via getgroups.m4's wrapper function.
127228         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
127229         rather than just in sh-util/configure.in, so that the
127230         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
127231         same.
127232         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
127233         AC_FUNC_GETLOADAVG where to find getloadavg.c.
127234         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
127235         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
127236         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
127237         Remove code that is now done by the newly-required macros.
127238         Append $(EXEEXT) to DF_PROG.
127239         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
127240         Do not invoke or require the following here,
127241         since prereq.m4 or some gnulib .m4 now does this for us:
127242         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
127243         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
127244         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
127245         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
127246         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
127247         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
127248         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
127249         AC_FUNC_OBSTACK.
127250         Do not replace the following functions, as this is now the job
127251         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
127252         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
127253         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
127254         atexit getpass, strdup, getpagesize.
127255         Replace 'raise'.
127256         Do not check for the following functions, as this is now the job
127257         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
127258         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
127259         setregid.
127260         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
127261         Check for sys/sysctl.h.
127262         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
127263         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
127264         of checking for ssize_t ourselves.
127266         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
127267         Require every macro that gnulib/modules/* suggests for us.
127268         (jm_PREREQ_ADDEXT): New macro.
127269         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
127270         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
127272         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
127273         (gl_PHYSMEM): Use it.
127274         Also check for `table' function.
127275         Check for new headers and functions.
127276         Add check for sys/sysmp.h.
127277         With suggestions from Kaveh Ghazi.
127278         Ignore headers that are present but cannot be compiled.  This
127279         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
127280         C 5.4.
127282 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127284         Document merge from coreutils.
127285         * modules/userspec: Depend on posixver.
127286         * modules/strftime: Depend on tzset.
127288 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127290         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
127291         rather than tab, after '#' in shell-script copyright notices.
127292         Suggested by Bruno Haible.
127294 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127296         * config/srclist-update: Use three spaces, rather than tab, after '#'
127297         in shell-script copyright notices.  Suggested by Bruno Haible.
127298         Remove unnecessary parenthesization in regular expression.
127300 2003-08-15  Jim Meyering  <jim@meyering.net>
127302         Merge from coreutils.
127303         * lib/xgethostname.c: Include <stdlib.h>.
127304         (xghostname): Don't exit for anything other than memory-related
127305         failure; just return NULL.
127306         * lib/userspec.c: Include "posixver.h".
127307         (parse_user_spec): Accept `.' as a separator only
127308         in pre-POSIX-200112 mode.
127309         * lib/strtoimax.c: Use #elif rather than #else #if.
127310         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
127311         Remove function, now that we can rely on a working tzset function.
127312         [!_LIBC]: Ensure that the required autoconf test has been run.
127313         [!defined _NL_CURRENT && HAVE_STRFTIME]:
127314         Use underlying_strftime for %r.
127315         * lib/sha.c: Merge in some clean-up and optimization changes from
127316         glibc.
127317         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
127318         Ensure that it is a multiple of 64.
127319         Rearrange loop exit tests so as to avoid performing an
127320         additional fread after encountering an error or EOF.
127321         * lib/realloc.c: Update copyright date.
127323 2003-08-15  Jim Meyering  <jim@meyering.net>
127324         and Paul Eggert  <eggert@twinsun.com>
127326         Merge from coreutils.
127327         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
127328         member but strut utmpx does not.  Needed for AIX 4.3.3.
127329         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
127331 2003-08-15  Jim Meyering  <jim@meyering.net>
127332         and Paul Eggert  <eggert@cs.ucla.edu>
127334         Merges from coreutils, etc.
127335         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
127336         Require gl_FUNC_TZSET_CLOBBER.
127337         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
127338         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
127339         members.
127341 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127343         Help the merge from coreutils.
127344         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
127345         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
127346         * m4/tzset.m4: Use it too.
127348 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127350         * modules/tzset: New file.
127352 2003-08-14  Jim Meyering  <jim@meyering.net>
127354         Merges from coreutils.
127355         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
127356         variable names, rather than @FNMATCH_H@.
127357         * modules/alloca: Likewise for $(ALLOCA_H).
127359         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
127360         the three copies of the literal target, `fnmatch.h'.
127361         * modules/alloca (alloca.h): Likewise.
127363 2003-08-14  Jim Meyering  <jim@meyering.net>
127365         Merge from coreutils.
127366         * m4/tzset.m4: New file.
127367         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127368         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127369         otherwise, AIX 5.1 systems would end up using the latter.
127370         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127371         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127372         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127373         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127375 2003-08-14  Jim Meyering  <jim@meyering.net>
127377         Merge from coreutils.
127378         * lib/obstack.h: Whitespace changes.
127379         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127380         and xcalloc return values.
127381         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127382         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127383         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127384         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127385         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127386         error from mntctl.
127387         Use mntctl's return value to drive the entry-processing loop, since
127388         we can't rely on the value of the vmt_length member in the last
127389         entry.  On some systems doing so could result in exhausting
127390         virtual memory.  Based in part on a patch from Mike Jetzer.
127392 2003-08-14  Jim Meyering  <jim@meyering.net>
127393         and Paul Eggert  <eggert@twinsun.com>
127395         Merges from coreutils, plus other fixes.
127396         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127397         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127398         for credits and details.  Thanks to Kaveh Ghazi for helping
127399         to keep these files in sync.
127400         (ARRAY_SIZE): Define it.
127401         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127402         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127403         (memcasecmp): Don't assume size_t fits in unsigned int.
127404         Remove casts and duplicate code.
127405         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127406         (memcpy): Remove definition.
127407         Merge in some clean-up and optimization changes from glibc.
127408         [BLOCKSIZE]: Move definition to top of file.
127409         Ensure that it is a multiple of 64.
127410         Rearrange loop exit tests so as to avoid performing an
127411         additional fread after encountering an error or EOF.
127412         * lib/md5.h (md5_uintptr): Define.
127413         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127414         return to the initial working directory.  Preserve errno
127415         for caller.
127416         * lib/idcache.c: Include "xalloc.h".
127417         (xmalloc, xrealloc): Remove decls.
127418         (getuser): Remove casts no longer required in C89.
127419         * lib/human.c: Include stdio.h, for sprintf.
127420         * lib/group-member.c: Include "xalloc.h".
127421         (xmalloc, xrealloc): Remove decls.
127422         (get_group_info): Remove casts no longer required in C89.
127423         * lib/getusershell.c (readname): Remove casts no longer required in
127424         C89.
127425         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127426         * lib/getline.c: Whitespace fix, from coreutils.
127428 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127430         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127431         Check for isascii.
127433         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127434         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127435         Undo previous (whitespace-only) change.
127437 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127439         * lib/exclude.c: Include <ctype.h>
127440         (IN_CTYPE_DOMAIN): New macro.
127441         (is_space): New fn.
127442         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127443         and empty lines.
127445         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127446         Undo previous (whitespace-only) change.
127448 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127450         * config/srclist-update: Change update back to the old behavior,
127451         leaving whitespace alone.  Use one 'sed' command rather than a
127452         pipeline.
127453         (fixlicense): Now a variable, not a function.
127454         (remove_trailing_blanks): Remove.
127455         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127456         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127457         Undo previous (whitespace-only) change.
127459 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127461         Merge from coreutils.
127462         * modules/euidaccess: Add lib_SOURCES, include for new
127463         file euidaccess.h
127465 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127467         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127468         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127469         Normalize leading white space and remove trailing white space.
127471         Merge from coreutils
127472         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
127474         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
127475         0.12.1.  These files are now being upgraded automatically by
127476         ../config/srclist-update.
127478 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127480         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127481         Normalize leading white space and remove trailing white space.
127482         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
127483         notice, as per ../config/srclist-update.
127485         Merge from coreutils.
127486         * lib/euidaccess.h: New file.
127487         * lib/euidaccess.c: Include it.
127488         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
127489         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
127490         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
127492 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127494         * config/srclist-update: Add copyright notice.
127495         (remove_id_lines, remove_trailing_blanks): New constants.
127496         (fixfile): Use them to normalize spacing a bit in copied files.
127497         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127498         Normalize leading white space and remove trailing white space.
127500         * config/texinfo.tex: Sync with texinfo.
127502         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
127503         strtoul.c from libc, to merge coreutils whitespace changes.
127505         * config/srclist.txt: Get the following m4 files from gettext:
127506         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
127507         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
127508         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
127509         wint_t.m4.
127511 2003-08-12  Karl Berry  <karl@gnu.org>
127513         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
127514         been made.
127516 2003-08-11  Paul Eggert  <eggert@twinsun.com>
127518         * modules/gnu-source, m4/gnu-source.m4:
127519         Remove; we're assuming Autoconf 2.54 or later now.
127520         Suggested by Bruno Haible.
127521         * MODULES.html.sh (func_all_modules): Remove gnu-source.
127523 2003-08-11  Bruno Haible  <bruno@clisp.org>
127525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
127527 2003-08-11  Bruno Haible  <bruno@clisp.org>
127529         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
127530         (vasnprintf): Use it instead of wcslen.
127532 2003-08-11  Bruno Haible  <bruno@clisp.org>
127534         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
127535         value to ensure that _Bool promotes to int. Use #define for _Bool when
127536         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
127538 2003-08-10  Karl Berry  <karl@gnu.org>
127540         * lib/regex.h: update from libc (whitespace fix).
127542 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127544         Merge some files from coreutils.  These changes were
127545         originally made by Jim Meyering.
127546         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
127547         many older Unixes require this.
127548         * lib/alloca.c (alloca): Remove cast to argument of free;
127549         no longer needed in C89.
127550         * lib/alloca_.h, regex.h: Fix white space to match
127551         what GNU indent does.
127553 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127555         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
127556         apparently Emacs's Unicode mode got confused before my 2003-08-05
127557         checkin.
127559 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127561         * m4/extensions.m4: New file.
127562         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
127563         Require gl_USE_SYSTEM_EXTENSIONS.
127564         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
127565         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
127567 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127569         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
127570         * modules/extensions, modules/gnu-source: New files.
127571         * modules/timespec, modules/unlocked-io: Depend on extensions.
127573 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127575         * modules/restrict: New file.
127576         * MODULES.html.sh (func_all_modules): Add restrict.
127577         * modules/regex: Depend on restrict.
127579 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127581         * m4/restrict.m4: New file.
127582         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
127584 2003-08-07  Bruno Haible  <bruno@clisp.org>
127586         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
127587         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
127589 2003-08-07  Bruno Haible  <bruno@clisp.org>
127591         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
127592         makes the module 'getndelim2' compatible with the module 'getline'.
127594 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127596         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
127597         byte with "\201" to avoid glitches when editing that source file
127598         with multi-gnome-terminal.
127600 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127602         * lib/bumpalloc.h: Remove.
127604 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127606         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
127607         * modules/bumpalloc: Remove.
127609 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127611         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127612         GNU coding style.
127614         Merge from coreutils.
127615         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127616         1. From glibc.
127617         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
127618         from Karl Berry, implemented by Jim Meyering.
127619         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
127620         from Dmitry V. Levin.
127621         Remove anachronistic cast of xrealloc.
127622         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
127623         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
127624         type. Otherwise, it wouldn't compile with at least /bin/cc on
127625         ymp-cray-unicos9.0.2.X.
127626         Combine two mostly-identical uses of alloca into one.
127627         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
127629 2003-08-04  Dave Love  <d.love@dl.ac.uk>
127631         [From Emacs.]
127633         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
127634         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
127635         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
127636         obsolete NLIST_NAME_UNION.
127637         [__GNU__]: Undef BSD and FSCALE.
127638         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
127640 2003-08-03  Paul Eggert  <eggert@twinsun.com>
127642         * lib/stdbool_.h (_Bool): Make it signed char, instead of
127643         an enum type, so that it's guaranteed to promote to int.  See:
127644         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
127646 2003-08-03  Karl Berry  <karl@gnu.org>
127648         * config/depcomp: update from automake.
127650 2003-07-31  Paul Eggert  <eggert@twinsun.com>
127652         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
127653         (strerror): Don't assume that a printable int fits in 14 bytes.
127655 2003-07-31  Bruno Haible  <bruno@clisp.org>
127657         * modules/getpass-gnu: New file.
127658         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
127660 2003-07-31  Bruno Haible  <bruno@clisp.org>
127662         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
127664 2003-07-24  Karl Berry  <karl@gnu.org>
127666         * config/missing: update from automake.
127668 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
127669             Bruno Haible  <bruno@clisp.org>
127671         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
127672         * lib/getline.c (getline, getdelim): Likewise.
127673         Remove _GNU_SOURCE define; now it's defined in config.h through
127674         m4/getline.m4.
127676 2003-07-23  Karl Berry  <karl@gnu.org>
127678         * config/config.sub: update from prep.
127680 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127682         * modules/xalloc (Depends-on): Add exitfail.
127683         * modules/xmemcoll: Likewise.
127685 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127687         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127688         over-parenthesization in macros.
127690         Sync with coreutils.
127692         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127693         required by C99.
127695         Use `exit_failure' for xalloc and xmemcoll instead of their own
127696         private exit-failure variables.
127697         * lib/xalloc.h (xalloc_exit_failure): Remove.
127698         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127699         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127700         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127701         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127702         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127704 2003-07-20  Jim Meyering  <jim@meyering.net>
127706         * modules/closeout (Depends-on): Add exitfail.
127707         Suggestion from Bruno Haible.
127709 2003-07-19  Karl Berry  <karl@gnu.org>
127711         * config/config.sub: update from prep.
127713 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127715         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127716         Remove.
127717         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127718         to test that it can stand by itself.  Include "exitfail.h".
127719         Clients should set exit_failure instead.
127720         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127722 2003-07-18  Bruno Haible  <bruno@clisp.org>
127724         * modules/getndelim2: New file.
127725         * modules/getline: Share files with module getndelim2.
127726         * modules/getnline: Depend on getndelim2 instead of sharing files with
127727         it. Add getnline.c to lib_SOURCES.
127728         * MODULES.html.sh (func_all_modules): Add getndelim2.
127730 2003-07-18  Bruno Haible  <bruno@clisp.org>
127732         * m4/getndelim2.m4: New file.
127733         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127734         invoke gl_PREREQ_GETNDELIM2.
127735         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127736         gl_PREREQ_GETNDELIM2.
127737         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127738         gl_GETNDELIM2.
127740 2003-07-18  Bruno Haible  <bruno@clisp.org>
127742         * lib/getndelim2.h: New file.
127743         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127744         getndelim2.h.
127745         (getndelim2): Make non-static. Change return type to ssize_t.
127746         * lib/getline.h: Change argument names.
127747         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127748         * lib/getnline.c: Include getndelim2.h.
127750 2003-07-18  Andreas Schwab  <schwab@suse.de>
127752         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127754 2003-07-17  Karl Berry  <karl@gnu.org>
127756         * config/config.sub: update from prep.
127758 2003-07-17  Bruno Haible  <bruno@clisp.org>
127760         * modules/getnline: New file.
127761         * modules/getline: Add lib/getndelim2.c to source file list.
127762         * MODULES.html.sh (func_all_modules): Add getnline.
127764 2003-07-17  Bruno Haible  <bruno@clisp.org>
127766         * m4/getnline.m4: New file.
127768 2003-07-17  Bruno Haible  <bruno@clisp.org>
127770         * m4/Makefile.am.in: Remove file.
127771         * m4/Makefile.am: Remove file.
127772         * m4/Makefile.in: Remove file.
127774 2003-07-17  Bruno Haible  <bruno@clisp.org>
127776         * lib/getnline.h: New file.
127777         * lib/getnline.c: New file.
127778         * lib/getndelim2.c: New file, extracted from getline.c.
127779         (getndelim2): Renamed from getdelim2, with added nmax argument.
127780         * lib/getline.c: Include getndelim2.c.
127781         (getdelim2): Moved out to getndelim2.c.
127782         (getline, getdelim): Update.
127784 2003-07-17  Bruno Haible  <bruno@clisp.org>
127786         * lib/Makefile.am: Remove file.
127787         * lib/Makefile.in: Remove file.
127789 2003-07-17  Bruno Haible  <bruno@clisp.org>
127791         * configure.in: Remove file.
127792         * Makefile.in: Remove file.
127794 2003-07-17  Bruno Haible  <bruno@clisp.org>
127796         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127798 2003-07-16  Karl Berry  <karl@gnu.org>
127800         * config/srclist-update: was running fixlicense twice, which caused
127801                 texinfo.tex to be nullified for some reason.  Simplify,
127802                 $gplsrc is no longer needed as far as I can see?
127804 2003-07-16  Jim Meyering  <jim@meyering.net>
127806         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127808 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127810         * config/srclist.txt: Get the following files from gettext-runtime/intl
127811         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127812         ref-del.sin.  From Bruno Haible.
127813         * config/srclist-update (fixfile): Change grep pattern again, since the
127814         previous fix didn't work (there was another trailing $).  Use
127815         '[$]' to escape the $s.
127817 2003-07-15  Karl Berry  <karl@gnu.org>
127819         * lib/vasnprintf.c: update from gettext.
127821 2003-07-15  Karl Berry  <karl@gnu.org>
127823         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127824         gets expanded when surrounded by '$'.
127826 2003-07-15  Jim Meyering  <jim@meyering.net>
127828         * modules/save-cwd: Don't depend on error.  From Derek Price.
127830 2003-07-15  Jim Meyering  <jim@meyering.net>
127832         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127834 2003-07-14  Simon Josefsson  <jas@extundo.com>
127836         * modules/mempcpy: New file.
127837         * MODULES.html.sh (func_all_modules): Add mempcpy.
127839 2003-07-14  Simon Josefsson  <jas@extundo.com>
127841         * m4/mempcpy.m4: New file.
127843 2003-07-14  Simon Josefsson  <jas@extundo.com>
127845         * lib/mempcpy.h: New file.
127846         * lib/mempcpy.c: New file.
127848 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127850         * modules/getdate, modules/posixtm: Depend on mktime.
127852 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127854         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127855         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127856         unicodeio.c, unicodeio.h, unlocked-io.h:
127857         Switch from LGPL to GPL.
127859 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127861         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127862         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127863         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127864         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127865         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127866         updated automatically by ../config/srclist-update.  This changes
127867         their license from LPGL to GPL.
127869 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127871         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127872         assumed to refer to the root of the most recent stable gettext version.
127873         * config/srclistvars.sh: Add defaults for eggert.
127874         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127875         Match "This program" as well as "The program".  This is needed
127876         for gettext.
127878 2003-07-14  Jim Meyering  <jim@meyering.net>
127880         Don't emit diagnostics.  Let callers do that.
127881         * lib/save-cwd.c: Don't include "error.h".
127882         (save_cwd): Don't call error.  Ensure that errno is valid
127883         when returning nonzero.
127885         * lib/save-cwd.h (restore_cwd): Update prototype.
127886         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127887         Simplify.  Don't call error upon failure.  Let callers do that.
127888         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127889         when auditing is enabled.  But don't bother updating the #if.
127891 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127893         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127894         it breaks C++ compilation.
127895         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127897 2003-07-10  Simon Josefsson  <jas@extundo.com>
127899         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127901 2003-07-10  Jim Meyering  <jim@meyering.net>
127903         * m4/clock_time.m4: Remove trailing blank.
127904         * m4/intmax_t.m4: Likewise.
127906 2003-07-10  Jim Meyering  <jim@meyering.net>
127908         * lib/vasnprintf.c: Remove trailing blanks.
127909         Make cpp indentation consistent.
127911 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127913         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127914         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127915         Switch from LGPL to GPL.
127917 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127919         * config/srclist.txt: Sort sublists.  Add
127920         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127921         that differ from gnulib for one reason or another; we'd like this list
127922         to be smaller but for now let's document what we have.
127924 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127926         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127927         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127928         and sweeter "eval x=$x".
127929         * config/srclist.txt: Get lib/argp* from glibc.
127931 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127933         * lib/mktime.c: Fix some boundary cases and remove need for floating
127934         point.
127936         Issue a compile-time diagnostic if time_t is floating point, or if
127937         two's complement arithmetic is not in effect, or if arithmetic
127938         right shift does not propagate the sign.  These assumptions were
127939         all in the original code but they weren't checked.
127941         (TIME_T_MIDPOINT, verify): New macros.
127942         (__isleap): Remove; it has integer overflow problems.
127943         (leapyear): New function, without those problems.
127944         (ydhms_tm_diff): Remove; splitting into two parts.
127945         (ydhms_diff): New function, containing the arithmetic part of
127946         the old ydhms_tm_diff function.  Issue a compile-time
127947         diagnostic if we are not using C99 integer division.
127948         Avoid casts when possible.
127949         (guess_time_tm): New function, containing the checking part of
127950         the old ydhms_tm_diff function.  Return the new value, rather than
127951         the difference between it and the old.  Accept a new argument T
127952         so that *T specifies the old value.  Check for overflow in the result.
127954         (__mktime_internal): Use a time_t offset, not a long int offset.
127955         This undoes the 2003-06-04 change, which is no longer needed now
127956         that we have better overflow checking.
127957         (localtime_offset): Likewise.
127959         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127960         and long are 64-bit but int is only 32-bit.
127961         (ydhms_diff): Use long int to store year1 and yday1.
127962         Issue a compile-time diagnostic if long int is not wide enough.
127964         (__mktime_internal): Use long int to store adjusted year and yday.
127965         Use plain C rather than preprocessor commands, if that doesn't
127966         affect efficiency.
127967         Check for overflow (and try to repair) after each probe
127968         rather than checking only at the very end.  This avoids some bugs
127969         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127970         does not equal GMT offset at maximum time).
127971         Use integer to check for overflow rather than floating point; this
127972         is more portable to non-IEEE hosts, and is a tad faster.
127973         When we detect that we are oscillating between two values,
127974         don't check whether tm_isdst has the requested value, since
127975         we already know the answer.  When tm_isdst has the wrong value,
127976         use a different heuristic to find the right one, based on the
127977         extreme values actually observed in practice in tz2003a,
127978         rather than the (overly optimistic) "previous 3 calendar quarters".
127980         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127981         "T const" to accommodate glibc style.
127982         (check_result): Use less-confusing report format.  "long" -> "long int.
127983         (main): Likewise.
127984         Don't loop if the iteration overflows time_t.
127985         Allow a negative step in the iteration.
127987 2003-07-06  Karl Berry  <karl@gnu.org>
127989         * config/depcomp: update from automake.
127990         * config/config.sub: update from prep.
127992 2003-07-03  Karl Berry  <karl@gnu.org>
127994         * config/config.guess: update from prep.
127996 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127998         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127999         xreadlink.c now includes it unconditionally.
128001 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128003         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
128004         having it depend on HAVE_SYS_TYPES_H.
128006 2003-07-01  Bruno Haible  <bruno@clisp.org>
128008         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
128009         <sys/types.h> should be sufficient.
128010         Reported by Paul Eggert.
128012 2003-06-26  Karl Berry  <karl@gnu.org>
128014         * config/depcomp: update from automake.
128016 2003-06-26  Bruno Haible  <bruno@clisp.org>
128018         * modules/human: Depend on module stdbool.
128020 2003-06-25  Bruno Haible  <bruno@clisp.org>
128022         * modules/readlink: New file.
128023         * modules/xreadlink: Depend on it.
128024         * MODULES.html.sh (func_all_modules): Add readlink.
128026 2003-06-25  Bruno Haible  <bruno@clisp.org>
128028         * m4/readlink.m4: New file.
128030 2003-06-25  Bruno Haible  <bruno@clisp.org>
128032         * lib/readlink.c: New file.
128034 2003-06-22  Karl Berry  <karl@gnu.org>
128036         * config/srclist.txt: update mkinstalldirs from automake.
128037         * config/mkinstalldirs: update.
128039 2003-06-22  Bruno Haible  <bruno@clisp.org>
128041         Portability to mingw32.
128042         * m4/ssize_t.m4: New file, from GNU gettext.
128043         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
128044         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
128046 2003-06-22  Bruno Haible  <bruno@clisp.org>
128048         * modules/safe-read: Add m4/ssize_t.m4.
128049         * modules/xreadlink: Add m4/ssize_t.m4.
128051 2003-06-20  Bruno Haible  <bruno@clisp.org>
128053         Assume C89, so PARAMS isn't needed.
128054         * lib/unicodeio.h (PARAMS): Remove.
128055         * lib/unicodeio.c: Don't use PARAMS.
128057 2003-06-18  Karl Berry  <karl@gnu.org>
128059         * config/config.{guess,sub}: update from prep.
128061 2003-06-18  Jim Meyering  <jim@meyering.net>
128063         Merge changes from coreutils.
128064         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
128065         Remove explicit declarations of xmalloc and realloc.
128066         Include xalloc.h.
128067         (read_utmp): Remove anachronistic cast of xmalloc.
128069 2003-06-17  Paul Eggert  <eggert@twinsun.com>
128071         Assume C89, so PARAMS isn't needed.
128072         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
128073         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
128074         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
128075         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
128076         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
128077         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
128078         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
128079         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
128080         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
128081         lib/xstrtod.h, lib/xstrtol.h: Likewise.
128082         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
128083         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
128084         no longer needed. Anyway, config.h should always be included before any
128085         other file.
128087 2003-06-11  Simon Josefsson  <jas@extundo.com>
128089         * modules/sysexits: New file.
128090         * MODULES.html.sh (func_all_modules): Add sysexits.
128092 2003-06-11  Simon Josefsson  <jas@extundo.com>
128094         * lib/sysexit_.h: New file.
128096 2003-06-11  Derek Price  <derek@ximbiot.com>
128098         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
128099         necessary.
128101 2003-06-11  Bruno Haible  <bruno@clisp.org>
128103         * m4/sysexits.m4: New file.
128105 2003-06-10  Simon Josefsson  <jas@extundo.com>
128107         * lib/argp.h: New file, from glibc.
128108         * lib/argp-ba.c: New file, from glibc.
128109         * lib/argp-eexst.c: New file, from glibc.
128110         * lib/argp-fmtstream.c: New file, from glibc.
128111         * lib/argp-fmtstream.h: New file, from glibc.
128112         * lib/argp-fs-xinl.c: New file, from glibc.
128113         * lib/argp-help.c: New file, from glibc.
128114         * lib/argp-namefrob.h: New file, from glibc.
128115         * lib/argp-parse.c: New file, from glibc.
128116         * lib/argp-pv.c: New file, from glibc.
128117         * lib/argp-pvh.c: New file, from glibc.
128118         * lib/argp-xinl.c: New file, from glibc.
128120 2003-06-10  Simon Josefsson  <jas@extundo.com>
128122         * modules/strchrnul: New file.
128124 2003-06-10  Simon Josefsson  <jas@extundo.com>
128126         * modules/argp: New file.
128128 2003-06-10  Simon Josefsson  <jas@extundo.com>
128130         * m4/strchrnul.m4: New file.
128132 2003-06-10  Simon Josefsson  <jas@extundo.com>
128134         * lib/strchrnul.h: New file.
128135         * lib/strchrnul.c: New file.
128137 2003-06-10  Bruno Haible  <bruno@clisp.org>
128139         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
128141 2003-06-07  Karl Berry  <karl@gnu.org>
128143         * config/config.{guess,sub}: update from prep.
128145 2003-06-07  Jim Meyering  <jim@meyering.net>
128147         * modules/strtod: Use $(...) notation, not @...@ for
128148         AC_REPLACE'd variables.
128149         * modules/localcharset: Likewise.
128151 2003-06-07  Jim Meyering  <jim@meyering.net>
128153         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
128154         in place of my name in the copyright comment.
128155         Remove definition and uses of __P.
128157         From coreutils.
128158         * lib/stat.c: Don't declare xmalloc explicitly.
128159         Instead, include "xalloc.h".
128160         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
128161         xrealloc, and xcalloc return values.
128162         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
128163         Improve comment.
128164         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
128166 2003-06-07  Bruno Haible  <bruno@clisp.org>
128168         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
128169         avoid AC_CONFIG_LINKS.
128170         * modules/fnmatch (Makefile.am): Use explicit creation rule for
128171         fnmatch.h, to avoid AC_CONFIG_LINKS.
128172         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
128174 2003-06-07  Bruno Haible  <bruno@clisp.org>
128176         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
128177         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
128178         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128179         directory.
128180         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
128181         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128182         directory.
128184 2003-06-06  Jim Meyering  <jim@meyering.net>
128186         Merge from coreutils.
128187         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
128188         Consolidate declarations and initializations of *_base* locals.
128190         Merge from coreutils.
128191         This avoids a core dump on systems without GNU putenv,
128192         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128193         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128194         (unsetenv): New static function, from GNU libc.
128195         (rpl_putenv): Use it.
128197         * lib/modechange.c: Remove trailing blanks.
128199         Merge from coreutils.
128200         * lib/fsusage.c: Remove declaration of statfs.
128201         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
128203         * lib/posixtm.c: Include <stdbool.h> unconditionally.
128205 2003-06-06  Jim Meyering  <jim@meyering.net>
128207         * lib/stdbool_.h: Renamed from stdbool.h.in.
128209 2003-06-06  Jim Meyering  <jim@meyering.net>
128210             Bruno Haible  <bruno@clisp.org>
128212         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
128213         Adjust Makefile.am snippet not to redirect directly to target.
128214         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
128216 2003-06-05  Paul Eggert  <eggert@twinsun.com>
128218         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
128219         mismatch, look in future quarters as well as past.  This fixes a
128220         bug when processing fall-backwards gaps immediately after a long
128221         period of daylight-saving time.
128223         * lib/mktime.c: Assume freestanding C89 or better.
128224         (HAVE_LIMITS_H): Remove.  Assume it's 1.
128225         (__P): Remove; not used.
128226         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
128227         (mktime, not_equal_tm, print_tm, check_result,
128228         main): Use prototypes.  Use const * where appropriate.
128229         (main): Fix typo in testing code that uncovered by above changes.
128230         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
128232 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128234         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
128235         locale.h, localeconv.  This merges changes from coreutils.
128237         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
128238         It can be removed after the next Autoconf is released.
128239         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
128240         needed.
128242 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128244         * lib/mktime.c: Fix Debian bug 177940
128245         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
128246         (localtime_offset): Now long int, not time_t, because we want it
128247         to be guaranteed to be signed.  All uses changed.
128248         (__mktime_internal): If overflow would occur when adding offset,
128249         don't add it.
128251         Merge 'human' changes from coreutils.  Rewrite to support
128252         locale-specific notations like thousands separators.
128253         * lib/human.c: Simplify authorship notice.
128254         Include human.h immediately after config.h.
128255         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
128256         <limits.h>: Do not include, since human.h does.
128257         (SIZE_MAX, UINTMAX_MAX): New macros.
128258         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
128259         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
128260         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
128261         (power_letter): Renamed from suffixes.
128262         (generate_suffix_backwards): Remove.
128263         (adjust_value): Now takes int style (because of human.h changes)
128264         and long double value (for greater precision on some platforms).
128265         (group_number): New function.
128266         (human_readable): Use it.  Use integer options, not enum.
128267         Put the options before the sizes in the arg list.
128268         Support all the new options.
128269         The old human_readable function has been removed;
128270         use inttostr.h instead.
128271         (human_readable, default_block_size, humblock):
128272         Use uintmax_t, not int, for block sizes.
128273         (human_readable_inexact, block_size_types): Remove.
128274         (block_size_opts): New constant.
128275         (human_options): Renamed from human_block_size, with new signature
128276         that allows block sizes up to UINTMAX_MAX.  All callers changed.
128277         * lib/human.h: Add copyright and authorship notice.
128278         Include <limits.h> and <stdbool.h> unconditionally.
128279         (PARAMS): Remove.  All uses removed.
128280         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
128281         (enum human_inexact_style): Remove tag; now a nameless enum.
128282         (human_floor, human_ceiling, human_round_to_even): Now have
128283         values 2, 0, 1 rather than -1, 1, 0.
128284         (human_group_digits, human_suppress_point_zero, human_autoscale,
128285         human_base_1024, human_SI, human_B): New constants.
128286         (human_readable_inexact, human_block_size): Remove.
128287         (human_readable): Size args are now uintmax_t, not int.
128288         (human_options): New decl.
128290         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
128291         unnecessary now that we assume C89 or better.  This change
128292         imported from coreutils.
128294         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128295         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
128296         in the 2003-05-30 sync from glibc.
128298         .h files should stand alone, but we shouldn't include <sys/types.h>
128299         if we can get away with just <stddef.h>.
128301         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
128302         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
128303         rather than <sys/types.h>, as we merely need size_t.
128304         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
128305         to get size_t.
128306         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
128307         Include <stdio.h>, to get FILE.
128308         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
128309         memcasecmp.h has included <stddef.h> and all we need is size_t.
128310         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
128311         our interface, instead of including <sys/types.h>
128313 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128315         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
128316         now, as glibc mktime is buggy on non-glibc systems.
128318 2003-06-03  Karl Berry  <karl@gnu.org>
128320         * config/config.sub: update from prep.
128322 2003-06-02  Paul Eggert  <eggert@twinsun.com>
128324         [from coreutils]
128325         Fix some minor time-related bugs with POSIX time arguments.
128326         Some valid time stamps were being rejected (notably -1, and
128327         time stamps before 1900 on 64-bit hosts).  And some invalid
128328         time stamps were being accepted, e.g. September 31.
128330         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
128331         that we can return (time_t) -1 successfully.
128332         * lib/posixtm.c: Likewise.
128333         [HAVE_STDBOOL_H]: Include <stdbool.h>.
128334         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
128335         (t): Remove static var.
128336         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
128337         of static var.  All uses changed.
128338         (year): Do not reject years before 1900; they can occur with
128339         64-bit time_t.
128340         (posix_time_parse): Do not check for out-of-range components;
128341         that is now the caller's responsibility, since our checks were
128342         only approximations.
128343         (posixtime): Use mktime to check for out-of-range components,
128344         since it knows them exactly.
128345         If mktime returns (time_t) -1, check whether an error actually occurred
128346         by invoking localtime on -1.
128347         (main) [TEST_POSIXTIME]: Check for input data errors, and report
128348         posixtime failures better.
128349         Improve the test data (in comments only).
128351 2003-06-02  Karl Berry  <karl@gnu.org>
128353         * config/mkinstalldirs (version): new variable.
128354         (--version): new option.
128355         (usage): improve message.
128357 2003-05-30  Karl Berry  <karl@gnu.org>
128359         * lib/mktime.c: update from libc.
128361 2003-05-30  Bruno Haible  <bruno@clisp.org>
128363         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128364         * config/config.rpath: Upgrade to gettext-0.12.1.
128366 2003-05-30  Bruno Haible  <bruno@clisp.org>
128368         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128369         * m4/nls.m4: New file, from gettext-0.12.1.
128370         * m4/po.m4: New file, from gettext-0.12.1.
128371         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128373 2003-05-30  Bruno Haible  <bruno@clisp.org>
128375         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128376         * lib/localcharset.h: Likewise.
128377         * lib/localcharset.c: Likewise.
128379 2003-05-29  Karl Berry  <karl@gnu.org>
128381         * config/config.rpath: update from gettext.
128383 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128385         Assume the headers required for C89 freestanding compilers.
128386         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128387         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128388         * m4/human.m4 (gl_HUMAN): Likewise.
128389         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128390         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128391         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128392         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128393         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128394         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128396 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128398         Assume the headers required for C89 freestanding compilers.
128399         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128400         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128401         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128402         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128403         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128404         define, since <limits.h> is guaranteed to do that.
128405         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128406         * lib/exclude.c: Include <stdbool.h> unconditionally.
128407         * lib/tempname.c: Include <stddef.h> unconditionally.
128408         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128409         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128410         <stddef.h> does that.
128411         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128412         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128413         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128414         needed.
128415         * lib/xstrtol.c: Likewise.
128416         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128417         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128419         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128420         warnings on some platforms.
128422         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128423         arbitrarily.
128425 2003-05-26  Jim Meyering  <jim@meyering.net>
128427         Merge in a change from coreutils:
128428         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128429         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128430         that condition, rather than `-1' which is slightly misleading.
128431         Change the name of the cache variable to have the gl_ prefix.
128432         Prompted by a patch from Richard Dawe for DJGPP.
128434 2003-05-24  Karl Berry  <karl@gnu.org>
128436         * config/config.guess: update from prep.
128438 2003-05-22  Karl Berry  <karl@gnu.org>
128440         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128442 2003-05-20  Karl Berry  <karl@gnu.org>
128444         * config/config.guess: update from prep.
128446 2003-05-18  Karl Berry  <karl@gnu.org>
128448         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128449         might actually be set by the user.
128451         * config/depcomp, install-sh, mdate-sh: update from automake.
128453 2003-05-17  Bruno Haible  <bruno@clisp.org>
128455         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128456         invalid expansion for AC_EGREP_CPP.
128457         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128458         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128459         Suggested by Akim Demaille <akim@epita.fr> in
128460         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128462 2003-05-12  Jim Meyering  <jim@meyering.net>
128464         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128465         the space-padded-by-default conversion specifiers, %e, %k, %l.
128467 2003-05-12  Bruno Haible  <bruno@clisp.org>
128469         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128470         the string is longer than 4 KB.
128472 2003-05-11  Karl Berry  <karl@gnu.org>
128474         * config/config.{guess,sub}: update from prep.
128476 2003-05-09  Bruno Haible  <bruno@clisp.org>
128478         * modules/error: Add m4/strerror_r.m4 to file list.
128480 2003-05-03  Bruno Haible  <bruno@clisp.org>
128482         Upgrade to Unicode-4.0.
128483         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
128484         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
128485         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
128486         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
128487         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
128488         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
128489         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
128490         Change width of U+E0100..U+E01EF from 1 to 0.
128492 2003-04-25  Jim Meyering  <jim@meyering.net>
128494         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
128495         of type size_t, not int.
128497 2003-04-25  Bruno Haible  <bruno@clisp.org>
128499         * lib/copy-file.c: Include <stddef.h>, for size_t.
128501 2003-04-21  Paul Eggert  <eggert@twinsun.com>
128503         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
128504         code which expansion is under static control.  Patch imported from
128505         Akim Demaille's patch to Bison; see
128506         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
128508 2003-04-14  Bruno Haible  <bruno@clisp.org>
128510         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
128512 2003-04-11  Jim Meyering  <jim@meyering.net>
128514         Merge changes from Coreutils.
128516         2003-03-22  Jim Meyering  <jim@meyering.net>
128518         * lib/strftime.c (widen): Cast alloca return value to proper type.
128520         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
128522         From GNU libc.
128523         * lib/strftime.c (my_strftime): Handle very large width
128524         specifications for numeric values correctly.  Improve checks for
128525         overflow.
128527         2003-01-19  Jim Meyering  <jim@meyering.net>
128529         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
128530         definitions.
128531         (nl_get_alt_digit) [! defined my_strftime]: Define.
128532         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
128533         _nl_get_alt_digit and _nl_get_walt_digit.
128535         * lib/strftime.c (my_strftime): Merge in locale-related changes from
128536         libc. These changes have no effect outside of _LIBC.
128538 2003-04-10  Bruno Haible  <bruno@clisp.org>
128540         * modules/findprog: New file.
128541         * MODULES.html.sh (func_all_modules): Add it.
128543 2003-04-10  Bruno Haible  <bruno@clisp.org>
128545         * m4/findprog.m4: New file.
128546         * m4/eaccess.m4: New file.
128548 2003-04-10  Bruno Haible  <bruno@clisp.org>
128550         * lib/findprog.h: New file, from GNU gettext.
128551         * lib/findprog.c: New file, from GNU gettext.
128553 2003-04-05  Jim Meyering  <jim@meyering.net>
128555         Merge changes from Coreutils.
128557         * lib/exclude.h (PARAMS): Remove definition and uses.
128558         * lib/exclude.c: Remove uses of `PARAMS'.
128560         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
128561         Add test-cases for DOS filenames. Declare program_name.
128562         (main): Set up program_name.  Patch by Rich Dawe.
128564         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128565         error from mntctl.
128566         Use mntctl's return value to drive the entry-processing loop, since
128567         we can't rely on the value of the vmt_length member in the last
128568         entry.  On some systems doing so could result in exhausting
128569         virtual memory.  Based in part on a patch from Mike Jetzer.
128571 2003-04-04  Bruno Haible  <bruno@clisp.org>
128573         * modules/linebreak: New file.
128574         * MODULES.html.sh (func_all_modules): Add it.
128576 2003-04-04  Bruno Haible  <bruno@clisp.org>
128578         * m4/linebreak.m4: New file.
128580 2003-04-04  Bruno Haible  <bruno@clisp.org>
128582         * lib/linebreak.h: New file, from GNU gettext.
128583         * lib/linebreak.c: New file, from GNU gettext with slight
128584         modifications.
128585         * lib/lbrkprop.h: New file, from GNU gettext.
128587 2003-04-03  Bruno Haible  <bruno@clisp.org>
128589         * modules/utf8-ucs4: New file.
128590         * modules/utf16-ucs4: New file.
128591         * modules/ucs4-utf8: New file.
128592         * modules/ucs4-utf16: New file.
128593         * MODULES.html.sh (func_all_modules): Add them.
128595 2003-04-03  Bruno Haible  <bruno@clisp.org>
128597         * m4/utf-ucs4.m4: New file.
128598         * m4/ucs4-utf.m4: New file.
128600 2003-04-03  Bruno Haible  <bruno@clisp.org>
128602         * lib/utf8-ucs4.h: New file, from GNU gettext.
128603         * lib/utf16-ucs4.h: New file, from GNU gettext.
128604         * lib/ucs4-utf8.h: New file, from GNU gettext.
128605         * lib/ucs4-utf16.h: New file, from GNU gettext.
128607 2003-04-02  Bruno Haible  <bruno@clisp.org>
128609         * modules/binary-io: New file.
128610         * MODULES.html.sh (func_all_modules): Add it.
128612 2003-04-02  Bruno Haible  <bruno@clisp.org>
128614         * lib/binary-io.h: New file, from GNU gettext.
128616 2003-04-01  Bruno Haible  <bruno@clisp.org>
128618         * modules/pathname: New file.
128619         * MODULES.html.sh (func_all_modules): Add it.
128621 2003-04-01  Bruno Haible  <bruno@clisp.org>
128623         * lib/pathname.h: New file, from GNU gettext.
128624         * lib/concatpath.c: New file, from GNU gettext.
128626 2003-03-30  Bruno Haible  <bruno@clisp.org>
128628         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
128630 2003-03-30  Bruno Haible  <bruno@clisp.org>
128632         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
128633         function chown() doesn't exist.
128635 2003-03-28  Bruno Haible  <bruno@clisp.org>
128637         * modules/copy-file: New file.
128638         * MODULES.html.sh (func_all_modules): Add it.
128640 2003-03-28  Bruno Haible  <bruno@clisp.org>
128642         * m4/copy-file.m4: New file.
128644 2003-03-28  Bruno Haible  <bruno@clisp.org>
128646         * lib/copy-file.h: New file, from GNU gettext.
128647         * lib/copy-file.c: New file, from GNU gettext.
128649 2003-03-18  Jim Meyering  <jim@meyering.net>
128651         * lib/quote.c (quote_n): Fix typo in comment.
128653 2003-03-18  Bruno Haible  <bruno@clisp.org>
128655         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
128656         checking.
128657         * m4/onceonly_2_57.m4: Likewise.
128659 2003-03-17  Bruno Haible  <bruno@clisp.org>
128661         * m4/onceonly.m4: Require autoconf 2.54 or newer.
128662         (m4_quote): Remove macro.
128663         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
128665 2003-03-14  Jim Meyering  <jim@meyering.net>
128667         Merge changes from Coreutils.
128668         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
128669         to be const, in order to avoid warnings.
128670         (obstack_room): Likewise.
128671         (obstack_empty_p): Likewise.
128673 2003-03-14  Bruno Haible  <bruno@clisp.org>
128675         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
128676         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
128678 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128680         Merge changes from Bison.
128681         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128682         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128683         when compiling Bison 1.875's `bitset bset = obstack_alloc
128684         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128685         * lib/hash.c: Include <stdbool.h> unconditionally.
128687 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128689         * m4/onceonly.m4 (m4_quote): New macro.
128690         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128691         Quote AC_FOREACH variable-expansions properly.
128693 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128695         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128697 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128699         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128700         Reported by Bruce Becker; see:
128701         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128703 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128704             Bruno Haible  <bruno@clisp.org>
128706         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128707         Reported by John Hughes, see
128708         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128710 2003-02-20  Bruno Haible  <bruno@clisp.org>
128712         * MODULES.html.sh (func_all_modules): Add poll.
128714 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128716         * modules/poll: New file.
128718 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128720         * lib/poll_.h: New file.
128721         * lib/poll.c: New file.
128723 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128725         * m4/poll.m4: New file.
128727 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128729         * modules/mathl: New file.
128731 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128733         * lib/mathl.h: New file.
128734         * lib/acosl.c: New file.
128735         * lib/asinl.c: New file.
128736         * lib/atanl.c: New file.
128737         * lib/ceill.c: New file.
128738         * lib/cosl.c: New file.
128739         * lib/expl.c: New file.
128740         * lib/floorl.c: New file.
128741         * lib/frexpl.c: New file.
128742         * lib/ldexpl.c: New file.
128743         * lib/logl.c: New file.
128744         * lib/sincosl.c: New file.
128745         * lib/sinl.c: New file.
128746         * lib/sqrtl.c: New file.
128747         * lib/tanl.c: New file.
128748         * lib/trigl.c: New file.
128749         * lib/trigl.h: New file.
128751 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128753         * m4/mathl.m4: New file.
128755 2003-02-18  Bruno Haible  <bruno@clisp.org>
128757         * MODULES.html.sh (func_all_modules): Add mathl.
128759 2003-02-17  Bruno Haible  <bruno@clisp.org>
128761         * modules/mkdtemp: New module.
128762         * MODULES.html.sh (func_all_modules): Add it.
128764 2003-02-17  Bruno Haible  <bruno@clisp.org>
128766         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128768 2003-02-17  Bruno Haible  <bruno@clisp.org>
128770         * lib/mkdtemp.h: New file, from GNU gettext.
128771         * lib/mkdtemp.c: New file, from GNU gettext.
128773 2003-02-02  Jim Meyering  <jim@meyering.net>
128775         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128776         e.g. glibc-2.2.93.
128778 2003-01-31  Bruno Haible  <bruno@clisp.org>
128780         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128781         'rpl_rename'.
128782         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128783         'rpl_strnlen'.
128784         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128785         'rpl_strtod'.
128786         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128787         'rpl_utime'.
128789 2003-01-31  Bruno Haible  <bruno@clisp.org>
128791         * lib/rename.c: #undef rename before defining rpl_rename.
128792         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128794 2003-01-30  Bruno Haible  <bruno@clisp.org>
128796         * modules/vasnprintf, modules/vasprintf: New modules.
128797         * MODULES.html.sh (func_all_modules): Add them.
128799 2003-01-30  Bruno Haible  <bruno@clisp.org>
128801         * m4/signed.m4: New file, from GNU gettext.
128802         * m4/longdouble.m4: New file, from GNU gettext.
128803         * m4/wchar_t.m4: New file, from GNU gettext.
128804         * m4/wint_t.m4: New file, from GNU gettext.
128805         * m4/vasnprintf.m4: New file.
128806         * m4/vasprintf.m4: New file.
128808 2003-01-30  Bruno Haible  <bruno@clisp.org>
128810         * lib/printf-args.h: New file, from GNU gettext.
128811         * lib/printf-args.c: New file, from GNU gettext.
128812         * lib/printf-parse.h: New file, from GNU gettext.
128813         * lib/printf-parse.c: New file, from GNU gettext.
128814         * lib/vasnprintf.h: New file, from GNU gettext.
128815         * lib/vasnprintf.c: New file, from GNU gettext.
128816         * lib/asnprintf.c: New file, from GNU gettext.
128817         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128818         * lib/vasprintf.c: New file, from GNU gettext.
128819         * lib/asprintf.c: New file, from GNU gettext.
128821 2003-01-29  Bruno Haible  <bruno@clisp.org>
128823         * modules/stpncpy: New module.
128824         * MODULES.html.sh (func_all_modules): Add it.
128826 2003-01-29  Bruno Haible  <bruno@clisp.org>
128828         * m4/stpncpy.m4: New file.
128830 2003-01-29  Bruno Haible  <bruno@clisp.org>
128832         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128833         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128835 2003-01-28  Bruno Haible  <bruno@clisp.org>
128837         * modules/c-ctype: New module.
128838         * MODULES.html.sh (func_all_modules): Add it.
128840 2003-01-28  Bruno Haible  <bruno@clisp.org>
128842         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128843         Paul Eggert.
128844         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128845         Paul Eggert.
128847 2003-01-27  Bruno Haible  <bruno@clisp.org>
128849         * modules/xsetenv: New module.
128850         * MODULES.html.sh (func_all_modules): Add it.
128852 2003-01-27  Bruno Haible  <bruno@clisp.org>
128854         * lib/xsetenv.h: New file, from GNU gettext.
128855         * lib/xsetenv.c: New file, from GNU gettext.
128857 2003-01-23  Jim Meyering  <jim@meyering.net>
128859         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128860         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128862 2003-01-23  Bruno Haible  <bruno@clisp.org>
128864         * modules/minmax: New module.
128865         * MODULES.html.sh (func_all_modules): Add it.
128867 2003-01-23  Bruno Haible  <bruno@clisp.org>
128869         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128870         Eggert.
128872 2003-01-22  Bruno Haible  <bruno@clisp.org>
128874         * modules/exit: New module.
128875         * MODULES.html.sh (func_all_modules): Add it.
128877 2003-01-22  Bruno Haible  <bruno@clisp.org>
128879         * lib/exit.h: New file, from GNU gettext.
128881 2003-01-19  Bruno Haible  <bruno@clisp.org>
128883         * gnulib-tool: Recognize option --extract-maintainer.
128884         (func_get_maintainer): New function.
128885         * modules/*: Add Maintainer entry.
128887 2003-01-16  Jim Meyering  <jim@meyering.net>
128889         * m4/regex.m4: The `regex' struct is both input and output.
128890         Initialize it before each use.  Patch by Tim Waugh.
128892 2003-01-16  Bruno Haible  <bruno@clisp.org>
128894         * MODULES.html.sh: Add a table of contents. Add the module name as
128895         leftmost column. Add hyperlinks.
128897 2003-01-15  Bruno Haible  <bruno@clisp.org>
128899         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128901 2003-01-15  Bruno Haible  <bruno@clisp.org>
128903         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128904         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128905         suffix.
128907 2003-01-15  Bruno Haible  <bruno@clisp.org>
128909         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128911 2003-01-15  Bruno Haible  <bruno@clisp.org>
128913         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128914         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128916 2003-01-14  Jim Meyering  <jim@meyering.net>
128918         * lib/same.c (same_name): Tweak a comment.
128920 2003-01-14  Bruno Haible  <bruno@clisp.org>
128922         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128923         when a string comparison is sufficient.
128925 2003-01-14  Bruno Haible  <bruno@clisp.org>
128927         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128928         'unsigned int'.
128930 2003-01-14  Bruno Haible  <bruno@clisp.org>
128932         * lib/hash-pjw.c: Add comment about low quality of this function.
128934 2003-01-13  Bruno Haible  <bruno@clisp.org>
128936         * modules/stpcpy: Distribute lib/stpcpy.h.
128937         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128939 2003-01-13  Bruno Haible  <bruno@clisp.org>
128941         * modules/*: Add a description.
128942         * modules/strpbrk: Fix Makefile.am snippet.
128943         * modules/strtoimax: Fix dependencies.
128944         * modules/strtoumax: Likewise.
128946 2003-01-13  Bruno Haible  <bruno@clisp.org>
128948         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128949         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128950         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128952 2003-01-13  Bruno Haible  <bruno@clisp.org>
128954         * gnulib-tool (func_create_testdir): Store config/* files in the main
128955         directory.
128956         * config.rpath: Move to ...
128957         * config/config.rpath: ... here.
128958         * modules/gettext: Contains config/config.rpath, not config.rpath.
128959         * modules/iconv: Likewise.
128961 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128963         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128964         to avoid collisions with libcurses and libreadline.
128966         * m4/getstr.m4: Remove.
128967         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128969 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128971         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128972         to avoid collisions with libcurses and libreadline.
128974         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128975         * lib/getstr.h, getstr.c: Remove.
128976         * lib/getline.c: Include "getline.h", to check interface.
128977         Move body of old getstr.c here: this defines MIN_CHUNK and
128978         declares getdelim2, which is renamed from getstr.
128979         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128981         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128982         All uses changed.
128983         * lib/linebuffer.h: Likewise.
128984         (readline): Remove backward-compatibility macro.
128986 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128988         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128989         to avoid collisions with libcurses and libreadline.
128990         * getstr: Remove.
128991         * MODULES.html.sh: Remove getstr.
128992         * modules/getline: Depend on unlocked-io, not getstr.
128994 2003-01-12  Jim Meyering  <jim@meyering.net>
128996         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128998 2003-01-10  Bruno Haible  <bruno@clisp.org>
129000         * modules/alloca: Change Makefile.am requirements. Simplify Include
129001         requirements. Add lib/alloca_.h to file list.
129003 2003-01-10  Bruno Haible  <bruno@clisp.org>
129005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
129007 2003-01-10  Bruno Haible  <bruno@clisp.org>
129009         * lib/alloca_.h: New file.
129010         * lib/getdate.y: Unconditionally include alloca.h.
129011         * lib/makepath.c: Likewise.
129012         * lib/setenv.c: Likewise.
129013         * lib/userspec.c: Likewise.
129015 2003-01-09  Karl Berry  <karl@gnu.org>
129017         * MODULES.html.sh: include `dirname $0` in PATH, to find
129018         gnulib-tool.
129020 2003-01-09  Bruno Haible  <bruno@clisp.org>
129022         * modules/stdbool: Change configure.ac, Makefile.am requirements.
129023         Simplify Include requirements. Add lib/stdbool.h.in to file list.
129025 2003-01-09  Bruno Haible  <bruno@clisp.org>
129027         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
129029 2003-01-09  Bruno Haible  <bruno@clisp.org>
129031         * lib/stdbool.h.in: New file.
129033 2003-01-09  Bruno Haible  <bruno@clisp.org>
129035         * gnulib-tool (func_all_modules): Ignore files ending in ~.
129036         * MODULES.html.sh: Likewise.
129038 2003-01-08  Jim Meyering  <jim@meyering.net>
129040         * lib/full-write.c: Undefine and define-away `const' after inclusion
129041         of errno.h, not before.  Suggestion from Bruno Haible.
129043 2003-01-08  Bruno Haible  <bruno@clisp.org>
129045         * modules/full-read: Depend on full-write.
129047 2003-01-08  Bruno Haible  <bruno@clisp.org>
129049         * lib/safe-read.c: Include specification header first, to ensure its
129050         selfcontainedness.
129051         * lib/full-write.c: Likewise.
129053 2003-01-07  Jim Meyering  <jim@meyering.net>
129055         * lib/full-write.c: Rework so that it may serve to define full_read,
129056         too.
129057         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
129059 2003-01-07  Bruno Haible  <bruno@clisp.org>
129061         * lib/strtoimax.c: Include <stdint.h> as an alternative to
129062         <inttypes.h>.
129063         * lib/xstrtol.h: Likewise.
129064         * lib/xstrtoimax.c: Likewise.
129065         * lib/xstrtoumax.c: Likewise.
129066         * lib/human.h: Likewise.
129068         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
129069         on systems that have <inttypes.h> but not <stdint.h>.
129071 2003-01-07  Bruno Haible  <bruno@clisp.org>
129073         * MODULES.html.sh: Add copyright notice.
129074         (missed_files): Omit CVS directory entries.
129075         (func_module): Make it work with sed-3.02.
129076         * MODULES.txt: Remove file.
129078 2003-01-06  Jim Meyering  <jim@meyering.net>
129080         * lib/version-etc.c: Update year in translatable copyright string.
129082 2003-01-03  Karl Berry  <karl@gnu.org>
129084         * config/config.{guess,sub}: update from prep.
129086 2003-01-02  Karl Berry  <karl@gnu.org>
129088         * doc/COPYING.DOC: belatedly updated to 1.2.
129090 2003-01-01  Karl Berry  <karl@gnu.org>
129092         * gnulib-tool (func_verify_module): report module name $module in
129093         error message, not $1.
129094         * gnulib-tool (create-testdir): don't complain if destdir couldn't
129095         be created, only if it doesn't exist.
129096         * gnulib-tool (last_checkin_date): don't expand the $Date here.
129098 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129100         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
129102 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129104         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
129105         memcmp if strcoll doesn't work.
129107 2002-12-31  Bruno Haible  <bruno@clisp.org>
129109         * lib/utime.c (utime_null): No need to call ftruncate if the file was
129110         nonempty.
129112 2002-12-31  Bruno Haible  <bruno@clisp.org>
129114         * lib/memcoll.c (STRCOLL): New macro.
129115         (memcoll): Use it.
129117 2002-12-31  Bruno Haible  <bruno@clisp.org>
129119         * lib/localcharset.h: New file.
129120         * lib/localcharset.c: Include it.
129121         * lib/unicodeio.c: Likewise.
129123 2002-12-31  Bruno Haible  <bruno@clisp.org>
129125         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
129126         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
129128 2002-12-31  Bruno Haible  <bruno@clisp.org>
129130         * lib/getline.h: Include <stddef.h>, for size_t.
129132         * lib/unicodeio.h: Include <stddef.h>, for size_t.
129133         * lib/unicodeio.c: Don't include <stddef.h>.
129135 2002-12-31  Bruno Haible  <bruno@clisp.org>
129137         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
129138         HAVE_TM_ZONE.
129140 2002-12-24  Karl Berry  <karl@gnu.org>
129142         * config/config.guess: update from prep.
129144 2002-12-24  Bruno Haible  <bruno@clisp.org>
129146         General infrasructure.
129147         * m4/README: Rewritten.
129148         * m4/onceonly.m4: New file.
129149         * m4/onceonly_2_57.m4: New file.
129151         Module atexit.
129152         * m4/atexit.m4: New file.
129154         Module strtod.
129155         * m4/strtod.m4: New file.
129157         Module strtol.
129158         * m4/strtol.m4: New file.
129160         Module strtoul.
129161         * m4/strtoul.m4: New file.
129163         Module memchr.
129164         * m4/memchr.m4: New file.
129166         Module memcmp.
129167         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
129168         (jm_FUNC_MEMCMP): Invoke it.
129170         Module memcpy.
129171         * m4/memcpy.m4: New file.
129173         Module memmove.
129174         * m4/memmove.m4: New file.
129176         Module memset.
129177         * m4/memset.m4: New file.
129179         Module strcspn.
129180         * m4/strcspn.m4: New file.
129182         Module strpbrk.
129183         * m4/strpbrk.m4: New file.
129185         Module strstr.
129186         * m4/strstr.m4: New file.
129188         Module strerror.
129189         * m4/strerror.m4: New file.
129191         Module mktime.
129192         * m4/mktime.m4: Renamed from jm-mktime.m4.
129193         (gl_PREREQ_MKTIME): New macro.
129194         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129196         Module malloc.
129197         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
129198         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
129199         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
129201         Module realloc.
129202         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
129203         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
129204         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
129206         Module strftime.
129207         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
129208         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
129209         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
129210         gl_TM_GMTOFF.
129211         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
129213         Module xalloc.
129214         * m4/xalloc.m4: New file.
129216         Module alloca.
129217         * m4/alloca.m4: New file.
129219         Module putenv.
129220         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
129221         (jm_FUNC_PUTENV): Invoke it.
129223         Module setenv.
129224         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
129225         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
129226         when invoked twice.
129227         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
129228         gt_FUNC_SETENV.
129230         Module memrchr.
129231         * m4/memrchr.m4: New file.
129233         Module stpcpy.
129234         * m4/stpcpy.m4: New file.
129236         Module strcase.
129237         * m4/strcase.m4: New file.
129239         Module strdup.
129240         * m4/strdup.m4: New file.
129242         Module strnlen.
129243         * m4/strnlen.m4: New file.
129245         Module strndup.
129246         * m4/strndup.m4: New file.
129248         Module xstrtod.
129249         * m4/xstrtod.m4: New file.
129251         Module xstrtol.
129252         * m4/xstrtol.m4: New file.
129254         Module getdate.
129255         * m4/getdate.m4: New file.
129257         Module unlocked-io.
129258         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
129259         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
129260         * m4/jm-glibc-io.m4n: Remove file.
129262         Module long-options.
129263         * m4/long-options.m4: New file.
129265         Module md5.
129266         * m4/md5.m4: New file.
129268         Module sha.
129269         * m4/sha.m4: New file.
129271         Module getstr.
129272         * m4/getstr.m4: New file.
129274         Module getline.
129275         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
129276         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
129277         <sys/types.h>, for size_t. Use the function name gnu_getline, not
129278         simply getline. Infoke gl_PREREQ_GETLINE.
129280         Module obstack.
129281         * m4/obstack.m4: New file.
129283         Module hash.
129284         * m4/hash.m4: New file.
129286         Module readtokens.
129287         * m4/readtokens.m4: New file.
129289         Module strverscmp.
129290         * m4/strverscmp.m4: New file.
129292         Module stdbool.
129293         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
129294         OSF/1.
129296         Module strtoll.
129297         * m4/strtoll.m4: New file.
129299         Module strtoull.
129300         * m4/strtoull.m4: New file.
129302         Module strtoimax.
129303         * m4/strtoimax.m4: New file.
129305         Module strtoumax.
129306         * m4/strtoumax.m4: New file.
129308         Module xstrtoimax.
129309         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
129310         jm_AC_PREREQ_XSTRTOIMAX.
129311         Moved the strtol prerequisites to strtol.m4.
129312         Moved the strtoll prerequisites to strtoll.m4.
129313         Moved the strtoimax prerequisites to strtoimax.m4.
129315         Module xstrtoumax.
129316         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
129317         jm_AC_PREREQ_XSTRTOUMAX.
129318         Moved the strtoul prerequisites to strtoul.m4.
129319         Moved the strtoull prerequisites to strtoull.m4.
129320         Moved the strtoumax prerequisites to strtoumax.m4.
129322         Module chown.
129323         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
129324         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
129326         Module dup2.
129327         * m4/dup2.m4: New file.
129329         Module ftruncate.
129330         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
129331         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
129333         Module getgroups.
129334         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
129335         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
129337         Module gettimeofday.
129338         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
129339         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
129340         gl_PREREQ_GETTIMEOFDAY.
129342         Module mkdir.
129343         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
129344         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
129346         Module mkstemp.
129347         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
129348         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
129349         jm_AC_TYPE_UINTMAX_T.
129350         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
129352         Module stat.
129353         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
129354         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
129356         Module lstat.
129357         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
129358         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
129360         Module timespec.
129361         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129362         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129363         * m4/st_mtim.m4: Indentation.
129365         Module nanosleep.
129366         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129367         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129368         gl_PREREQ_NANOSLEEP.
129370         Module regex.
129371         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129372         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129373         (gl_REGEX): New macro.
129375         Module rename.
129376         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129377         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129379         Module rmdir.
129380         * m4/rmdir.m4: New file.
129382         Module utime.
129383         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129384         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129385         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129387         Module dirname.
129388         * m4/dirname.m4: New file.
129390         Module getopt.
129391         * m4/getopt.m4: New file.
129393         Module unistd-safer.
129394         * m4/unistd-safer.m4: New file.
129396         Module fnmatch.
129397         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129398         declaration.
129399         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129400         (gl_FUNC_FNMATCH_POSIX): New macro.
129401         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129402         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129403         simply fnmatch.
129405         Module exclude.
129406         * m4/exclude.m4: New file.
129408         Module human.
129409         * m4/human.m4: New file.
129411         Module acl.
129412         * m4/acl.m4: Nop.
129414         Module backupfile.
129415         * m4/backupfile.m4: New file.
129416         * m4/d-ino.m4: Indentation.
129418         Module fsusage.
129419         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129420         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129421         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129423         Module dirfd.
129424         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129425         requirements.
129427         Module euidaccess.
129428         * m4/euidaccess.m4: New file.
129430         Module file-type.
129431         * m4/file-type.m4: New file.
129433         Module fileblocks.
129434         * m4/fileblocks.m4: New file.
129436         Module filemode.
129437         * m4/filemode.m4: New file.
129439         Module isdir.
129440         * m4/isdir.m4: New file.
129442         Module lchown.
129443         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129444         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129446         Module makepath.
129447         * m4/makepath.m4: New file.
129449         Module modechange.
129450         * m4/modechange.m4: New file.
129452         Module mountlist.
129453         * m4/mountlist.m4: New file.
129454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129455         Indentation.
129457         Module path-concat.
129458         * m4/path-concat.m4: New file.
129460         Module pathmax.
129461         * m4/pathmax.m4: New file.
129463         Module same.
129464         * m4/same.m4: New file.
129466         Module save-cwd.
129467         * m4/save-cwd.m4: New file.
129469         Module savedir.
129470         * m4/savedir.m4: New file.
129472         Module xgetcwd.
129473         * m4/xgetcwd.m4: New file.
129474         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
129476         Module xreadlink.
129477         * m4/xreadlink.m4: New file.
129479         Module safe-read.
129480         * m4/safe-read.m4: New file.
129482         Module safe-write.
129483         * m4/safe-write.m4: New file.
129485         Module closeout.
129486         * m4/closeout.m4: New file.
129488         Module stdio-safer.
129489         * m4/stdio-safer.m4: New file.
129491         Module getpass.
129492         * m4/getpass.m4: New file.
129494         Module getugroups.
129495         * m4/getugroups.m4: New file.
129497         Module group-member.
129498         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
129499         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
129501         Module idcache.
129502         * m4/idcache.m4: New file.
129504         Module userspec.
129505         * m4/userspec.m4: New file.
129507         Module gettime.
129508         * m4/clock_time.m4: New file.
129509         * m4/gettime.m4: New file.
129511         Module settime.
129512         * m4/settime.m4: New file.
129514         Module posixtm.
129515         * m4/posixtm.m4: New file.
129517         Module gethostname.
129518         * m4/gethostname.m4: New file.
129520         Module canon-host.
129521         * m4/canon-host.m4: New file.
129523         Module gettext.
129524         * m4/codeset.m4: New file, from gettext-0.11.5.
129525         * m4/gettext.m4: New file, from gettext-0.11.5.
129526         * m4/glibc21.m4: New file, from gettext-0.11.5.
129527         * m4/iconv.m4: New file, from gettext-0.11.5.
129528         * m4/intdiv0.m4: New file, from gettext-0.11.5.
129529         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
129530         * m4/inttypes.m4: New file, from gettext-0.11.5.
129531         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
129532         * m4/isc-posix.m4: New file, from gettext-0.11.5.
129533         * m4/lcmessage.m4: New file, from gettext-0.11.5.
129534         * m4/lib-ld.m4: New file, from gettext-0.11.5.
129535         * m4/lib-link.m4: New file, from gettext-0.11.5.
129536         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
129537         * m4/progtest.m4: New file, from gettext-0.11.5.
129538         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
129539         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
129540         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
129542         Module localcharset.
129543         * m4/localcharset.m4: New file.
129545         Module hard-locale.
129546         * m4/hard-locale.m4: New file.
129548         Module mbswidth.
129549         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
129550         onceonly macros.
129551         * m4/mbrtowc.m4: Add comment.
129553         Module memcasecmp.
129554         * m4/memcasecmp.m4: New file.
129556         Module memcoll.
129557         * m4/memcoll.m4: New file.
129559         Module unicodeio.
129560         * m4/unicodeio.m4: New file.
129562         Module rpmatch.
129563         * m4/rpmatch.m4: New file.
129565         Module yesno.
129566         * m4/yesno.m4: New file.
129568         Module exitfail.
129569         * m4/exitfail.m4: New file.
129571         Module c-stack.
129572         * m4/c-stack.m4 (gl_C_STACK): New macro.
129573         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
129575         Module error.
129576         * m4/error.m4 (gl_ERROR): New macro.
129577         (jm_PREREQ_ERROR): Use onceonly macros.
129579         Module fatal.
129580         * m4/fatal.m4: New file.
129582         Module getloadavg.
129583         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
129584         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
129586         Module getpagesize.
129587         * m4/getpagesize.m4: New file.
129589         Module getusershell.
129590         * m4/getusershell.m4: New file.
129592         Module physmem.
129593         * m4/physmem.m4: New file.
129595         Module posixver.
129596         * m4/posixver.m4: New file.
129598         Module quotearg.
129599         * m4/quotearg.m4: New file.
129601         Module quote.
129602         * m4/quote.m4: New file.
129604         Module readutmp.
129605         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
129607         Module sig2str.
129608         * m4/sig2str.m4: New file.
129610         Other.
129611         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129612         ulonglong.m4.
129613         * m4/intmax_t.m4: New file.
129614         * m4/d-type.m4: Indentation.
129615         * m4/jm-macros.m4: Update.
129616         * m4/prereq.m4 (jm_PREREQ): Update.
129617         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
129618         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
129619         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
129620         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
129621         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
129622         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
129623         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
129624         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
129625         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
129626         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
129627         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
129628         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
129629         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
129630         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
129631         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
129632         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
129633         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
129634         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
129635         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
129637 2002-12-24  Bruno Haible  <bruno@clisp.org>
129639         * MODULES.txt: Update according to m4/ changes.
129641         Module gettext.
129642         * config.rpath: New file, from gettext-0.11.5.
129644         * modules/*: New module descriptions.
129645         * gnulib-tool: New file.
129646         * MODULES.html.sh: New file.
129648 2002-12-21  Karl Berry  <karl@gnu.org>
129650         * doc/fdl.texi: update to version 1.2.
129652 2002-12-19  Karl Berry  <karl@gnu.org>
129654         * config/config.guess: update from prep.
129656 2002-12-18  Bruno Haible  <bruno@clisp.org>
129658         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
129659         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
129661 2002-12-17  Bruno Haible  <bruno@clisp.org>
129663         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
129664         stdlib.h, string.h.
129666 2002-12-17  Bruno Haible  <bruno@clisp.org>
129668         * lib/canon-host.c (strdup): Remove unused declaration.
129670         * lib/fsusage.c: Include full_read.h.
129671         (get_fs_usage): Use full_read instead of safe_read.
129673         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
129675 2002-12-12  Karl Berry  <karl@gnu.org>
129677         * config/config.guess: update from prep.
129679 2002-12-11  Bruno Haible  <bruno@clisp.org>
129681         * m4/setenv.m4: New file, from gettext-0.11.5.
129683 2002-12-11  Bruno Haible  <bruno@clisp.org>
129685         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129686         not unsetenv().
129687         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129688         modifications:
129690         2002-12-11  Bruno Haible  <bruno@clisp.org>
129692                 * setenv.c (alloca): Fall back to malloc.
129693                 (freea): New macro.
129694                 (setenv): Use freea() to free memory allocated with alloca().
129696         2002-11-13  Bruno Haible  <bruno@clisp.org>
129698                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129699                 function declarations.
129700                 * unsetenv.c (unsetenv): Likewise.
129702         2002-03-04  Bruno Haible  <bruno@clisp.org>
129704                 Portability to AIX 4.3.3.
129705                 * unsetenv.c: New file, extracted from setenv.c.
129706                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129708         2001-12-20  Bruno Haible  <bruno@clisp.org>
129710                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129711                 use malloc instead. For SunOS 4.
129713         2001-12-11  Bruno Haible  <bruno@clisp.org>
129715                 * setenv.c: Declare alloca.
129716                 (compar_fn_t): New typedef.
129717                 (KNOWN_VALUE, STORE_VALUE): Use it.
129719         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129720         setenv.h.
129722 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129724         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129725         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129726         Choose values that are less likely to collide with system fnmatch
129727         options.
129728         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129729         defined (e.g., a pure POSIX system).
129730         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129731         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129733 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129735         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129736         a pain in practice to deal with generated m4 files.  This change
129737         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129739         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129740         and jm-glibc-io.m4, as they are no longer a special case.
129741         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129742         kludge and the auto-generation stuff.  Check only whether the
129743         functions are declared, not whether they exist, since older hosts
129744         that don't declare the functions can't use the optimization anyway.
129746 2002-12-06  Jim Meyering  <jim@meyering.net>
129748         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129750         Merge in changes from libc's misc/error.c, in preparation
129751         for the merge of gnulib's changes back into libc.
129753         * lib/error.c (_): Define only if not already defined.
129754         Move definition to follow all #include directives.
129755         Include unlocked-io.h only if !_LIBC.
129756         [_LIBC]: Include <libio/libioP.h>.
129757         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129758         (fflush): Tweak definition to use INTUSE.
129759         (putc): Define.
129761 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129763         * lib/alloca.c [defined emacs]: Include "lisp.h".
129764         (xalloc_die) [defined emacs]: New macro.
129765         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129766         [! defined emacs]: Include <xalloc.h>.
129767         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129768         (pointer): Typedef to POINTER_TYPE *.
129769         (malloc): Remove decl; we now always use xmalloc.
129770         (alloca): Use old-style definition, since Emacs needs this.
129771         Check for arithmetic overflow when computing combined size.
129773 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129775         Do not generate unlocked-io.h automatically, since it's easier to
129776         maintain it by hand.
129778         * lib/unlocked-io.h: New file, from GNU diffutils,
129779         but with proper copyright notice and attribution.
129780         * lib/gen-uio: Remove.
129781         * lib/Makefile.am: Add copyright notice.
129782         (libfetish_a_SOURCES): Add unlocked-io.h.
129783         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129784         (DISTCLEANFILES, io_functions): Remove macros.
129785         (EXTRA_DIST): Remove gen_uio.
129786         (unlocked-io.h): Remove rule.
129788 2002-12-04  Jim Meyering  <jim@meyering.net>
129790         Reflect the fact that stat.c and lstat.c are no longer generated.
129791         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129792         (DISTCLEANFILES): Likewise.
129793         (EXTRA_DIST): Likewise.
129794         (all_local): Don't depend on stat.c or lstat.c.
129795         (stat.c, lstat.c): Remove rules.
129796         (EXTRA_DIST): Remove xstat.in.
129798         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129799         * lib/stat.c: New file.  Contents mostly from xstat.in.
129800         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129801         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129803         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129804         too.
129805         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129807 2002-12-03  Jim Meyering  <jim@meyering.net>
129809         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129810         but not semantics, to minimize the differences between these two files.
129811         (safe_read): Change comment to mention SAFE_READ_ERROR.
129813         * lib/safe-read.c (IS_EINTR): Define.
129814         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129816 2002-12-02  Jim Meyering  <jim@meyering.net>
129818         * lib/safe-read.c (EINTR): Define.
129819         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129820         (INT_MAX): Provide fallback.
129821         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129823         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129825 2002-12-02  Bruno Haible  <bruno@clisp.org>
129827         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129828         Define, taken from safe-read.c.
129829         (INT_MAX): Provide fallback.
129830         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129831         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129833         * lib/safe-read.c (EINTR): Remove definition.
129834         (safe_read): Don't use EINTR if it is absent.
129836 2002-12-01  Jim Meyering  <jim@meyering.net>
129838         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129839         zero.
129840         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129842 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129844         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129845         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129846         with `if (! (value < limit)) abort ();', for readability.
129848 2002-11-26  Karl Berry  <karl@gnu.org>
129850         * lib/strdup.c: copy from libc again, with jim's ok.
129851         * lib/.cppi-disable: re-add strdup.c
129853 2002-11-25  Karl Berry  <karl@gnu.org>
129855         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129856         instead of "strtol.c".
129858 2002-11-25  Karl Berry  <karl@gnu.org>
129860         * config/install-sh: update from automake for variable quoting, $0 in
129861         error msgs, etc.
129863         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129864         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129865         entry.
129867 2002-11-25  Jim Meyering  <jim@meyering.net>
129869         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129871 2002-11-24  Karl Berry  <karl@gnu.org>
129873         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129874         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129876 2002-11-24  Jim Meyering  <jim@meyering.net>
129878         Update from coreutils:
129880         * lib/mktime.c: Merge in changes from libc.
129882         Avoid a link-time failure on some Linux systems.
129883         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129884         (otherwise).
129885         (__mon_yday): Declare with the STATIC attribute.
129886         (__mktime_internal): Likewise.
129887         Based on a report from Greg Schafer.
129889 2002-11-23  Jim Meyering  <jim@meyering.net>
129891         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129892         Use `unsigned', not `int', as type of index.
129894         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129896         * lib/fsusage.c: Remove unneeded parentheses around operands of
129897         `defined'.
129899 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129901         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129902         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129903         so that we can be included first.
129904         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129905         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129906         No need to include stddef.h or sys/types.h any more.
129907         Surround local include files with "", not "<>".
129908         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129909         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129910         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129911         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129912         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129913         (ISPRINT): Remove; no longer needed now that we assume C89.
129915         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129916         Preserve errno.
129918         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129919         quotearg_char): Use SIZE_MAX rather than
129920         (size_t) -1 when we are talking about "infinity".
129922         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129924 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129926         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129927         hint that one should use `if (! x) abort ();' rather than `assert
129928         (x);', and anyway it's one less thing to worry about configuring.
129929         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129930         hash_rehash, hash_insert): Use abort rather than assert.
129932 2002-11-22  Bruno Haible  <bruno@clisp.org>
129934         * lib/safe-read.h: Assume C89. Add comments.
129935         (safe_read): Change return type to size_t.
129936         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129937         byte counts > SSIZE_MAX correctly.
129938         * lib/safe-write.h: New file.
129939         * lib/safe-write.c: New file.
129940         * lib/full-read.h: New file.
129941         * lib/full-read.c: New file.
129942         * lib/full-write.h: Assume C89. Add comments.
129943         * lib/full-write.c: Include safe-write.h.
129944         (full_write): Rewritten to use safe_write.
129945         Suggested by Jim Meyering and Paul Eggert.
129947 2002-11-21  Jim Meyering  <jim@meyering.net>
129949         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129951         Merge in changes from the coreutils.
129953         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129954         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129955         <stdint.h>.
129956         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129957         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129958         int.  Work more efficiently if X is the same width as uintmax_t.
129959         Do not compare X to -1, to avoid bogus compiler warning.
129960         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129961         Don't assume that f_frsize and f_bsize are the same type.
129963         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129964         warning on FreeBSD.
129966         * lib/makepath.c (make_path): Restore umask *before* creating the final
129967         component.
129968         (make_path): Minor reformatting.
129970         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129971         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129972         HAVE_MALLOC/HAVE_REALLOC.
129974         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129975         dummy ones.  At least on GNU/Linux systems, `auto' means something
129976         else.
129977         From Michael Stone.
129979 2002-11-21  Bruno Haible  <bruno@clisp.org>
129981         Remove case insensitive option matching.
129982         * lib/argmatch.h (argcasematch): Remove declaration.
129983         (ARGCASEMATCH): Remove macro.
129984         (__xargmatch_internal): Remove case_sensitive argument.
129985         (XARGMATCH): Update.
129986         (XARGCASEMATCH): Remove macro.
129987         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129988         case_sensitive argument.
129989         (argcasematch): Remove function.
129990         (__xargmatch_internal): Remove case_sensitive argument.
129991         (main): Use XARGMATCH instead of XARGCASEMATCH.
129993         * lib/xmalloc.c: Change compile-time error message. Add comment about
129994         required autoconf version.
129996 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129998         Merge argmatch cleanups from Bison.  Assume C89.
130000         * lib/argmatch.c: Include config.h here, not in argmatch.h.
130001         Include stdlib.h, for EXIT_FAILURE.
130002         Always include <string.h>, since we assume C89.
130003         (EXIT_FAILURE): Remove pre-C89 bug workaround.
130004         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
130005         Include <stddef.h> instead, since it's all we need for size_t.
130006         (PARAMS): Remove.  All uses removed.
130007         (ARRAY_CARDINALITY): Do not bother to #undef.
130008         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
130009         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130010         Remove unnecessary parentheses.
130011         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130012         Insert necessary parentheses.
130013         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
130014         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
130016 2002-11-19  Bruno Haible  <bruno@clisp.org>
130018         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
130019         * lib/mbswidth.h: Include <stddef.h>, for size_t.
130021         * lib/mbswidth.h (PARAMS): Remove macro.
130022         (mbswidth, mbsnwidth): Use ANSI C function declarations.
130023         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
130025         * lib/gcd.h (PARAMS): Remove macro.
130026         (gcd): Use ANSI C function declarations.
130027         * lib/gcd.c (gcd): Likewise.
130029 2002-11-15  Bruno Haible  <bruno@clisp.org>
130031         * lib/strcspn.c: Include <stddef.h>.
130032         (strcspn): Use ANSI C function declaration. Change return type to
130033         size_t. Use NULL.
130034         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
130035         (strpbrk): Use NULL.
130036         * lib/strpbrk.h (PARAMS): Remove macro.
130037         (strpbrk): Use ANSI C function declaration.
130038         * lib/strstr.c: Don't include <sys/types.h>.
130039         * lib/strstr.h (PARAMS): Remove macro.
130040         (strstr): Use ANSI C function declarations.
130042 2002-11-14  Karl Berry  <karl@gnu.org>
130044         * config/mkinstalldirs: `do' on separate line, instead of
130045         `for var; do'.
130047 2002-11-06  Bruno Haible  <bruno@clisp.org>
130049         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
130050         * lib/gcd.c (gcd): Likewise.
130052 2002-11-05  Bruno Haible  <bruno@clisp.org>
130054         * lib/gcd.h: New file, from gettext-0.11.5.
130055         * lib/gcd.c: New file, from gettext-0.11.5.
130057 2002-11-05  Bruno Haible  <bruno@clisp.org>
130059         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130060         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130061         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130062         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130064         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
130065         <libintl.h>.
130066         * lib/makepath.c: Include gettext.h instead of <locale.h> and
130067         <libintl.h>.
130069         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
130070         * lib/human.c: Include gettext.h instead of <libintl.h>.
130071         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
130072         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
130073         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
130074         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
130075         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
130076         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
130077         (textdomain): Remove definition.
130078         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
130080         * lib/long-options.c: Remove include of <libintl.h> and definition of
130081         _.
130082         * lib/same.c: Remove include of <libintl.h> and definition of _.
130084 2002-11-04  Owen Taylor  <otaylor@redhat.com>
130086         * lib/config.charset: A few additions for Solaris.
130088 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130090         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
130091         * lib/localcharset.c (locale_charset): Declare as extern "C".
130093 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130095         * lib/config.charset: msdos in uk_UA uses CP1125.
130097 2002-11-04  Bruno Haible  <bruno@clisp.org>
130099         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
130100         * lib/strcase.h: New file, from GNU gettext-0.11.5.
130101         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
130102         * lib/strstr.h: New file, from GNU gettext-0.11.5.
130103         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
130105 2002-11-04  Bruno Haible  <bruno@clisp.org>
130107         * lib/localcharset.c (locale_charset): Don't return an empty string.
130109 2002-11-04  Bruno Haible  <bruno@clisp.org>
130111         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
130112         aliases.
130114 2002-11-04  Bruno Haible  <bruno@clisp.org>
130116         * lib/config.charset: Update for newest glibc. Add canonical names
130117         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
130119 2002-11-04  Bruno Haible  <bruno@clisp.org>
130121         * lib/config.charset: Add support for NetBSD.
130123 2002-11-04  Bruno Haible  <bruno@clisp.org>
130125         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
130127 2002-11-01  Bruno Haible  <bruno@clisp.org>
130129         * configure.in: Add AC_CONFIG_AUX_DIR call.
130130         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
130131         test/Makefile.
130132         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
130134 2002-09-28  Karl Berry  <karl@gnu.org>
130136         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
130137         installed automake until the next release, since changes have been
130138         made.
130140 2002-09-25  Karl Berry  <karl@gnu.org>
130142         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
130143         * lib/getopt*: copy from libc/posix.
130144         * lib/gettext.h: copy from gettext.
130145         * lib/.cppi-disable: add strdup.c, gettext.h.
130147 2002-09-25  Karl Berry  <karl@gnu.org>
130149         * config/srclist.txt: enable gettext.h check.
130150         * config/config.{guess,sub}: update from prep.
130151         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
130152                 from automake 1.6.3.
130153         See srclist*.
130155 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
130157         * regex.c (PATFETCH): Remove the translating fetch.
130158         (PATFETCH_RAW): Rename to PATFETCH.
130159         (set_image_of_range): New fun.
130160         (SET_RANGE_TABLE_WORK_AREA): Use it.
130161         (regex_compile): Don't translate the pattern chars so eagerly.
130162         Only do it when inserting an `exactn' bytecode or when handling
130163         a char-range.
130164         (mutually_exclusive_p): Avoid empty statement.
130166 2002-07-06  Jim Meyering  <meyering@lucent.com>
130168         * m4/README: Don't mention Makefile.am.in.
130169         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
130171 2002-07-01  Jim Meyering  <meyering@lucent.com>
130173         * lib/c-stack.c: Include sys/time.h.
130174         From Volker Borchert.
130176 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130178         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
130180 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130182         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
130183         New macro.  Use it uniformly instead of
130184         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
130185         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
130186         reported by Vin Shelton.
130188 2002-06-22  Paul Eggert  <eggert@twinsun.com>
130190         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
130191         Do not assume SA_SIGINFO behavior.
130192         Bug reported by Jim Meyering on NetBSD 1.5.2.
130194 2002-06-22  Jim Meyering  <meyering@lucent.com>
130196         * m4/c-stack.m4: New file, from diffutils-2.8.2.
130197         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
130199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
130200         now that configure.ac uses AC_GNU_SOURCE.
130201         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
130202         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
130204         Update to latest tools.  Suggestions from Paul Eggert.
130205         * m4/stdbool.m4: New file, from diffutils-2.8.2.
130206         * m4/gnu-source.m4: Update from diffutils-2.8.2.
130207         * m4/fnmatch.m4: Likewise.
130208         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
130209         to AC_HEADER_STDBOOL
130211 2002-06-22  Jim Meyering  <meyering@lucent.com>
130213         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
130214         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
130216 2002-06-22  Jim Meyering  <meyering@lucent.com>
130218         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
130220         * lib/exitfail.c, exitfail.h: Likewise.
130221         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
130223         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
130224         of fnmatch.h.
130225         (EXTRA_DIST): Add fnmatch_loop.c.
130226         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
130228         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
130229         * lib/fnmatch.c: Update from diffutils-2.8.2.
130230         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
130231         * lib/fnmatch.h: Remove file.
130233 2002-06-21  Jim Meyering  <meyering@lucent.com>
130235         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
130236         * m4/mbrtowc.m4: Likewise.
130238         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
130239         * m4/mbswidth.m4: Reflect name change:
130240         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
130241         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130243         * m4/lib-link.m4: Update from gettext-0.11.2.
130244         * m4/gettext.m4: Likewise.
130246         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
130247         From Alfred M. Szmidt.
130249 2002-06-18  Paul Eggert  <eggert@twinsun.com>
130251         * lib/file-type.h: Report an error if neither S_ISREG nor
130252         S_IFREG is defined, instead of using a test specific to glibc
130253         2.2.  This should be safe, since POSIX requires S_ISREG and
130254         Unix Version 7 had S_IFREG.  We don't need to check for
130255         <sys/types.h> since we don't use any symbols that it defines.
130257 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
130259         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
130260         $@-t, so that each temporary file name is unique and valid in the first
130261         8 characters, for operation under DOS.
130263 2002-06-15  Paul Eggert  <eggert@twinsun.com>
130265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
130267 2002-06-15  Jim Meyering  <meyering@lucent.com>
130269         Work even with DJGPP 2.03, which lacks support for symlinks.
130270         From Richard Dawe.
130271         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
130272         is defined.
130273         * lib/lchown.c (S_ISLNK): Likewise.
130275 2002-06-15  Jim Meyering  <meyering@lucent.com>
130277         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
130278         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
130279         have been included before this file.
130281 2002-06-14  Jim Meyering  <meyering@lucent.com>
130283         * lib/file-type.h: Use the version from diffutils-2.8.2.
130284         * lib/file-type.c: Likewise.
130286 2002-06-07  Jim Meyering  <meyering@lucent.com>
130288         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
130289         They're needed at least for NetBSD 1.5.2.
130290         ($statxfs_includes): Include those same headers.
130291         ($statxfs_includes): Include sys/vfs.h if available.
130292         ($statxfs_includes): Likewise for sys/statvfs.h.
130293         Check for the following members in both structs statfs and statvfs:
130294         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
130296 2002-06-01  Jim Meyering  <meyering@lucent.com>
130298         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
130299         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
130301 2002-05-28  Jim Meyering  <meyering@lucent.com>
130303         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
130304         Reported by Volker Borchert.
130306 2002-05-27  Jim Meyering  <meyering@lucent.com>
130308         Fix a problem seen only on nonconforming systems whereby ls.c's
130309         use of localtime, and then of gettimeofday would cause trouble:
130310         the localtime call used to initialize rpl_gettimeofday's save
130311         mechanism would clobber ls's current local time information so
130312         that in any long listing the first file would always be listed
130313         with date 1970-01-01.  Analysis by Volker Borchert.
130315         * lib/gettimeofday.c (localtime): Undefine.
130316         (rpl_localtime): New function.
130318 2002-05-27  Jim Meyering  <meyering@lucent.com>
130320         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
130321         localtime.
130323         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
130324         use the replacement function; it wouldn't resolve at link time.
130325         Reported by Volker Borchert.
130327 2002-05-22  Jim Meyering  <meyering@lucent.com>
130329         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
130330         file-type.h.
130331         * lib/file-type.h: New file.
130332         * lib/file-type.c (file_type): New file/function.  Extracted from
130333         diffutils.
130335 2002-04-30  Jim Meyering  <meyering@lucent.com>
130337         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
130339 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130341         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
130343 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130345         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
130346         Do not check for alloca.h (no longer used) or stdbool.h (was never
130347         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
130349 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130351         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
130353 2002-04-29  Jim Meyering  <meyering@lucent.com>
130355         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
130356         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
130357         Use AC_FUNC_STRNLEN here instead.
130359         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
130360         With autoconf-2.53a, it's part of AC_PROG_CC.
130362 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130364         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130365         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130367 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130369         * lib/sig2str.h, lib/sig2str.c: New files.
130370         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130372 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130374         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130375         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130376         of 127, since 64 is the largest conceivable number for ancient
130377         nonstandard hosts.
130378         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130380 2002-04-28  Jim Meyering  <meyering@lucent.com>
130382         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130384 2002-04-24  Jim Meyering  <meyering@lucent.com>
130386         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130387         (jm_PREREQ): Use it.
130389         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130390         mach/mach.h fcntl.h.
130391         Check for this function: setlocale.
130393 2002-04-24  Jim Meyering  <meyering@lucent.com>
130395         * lib/gettext.h: New file, from Gettext.
130396         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130397         (libfetish_a_SOURCES): Add gettext.h.
130399 2002-04-16  Jim Meyering  <meyering@lucent.com>
130401         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130402         ut_pid, ut_id, ut_exit.
130404 2002-04-16  Jim Meyering  <meyering@lucent.com>
130406         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130407         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130408         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130410 2002-04-12  Jim Meyering  <meyering@lucent.com>
130412         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130413         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130414         existence of the getmntinfo function.  Needed for Darwin 5.3.
130416         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130417         This is necessary at least on Darwin 5.3.
130419         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130420         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130421         strnlen.o in the library, and that makes some versions of ranlib
130422         object.
130424 2002-04-12  Jim Meyering  <meyering@lucent.com>
130426         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130428 2002-04-09  Jim Meyering  <meyering@lucent.com>
130430         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130431         to be more precise.  Rather than saying we're checking whether the
130432         function `works', say what we're testing.
130433         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130434         Reported by Bruno Haible.
130436 2002-03-10  Jim Meyering  <meyering@lucent.com>
130438         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130439         Suggestion from Santiago Vila.
130441 2002-03-08  Jim Meyering  <meyering@lucent.com>
130443         * lib/rename.c: Mention that this wrapper is needed also on
130444         mips-dec-ultrix4.4 systems.
130446 2002-03-02  Jim Meyering  <meyering@lucent.com>
130448         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130449         not HAVE_CLOCK_SETTIME.
130451 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130453         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130454         Check for clock_settime.
130456 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130458         * lib/nanosleep.h: Rename to....
130459         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130461         * lib/gettime.c: New file.
130462         * lib/settime.c: New file.
130463         * lib/stime.c: Remove.
130465         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130466         timespec.h.  Remove nanosleep.h.
130468 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130470         * m4/acl.m4: New file.
130471         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130472         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
130474 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130476         * lib/acl.c, lib/acl.h: New files.
130477         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
130479 2002-02-24  Jim Meyering  <meyering@lucent.com>
130481         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
130482         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
130483         cause trouble.  Reported by Nelson Beebe.
130485 2002-02-23  Paul Eggert  <eggert@twinsun.com>
130487         * lib/path-concat.c (xpath_concat): Reorder code to pacify
130488         compilers that don't know that xalloc_die never returns.
130490 2002-02-20  Jim Meyering  <meyering@lucent.com>
130492         * lib/getdate.c: Regenerate using bison-1.33.
130494 2002-02-17  Jim Meyering  <meyering@lucent.com>
130496         * config/config.guess (main): Don't use `head -1'; it's no longer
130497         portable. Use `sed 1q' instead.
130499 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
130501         * m4/codeset.m4: Upgrade to gettext-0.11.
130502         * m4/gettext.m4: Upgrade to gettext-0.11.
130503         * m4/glibc21.m4: Upgrade to gettext-0.11.
130504         * m4/iconv.m4: Upgrade to gettext-0.11.
130505         * m4/isc-posix.m4: Upgrade to gettext-0.11.
130506         * m4/lcmessage.m4: Upgrade to gettext-0.11.
130507         * m4/lib-ld.m4: New file, from gettext-0.11.
130508         * m4/lib-link.m4: New file, from gettext-0.11.
130509         * m4/lib-prefix.m4: New file, from gettext-0.11.
130510         * m4/progtest.m4: Upgrade to gettext-0.11.
130512 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130514         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
130515         (jm_PREREQ): Use it.
130517 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130519         * lib/posixver.c, lib/posixver.h: New files.
130520         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130522 2002-02-02  Paul Eggert  <eggert@twinsun.com>
130523             Bruno Haible  <bruno@clisp.org>
130525         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
130526         (fwrite_success_callback): New declaration.
130527         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
130528         print_unicode_char. Call failure callback instead of error.
130529         (fwrite_success_callback): New function.
130530         (exit_failure_callback): New function.
130531         (fallback_failure_callback): New function.
130532         (print_unicode_char): Call unicode_to_mb.
130534 2002-01-26  Jim Meyering  <meyering@lucent.com>
130536         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
130537         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
130539 2002-01-26  Jim Meyering  <meyering@lucent.com>
130541         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
130543 2002-01-22  Paul Eggert  <eggert@twinsun.com>
130545         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
130547 2002-01-22  Jim Meyering  <meyering@lucent.com>
130549         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
130550         Otherwise, some versions of automake would omit the rule that makes
130551         Makefile from Makefile.in.
130553 2002-01-21  Paul Eggert  <eggert@twinsun.com>
130555         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
130556         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130557         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
130558         (memcoll): Set errno to zero if there is no error.
130560         * lib/quotearg.c (quotearg_buffer_restyled):
130561         Fix bug with quoting buffers containing NUL when backslashing escapes.
130562         This bug was exposed by the other changes in this patch.
130563         (quotearg_n_options): New arg ARGSIZE.
130564         All callers changed.
130565         (quoting_options_from_style): New function.
130566         (quotearg_n_style): Use it.
130567         (quotearg_n_style_mem): New function.
130569         * lib/quotearg.h (quotearg_n_style_mem): New function.
130571 2002-01-19  Jim Meyering  <meyering@lucent.com>
130573         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
130574         Remove useless quotes: DF_PROG="df".
130575         * m4/strnlen.m4: New file.
130577 2002-01-16  Paul Eggert  <eggert@twinsun.com>
130579         * lib/backupfile.c (ISDIGIT): Comment fix.
130580         * lib/getdate.y (ISDIGIT): Likewise.
130581         * lib/posixtm.c (ISDIGIT, year): Likewise.
130582         * lib/strverscmp.c (ISDIGIT): Likewise.
130583         * lib/userspec.c (ISDIGIT): Likewise.
130585 2002-01-16  Jim Meyering  <meyering@lucent.com>
130587         * lib/getdate.y: Add three semicolons, each just before a closing
130588         brace. Bison (as of version 1.31) no longer papers over that mistake.
130590 2002-01-05  Jim Meyering  <meyering@lucent.com>
130592         * lib/version-etc.c (version_etc_copyright): Update copyright year.
130594 2001-12-19  Paul Eggert  <eggert@twinsun.com>
130596         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
130597         not silently exit merely because the output buffer happens to
130598         have nothing pending.
130600 2001-12-18  Paul Eggert  <eggert@twinsun.com>
130602         See the big note in ../ChangeLog.
130603         * lib/human.c (suffixes): Prefer K to k for 1024.
130604         (generate_suffix_backwards): New function.
130605         (human_readable_inexact): Use it.
130606         * lib/xstrtol.c (__xstrtol): If there is no number but there
130607         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
130608         Accept 'K' as well as 'k'.
130610 2001-12-15  Jim Meyering  <meyering@lucent.com>
130612         * lib/regex.h (__restrict_arr): Update from libc.
130614         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130615         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130616         (STREQ): Define.
130618 2001-12-14  Jim Meyering  <meyering@lucent.com>
130620         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
130621         Suggestion from Bruno Haible.
130623 2001-12-10  Jim Meyering  <meyering@lucent.com>
130625         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
130626         xrealloc, Instead, include "xalloc.h".
130627         (initbuffer): Don't cast xmalloc return value to char*.
130628         (readline): Reword comment.
130629         Don't cast xrealloc return value to char*
130630         Return NULL, not 0.
130632 2001-12-09  Jim Meyering  <meyering@lucent.com>
130634         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
130635         about `signed and unsigned type in conditional expression'.
130636         * lib/posixtm.c (posix_time_parse): Likewise.
130638         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
130640         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
130641         to avoid a pedantic warning.
130643         * lib/getstr.c: Don't include assert.h.
130644         (getstr): Remove warning-evoking assertions.
130645         Return -1 if offset parameter is out of bounds.
130646         Change the type of a local from int to size_t.
130648         * lib/strftime.c (my_strftime_localtime_r): Include this function
130649         definition in the `#if ! HAVE_TM_GMTOFF' block.
130651         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
130652         Include xalloc.h instead.
130654 2001-12-02  Jim Meyering  <meyering@lucent.com>
130656         * lib/tempname.c: Don't declare getenv, thus reverting the change of
130657         2001-11-18.  It's no longer necessary, now that stdlib.h is always
130658         included.
130660         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
130661         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
130663 2001-11-30  Akim Demaille  <akim@epita.fr>
130665         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
130666         before being defined.
130668 2001-11-27  Paul Eggert  <eggert@twinsun.com>
130670         * lib/quotearg.h (quotearg_n, quotearg_n_style):
130671         First arg is int, not unsigned.
130672         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
130673         (SIZE_MAX, UINT_MAX): New macros.
130674         (quotearg_n_options): Abort if N is negative.
130675         Avoid overflow check on hosts where size_t is 64 bits and int
130676         is 32 bits, as overflow is impossible there.
130677         Fix off-by-one typo that caused unnecessary reallocation.
130679 2001-11-27  Jim Meyering  <meyering@lucent.com>
130681         * lib/tempname.c: Merge with version from libc.
130682         * lib/regex.c: Likewise.
130684         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130685         systems for which STDC_HEADERS is 0, it was not included, resulting in
130686         a warning about an integer-to-pointer conversion problem with getenv.
130687         Reported by Volker Borchert.
130689 2001-11-26  Jim Meyering  <meyering@lucent.com>
130691         * lib/gtod.h: Remove file.
130692         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130693         * lib/gettimeofday.c: Don't include gtod.h.
130694         (GTOD_init): Remove function.
130695         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130696         Suggestion from Volker Borchert.
130698 2001-11-23  Jim Meyering  <meyering@lucent.com>
130700         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130701         it.
130702         * lib/hash.c (struct hash_table): Define it here instead.
130704 2001-11-22  Jim Meyering  <meyering@lucent.com>
130706         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130708 2001-11-20  Jim Meyering  <meyering@lucent.com>
130710         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130711         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130713 2001-11-19  Jim Meyering  <meyering@lucent.com>
130715         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130716         directory.  Use "conftestXXXXXX" as the template.
130717         Suggestion from Paul Eggert.
130719         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130720         immediately, so the test doesn't mistakenly hit the max-open-files
130721         limit.
130723 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130725         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130726         (TEMPORARIES): New macro.
130727         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130728         removes an artificial limitation (e.g. HP-UX 10.20, where
130729         TMP_MAX is 17576).
130731 2001-11-18  Jim Meyering  <meyering@lucent.com>
130733         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130735 2001-11-18  Jim Meyering  <meyering@lucent.com>
130737         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130738         on SunOS 4.
130740         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130741         files will be created before anything else.
130743 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130745         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130746         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130748 2001-11-17  Jim Meyering  <meyering@lucent.com>
130750         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130751         Prompted by a report from Bob Proulx.
130753         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130754         Instead, require UTILS_FUNC_MKSTEMP.
130756 2001-11-17  Jim Meyering  <meyering@lucent.com>
130758         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130759         Now, that's done as part of AC_FUNC_STRTOD.
130761 2001-11-17  Jim Meyering  <meyering@lucent.com>
130763         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130764         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130765         rather than group writable.  Patch by Juan F. Codagnone.
130767         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130768         xrealloc, Instead, include "xalloc.h".
130770         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130771         Remove explicit declarations of xmalloc, xrealloc,
130772         and xstrdup.  Instead, include "xalloc.h".
130774         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130775         unlocked-io.h.
130776         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130777         Likewise.
130778         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130780         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130781         Reported by Padraig Brady.
130783         * lib/mkstemp.c: #undef mkstemp.
130784         Include config.h.
130785         (rpl_mkstemp): Rename from mkstemp.
130786         Protoize.
130788 2001-11-16  Jim Meyering  <meyering@lucent.com>
130790         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130791         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130792         determine the amount of total physical memory, use pstat_getstatic.
130793         HPUX-11 doesn't define _SC_PHYS_PAGES.
130794         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130795         If sysconf couldn't be used to determine the amount of available
130796         physical memory, use both pstat_getstatic and pstat_getdynamic.
130797         Based on a patch from Bob Proulx.
130799 2001-11-10  Jim Meyering  <meyering@lucent.com>
130801         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130802         (jm_PREREQ): Use it.
130804 2001-11-09  Jim Meyering  <meyering@lucent.com>
130806         * m4/jm-macros.m4: Require autoconf-2.52f.
130807         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130808         Use these AC_-prefixed names, not the AM_-prefixed ones.
130810         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130812 2001-11-05  Jim Meyering  <meyering@lucent.com>
130814         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130816 2001-11-04  Jim Meyering  <meyering@lucent.com>
130818         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130819         $DEFS.
130821 2001-11-03  Jim Meyering  <meyering@lucent.com>
130823         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130824         of AC_DEFUN.
130826         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130827         know the name of the variable in the macro definition.
130829 2001-11-03  Jim Meyering  <meyering@lucent.com>
130831         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130832         in argmatch_to_argument call.
130834         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130835         argument.
130837         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130838         e.g., a fault due to an attempt to free a NULL pointer.
130840 2001-11-01  Jim Meyering  <meyering@lucent.com>
130842         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130843         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130845 2001-11-01  Jim Meyering  <meyering@lucent.com>
130847         * lib/dirfd.c, lib/dirfd.h: New files.
130848         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130850         * lib/hash.c (hash_print) [TESTING]: Clean up.
130852 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130854         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130855         to avoid a warning if -Wall.
130857 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130859         * README: New file
130860         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130861         (per RMS's instructions, this is now the canonical source)
130862         * lgpl/, gpl/: New directories.
130864 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130866         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130868 2001-10-21  Jim Meyering  <meyering@lucent.com>
130870         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130871         this code would end up calling gettext even in packages built
130872         with --disable-nls.
130873         * lib/getopt.c (_): Likewise.
130874         * lib/regex.c (_): Likewise.
130876 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130878         * m4/error.m4 (jm_PREREQ_ERROR):
130879         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130880         AC_FUNC_STRERROR_R does that.
130881         Check for strerror declaration.
130883         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130884         are supposed to have them these days.
130885         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130886         Merge changes from latest Autoconf CVS.
130887         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130888         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130889         POSIX decided to standardize on the int flavor of strerror_r.
130891 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130893         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130894         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130895         Use strerror_r that is only a macro, even if it is not a function.
130896         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130897         (private_strerror): Use prototypes, not old-style function definition.
130898         (print_errno_message): New function.
130899         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130900         char*-flavored one.
130901         (error_tail, error, error_at_line): Use it.
130903 2001-10-11  Jim Meyering  <meyering@lucent.com>
130905         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130906         and quote_n (1, ... to avoid clobbering a buffer.
130908 2001-10-05  Jim Meyering  <meyering@lucent.com>
130910         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130911         hash-pjw.h.
130912         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130913         * lib/hash-pjw.h: New file.
130915 2001-09-30  Jim Meyering  <meyering@lucent.com>
130917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130918         `struct fsstat' has the `f_fstypename' member.
130919         Use that to define FS_TYPE, which is now used to make
130920         the getfsstat link test tighter.
130922 2001-09-30  Jim Meyering  <meyering@lucent.com>
130924         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130925         Include <sys/ucred.h>, for Apple Darwin.
130926         Include sys/mount.h and sys/fs_types.h only if available.
130927         (FS_TYPE): Define.
130928         (read_filesystem_list): Use FS_TYPE.
130930 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130932         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130933         a boolean context.
130935 2001-09-29  Jim Meyering  <meyering@lucent.com>
130937         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130938         [one-argument getmntent function]): Include stdio.h before mntent.h.
130939         SunOS 4.1.x needs it for the declaration of `FILE'.
130940         Patch by Volker Borchert.
130942         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130943         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130944         sys/fs_types.h, and make the link-test for getfsstat guard #include
130945         directives with appropriate #if HAVE_*_H tests so that we can
130946         detect getfsstat on Apple Darwin1.3.7 systems.
130947         Reported by Nelson Beebe.
130948         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130950 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130952         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130953         #defines strtoimax.  Also treat the other strto* functions
130954         like strtoimax.
130956         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130957         Check for strtoul and strtoumax,
130958         as those declarations are made even in the signed case.
130959         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130960         Likewise, for strtol and strtoimax.
130962 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130964         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130965         #defines strtoimax.  Also treat the other strto* functions
130966         like strtoimax.
130968         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130969         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130970         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130972 2001-09-26  Jim Meyering  <meyering@lucent.com>
130974         Most macros in unlocked-io.h had the wrong number of arguments.
130975         * lib/gen-uio: New script.
130976         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130977         * lib/unlocked-io.hin: Remove file.
130978         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130979         rather than trying to embed it here.
130980         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130981         Reported by Padraig Brady.
130983 2001-09-25  Volker Borchert  <bt@teknon.de>
130985         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130986         `result'.
130988 2001-09-24  Jim Meyering  <meyering@lucent.com>
130990         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130992 2001-09-23  Jim Meyering  <meyering@lucent.com>
130994         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130995         instead of the mere test for existence of mntent.h.  The latter
130996         would get a false-positive on AIX 3.4 systems.
130997         In the outer getmntent if-block, don't die if neither of the getmntent
130998         tests succeeds.  Instead, just fall through and continue with the
130999         remaining tests.
131001 2001-09-23  Jim Meyering  <meyering@lucent.com>
131003         * lib/mountlist.c: Remove useless parentheses in #if directives.
131004         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
131005         the deprecated MOUNTED symbol is no longer defined in mntent.h.
131007 2001-09-22  Jim Meyering  <meyering@lucent.com>
131009         * m4/gettext.m4: New file.  From gettext.
131010         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
131011         * m4/progtest.m4: Likewise
131012         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
131013         * m4/glibc21.m4: Likewise.
131015         * m4/libintl.m4: Remove.  No longer used.
131017 2001-09-22  Jim Meyering  <meyering@lucent.com>
131019         * lib/localcharset.c: Update from latest gettext.
131020         * lib/config.charset: Likewise.
131022 2001-09-20  Jim Meyering  <meyering@lucent.com>
131024         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
131025         strtoimax.
131026         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
131027         strtoumax.
131029 2001-09-20  Jim Meyering  <meyering@lucent.com>
131031         * lib/xstrtol.c (strtoimax): Guard declaration with
131032         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
131033         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
131034         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
131035         (strtoumax): Likewise, for completeness (it wasn't necessary).
131037 2001-09-17  Paul Eggert  <eggert@twinsun.com>
131039         * lib/strtoimax.c (HAVE_LONG_LONG):
131040         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
131041         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
131042         to work around bug in IBM C compiler.
131044 2001-09-17  Jim Meyering  <meyering@lucent.com>
131046         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
131047         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
131048         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
131049         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
131050         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
131051         whenever the right hand side need not be expanded by the shell.
131053 2001-09-16  Paul Eggert  <eggert@twinsun.com>
131055         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
131056         library.  It's not correct, as some older glibcs are buggy.
131057         fnmatch wasn't fixed until glibc 2.2.
131059         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
131060         special shell magic here.
131062 2001-09-16  Jim Meyering  <meyering@lucent.com>
131064         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
131065         * m4/jm-macros.m4: Require it.
131067 2001-09-16  Jim Meyering  <meyering@lucent.com>
131069         * lib/mkdir.c: New file.
131071 2001-09-15  Jim Meyering  <meyering@lucent.com>
131073         * m4/jm-macros.m4: Check for help2man.
131075 2001-09-11  Jim Meyering  <meyering@lucent.com>
131077         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
131078         The body, by Paul Eggert, was moved here from configure.in.
131079         * m4/jm-macros.m4: Require UTILS_HOST_OS.
131081 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131083         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
131084         (jm_PREREQ): Use it.
131086 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131088         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
131089         Use ssize_t, not int, to store result of readlink.
131090         Check for ssize_t overflow as well as size_t overflow,
131091         as POSIX says the result of readlink is implementation-defined
131092         when ssize_t overflows.
131093         Remove unnecessary cast to char*.
131094         Use free+malloc instead of realloc, as the storage doesn't need
131095         to be preserved and it's clearer and can be more efficient that way.
131096         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
131097         * lib/xreadlink.h (xreadlink): Update prototype.
131099 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131101         * lib/xgetcwd.c: Revert some of the previous change; intead,
131102         fix the HAVE_GETCWD_NULL code to behave more like the
131103         !HAVE_GETCWD_NULL code used to.
131105         Include "xalloc.h".
131106         (xgetcwd): Do not return NULL when memory is exhausted; instead,
131107         invoke xalloc_die.
131109 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131111         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
131112         sys/param.h, as pathmax.h includes them.
131114 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131116         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
131117         (jm_PREREQ_XGETCWD): New macro.
131119         * m4/getcwd.m4: New file.
131121 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131123         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
131124         like the HAVE_GETCWD_NULL code.
131125         Include pathmax.h if not HAVE_GETCWD.
131126         Do not include xalloc.h.
131127         (INITIAL_BUFFER_SIZE): New symbol.
131128         Do not use xmalloc / xrealloc, since the caller is responsible for
131129         handling errors.  Preserve errno around `free' during failure.
131130         Do not overrun buffer when using getwd.
131132 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131134         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
131135         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
131136         getcwd (NULL, 0).
131138 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131140         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
131141         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
131142         spotted by Jim Meyering.
131144 2001-09-03  Jim Meyering  <meyering@lucent.com>
131146         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
131147         failure.
131149 2001-09-02  Jim Meyering  <meyering@lucent.com>
131151         * lib/error.c: Update from GNU libc.
131153 2001-09-01  Jim Meyering  <meyering@lucent.com>
131155         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
131156         Used by df.
131158 2001-09-01  Jim Meyering  <meyering@lucent.com>
131160         * lib/xreadlink.c: New file.
131161         * lib/xreadlink.h: New file.
131162         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
131163         xreadlink.h.
131165         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
131166         doesn't conflict with sparc Solaris 7's definition in
131167         /usr/include/sys/int_types.h.
131169         * lib/exclude.c: Use `""', not `<>' to #include non-system header
131170         files.
131171         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
131172         and strncasecmp as r-values.  Unixware didn't have declarations.
131174 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131176         * lib/xstrtol.h: Add copyright notice.
131177         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
131178         LONGINT_INVALID_SUFFIX_CHAR.
131180 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131182         * lib/xstrtol.c (strtoimax): New decl.
131184 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131186         * lib/xgetcwd.c: Don't include pathmax.h.
131187         Include stdlib.h and unistd.h if available.
131188         Include xalloc.h.
131189         (xmalloc, xstrdup, free): Remove decls.
131190         (xgetcwd): Don't assume sizes fit in unsigned.
131191         Check for overflow when computing sizes.
131192         Simplify reallocation code.
131194 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131196         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
131197         a directory's st_size can have an arbitrary value, so the old
131198         usage could waste an arbitrary amount of memory.  All uses
131199         changed.
131200         * lib/savedir.h: Update prototype.
131202 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131204         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
131206         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
131207         old strtoimax.c.
131209         Also, make the following further changes to make this file's
131210         configuration more similar to that of strtol.c:
131211         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
131212         (strtoumax, uintmax_t, strtoull, strtol): Remove.
131213         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
131214         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
131215         changed to signed values.
131217         And make the following changes as well:
131218         Fix copyright notice, as 1999 was missing.
131219         (verify): New macro.
131220         (strtoimax): Check sizes at compile-time, not run-time.
131221         Prefer strtol to strtoll if both work.
131222         (main): Remove; it was not that useful and was a pain to maintain.
131224         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
131226 2001-08-31  Jim Meyering  <meyering@lucent.com>
131228         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
131229         Use an initial, malloc'd, buffer of length 128 rather than
131230         a statically allocated one of length 1024.
131232 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131234         Simplify code, partly by assuming autoconf 2.52 semantics.
131236         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
131238         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
131239         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
131240         All uses removed.
131241         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
131242         Move AC_REQUIRE to next-to-top level, to avoid confusion.
131243         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
131244         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
131245         jm_AC_HEADER_INTTYPES_H.
131246         * m4/jm-macros.m4 (jm_MACROS): Likewise.
131248         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
131250         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131251         Quote first arg of AC_DEFUN.
131252         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
131253         since they are needed to parse the include file even if we need
131254         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
131255         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
131256         but with opposite signedness.
131258 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131260         Merge 'exclude' changes from tar 1.13.22.
131261         This fixes one or two unlikely storage allocation overflow bugs,
131262         but doesn't change user-visible behavior otherwise.
131264 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131266         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
131267         (jm_PREREQ_EXCLUDE): New macro.
131269 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131271         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
131272         tm to be declared.
131274 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131276         * lib/hash.c: Remove '2001' from copyright notice.
131278 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131280         * lib/full-write.h: New file.
131281         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
131282         * lib/full-write.c: Correct credits, as cccp.c no longer
131283         exists and anyway it was so heavily changed from the old cccp
131284         code as to be unrecognizable.  Include full-write.h.
131285         (full_write): Return size_t, with short writes meaning failure.
131286         All callers changed.  This fixes a bug with large buffers
131287         on 64-bit hosts.
131288         * lib/utime.c: Include full-write.h.
131290 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131292         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
131293         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
131294         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
131295         Include if available.
131296         (<xalloc.h>): Include
131297         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
131298         (verify): New macro.  Use it to verify that EXCLUDE macros do not
131299         collide with FNM macros.
131300         (struct patopts): New struct.
131301         (struct exclude): Use it, as exclude patterns now come with options.
131302         (new_exclude): Support above changes.
131303         (new_exclude, add_exclude_file):
131304         Initial size must now be a power of two to simplify overflow checking.
131305         (free_exclude, fnmatch_no_wildcards): New function.
131306         (excluded_filename): No longer requires options arg, as the options
131307         are determined by add_exclude.  Now returns bool, not int.
131308         (excluded_filename, add_exclude):
131309         Add support for the fancy new exclusion options.
131310         (add_exclude, add_exclude_file): Now takes int options arg.
131311         Check for arithmetic overflow when computing sizes.
131312         (add_exclude_file): xrealloc might modify errno, so don't
131313         realloc until after errno might be used.
131315         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
131316         New macros.
131317         (free_exclude): New decl.
131318         (add_exclude, add_exclude_file): Now takes int options arg.
131319         (excluded_filename): No longer requires options arg, as the options
131320         are determined by add_exclude.  Now returns bool, not int.
131322 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131324         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
131326 2001-08-27  Jim Meyering  <meyering@lucent.com>
131328         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
131330         * lib/version-etc.c (N_): Remove definition.
131331         Revert most of last change.
131332         Instead, simply don't mark the `Copyright...' string for translation.
131333         Based on advice from Paul Eggert.
131335         * lib/strtoxmax.c: Tweak comment.
131337 2001-08-26  Jim Meyering  <meyering@lucent.com>
131339         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
131341         * m4/xstrtoimax.m4: New file.
131342         * m4/xstrtoumax.m4: Add comments explaining why we
131343         AC_REPLACE_FUNCS(strtol).
131345 2001-08-26  Jim Meyering  <meyering@lucent.com>
131347         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
131348         of copyright with `%s' so translators don't get an untranslated
131349         message in 2002.
131350         (COPYRIGHT_YEAR): Define.
131351         (version_etc): Use fprintf rather than fputs.
131352         Suggestion from Ulrich Drepper.
131354         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
131356         * lib/strtoll.c: New file, from GNU libc.
131357         * lib/xstrtoimax.c: New file.
131359         * lib/xstrtol.h: Add xstrtoimax.
131360         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
131361         * lib/strtoimax.c: New file.  Likewise, but first define
131362         STRTOUXMAX_SIGNED.
131364         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131365         ...
131366         * lib/strtoxmax.c: ... then renamed to this.
131368 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131370         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131371         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131372         (jm_AC_TYPE_INTMAX_T): New macro.
131373         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131375         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131377         * m4/longlong.m4: Renamed from ulonglong.m4.
131378         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131379         * m4/uintmax_t.m4: Removed.
131381 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131383         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131384         Port to Solaris 8, where 'sed' requires a space after the 'r'
131385         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131386         Redirect output to $tmp just once.
131388 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131390         * lib/addext.c (<errno.h>): Include.
131391         (errno): Declare if not defined.
131392         (addext): Work correctly when pathconf returns -1 and leaves
131393         errno alone because there is no limit.  Also, work even if
131394         pathconf returns a value greater than SIZE_MAX.
131396 2001-08-12  Jim Meyering  <meyering@lucent.com>
131398         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131399         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131400         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131401         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131402         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131403         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131404         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131405         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131406         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131407         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131408         utime.m4, utimes.m4, xstrtoumax.m4:
131409         Quote the first argument in each use of AC_DEFUN.
131411 2001-08-12  Jim Meyering  <meyering@lucent.com>
131413         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131414         Simply `return getcwd (NULL, 0);'.
131415         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131416         Use 1300 as initial value for length, not PATH_MAX.
131418         * lib/pathmax.h: Clean up cpp syntax.
131420 2001-08-12  Jim Meyering  <meyering@lucent.com>
131422         * lib/gettimeofday.c: New file.
131423         * lib/gtod.h: New file.
131424         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131426 2001-08-05  Jim Meyering  <meyering@lucent.com>
131428         * m4/jm-macros.m4: Require autoconf-2.52.
131430 2001-08-04  Jim Meyering  <meyering@lucent.com>
131432         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131433         stmt, to get in sync with glibc.
131435 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131437         The following changes are from gettext 0.10.39 as maintained by
131438         Bruno Haible.
131440         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131441         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131442         with inverted sense.  All uses changed.
131444         * lib/mbswidth.c: Don't include <limits.h>.
131445         Include <stdlib.h> and <string.h> unconditionally.
131446         (iswcntrl, mbsinit, ISCNTRL): New macros.
131447         (mbsnwidth): Use K&R style function declarations.
131448         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131449         can optimize it when MB_CUR_MAX == 1.
131450         The width of control characters is zero, not 1.
131452 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131454         The following changes are from gettext 0.10.39 as maintained by
131455         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131457         * m4/codeset.m4: Upgrade to serial AM1.
131458         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131459         all uses changed.  Quote first arg of AC_DEFUN.
131460         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131462         * m4/iconv.m4: Upgrade to serial AM2.
131463         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131464         Add --with-libconv-prefix.
131465         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131466         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131467         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131468         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131469         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131471         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131472         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
131473         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
131474         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
131475         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
131476         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
131477         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
131478         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
131479         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
131481         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
131482         string.h any more.
131484         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
131485         not the default value.
131487         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
131488         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
131489         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
131490         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
131491         Also check for iswcntrl, used for wcwidth fallback.
131492         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
131493         to Autoconf 2.13.
131495 2001-08-03  Jim Meyering  <meyering@lucent.com>
131497         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
131498         as it was in the original.  Reported by Paul Eggert.
131500 2001-07-16  Jim Meyering  <meyering@lucent.com>
131502         * m4/gettimeofday.m4: New file.
131503         Prompted by a report from Bernhard Baehr.
131505 2001-07-15  Jim Meyering  <meyering@lucent.com>
131507         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
131508         stuff. Now it's in ../Makefile.cfg.
131510 2001-07-15  Jim Meyering  <meyering@lucent.com>
131512         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
131513         (BUILT_SOURCES): Add unlocked-io.h.
131514         (io_functions): Define.
131515         (unlocked-io.h): New rule.
131516         (DISTCLEANFILES): Add unlocked-io.h.
131517         (all-local): Depend on unlocked-io.h, to ensure it is created.
131519         * lib/unlocked-io.hin: New file
131521         * lib/regex.c: Update from glibc.
131523 2001-07-05  Jim Meyering  <meyering@lucent.com>
131525         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
131526         recommendation.
131527         (libfetish_a_SOURCES): Put all .h files here instead.
131528         Remove a thus-exposed (better checks in automake) duplicate and
131529         two unnecessary .h files.
131531 2001-07-04  Jim Meyering  <meyering@lucent.com>
131533         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
131534         that generates jm-glibc-io.m4 so that it doesn't trigger any make
131535         distcheck failure.
131537 2001-07-02  Jim Meyering  <meyering@lucent.com>
131539         The following changes were prompted by suggestions from Bruno Haible.
131541         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
131542         is now generated.
131543         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
131544         definition of EXTRA_DIST.
131545         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
131546         ensure that the generated file is created/updated whenever the list
131547         of $(unlocked_functions) is changed.
131548         (jm-glibc-io.m4): New rule.
131549         (unlocked-io.h): New rule -- currently unused.
131551 2001-06-24  Jim Meyering  <meyering@lucent.com>
131553         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
131554         unmatched right bracket, rather than kludging it with an extra,
131555         falsely-matching quote in a comment.  Patch by Akim Demaille.
131557 2001-06-11  Jim Meyering  <meyering@lucent.com>
131559         * lib/regex.c: Update from GNU libc.
131561 2001-05-27  Jim Meyering  <meyering@lucent.com>
131563         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
131564         Check for ut_type in struct utmp.
131566 2001-05-27  Jim Meyering  <meyering@lucent.com>
131568         * lib/readutmp.h (UT_TYPE): Define.
131570 2001-05-24  Jim Meyering  <meyering@lucent.com>
131572         * lib/argmatch.c: Include "quote.h".
131573         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
131574         quote function.  Reported by Göran Uddeborg.
131576 2001-05-22  Jim Meyering  <meyering@lucent.com>
131578         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
131579         now that we use the package-supplied version unconditionally.
131580         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
131582 2001-05-21  Jim Meyering  <meyering@lucent.com>
131584         * m4/regex.m4: Change a couple backticks to single quotes to avoid
131585         shell syntax errors.
131587 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131589         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
131591 2001-05-20  Paul Eggert  <eggert@twinsun.com>
131593         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
131594         Don't bother to check library strftime, since
131595         we'll be using our own my_strftime function anyway.
131596         Define my_strftime instead of strftime.
131598 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
131600         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
131601         which is not yet declared.
131603 2001-05-15  Jim Meyering  <meyering@lucent.com>
131605         * m4/regex.m4: Use proper quoting so brackets appear in the test
131606         program.
131607         Reported by, and with help from, Bruno Haible.
131609 2001-05-13  Jim Meyering  <meyering@lucent.com>
131611         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131612         undefined.
131614 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131616         dirname code cleanup.  base_name now behaves more compatibly
131617         with POSIX basename when given file names that have trailing
131618         slashes, and similarly for dir_name.  Add new primitives
131619         base_len and dir_len.  Put the directory-name-related decls
131620         into dirname.h.
131622         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
131623         * lib/backupfile.c (base_name): Likewise.
131624         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
131625         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
131626         * lib/makepath.c (strip_trailing_slashes): Likewise.
131627         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
131628         ISSLASH): Likewise.
131629         * lib/rename.c (strip_trailing_slashes): Likewise.
131630         * lib/same.c (base_name): Likewise.
131631         * lib/stripslash.c (ISSLASH): Likewise.
131633         * lib/addext.c: Include <dirname.h> after size_t is defined.
131634         * lib/backupfile.c: Likewise.
131636         * lib/addext.c (addext): Use base_len to trim redundant
131637         trailing slashes instead of doing it ourselves.
131638         But do not trim the last slash if it is not redundant.
131640         * lib/backupfile.c (find_backup_file_name,
131641         max_backup_version): Use base_len instead of rolling it ourselves.
131642         Handle the case of "" and (on DOS) "C:" correctly.
131644         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
131645         needed. Include <string.h>, <dirname.h>.
131646         (base_name): Allow file names ending in slashes, other than names
131647         that are all slashes.  In this case, return the basename followed
131648         by the slashes.  This is more general, and can be used in places
131649         where the original base_name purposely had an assertion failure.
131650         (base_len): New function.
131652         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
131653         Do not include <assert.h>; no longer needed.
131654         Include xalloc.h.
131655         (memrchr): Remove decl.
131656         (dir_name_r): Remove.
131657         (dir_len): Renamed from dirlen.  All callers changed.
131658         Rewrite in terms of base_name, for simplicity and consistency.
131659         (dir_name): Never return NULL.  All callers changed.
131660         Do not include <stdlib.h> in test program; no longer needed.
131661         return 0; is fine for test program.
131663         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
131664         New macros.
131665         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
131667         * lib/path-concat.c (path_concat): Use base_len to compute
131668         base length, not strlen; this means we cannot rely on memcpy
131669         to null-terminate.
131671         * lib/same.c (STREQ): Remove.
131672         (same_name): Handle the case where the basename ends in trailing '/'.
131674         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
131675         a slash was stripped.  Do not strip the last slash after a
131676         file system prefix.
131678 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131680         * lib/Makefile.am (libfetish_a_SOURCES):
131681         Add strftime.c, since we now compile it on all hosts.
131683         * lib/strftime.c (my_strftime):
131684         Define to nstrftime if emacs, but only if my_strftime is not defined.
131685         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131686         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131687         Add one more extra argument: a nanoseconds value.
131688         All uses changed.
131689         (ns): New macro.
131690         (my_strftime function): Add %N format.
131691         (emacs_strftimeu): Renamed from emacs_strftime,
131692         with extra ut argument.
131694 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131696         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131698 2001-04-21  Jim Meyering  <meyering@lucent.com>
131700         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131701         doesn't interfere.
131703 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131705         * m4/ftruncate.m4: Check for chsize.
131706         Link with ftruncate.o unconditionally if ftruncate is missing.
131707         This was required when cross-compiling to i586-mingw32msvc.
131709 2001-04-08  Jim Meyering  <meyering@lucent.com>
131711         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131712         recomputed; that's necessary when the offset spans a DST transition.
131713         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131715 2001-04-02  Jim Meyering  <meyering@lucent.com>
131717         * lib/regex.h, regex.c: Update from GNU libc.
131719 2001-03-24  Jim Meyering  <meyering@lucent.com>
131721         * m4/jm-macros.m4: Require autoconf-2.49d.
131723 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131725         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131727 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131729         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131731 2001-03-17  Jim Meyering  <meyering@lucent.com>
131733         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131734         now that the version in autoconf is equivalent.
131735         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131737         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131738         Suggestion from Akim Demaille.
131740         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131741         (jm_PREREQ_TEMPNAME): New function.
131743 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131745         * lib/tempname.c (uint64_t): Define to uintmax_t if
131746         not defined, and if UINT64_MAX is not defined.
131747         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131748         Reported by John David Anglin.
131750 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131752         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131753         resolve alias if codeset is empty.
131754         * lib/config.charset (BeOS): Use wildcard syntax.
131756 2001-03-13  Jim Meyering  <meyering@lucent.com>
131758         * lib/path-concat.c (path_concat)
131759         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131760         concatenating e.g., `C:' and `foo'.
131761         From Bruno Haible.
131763 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131765         * lib/localcharset.c (locale_charset): Don't use
131766         setlocale(LC_CTYPE,NULL). Don't return NULL.
131767         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131769 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131771         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131772         support for DOS/DJGPP.
131774 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131776         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131777         lacks mkstemp.  Compile our own tempname.c if we compile our own
131778         mkstemp.c, as mkstemp relies on tempname.
131780 2001-03-01  Jim Meyering  <meyering@lucent.com>
131782         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131783         AH_VERBATIM really does output its argument verbatim.
131785 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131787         * lib/Makefile.am (libfetish_a_SOURCES):
131788         Add dup-safer.c, fopen-safer.c.
131789         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131791         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131792         * lib/unistd-safer.h: New files.
131794 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131796         The mkstemp replacement is taken from glibc 2.2.2, with some
131797         portability fixes for use outside glibc, as follows:
131799         * lib/tempname.c (struct_stat64): New macro.
131800         (direxists, __gen_tempname): Use it.
131801         This avoids a portability problem with Solaris 8.
131803         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131804         (<stddef.h>, <stdint.h>, <string.h>):
131805         Include only if STDC_HEADERS || _LIBC.
131806         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131807         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131808         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131809         (__set_errno): Define this macro if <errno.h> doesn't.
131810         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131811         Define these macros if <stdio.h> doesn't.
131812         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131813         Define these macros if <sys/stat.h>
131814         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131815         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131816         __xstat64): Define if not _LIBC.
131817         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131818         (__gen_tempname): Invoke gettimeofday only if
131819         HAVE_GETTIMEOFDAY || _LIBC;
131820         otherwise, fall back on plain "time".
131821         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131823         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131825         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131827 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131829         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131831 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131833         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131834         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131835         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131836         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131838 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131840         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131841         Remove workaround macros for hosts that have mbrtowc but not
131842         mbstate_t, as we now insist on proper declarations for both
131843         before using mbrtowc.
131845 2001-02-17  Jim Meyering  <meyering@lucent.com>
131847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131848         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131849         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131850         UnixWare 7.1.1.
131852         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131853         rather than AC_CACHE_VAL.
131855 2001-02-17  Jim Meyering  <meyering@lucent.com>
131857         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131858         around included file name.
131860         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131862         * lib/strftime.c: Update from GNU libc (the only changes were to
131863         comments).
131865 2001-02-17  Jim Meyering  <meyering@lucent.com>
131867         * lib/regex.c: Update from libc.
131869 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131871         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131872         clash.
131874 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131876         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131877         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131878         Reported by Mark Hounschell via Paul Eggert.
131880 2001-02-07  Jim Meyering  <meyering@lucent.com>
131882         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131884 2001-02-05  Jim Meyering  <meyering@lucent.com>
131886         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131887         it includes the patch required for `large file' support with at least
131888         HP-UX's 10.20 /bin/cc.
131890 2001-02-03  Jim Meyering  <meyering@lucent.com>
131892         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131893         AS_IF, now that it works once again (mysteriously).
131894         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131896 2001-01-30  Jim Meyering  <meyering@lucent.com>
131898         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131899         * m4/chown.m4: Rename conftestchown to conftest.chown.
131900         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131901         s/conftestdir2/conftest.d2/.
131902         * m4/utimes.m4: s/conftestdata/conftest.data/
131903         Inspired by Pavel Roskin's change in autoconf.
131905 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131907         * lib/config.charset: Update for FreeBSD 4.2.
131909 2001-01-27  Jim Meyering  <meyering@lucent.com>
131911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131912         a use of AS_IF.
131913         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131915 2001-01-26  Jim Meyering  <meyering@lucent.com>
131917         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131918         quotearg.c includes it.
131920 2001-01-26  Jim Meyering  <meyering@lucent.com>
131922         * lib/quotearg.c: Include stddef.h.
131923         * lib/quote.c: Include stddef.h.
131924         Reported by Axel Kittenberger.
131926         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131927         line in double quotes so that it evokes a better diagnostic.
131928         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131929         Reported by Axel Kittenberger.
131931 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131933         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131934         as if it was a `charset'.
131936 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131938         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131939         has const.
131941 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131943         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131944         to avoid a warning.  Add back 'const' to inptr.
131946 2001-01-20  Jim Meyering  <meyering@lucent.com>
131948         Be sure that headers are checked before used in code compiled
131949         for the type checks.
131950         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131951         In place of that, invoke jm_CHECK_ALL_TYPES.
131952         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131953         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131954         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131955         The check for ssize_t was mistakenly run before the test for unistd.h.
131957         The configure-time check for stdbool.h was missing.
131958         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131959         (jm_PREREQ_HASH): New function.
131961 2001-01-17  Jim Meyering  <meyering@lucent.com>
131963         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131964         for autoconf-2.49c.
131965         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131967 2001-01-16  Jim Meyering  <meyering@lucent.com>
131969         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131970         From Bruno Haible.
131972 2001-01-14  Jim Meyering  <meyering@lucent.com>
131974         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131975         foo and bar.  Create conftestdir/ in the script, not in the C code.
131976         Remove directories in the script, not in the C code.
131977         Remove conftestdir{,2} before trying to create the directory.
131978         Make the entire configure script fail if the mkdir fails.
131980 2001-01-14  Jim Meyering  <meyering@lucent.com>
131982         * lib/rename.c: New file.  From Volker Borchert.
131983         Include stdlib.h, string.h or strings.h, and xalloc.h.
131984         Use strip_trailing_slashes rather than open-coding it.
131986 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131988         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131990 2001-01-03  Jim Meyering  <meyering@lucent.com>
131992         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131993         of local `inptr' to avoid warning with some system declarations of
131994         iconv.
131996 2001-01-02  Volker Borchert  <bt@teknon.de>
131998         * m4/rename.m4: New file.
131999         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
132001 2001-01-01  Jim Meyering  <meyering@lucent.com>
132003         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
132004         even on systems with utmpx.h.  It's necessary for the declaration of
132005         utmp's ut_user member.  Reported by Andreas Jaeger.
132007         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
132008         available. They are required for the declarations of getgrgid and
132009         getpwuid resp.
132010         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
132011         Reported by Andreas Jaeger.
132013 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
132015         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
132016         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
132017         so `make install' also works in VPATH builds.
132019 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
132021         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
132022         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
132023         can be used in subdirectories.
132025 2000-12-29  Paul Eggert  <eggert@twinsun.com>
132027         * lib/modechange.c: Do not assume that mode_t uses the
132028         traditional octal encoding.  E.g. "chmod 1 FOO" should set
132029         the other-execute bit of FOO even if S_IXOTH != 1.
132031         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
132032         WOTH, XOTH, ALLM): New macros.
132033         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
132034          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
132035         Use them.
132036         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
132037         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
132038         (mode_compile):
132039         No need to use uintmax_t; unsigned long is long enough.
132040         Don't bother to get suffix since we don't use it.
132042 2000-12-26  Jim Meyering  <meyering@lucent.com>
132044         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
132045         better with autoheader.
132047 2000-12-24  Jim Meyering  <meyering@lucent.com>
132049         * lib/hash.c (is_prime): Return explicit boolean values.
132050         (hash_get_first): Return NULL to appease Irix5.6's 89.
132051         Reported by Nelson Beebe.
132053 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
132055         * lib/localcharset.c (locale_charset): Add support for Win32.
132057 2000-12-18  Paul Eggert  <eggert@twinsun.com>
132059         * lib/physmem.h, lib/physmem.c: New files.
132061         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
132062         (noinst_HEADERS): Add physmem.h.
132064         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
132065         't' for compatibility with Solaris 8 sort.
132067 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
132069         * lib/config.charset: Add support for BeOS.
132071 2000-12-17  Jim Meyering  <meyering@lucent.com>
132073         * m4/dos.m4 (jm_AC_DOS): New file and macro.
132074         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
132076 2000-12-16  Jim Meyering  <meyering@lucent.com>
132078         This bug had a serious impact on chown: `chown N:M FILE' (for integer
132079         N and M) would have treated it like `chown N:N FILE'.
132081         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
132083 2000-12-16  Jim Meyering  <meyering@lucent.com>
132085         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
132086         SHELLS_FILE to a file name that's useful on djgpp systems.
132087         Include stdlib.h.
132088         (ADDITIONAL_DEFAULT_SHELLS): Define.
132089         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
132090         Based mostly on a patch from Prashant TR.
132092 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
132094         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
132095         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
132096         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
132098 2000-12-08  Andreas Schwab  <schwab@suse.de>
132100         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
132101         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
132103 2000-12-07  Jim Meyering  <meyering@lucent.com>
132105         * lib/stripslash.c (ISSLASH): Define.
132106         (strip_trailing_slashes): Use ISSLASH rather than comparing against
132107         `/'.
132108         From Prashant TR.
132110         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
132111         (dir_name_r): Declare this function as static.
132112         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
132113         manifest itself on a name containing a mix of slashes and
132114         backslashes.
132115         Make this function work with names starting with a DOS-style
132116         drive letter and colon prefix.
132117         (dir_name): Append `.' if necessary.
132118         Based mostly on patches from Prashant TR and Eli Zaretskii.
132120         * lib/dirname.h (dir_name_r): Remove prototype.
132122 2000-12-06  Paul Eggert  <eggert@twinsun.com>
132124         * m4/off_t-format.m4: Remove this file.
132125         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
132127 2000-12-06  Jim Meyering  <meyering@lucent.com>
132129         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
132130         replacement strtoull, we may well need the replacement strtoul, too.
132131         Check for declarations of strtoul and strtoull.
132132         Check for strtol.  Mainly as a cue to cause automake to include
132133         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
132134         Check for limits.h -- strtol.c needs it.
132136 2000-12-05  Jim Meyering  <meyering@lucent.com>
132138         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
132140 2000-12-04  Jim Meyering  <meyering@lucent.com>
132142         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
132143         Also include memory.h, stdlib.h, unistd.h if appropriate.
132144         Reported by Andreas Jaeger (conflicting declaration of malloc).
132146 2000-12-02  Jim Meyering  <meyering@lucent.com>
132148         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
132149         * m4/jm-macros.m4 (jm_MACROS): require it.
132151 2000-12-02  Jim Meyering  <meyering@lucent.com>
132153         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
132155 2000-12-01  Paul Eggert  <eggert@twinsun.com>
132157         * lib/memrchr.c: Include <config.h> before any system include file.
132159 2000-11-30  Jim Meyering  <meyering@lucent.com>
132161         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
132163 2000-11-30  Jim Meyering  <meyering@lucent.com>
132165         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
132167 2000-11-29  Paul Eggert  <eggert@twinsun.com>
132169         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
132171 2000-11-26  Jim Meyering  <meyering@lucent.com>
132173         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
132175 2000-11-22  Paul Eggert  <eggert@twinsun.com>
132177         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
132178         size of (size_t) -1; it's not portable.
132180 2000-11-17  Jim Meyering  <meyering@lucent.com>
132182         * lib/strstr.c: Update from GNU libc.
132184 2000-11-17  Akim Demaille  <akim@epita.fr>
132186         * lib/obstack.h: Formatting changes.
132187         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
132188         prevent type checking.
132189         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
132190         cast the value to (void *): assigning a `foo *' to a `void *'
132191         variable is valid.
132192         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132194 2000-11-16  Jim Meyering  <meyering@lucent.com>
132196         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
132198 2000-11-11  Jim Meyering  <meyering@lucent.com>
132200         * lib/error.c: Add a couple #includes, merging from GNU libc version.
132202 2000-11-10  Jim Meyering  <meyering@lucent.com>
132204         * lib/obstack.h: Update from GNU libc.
132205         * lib/obstack.c: Likewise.
132207 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
132209         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
132211 2000-11-06  Paul Eggert  <eggert@twinsun.com>
132213         * lib/getusershell.c (setusershell): Use rewind rather than
132214         fseek/fseeko, to avoid configuration hassles with fseeko.
132215         Don't bother opening SHELLS_FILE if shellstream is NULL;
132216         it's not necessary.
132218 2000-11-05  Jim Meyering  <meyering@lucent.com>
132220         * lib/makepath.h (make_dir): Declare.
132221         * lib/makepath.c (make_dir): Remove `static' attribute.
132222         Tweak a comment.
132224 2000-11-04  Jim Meyering  <meyering@lucent.com>
132226         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
132228 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
132230         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
132231         last one in a bucket, advance to the next bucket.
132233 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
132235         * lib/fnmatch.c: Do not comment out all the code if we are using
132236         the GNU C library, because in some cases we are replacing buggy
132237         code in the GNU C library itself.
132239 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
132241         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
132242         (regex_compile): Catch bogus \(\1\).
132244 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132246         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
132247         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
132248         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
132250 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132252         * lib/error.h, getline.h, modechange.h:
132253         Remove "2000" from Copyright line, as the file hasn't been
132254         changed this year other than in the copyright notice.
132256         * lib/xalloc.h: Add "2000" to Copyright line, as this file
132257         was changed this year.
132259 2000-10-29  Jim Meyering  <meyering@lucent.com>
132261         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
132262         renaming.
132263         * m4/ls-mntd-fs.m4: Likewise
132265 2000-10-29  Jim Meyering  <meyering@lucent.com>
132267         * lib/xstat.in: Fix grammar in comment.
132269 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
132271         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
132272         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
132273         doesn't define __restrict_arr.
132275 2000-10-28  Jim Meyering  <meyering@lucent.com>
132277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
132278         (jm_PREREQ_MEMCHR): New function.
132280 2000-10-28  Jim Meyering  <meyering@lucent.com>
132282         * lib/memchr.c: Update from libc.
132283         Adjust for portability:
132284         [HAVE_STDLIB_H]: Include stdlib.h.
132285         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
132286         Undef __memchr, too.
132287         [!weak_alias]: Define __memchr to memchr.
132289         * lib/regex.c: Update from libc.
132290         * lib/regex.h: Likewise.
132291         * lib/getopt1.c: Likewise.
132292         * lib/memcmp.c: Likewise.
132294         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
132295         Avoid using fseek, when possible -- it's broken by design.
132296         Patch by Ulrich Drepper.
132298 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
132300         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
132301         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
132302         Giving in to popular pressure to shut up the compiler with casts.
132304 2000-10-26  Jim Meyering  <meyering@lucent.com>
132306         * lib/strftime.c: Update from libc.
132308 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
132310         * regex.c: More `unsigned char' -> `re_char' changes.
132311         Also change several `int' into `re_wchar_t'.
132312         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
132313         (PUSH_FAILURE_POINTER): Don't cast any more.
132314         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
132315         We want GCC to complain, since this piece of code makes
132316         re_match non-reentrant, which *should* be fixed.
132317         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
132318         (EXTEND_BUFFER): Use RETALLOC.
132319         (SET_LIST_BIT): Don't cast.
132320         (re_wchar_t): New type.
132321         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
132322         that those two functions will always properly return.
132323         (IMMEDIATE_QUIT_CHECK): Cast to void.
132324         (analyse_first): Use recursion rather than an explicit stack.
132325         (re_compile_fastmap): Can't fail anymore.
132326         (re_search_2): Don't check re_compile_fastmap for failure.
132327         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
132328         Now also sets the new value (passed in a new argument).
132329         (re_match_2_internal): Use it.
132330         Also, use a new var `reg' of type size_t when looping through regs
132331         rather than reuse the inappropriate `mcnt'.
132333 2000-10-25  Jim Meyering  <meyering@lucent.com>
132335         * lib/obstack.c: Update from libc.
132337 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
132339         * regex.c (regex_compile): Change the way of handling a range from
132340         a char less than 256 to a char not less than 256.
132342 2000-10-24  Andrew Innes  <andrewi@gnu.org>
132344         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
132345         NT-Emacs only.
132346         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
132347         so that re_search functions only quit when callers expect them to.
132349 2000-10-23  Jim Meyering  <meyering@lucent.com>
132351         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
132352         wrong.  That set_locale call must not have any side effects.
132353         From Paul Eggert.
132355 2000-10-22  Jim Meyering  <meyering@lucent.com>
132357         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
132358         [CYCLIC]: Remove now-unused definition.
132360         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
132361         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132362         Suggestion from Ulrich Drepper.
132364 2000-10-21  Jim Meyering  <meyering@lucent.com>
132366         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132367         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132368         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132370 2000-10-21  Jim Meyering  <meyering@lucent.com>
132372         * lib/dirname.c (memrchr): Declare if necessary.
132373         (dir_name): Remove the restriction that there be no
132374         trailing slashes.  Now, this code skips past them, effectively
132375         ignoring them.
132376         [TEST_DIRNAME] (main): New unit tests.
132378         * lib/memrchr.c: New file from GNU libc.
132379         Undef __memrchr, too.
132380         [!weak_alias]: Define __memrchr to memrchr.
132381         Guard weak_alias use with `#ifdef weak_alias'.
132383 2000-10-21  Jim Meyering  <meyering@lucent.com>
132385         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132386         (dir_name): Use dir_name_r.
132387         * lib/dirname.h (dir_name_r): Declare it.
132389 2000-10-17  Jim Meyering  <meyering@lucent.com>
132391         * lib/quote.h (PARAMS): Define and use.
132392         Reported by Akim Demaille.
132394         * lib/getopt.c: Update from libc.
132396 2000-10-16  Jim Meyering  <meyering@lucent.com>
132398         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132399         setlocale.
132400         From Jan Fedak.
132402 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132404         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132406 2000-09-25  Jim Meyering  <meyering@lucent.com>
132408         * lib/md5.h (rol): Define (from GnuPG).
132410         * lib/sha.c: Give credit (GnuPG) where due.
132411         (M): Use rol rather than open-coding it.
132412         Add a FIXME comment.
132414 2000-09-21  Jim Meyering  <meyering@lucent.com>
132416         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132417         Reported by Michael Stone.
132419 2000-09-20  Jim Meyering  <meyering@lucent.com>
132421         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132422         (noinst_HEADERS): Add sha.h.
132423         Based on code from Scott G. Miller and from GnuPG.
132425 2000-09-18  Jim Meyering  <meyering@lucent.com>
132427         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132428         LIBS. Otherwise, everyone ends up linking with -lelf for some
132429         configurations.
132430         Reported by Mike Stone.
132432 2000-09-15  Jim Meyering  <meyering@lucent.com>
132434         * lib/regex.c: Update from libc.
132436 2000-09-10  Jim Meyering  <meyering@lucent.com>
132438         * lib/getopt.c (_getopt_internal): Update from glibc.
132440 2000-09-09  Jim Meyering  <meyering@lucent.com>
132442         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132443         think it should be used as a general replacement for isascii.
132444         * lib/fnmatch.c: Likewise.
132445         * lib/mbswidth.c: Likewise
132446         * lib/regex.c: Likewise.
132448         Don't use atoi.
132449         * lib/userspec.c: Include sys/param.h and limits.h.
132450         Include xstrtol.h.
132451         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132452         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132453         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132454         UID, GID.  Check range.
132456 2000-09-06  Jim Meyering  <meyering@lucent.com>
132458         * lib/getopt.c (_getopt_internal): Update from glibc.
132460 2000-08-30  Jim Meyering  <meyering@lucent.com>
132462         * lib/strftime.c: Merge in changes from GNU libc.
132464 2000-08-26  Jim Meyering  <meyering@lucent.com>
132466         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132467         * m4/fpending.m4: New file.
132469 2000-08-26  Jim Meyering  <meyering@lucent.com>
132471         * lib/closeout.c: Include "__fpending.h".
132472         (close_stdout_status): Return right away if there's nothing to flush.
132474         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
132475         * lib/__fpending.c: New file.
132476         * lib/__fpending.h: New file.
132478 2000-08-20  Jim Meyering  <meyering@lucent.com>
132480         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
132481         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
132482         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
132484 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
132486         Improve fileutils installation on systems where running
132487         programs (like install) can't be unlinked.
132488         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
132489         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
132491 2000-08-07  Paul Eggert  <eggert@twinsun.com>
132493         Standardize on "memory exhausted" instead of "Memory exhausted"
132494         or "virtual memory exhausted".
132495         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
132496         "virtual memory exhausted".
132497         * lib/same.c (same_name): Invoke xalloc_die instead of printing
132498         our own message.
132499         * lib/userspec.c (parse_user_spec): Likewise.
132500         * lib/bumpalloc.h: comment fix
132501         * lib/same.c, userspec.c: Include xalloc.h.
132503         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
132504         not char *const and pointing to a constant array.
132505         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
132506         (xrealloc): Comment fix.
132508         * lib/userspec.c (parse_user_spec):
132509         Don't translate a message until just before returning,
132510         to avoid unnecessary translation.
132512 2000-08-07  Jim Meyering  <meyering@lucent.com>
132514         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
132515         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
132516         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
132517         getgroups.c, gethostname.c, getopt.h, group-member.c,
132518         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
132519         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
132520         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
132521         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
132522         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
132523         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
132524         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
132525         yesno.c: Back out Copyright date changes for each file with no change
132526         this year.  This eases coordination with other programs using the same
132527         source code modules.  From Paul Eggert.
132529 2000-08-06  Paul Eggert  <eggert@twinsun.com>
132531         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
132532         not char, for compatibility with glibc 2.1.3 strftime.c.
132534 2000-08-03  Greg McGary  <greg@mcgary.org>
132536         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
132537         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
132538         (EXTEND_BUFFER): Use them.
132540 2000-08-01  Jim Meyering  <meyering@lucent.com>
132542         * lib/dirname.c (ISSLASH): Define.
132543         (BACKSLASH_IS_PATH_SEPARATOR): Define.
132544         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
132545         both `\' and `/' may be use as path separators.
132546         Based on a patch from Prashant TR.
132548 2000-07-31  Paul Eggert  <eggert@twinsun.com>
132550         * lib/quotearg.c (quotearg_n_options): Don't make the initial
132551         slot vector a constant, since it might get modified.
132553 2000-07-31  Jim Meyering  <meyering@lucent.com>
132555         * lib/xmalloc.c: Use `virtual memory exhausted', not
132556         `Memory exhausted'.
132557         * lib/obstack.c (print_and_abort): Likewise.
132559 2000-07-30  Paul Eggert  <eggert@twinsun.com>
132561         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
132562         buffer, so that the caller can always quote one small
132563         component of a "memory exhausted" message in slot 0.
132564         From a suggestion by Jim Meyering.
132566 2000-07-30  Jim Meyering  <meyering@lucent.com>
132568         * lib/makepath.c (make_path): Quote the other instance, too.
132570         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
132571         (STATIC_BUF_SIZE): Define.
132572         (quotearg_n_options): Use only statically allocated storage when
132573         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
132574         than STATIC_BUF_SIZE.
132576 2000-07-29  Jim Meyering  <meyering@lucent.com>
132578         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
132579         * lib/dirname.c (dir_name): Likewise.
132581         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
132582         `/'.
132584         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
132585         (dir_name): Assert that there are no trailing slashes.
132587 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
132589         * lib/mbswidth.h (mbswidth): Add a flags argument.
132590         (mbswidth): New declaration.
132591         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
132592         * lib/mbswidth.c (mbswidth): Add a flags argument.
132593         (mbsnwidth): New function.
132595 2000-07-24  Jim Meyering  <meyering@lucent.com>
132597         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
132599 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132601         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
132603 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132605         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
132606         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
132607         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
132608         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132609         invoke multibyte primitives.
132611 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132613         * lib/quotearg.c:
132614         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132615         so that mbstate_t is always defined.
132617         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
132618         be 1 in at least one GCC installation, and this configuration
132619         error is likely to be common.  Ignoring MB_LEN_MAX hurts
132620         performance on hosts that have mbrtowc but have only unibyte
132621         locales, but I assume these hosts are rare.
132623 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132625         * lib/mbswidth.c (_XOPEN_SOURCE):
132626         Don't define; this causes problems on Solaris 7.
132627         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
132629 2000-07-23  Jim Meyering  <meyering@lucent.com>
132631         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
132632         too: getgrgid, getpwuid, getuid.
132634 2000-07-23  Jim Meyering  <meyering@lucent.com>
132636         * lib/basename.c (base_name): Add an assertion.
132638 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
132640         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
132641         shadow its mbsinit function.
132643 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132645         * lib/mbswidth.h: New file.
132646         * lib/mbswidth.c: New file.
132647         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
132648         (noinst_HEADERS): Add mbswidth.h.
132650 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132652         * lib/config.charset: Add support for FreeBSD. Improve support for
132653         HP-UX and IRIX 6.
132655 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
132657         * m4/mbswidth.m4: New file.
132658         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
132660 2000-07-15  Jim Meyering  <meyering@lucent.com>
132662         * lib/makepath.c: Include quote.h.
132663         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
132664         corresponding argument in a `quote (...)' call.
132665         Give better diagnostics.
132667         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
132668         (noinst_HEADERS): Add quote.h.
132670         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
132671         from tar's src/misc.c.
132672         * lib/quote.h: New file.  Prototypes for same.
132674 2000-07-14  Paul Eggert  <eggert@twinsun.com>
132676         From a suggestion by Bruno Haible.
132677         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
132678         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
132679         to decide whether to define the BeOS workaround macro;
132680         this adjusts to the change to AC_MBSTATE_T.
132682 2000-07-14  Jim Meyering  <meyering@lucent.com>
132684         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132685         jm_AC_TYPE_UINTMAX_T.
132687 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132689         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132691         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132692         quotearg_buffer_restyled): Add support for
132693         clocale_quoting_style.  Undo previous change to
132694         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132695         and "{RIGHT QUOTATION MARK}" msgids.
132697 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132699         From a suggestion by Bruno Haible.
132700         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132701         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132702         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132703         and mbstate_t, to a single-part test that simply defines mbstate_t.
132704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132705         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132707 2000-07-10  Jim Meyering  <meyering@lucent.com>
132709         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132711         * m4/gnu-source.m4: Output to confdefs.h directly.
132712         Suggestion from Akim Demaille.
132714 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132716         The old behavior of quoting `like this' doesn't look good with
132717         newer, ISO-style fonts.  See:
132718         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132720         Instead, quote "like this" by default.  Let the translator
132721         tailor the locale-specific quoting behavior by providing
132722         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132724         * lib/quotearg.c (N_): New macro.
132725         (gettext_default): New function.
132726         (quotearg_buffer_restyled): Use
132727         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132728         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132730 2000-07-09  Jim Meyering  <meyering@lucent.com>
132732         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132733         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132735         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132738 2000-07-09  Jim Meyering  <meyering@lucent.com>
132740         * lib/Most files: Update copyright dates to include 2000.
132742 2000-07-08  Jim Meyering  <meyering@lucent.com>
132744         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132745         if not defined.
132746         (xgethostname): Remove now-unnecessary #ifdef.
132747         Move declaration of `err' into loop where it's used.
132749 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132750         and Bruno Haible  <haible@clisp.cons.org>
132752         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132753         only if the test for an object-type mbstate_t fails.  This
132754         prevents us from mistakenly reporting that mbstate_t is a
132755         system object type after we "#define mbstate_t int" to work
132756         around its lack.
132758 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132759         and Bruno Haible  <haible@clisp.cons.org>
132761         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132763 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132765         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132766         to strerror_r.
132767         Include <ctype.h> for use of isalpha.
132769 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132771         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132772         by allocating a larger buffer. Test the gethostname return value for
132773         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132774         returns an error and ENAMETOOLONG isn't defined.
132776 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132778         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132779         dimension.
132781 2000-07-04  Jim Meyering  <meyering@lucent.com>
132783         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132784         of the deprecated AC_CHECKING.
132786 2000-07-04  Jim Meyering  <meyering@lucent.com>
132788         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132789         Reported by Bruno Haible.
132791 2000-07-04  Jim Meyering  <meyering@lucent.com>
132793         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132794         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132795         lacks mbrtowc.
132797 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132799         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132800         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132802 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132803         and Bruno Haible  <haible@clisp.cons.org>
132805         * lib/quotearg.c (mbrtowc):
132806         Assign to *pwc, and return 1 only if result is nonzero.
132807         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132809 2000-07-03  Jim Meyering  <meyering@lucent.com>
132811         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132813 2000-07-03  Jim Meyering  <meyering@lucent.com>
132815         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132816         This is necessary to get a definition of e.g., UTMP_FILE on
132817         HP-UX 10.20.
132818         From Bob Proulx.
132820 2000-07-02  Jim Meyering  <meyering@lucent.com>
132822         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132824         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132825         AC_LIBOBJ(function_name).
132826         * m4/chown.m4: Likewise.
132827         * m4/fnmatch.m4: Likewise.
132828         * m4/ftruncate.m4: Likewise.
132829         * m4/getgroups.m4: Likewise.
132830         * m4/getline.m4: Likewise.
132831         * m4/group-member.m4: Likewise.
132832         * m4/jm-macros.m4: Likewise.
132833         * m4/lstat.m4: Likewise.
132834         * m4/malloc.m4: Likewise.
132835         * m4/memcmp.m4: Likewise.
132836         * m4/nanosleep.m4: Likewise.
132837         * m4/putenv.m4: Likewise.
132838         * m4/realloc.m4: Likewise.
132839         * m4/regex.m4: Likewise.
132840         * m4/stat.m4: Likewise.
132841         * m4/strftime.m4: Likewise.
132843 2000-07-02  Jim Meyering  <meyering@lucent.com>
132845         * lib/quotearg.c (mbstate_t): Don't define here.
132847 2000-07-02  Jim Meyering  <meyering@lucent.com>
132849         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132851 2000-07-01  Jim Meyering  <meyering@lucent.com>
132853         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132855 2000-07-01  Jim Meyering  <meyering@lucent.com>
132857         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132858         problem.
132860 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132862         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132863         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132865 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132867         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132868         per change in ../m4/ls-mntd-fs.m4.
132869         (read_filesystem_list): Ignore symbolic links.
132871 2000-06-29  Jim Meyering  <meyering@lucent.com>
132873         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132874         for declaration of strcmp.
132876         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132878         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132879         Avoid warning by casting result to `char *' to remove `const'.
132881 2000-06-28  Jim Meyering  <meyering@lucent.com>
132883         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132884         included by quotearg.c, for which we perform this test.  From
132885         Bruno Haible.
132887 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132889         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132890         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132891         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132893 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132895         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132897 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132899         savedir now sets errno on failure and invokes xmalloc to get memory.
132900         Fix a couple of other minor bugs while we're at it.
132902         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132903         (NAMLEN): Remove macro.
132904         (malloc, realloc): Remove decls.
132905         (stpcpy): Likewise.
132906         ("xalloc.h"): Include.
132907         (NAME_SIZE_DEFAULT): New macro.
132908         (savedir): Use xmalloc / xrealloc to allocate memory.
132909         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132910         Skip "" directory entries.
132911         Use strlen to calculate directory entry length, since the old method
132912         is rarely used these days and isn't worth supporting.
132913         Don't use a pointer after freeing it.
132914         Check for integer overflow when calculating allocation size.
132915         Use memcpy to copy entries, instead of stpcpy.
132916         Set errno properly when returning NULL.
132917         Check for readdir error.
132919 2000-06-26  Jim Meyering  <meyering@lucent.com>
132921         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132923 2000-06-25  Jim Meyering  <meyering@lucent.com>
132925         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132926         Linux header bug when _XOPEN_SOURCE is defined to 500.
132928 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132930         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132931         deficiency.
132933 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132935         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132936         Include xalloc.h.
132937         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132939 2000-06-24  Jim Meyering  <meyering@lucent.com>
132941         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132942         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132943         for which strerror does return char*, but which lacks a conveniently
132944         accessible declaration of the function.  If the compile-test says
132945         strerror_r doesn't work, then resort to a `run'-test that works on
132946         BeOS and segfaults on DEC Unix.
132948 2000-06-24  Jim Meyering  <meyering@lucent.com>
132950         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132952 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132954         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132955         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132957 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132959         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132960         (mbrtowc, mbstate_t): Define substitutes if
132961         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132962         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132963         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132965 2000-06-23  Jim Meyering  <meyering@lucent.com>
132967         * m4/afs.m4: Add missing AC_MSG_RESULT.
132968         Reported by Bruno Haible.
132970         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132971         Suggestion from Bruno Haible.
132973 2000-06-23  Jim Meyering  <meyering@lucent.com>
132975         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132977 2000-06-21  Jim Meyering  <meyering@lucent.com>
132979         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132981 2000-06-21  Jim Meyering  <meyering@lucent.com>
132983         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132984         (noinst_HEADERS): Add getstr.h.
132986         * lib/getline.c (getstr): Move into a separate file.
132987         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132988         the following changes: new parameter, delim2; both delim[12]
132989         parameters have type `int', not `char'.  The latter would lose
132990         with 8-bit delimiters.
132991         * lib/getstr.h: New file.
132993 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132995         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132996         than 1024, return a memory chunk of least possible size, instead
132997         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132998         Use free/xmalloc instead of xrealloc to avoid copying for very long
132999         paths.
133001 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133003         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
133004         the empty string.
133006 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133008         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
133009         address, not strdup.  Include <stdlib.h> and don't declare free().
133011 2000-06-19  Jim Meyering  <meyering@lucent.com>
133013         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
133015 2000-06-18  Jim Meyering  <meyering@lucent.com>
133017         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
133019         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
133020         `checking whether...' message to be consistent with that of the
133021         lstat test.
133023 2000-06-18  Jim Meyering  <meyering@lucent.com>
133025         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
133026         Besides, these days every porting target provides a mkdir function.
133028         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
133029         needed. (this snippet comes from src/system.h).
133031 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
133033         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
133035 2000-06-15  Paul Eggert  <eggert@twinsun.com>
133037         * lib/human.c (adjust_value): New function.
133038         (human_readable_inexact): Apply rounding style even when
133039         printing approximate values.
133041 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133043         * lib/human.c (human_readable_inexact): Allow an input block
133044         size that is not a multiple of the output block size, and vice versa.
133045         Reported by Piergiorgio Sartor.
133047 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133049         * lib/getdate.y (get_date): Apply relative times after time
133050         zone indicator, not before.  Reported by Todd A. Jacobs.
133052 2000-06-13  Jim Meyering  <meyering@lucent.com>
133054         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
133056         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
133058 2000-06-12  Paul Eggert  <eggert@twinsun.com>
133060         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
133062 2000-06-12  Jim Meyering  <meyering@lucent.com>
133064         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
133065         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
133066         optional argument.
133067         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
133068         the optional argument, `lib'.
133070 2000-06-08  Jim Meyering  <meyering@lucent.com>
133072         * m4/largefile.m4: Remove file (now that it's part of autoconf).
133074 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133076         Rewrite largefile configuration so that we don't need to run
133077         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
133078         AC_CANONICAL_HOST in configure.in -- jmm]
133080         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
133081         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
133082         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
133083         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
133084         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
133085         All uses changed.
133086         Instead of inspecting the output of getconf, try to compile the
133087         test program without and with the macro definition.
133088         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
133089         for getconf.  Instead, check for the needed flags by compiling
133090         test programs.
133092 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133094         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
133096 2000-06-04  Jim Meyering  <meyering@lucent.com>
133098         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
133099         SunOS 4.1.4 for which gid_t is an unsigned type.
133101 2000-06-03  Jim Meyering  <meyering@lucent.com>
133103         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
133104         now that autoconf requires that.
133106         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
133107         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
133108         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
133110 2000-06-03  Jim Meyering  <meyering@lucent.com>
133112         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
133114 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133116         * m4/glibc21.m4: New file.
133117         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
133119 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133121         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
133122         newer, don't install charset.alias.
133123         * lib/config.charset: Change the Linux/glibc rules so they become empty
133124         on glibc-2.1 or newer.
133126 2000-06-02  Jim Meyering  <meyering@lucent.com>
133128         * lib/mountlist.c: Back out last change.  Instead, do this...
133129         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
133130         me_dummy member using the same `ignore'-testing code.
133131         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
133132         fs_type strings.
133133         From Mark D. Roth.
133135 2000-05-29  Jim Meyering  <meyering@lucent.com>
133137         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
133138         mounts with the `ignore' attribute.  Based on a patch from
133139         Mark D. Roth.
133141 2000-05-28  Jim Meyering  <meyering@lucent.com>
133143         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
133144         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133145         * m4/stat.m4: Likewise.
133146         * m4/lstat.m4: Likewise.
133147         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
133149         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
133150         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
133152 2000-05-26  Jim Meyering  <meyering@lucent.com>
133154         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
133156 2000-05-24  Jim Meyering  <meyering@lucent.com>
133158         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
133159         autoconf requires that.
133160         * m4/lib-check.m4: Likewise.
133161         * m4/jm-macros.m4: Likewise.
133162         * m4/strftime.m4: Likewise.
133164         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
133165         AC_CHECK_DECLS, now that autoconf requires that.
133167 2000-05-22  Jim Meyering  <meyering@lucent.com>
133169         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133170         * m4/lstat.m4: Likewise.
133172 2000-05-22  Jim Meyering  <meyering@lucent.com>
133174         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
133176 2000-05-20  Jim Meyering  <meyering@lucent.com>
133178         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
133179         (jm_PREREQ): Use it.
133181 2000-05-18  Jim Meyering  <meyering@lucent.com>
133183         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
133184         back, too, since it may have been modified by allocate_entry.
133185         (hash_delete): Rewrite to use neither the assignment operator
133186         nor the comma operator in an if-expression.
133188 2000-05-15  Paul Eggert  <eggert@twinsun.com>
133190         * lib/closeout.c:
133191         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133192         Remove; no longer needed.
133193         "quotearg.h": Add include.
133194         (file_name): Do not bother to explicitly initialize to NULL; it's less
133195         efficient on some hosts.
133196         (close_stdout_status): Remove test as to whether stdout was already
133197         closed; it breaks for the case "echo x | sort >&-".
133198         Quote file name colons.
133199         Do not assume that _("write error") lacks format strings.
133201 2000-05-15  Jim Meyering  <meyering@lucent.com>
133203         * lib/version-etc.c (version_etc_copyright): Update the copyright
133204         string used in all --version output.
133206 2000-05-14  Jim Meyering  <meyering@lucent.com>
133208         * lib/closeout.c (close_stdout_set_file_name): New function.
133209         (close_stdout_status): Use new file-scoped global.
133210         Return right away if fstat says the stdout file descriptor is invalid.
133211         * lib/closeout.h (close_stdout_set_file_name): Declare.
133213 2000-05-10  Jim Meyering  <meyering@lucent.com>
133215         * lib/closeout.c [default_exit_status]: New file-scoped variable.
133216         (close_stdout_set_status): New function.
133217         * lib/closeout.h (close_stdout_set_status): Declare.
133219 2000-05-09  Jim Meyering  <meyering@lucent.com>
133221         * m4/gettext.m4: Rename this...
133222         * m4/libintl.m4: ...to this.
133224 2000-05-08  Jim Meyering  <meyering@lucent.com>
133226         * lib/long-options.c: Don't include closeout.h.
133227         (parse_long_options): Don't call close_stdout for --version.
133229 2000-05-06  Paul Eggert  <eggert@twinsun.com>
133231         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
133232         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
133233         2.1.3 bug.  This avoids a clash when files like regex.c define
133234         _GNU_SOURCE.
133236 2000-05-06  Jim Meyering  <meyering@lucent.com>
133238         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
133239         (AC_REPLACE_FUNCS): Add strnlen.
133241         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
133242         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
133244         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
133245         AC_SEARCH_LIBS call for nanosleep.
133246         (LIB_NANOSLEEP): Set and AC_SUBST.
133248 2000-05-06  Jim Meyering  <meyering@lucent.com>
133250         * lib/strnlen.c: Undefine __strnlen and strnlen.
133251         [!weak_alias]: Define __strnlen to strnlen.
133253         * lib/atexit.c: New file, from libiberty.
133255 2000-05-06  Jim Meyering  <meyering@lucent.com>
133257         * lib/closeout.c (close_stdout_status): Also check for errors on the
133258         stderr stream.
133260 2000-05-05  Jim Meyering  <meyering@lucent.com>
133262         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
133263         AC_SEARCH_LIBS call for clock_gettime.
133264         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
133266         * m4/search-libs.m4: Update from autoconf.
133268         su doesn't work on Solaris 2.6.
133269         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
133270         <shadow.h>.  Reported by Dragos Harabor.
133272 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
133274         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
133275         memcpy instead of xmalloc, xrealloc, path_concat.
133276         (locale_charset): Treat empty environment variables as absent.
133277         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
133279 2000-05-04  Jim Meyering  <meyering@lucent.com>
133281         * lib/getopt.c: Update from glibc.
133282         * lib/obstack.c: Likewise.
133283         * lib/obstack.h: Likewise.
133284         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
133285         file
133287         * lib/regex.h: Likewise.
133288         * lib/strndup.c: Likewise.
133289         * lib/strnlen.c: New file, from glibc.
133291 2000-05-03  Jim Meyering  <meyering@lucent.com>
133293         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
133295 2000-05-02  Paul Eggert  <eggert@twinsun.com>
133297         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
133298         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
133299         compile-time test, rather than inspecting host and OS, to
133300         decide whether to define _LARGEFILE_SOURCE.
133302 2000-05-01  Jim Meyering  <meyering@lucent.com>
133304         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
133306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
133307         Based on a patch from Bruno Haible.
133309 2000-05-01  Jim Meyering  <meyering@lucent.com>
133311         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
133313 2000-04-29  Jim Meyering  <meyering@lucent.com>
133315         * lib/path-concat.c: Declare strdup only if it's not defined.
133316         * lib/canon-host.c: Likewise.
133318 2000-04-28  Jim Meyering  <meyering@lucent.com>
133320         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
133321         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
133322         is included first, then limits.h is included by locale.h by libintl.h.
133323         From John David Anglin.
133325 2000-04-25  Jim Meyering  <meyering@lucent.com>
133327         * lib/makepath.c (S_IRWXUGO): Define.
133328         (make_path): Always perform explicit chmod if MODE specifies any
133329         of the `special' permission bits.  Prompted by a bug report against
133330         install from Mate Wierdl and Joost van Baal.
133332 2000-04-18  Jim Meyering  <meyering@lucent.com>
133334         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
133335         (jm_PREREQ): Use it.
133337 2000-04-18  Jim Meyering  <meyering@lucent.com>
133339         * lib/README: New file.
133341         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
133342         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
133344 2000-04-17  Jim Meyering  <meyering@lucent.com>
133346         Get it right :-)
133347         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
133348         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
133349         Suggestion from Akim Demaille.
133351 2000-04-17  Jim Meyering  <meyering@lucent.com>
133353         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
133354         the definition of it to rpl_strftime also defined-away the system's
133355         declaration.
133357 2000-04-15  Jim Meyering  <meyering@lucent.com>
133359         Use `C' to denote so-called `contiguous' files, the same way
133360         that tar does.
133361         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133362         (ftypelet): Use S_ISCTG.
133363         From Michael Deutschmann.
133365 2000-04-14  Jim Meyering  <meyering@lucent.com>
133367         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133368         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133369         clobbered.
133371 2000-04-14  Jim Meyering  <meyering@lucent.com>
133373         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133375 2000-04-13  Jim Meyering  <meyering@lucent.com>
133377         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133378         AH_VERBATIM to insert required #ifndef into config.h.in.
133379         Suggestion from Akim Demaille.
133381 2000-04-12  Jim Meyering  <meyering@lucent.com>
133383         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133384         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133385         Christian Krackowizer.
133387         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133388         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133389         (AC_SYS_LARGEFILE): Require.
133390         (AM_C_PROTOTYPES): Require.
133392 2000-04-08  Jim Meyering  <meyering@lucent.com>
133394         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133395         names don't conflict.  Reported by Eli Zaretskii.
133397 2000-04-07  Jim Meyering  <meyering@lucent.com>
133399         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133400         sys/types.h, to work around system header problems on AIX 3.2.5.
133401         From Bruno Haible.
133403 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133405         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133406         bug.  Deal with the different error behavior of Irix iconv.
133408 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133410         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133411         IRIX if the installer said otherwise.
133413 2000-04-05  Jim Meyering  <meyering@lucent.com>
133415         Portability tweaks required for ultrix4.3.
133416         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133417         (jm_CHECK_DECLS): Add getutent to the list of functions.
133418         (_jm_DECL_HEADERS): Add utmpx.h.
133419         From John David Anglin.
133421         * m4/strftime.m4: Back out the 2000-04-02 change.
133422         Instead of that change, simply undefine putenv in the test program.
133424 2000-04-05  Jim Meyering  <meyering@lucent.com>
133426         Portability tweaks required for ultrix4.3.
133427         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133428         getutent.
133429         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133430         * lib/canon-host.c: Declare strdup.
133431         * lib/path-concat.c: Likewise.
133432         From John David Anglin.
133434 2000-04-04  Jim Meyering  <meyering@lucent.com>
133436         Be more DOS 8.3-friendly.
133437         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133438         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133439         * lib/Makefile.am: Reflect renaming.
133440         Reported by Eli Zaretskii.
133442         Use a temporary file name that won't clash with `charset.alias'
133443         in the DOS 8.3 name space.
133444         * lib/Makefile.am (charset_tmp): Define.
133445         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133446         (uninstall-local): Likewise.
133447         Reported by Eli Zaretskii.
133449 2000-04-03  Jim Meyering  <meyering@lucent.com>
133451         * m4/gettext.m4: Fix typo in comment.
133453         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133454         textutils/configure.in).  Suggestion from Paul Eggert.
133455         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133457 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133459         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133460         variable in the shell rather than using putenv, which isn't
133461         portable.  This avoids the configure-time inter-test dependency
133462         on the potentially-renamed putenv function.
133464 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133466         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133467         before checking struct stat.st_blksize, so that
133468         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133470 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133472         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
133473         since strftime.c uses HAVE_STRFTIME to decide whether to use
133474         the underlying strftime.
133476 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133478         * lib/time/strftime.c (my_strftime): Make sure we call the system
133479         strftime, not ourselves, when invoking the underlying strftime.
133481 2000-03-24  Jim Meyering  <meyering@lucent.com>
133483         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
133484         (charset_alias): Define.
133485         (install-exec-local): Factor out common code.
133486         (uninstall-local): Split lines longer than 80.
133487         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
133488         (SUFFIXES): Define.
133489         (.sed.in.sed): New rule.  Don't redirect directly to $@.
133490         (CLEANFILES): Add ref-add.sed and ref-del.sed.
133492 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
133494         * lib/config.charset: Output a line containing "Packages using this
133495         file".
133496         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
133497         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
133498         ref-del.sed): New rules.
133500 2000-03-17  Jim Meyering  <meyering@lucent.com>
133502         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
133503         Otherwise, include <strings.h>
133505 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
133507         * lib/unicodeio.c (utf8_wctomb): New function.
133508         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
133509         format instead of in UCS-4 with platform dependent endianness.
133511 2000-03-10  Jim Meyering  <meyering@lucent.com>
133513         * m4/lib-check.m4: Look for getspnam in -lgen, too.
133514         From Marco Franzen.
133516 2000-03-07  Paul Eggert  <eggert@twinsun.com>
133518         * lib/savedir.c (savedir): Work even if directory size is
133519         negative; this can happen with some screwy NFS configurations.
133521 2000-03-06  Jim Meyering  <meyering@lucent.com>
133523         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
133524         if it's NULL (because we ran out of memory).  From Bruno Haible.
133526 2000-03-05  Jim Meyering  <meyering@lucent.com>
133528         * lib/localcharset.c ("path-concat.h"): Include.
133529         (get_charset_aliases): Use path_concat instead of ANSI string
133530         concatenation.
133532         * lib/unicodeio.h (PARAMS): Define.
133533         Use it to guard prototype.
133535 2000-03-04  Jim Meyering  <meyering@lucent.com>
133537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
133538         for lib/localcharset.c.
133540 2000-03-04  Jim Meyering  <meyering@lucent.com>
133542         * lib/Makefile.am (install-exec-local): Create $(libdir) before
133543         installing into it.
133544         (uninstall-local): Uncomment this rule so `make distcheck' works
133545         once again.
133547         * lib/unicodeio.c (<errno.h>): Include it.
133548         (errno): Declare if not defined.
133550         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
133552         * lib/config.charset: New version, incorporating remarks from a linux
133553         i18n mailing list.  From Bruno Haible.
133555 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
133557         * m4/codeset.m4: New file.
133558         * m4/iconv.m4: New file.
133559         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
133561 2000-03-03  Jim Meyering  <meyering@lucent.com>
133563         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
133565 2000-03-02  Jim Meyering  <meyering@lucent.com>
133567         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
133568         the messages come out on separate lines.
133570         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
133571         rather than jm_CHECK_DECLARATIONS.
133572         * m4/decl.m4: Remove now-unused file.
133574         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
133575         geteuid.
133577 2000-03-02  Jim Meyering  <meyering@lucent.com>
133579         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
133581 2000-03-01  Jim Meyering  <meyering@lucent.com>
133583         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
133584         * lib/unicodeio.c: Likewise.
133586 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
133588         * lib/config.charset: New file.
133589         * lib/localcharset.c: New file.
133590         * lib/unicodeio.h, lib/unicodeio.c: New files.
133591         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
133592         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
133593         (noinst_HEADERS): Add unicodeio.h.
133594         (all-local, install-exec-local, charset.alias): New targets.
133596 2000-02-28  Paul Eggert  <eggert@twinsun.com>
133598         * lib/quotearg.c (ALERT_CHAR): New macro.
133599         (quotearg_buffer_restyled): Use it.
133601 2000-02-27  Jim Meyering  <meyering@lucent.com>
133603         * m4/check-decl.m4: Add getenv to the list.
133605 2000-02-27  Jim Meyering  <meyering@lucent.com>
133607         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
133608         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133610         * lib/backupfile.c: Guard inclusion of stdlib.h with
133611         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133612         Declare malloc if needed.
133614         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133615         `#ifndef HAVE_DECL..'
133616         now that autoconf always defines the HAVE_DECL_ symbols.
133617         * lib/human.c: Likewise.
133618         * lib/same.c: Likewise.
133619         * lib/strtoumax.c: Likewise.
133621         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
133622         declaration check was not run.
133623         * lib/hash.c: Likewise.
133624         * lib/human.c: Likewise.
133625         * lib/same.c: Likewise.
133626         * lib/strtoumax.c: Likewise.
133628         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
133629         `.', then first look up the entire `.'-containing string as a login
133630         name.
133632 2000-02-23  Jim Meyering  <meyering@lucent.com>
133634         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
133635         in place of my hack.
133637 2000-02-18  Paul Eggert  <eggert@twinsun.com>
133639         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
133640         (textint): New typedef.
133641         (parser_control): Member year changed from int to textint.
133642         All uses changed.
133643         (YYSTYPE): Removed; replaced by %union with int and textint members.
133644         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
133645         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
133646         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
133647         (tSNUMBER, tUNUMBER): Now of type <textintval>.
133648         (date, number, to_year): Use width of number in digits, not its value,
133649         to determine whether it's a 2-digit year, or a 2-digit time.
133650         (yylex): Store number of digits of numeric tokens.
133651         Reported by John Kendall.
133653         (parser_control): Changed from struct parser_control to typedef (for
133654         consistency).  All uses changed.
133656         (tID): Removed; not used.
133657         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
133659 2000-02-14  Paul Eggert  <eggert@twinsun.com>
133661         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
133662         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
133664 2000-02-12  Jim Meyering  <meyering@lucent.com>
133666         * lib/userspec.c (ISDIGIT): Define it.
133667         (isdigit): Remove definition.
133668         (is_number): Use ISDIGIT, not isdigit.
133669         <libintl.h>: Include.
133670         (_ and N_): Define.
133671         (parse_user_spec): Mark translatable strings.
133673 2000-02-10  Jim Meyering  <meyering@lucent.com>
133675         With these changes, nanosleep.[ch] are finally enough like the other
133676         lib/* replacement files to compile on a few more losing systems.
133678         * lib/nanosleep.h: Don't include config.h.
133679         Remove prototype from declaration of nanosleep.
133680         (PARAMS): Remove now-unneeded definition.
133681         * lib/nanosleep.c: #undef nanosleep.
133682         (rpl_nanosleep): Rename from nanosleep.
133684 2000-02-10  Jim Meyering  <meyering@lucent.com>
133686         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133687         gnu_nanosleep to rpl_nanosleep.
133689 2000-02-09  Jim Meyering  <meyering@lucent.com>
133691         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133692         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133694 2000-02-08  Akim Demaille  <akim@epita.fr>
133696         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133697         `[' and `]' and remove uses of `changequote'.
133698         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133699         (AC_SYS_LARGEFILE): Likewise.
133700         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133701         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133702         of changequote.
133703         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133704         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133705         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133706         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133708 2000-02-05  Jim Meyering  <meyering@lucent.com>
133710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133711         Remove explicit use of AC_HEADER_TIME.  It is required by
133712         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133713         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133714         in autoconf whereby the expansion of the latter ended up preceding
133715         the expansion of its prerequisite, AC_HEADER_TIME.
133716         Reported by Volker Borchert.
133718 2000-02-03  Jim Meyering  <meyering@lucent.com>
133720         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133722 2000-02-03  Jim Meyering  <meyering@lucent.com>
133724         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133725         rather than with `#if HAVE_UTMPNAME'.
133727 2000-02-02  Jim Meyering  <meyering@lucent.com>
133729         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133730         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133731         Reported by Eli Zaretskii.
133733 2000-02-01  Jim Meyering  <meyering@lucent.com>
133735         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133737 2000-01-31  Jim Meyering  <meyering@lucent.com>
133739         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133740         functions.  Add the time.h and sys/time.h headers along with the
133741         AC_REQUIRE'ment of AC_HEADER_TIME.
133743 2000-01-31  Jim Meyering  <meyering@lucent.com>
133745         * lib/nanosleep.h (nanosleep): Guard declaration with
133746         `#if ! HAVE_DECL_NANOSLEEP'.
133747         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133748         the declaration in that vendor's sys/timers.h.
133749         Reported by Christian Krackowizer.
133751         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133752         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133753         (ISPRINT): Likewise.
133754         Reported by Tom Tromey.
133756 2000-01-30  Jim Meyering  <meyering@lucent.com>
133758         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133760         * m4/prereq.m4 (utmp_includes): Define.
133761         Check for ut_user and ut_name members in both struct utmpx
133762         and struct utmp.
133764 2000-01-30  Jim Meyering  <meyering@lucent.com>
133766         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133767         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133768         header files where only utmpx.ut_user is declared.
133770         * lib/readutmp.h (UT_USER): Define.
133772 2000-01-29  Jim Meyering  <meyering@lucent.com>
133774         * m4/lib-check.m4: New file containing library-related checks from
133775         fileutils and sh-utils (textutils had none).
133777 2000-01-28  Jim Meyering  <meyering@lucent.com>
133779         * m4/perl.m4: Change format of warning message to look more like that
133780         from the missing script.  Suggestion from François Pinard.
133782 2000-01-25  Jim Meyering  <meyering@lucent.com>
133784         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133785         well as time.h in the compile check.
133786         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133787         Fix typo in cross-compiling case: s/yes/no/.
133789 2000-01-23  Jim Meyering  <meyering@lucent.com>
133791         * m4/jm-macros.m4: Move df-related tests here from
133792         fileutils/configure.in
133794         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133795         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133797         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133798         s/space/ac_fsusage_space/.
133799         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133801         * m4/ftruncate.m4: New file (derived from part of
133802         fileutils/configure.in).
133803         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133804         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133806         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133807         AC_SUBST these here, rather than just in sh-util/configure.in, so
133808         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133809         all the same.
133810         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133811         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133812         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133813         (AC_SUBST(POW_LIBM)): Likewise.
133814         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133816 2000-01-23  Jim Meyering  <meyering@lucent.com>
133818         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133819         obstack.c.
133821 2000-01-22  Jim Meyering  <meyering@lucent.com>
133823         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133825         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133827         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133828         configure.in
133829         (AC_CHECK_HEADERS): Likewise for sh-utils.
133830         (AC_CHECK_HEADERS): Likewise for textutils.
133831         Merge the three lists of headers.
133833         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133834         from fileutils' configure.in.
133836         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133837         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133838         check-decl.m4.
133840         * m4/check-decl.m4: Use #if rather than #ifdef.
133841         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133842         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133843         (_jm_DECL_HEADERS): Define new function.
133844         (jm_CHECK_DECLARATIONS): Require it.
133846 2000-01-22  Jim Meyering  <meyering@lucent.com>
133848         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133849         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133850         Required for some AIX systems.  Reported by Christian Krackowizer.
133851         [TESTING] (main): New function.
133853         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133854         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133855         letters.
133857         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133858         iswprint.
133860         * lib/strverscmp.c (ISDIGIT): Define.
133861         (strverscmp): Use ISDIGIT, not isdigit.
133863 2000-01-19  Jim Meyering  <meyering@lucent.com>
133865         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133866         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133867         defines `struct timespec' in <sys/time.h>
133869         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133870         Thanks to Akim for explaining.
133872 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133874         * lib/nanosleep.c (nanosleep):
133875         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133876         POSIX.1 doesn't require SA_INTERRUPT and some systems
133877         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133878         it's been part of POSIX.1 since day 1 (in 1988).
133880 2000-01-17  Jim Meyering  <meyering@lucent.com>
133882         * lib/interlock: Remove unused file.  Reported by François Pinard.
133884 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133886         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133887         alert, backslash, formfeed, and vertical tab unnecessarily in
133888         shell quoting style.
133890 2000-01-16  Jim Meyering  <meyering@lucent.com>
133892         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133893         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133894         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133895         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133897 2000-01-16  Jim Meyering  <meyering@lucent.com>
133899         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133900         because the latter didn't work.
133902 2000-01-15  Jim Meyering  <meyering@lucent.com>
133904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133905         (AC_REPLACE_FUNCS): Add memcpy and memset.
133906         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133907         Add strpbrk.
133908         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133910 2000-01-12  Jim Meyering  <meyering@lucent.com>
133912         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133913         (jm_PREREQ): Use it.
133914         (jm_PREREQ_READUTMP): New macro.
133915         (jm_PREREQ): Use it.
133917 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133919         Quote multibyte characters correctly.
133920         * m4/c-bs-a.m4: New file.
133921         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133922         (jm_PREREQ): Use it.
133924 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133926         * m4/uintmax_t.m4: Port to autoconf 2.13.
133928 2000-01-08  Jim Meyering  <meyering@ascend.com>
133930         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133931         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133933 2000-01-04  Jim Meyering  <meyering@ascend.com>
133935         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133936         jm_STRUCT_DIRENT_D_TYPE.
133937         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133938         jm_STRUCT_DIRENT_D_INO.
133939         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133940         jm_STRUCT_UTIMBUF.
133941         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133942         renamings.
133943         * m4/utime.m4: Likewise.
133945         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133946         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133948 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133950         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133951         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133953 2000-01-02  Jim Meyering  <meyering@ascend.com>
133955         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133956         remember if this is necessary.
133958 1999-12-26  Jim Meyering  <meyering@ascend.com>
133960         * m4/jm-macros.m4: Use it here.
133961         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133963 1999-12-23  Jim Meyering  <meyering@ascend.com>
133965         * m4/jm-macros.m4: Check for clock_gettime (moved from
133966         fileutils/configure.in)
133967         Check for gettimeofday.
133969 1999-12-20  Jim Meyering  <meyering@ascend.com>
133971         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133972         autoconf-2.14a-1999-12-20.
133974 1999-12-19  Jim Meyering  <meyering@ascend.com>
133976         * m4/lstat-slash.m4: New file.
133977         * m4/jm-macros.m4: Use the new macro:
133978         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133980 1999-12-07  Jim Meyering  <meyering@ascend.com>
133982         * m4/perl.m4: Require that File::Compare be available, too.
133983         Too many systems seem to lack it.
133985         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133986         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133988 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133990         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133991         problem with the QNX 4.25 shell, which doesn't propagate exit
133992         status of failed commands inside shell assignments.
133994 1999-11-17  Jim Meyering  <meyering@ascend.com>
133996         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133998 1999-11-07  Jim Meyering  <meyering@ascend.com>
134000         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
134002 1999-11-06  Jim Meyering  <meyering@ascend.com>
134004         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
134005         * m4/jm-macros.m4 (jm_MACROS): Use it here.
134007 1999-11-05  Jim Meyering  <meyering@ascend.com>
134009         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
134010         configure.in of textutils, fileutils, and sh-utils into this one
134011         (shared between those packages) file.
134012         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
134013         AC_STRUCT_ST_BLKSIZE.
134015 1999-11-03  Jim Meyering  <meyering@ascend.com>
134017         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
134018         of AC_CHECK_TYPE checks includes unistd.h.
134019         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
134020         Suggestion from Akim Demaille.
134022 1999-10-30  Jim Meyering  <meyering@ascend.com>
134024         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
134025         m4-quoted string.
134026         * m4/ls-mntd-fs.m4: Likewise.
134027         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
134028         * m4/jm-winsz1.m4: Likewise.
134030         * m4/const.m4: Remove file, since the fix made it into the experimental
134031         version of autoconf.
134032         * m4/mktime.m4: Likewise.
134034         * m4/check-type.m4: Remove file, now that the latest version of
134035         AC_CHECK_TYPE takes a third arg to specify additional #includes.
134037         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
134038         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
134039         AC_CHECK_TYPE.
134041 1999-10-04  Jim Meyering  <meyering@ascend.com>
134043         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
134045 1999-09-22  Paul Eggert  <eggert@twinsun.com>
134047         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
134048         2.95.1 bug with HP-UX 10.20.
134050 1999-09-17  Jim Meyering  <meyering@ascend.com>
134052         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
134053         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
134054         due to missing strdup (against sh-utils-2.0).
134056 1999-08-29  Jim Meyering  <meyering@ascend.com>
134058         * m4/jm-macros.m4: Require jm_BISON.
134059         * m4/bison.m4: New file.
134061 1999-08-17  Paul Eggert  <eggert@twinsun.com>
134063         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
134064         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
134066 1999-08-05  Jim Meyering  <meyering@ascend.com>
134068         * m4/getline.m4: Rename test file from conftestdata to conftest.data
134069         to avoid conflicts with `conftest' on 8+3 filesystems.
134070         Suggestion from Eli Zaretskii.
134072 1999-08-04  Jim Meyering  <meyering@ascend.com>
134074         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
134075         fileutils and sh-utils (textutils's getline test was inadequate).
134076         (AM_FUNC_GETLINE): Run this test.
134077         (AC_CHECK_FUNCS): Check for getdelim.
134078         Reported by Bob Proulx.
134080 1999-08-02  Jim Meyering  <meyering@ascend.com>
134082         * m4/jm-macros.m4: Add a comment.
134084 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134086         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
134087         <inttypes.h> defines strtoumax as a macro (and not as a
134088         function).
134090 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134092         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
134093         that we can shift, multiply and divide unsigned long long
134094         values; Ultrix cc can't do it.
134096 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134098         * m4/mktime.m4: New file, which is a preview of what should appear
134099         in the next public autoconf release.
134101 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134103         * m4/lfs.m4: Remove this file.
134104         * m4/largefile.m4: New file.  It contains the old contents of
134105         lfs.m4, except that all names with prefix AC_LFS have been
134106         changed to use the prefix AC_SYS_LARGEFILE instead, to be
134107         compatible with future autoconf versions.  Also, some minor m4
134108         quoting problems have been fixed.
134110 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134112         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
134113         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
134114         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
134115         and simplify the shell code.
134117 1999-08-01  Jim Meyering  <meyering@ascend.com>
134119         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
134120         m4.
134122 1999-07-20  Jim Meyering  <meyering@ascend.com>
134124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
134126 1999-07-15  Jim Meyering  <meyering@ascend.com>
134128         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
134130 1999-05-22  Jim Meyering  <meyering@ascend.com>
134132         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
134134 1999-05-20  Jim Meyering  <meyering@ascend.com>
134136         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
134137         Add a colon after each `then' in case $4 is empty.
134139 1999-05-16  Jim Meyering  <meyering@ascend.com>
134141         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
134143 1999-05-10  Jim Meyering  <meyering@ascend.com>
134145         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
134147         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
134148         AC_FUNC_MKTIME.
134150 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
134152         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
134154 1999-05-04  Paul Eggert  <eggert@twinsun.com>
134156         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
134157         not CPPFLAGS, so that linking works correctly in IRIX.
134159 1999-04-30  Paul Eggert  <eggert@twinsun.com>
134161         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
134163 1999-04-20  Paul Eggert  <eggert@twinsun.com>
134165         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
134166         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
134167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
134168         jm_AC_TYPE_UNSIGNED_LONG_LONG.
134169         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
134171         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
134173 1999-04-20  Jim Meyering  <meyering@ascend.com>
134175         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
134176         AC_REPLACE xstroull if necessary.  From Paul Eggert.
134177         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
134179 1999-04-18  Jim Meyering  <meyering@ascend.com>
134181         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
134182         * m4/jm-macros.m4: Use it.
134184 1999-04-06  Jim Meyering  <meyering@ascend.com>
134186         * m4/strftime.m4: Remove test for %f.
134188 1999-03-29  Jim Meyering  <meyering@ascend.com>
134190         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
134191         superset of the AC_TYPE_* checks in the textutils, fileutils,
134192         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134193         AC_TYPE_PID_T.
134195 1999-03-28  Jim Meyering  <meyering@ascend.com>
134197         * m4/jm-macros.m4: Define GNU_PACKAGE here.
134198         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
134199         replaced e.g., in the *.sh files of the sh-utils.
134201 1999-03-20  Jim Meyering  <meyering@ascend.com>
134203         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
134204         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
134205         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
134207 1999-03-19  Jim Meyering  <meyering@ascend.com>
134209         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
134211 1999-03-12  Jim Meyering  <meyering@ascend.com>
134213         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
134215 1999-03-07  Jim Meyering  <meyering@ascend.com>
134217         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
134218         declared.
134220 1999-02-17  Jim Meyering  <meyering@ascend.com>
134222         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
134223         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
134225 1999-02-07  Jim Meyering  <meyering@ascend.com>
134227         * m4/group-member.m4: New file -- extracted from sh-utils'
134228         configure.in.
134230         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
134231         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
134233 1999-02-06  Jim Meyering  <meyering@ascend.com>
134235         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
134236         * m4/fnmatch.m4: Likewise.
134237         * m4/getgroups.m4: Likewise.
134238         * m4/lstat.m4: Likewise.
134239         * m4/malloc.m4: Likewise.
134240         * m4/putenv.m4: Likewise.
134241         * m4/realloc.m4: Likewise.
134242         * m4/regex.m4: Likewise.
134243         * m4/stat.m4: Likewise.
134244         * m4/strftime.m4: Likewise.
134245         Suggestion from Alain Magloire.
134247         * m4/chown.m4: Use `.$ac_objext', not `.o'.
134248         * m4/fnmatch.m4: Likewise.
134249         * m4/getgroups.m4: Likewise.
134250         * m4/getline.m4: Likewise.
134251         * m4/lstat.m4: Likewise.
134252         * m4/malloc.m4: Likewise.
134253         * m4/memcmp.m4: Likewise.
134254         * m4/putenv.m4: Likewise.
134255         * m4/realloc.m4: Likewise.
134256         * m4/regex.m4: Likewise.
134257         * m4/stat.m4: Likewise.
134258         * m4/strftime.m4: Likewise.
134259         Suggestion from Alain Magloire.
134261         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
134262         an argument.
134264         * m4/regex.m4: Add a run-time Test for proper operation of
134265         re_compile_pattern.
134267 1999-01-31  Jim Meyering  <meyering@ascend.com>
134269         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
134271 1999-01-30  Jim Meyering  <meyering@ascend.com>
134273         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
134275         * m4/jm-mktime.m4: Make this a wrapper around the official
134276         AM_FUNC_MKTIME rather than my private copy, now that the official one
134277         is up to date.
134278         * m4/mktime.m4: Remove file.
134280         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
134281         * m4/uptime.m4: Likewise.
134282         * m4/uintmax_t.m4: Likewise.
134284 1999-01-28  Jim Meyering  <meyering@ascend.com>
134286         * m4/jm-macros.m4: Use jm_AFS.
134287         * m4/afs.m4: New file (from fileutils' configure.in).
134289         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
134290         * m4/chown.m4: Likewise.
134291         * m4/d-ino.m4: Likewise.
134292         * m4/d-type.m4: Likewise.
134293         * m4/fnmatch.m4: Likewise.
134294         * m4/getgroups.m4: Likewise.
134295         * m4/gettext.m4: Likewise.
134296         * m4/jm-mktime.m4: Likewise.
134297         * m4/jm-winsz2.m4: Likewise.
134298         * m4/lcmessage.m4: Likewise.
134299         * m4/ls-mntd-fs.m4: Likewise.
134300         * m4/malloc.m4: Likewise.
134301         * m4/memcmp.m4: Likewise.
134302         * m4/putenv.m4: Likewise.
134303         * m4/realloc.m4: Likewise.
134304         * m4/st_mtim.m4: Likewise.
134305         * m4/strftime.m4: Likewise.
134307 1999-01-16  Jim Meyering  <meyering@ascend.com>
134309         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
134310         (ARGMATCH_DIE_DECL): Define.
134312 1999-01-12  Jim Meyering  <meyering@ascend.com>
134314         * m4/Makefile.am.in: Rewrite to avoid using fmt.
134315         Reported by Lars Hecking.
134317 1999-01-10  Jim Meyering  <meyering@ascend.com>
134319         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
134320         gross kludge.
134321         * m4/inttypes_h.m4: Likewise.
134322         * m4/lstat.m4: Likewise.
134323         * m4/malloc.m4: Likewise.
134324         * m4/readdir.m4: Likewise.
134325         * m4/realloc.m4: Likewise.
134326         * m4/st_dm_mode.m4: Likewise.
134327         * m4/stat.m4: Likewise.
134328         * m4/utimbuf.m4: Likewise.
134329         * m4/utimes.m4: Likewise.
134331         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
134332         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
134333         comments in config.h.in are meaningful.
134335         * m4/jm-macros.m4: Require autoconf-2.13 here.
134337         * m4/regex.m4: By default, don't use the included regex.c on systems
134338         with glibc 2.  Suggestion from Uli Drepper.
134340 1999-01-02  Jim Meyering  <meyering@ascend.com>
134342         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
134344 1998-12-18  Jim Meyering  <meyering@ascend.com>
134346         * m4/Makefile.am.in (Makefile.am): Simplify rule.
134347         Based on a suggestion from Lars Hecking.
134349 1998-11-16  Paul Eggert  <eggert@twinsun.com>
134351         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
134353 1998-11-16  Jim Meyering  <meyering@ascend.com>
134355         * m4/lfs.m4: Double-quote the `uname...` expression.
134357 1998-11-14  Jim Meyering  <meyering@ascend.com>
134359         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
134360         * m4/stat.m4: Likewise.
134362 1998-11-03  Jim Meyering  <meyering@ascend.com>
134364         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134365         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134367 1998-10-18  Jim Meyering  <meyering@ascend.com>
134369         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134371 1998-10-17  Jim Meyering  <meyering@ascend.com>
134373         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134374         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134375         calls for those previously hard-coded headers.  Instead, take a new
134376         parameter.
134377         (jm_CHECK_DECLARATIONS): Reflect interface change.
134378         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134379         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134381         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134383 1998-10-14  Jim Meyering  <meyering@ascend.com>
134385         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134386         instead of "TZ=America/Vancouver".  From Paul Eggert.
134388 1998-10-11  Jim Meyering  <meyering@ascend.com>
134390         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134391         This adds a test for a recently added compatibility fix for mktime.c.
134392         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134394 1998-09-27  Jim Meyering  <meyering@ascend.com>
134396         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134398         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134399         ../configure.in, including a change from Gordon Matzigkeit to allow
134400         cross-compiling for the Hurd.
134402         * m4/glibc.m4: New file/macro to test for the GNU C Library
134403         versions 1 and 2.  From Gordon Matzigkeit.
134404         Indent.
134406 1998-09-21  Jim Meyering  <meyering@ascend.com>
134408         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134410 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134412         Port nanosecond-resolution times to UnixWare 2.1.2 and
134413         pedantic Solaris 2.6.
134415         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134416         AC_STRUCT_ST_MTIM.
134417         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134418         Generate name of ns member, instead of just 1 or undef.
134419         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134421 1998-08-15  Jim Meyering  <meyering@ascend.com>
134423         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134424         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134425         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134426         instead of jm_TYPE_SSIZE_T.
134428 1998-08-12  Jim Meyering  <meyering@ascend.com>
134430         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134432 1998-08-02  Jim Meyering  <meyering@ascend.com>
134434         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134435         in acconfig.h manually.
134437 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134439         * m4/st_mtim.m4: New file.
134441 1998-07-28  Jim Meyering  <meyering@ascend.com>
134443         * m4/utimes.m4: Undef stat.
134445 1998-07-25  Jim Meyering  <meyering@ascend.com>
134447         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134448         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134450 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134452         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134453         uid and gid actually remain unchanged.
134455 1998-07-07  Jim Meyering  <meyering@ascend.com>
134457         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134459 1998-07-04  Jim Meyering  <meyering@ascend.com>
134461         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134462         to prove that this macro can be used in packages without regex.c.
134464 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134466         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134467         is to be used.
134469 1998-07-03  Jim Meyering  <meyering@ascend.com>
134471         * m4/gettext.m4: Add -lintl if it's found to be necessary.
134473         * m4/gettext.m4: New file -- from gettext-0.10.35.
134474         * m4/lcmessage.m4: Likewise.
134475         * m4/progtest.m4: Likewise.
134477         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
134478         * m4/jm-macros.m4: Require the new macro.
134480 1998-06-29  Jim Meyering  <meyering@ascend.com>
134482         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
134483         for the definition of NGROUPS (used in a system header included
134484         by sys/mount.h).
134486 1998-06-28  Jim Meyering  <meyering@ascend.com>
134488         * m4/ls-mntd-fs.m4: New file.
134489         * m4/fstypename.m4: New file.
134491         * m4/jm-macros.m4: Require the new macro.
134492         * m4/jm-glibc-io.m4: New file.
134494 1998-05-19  Jim Meyering  <meyering@ascend.com>
134496         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
134497         * m4/lchown.m4: New file.
134499         * m4/Makefile.am.in: New file.
134500         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
134502 1998-05-14  Jim Meyering  <meyering@ascend.com>
134504         * m4/Makefile.am (EXTRA_DIST): Add them.
134505         * m4/jm-macros.m4: New file.
134506         * m4/utimbuf.m4: New file.
134508 1998-05-12  Jim Meyering  <meyering@ascend.com>
134510         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
134512 1998-05-11  Jim Meyering  <meyering@ascend.com>
134514         * m4/isc-posix.m4: New file.
134516 1998-05-10  Jim Meyering  <meyering@ascend.com>
134518         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
134520 1998-05-09  Jim Meyering  <meyering@ascend.com>
134522         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
134523         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
134524         with automake.
134526         * m4/ssize_t.m4: New file.
134527         * m4/mktime.m4: Remove file -- the new automake has this now.
134529 1998-04-26  Jim Meyering  <meyering@ascend.com>
134531         * m4/assert.m4: New file.
134532         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
134534 1998-04-05  Jim Meyering  <meyering@ascend.com>
134536         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
134537         (jm_PREREQ): Use it here.
134539 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
134541         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
134542         in acconfig.h.
134544 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
134546         * m4/prereq.m4: New file.
134547         * m4/error.m4: New file.
134548         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
134550 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
134552         * m4/getline.m4: Don't set am_cv_func_working_getline before the
134553         cache-check for the same variable -- that defeated the purpose of
134554         the test; the test program was never run.  This was a problem only
134555         on systems with losing getline functions -- HP-UX 10.20 is one.
134556         Reported by Bjorn Helgaas.
134558 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
134560         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
134562 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
134564         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
134566         * m4/const.m4: New file.  Use an initializer in this declaration
134567         typedef int charset[2]; const charset x;
134568         Reported by Bob Glickstein.
134570 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
134572         * m4/chown.m4: Fix reversed types on -1 args to chown.
134573         From Kaveh Ghazi.
134575 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
134577         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
134578         Add lseek and memchr.
134580         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
134581         T.E.Dickey <dickey@clark.net> said that some older preprocessors
134582         have a 20-character limit on names.
134584 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
134586         * m4/inttypes_h.m4: New file.
134587         * m4/uintmax_t.m4: New file.
134588         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
134591         -----
134593         Local Variables:
134594         coding: utf-8
134595         End:
134597         Copyright (C) 1997-2020 Free Software Foundation, Inc.
134599         Copying and distribution of this file, with or without
134600         modification, are permitted provided the copyright notice
134601         and this notice are preserved.